Commit Graph
12 Commits
Author SHA1 Message Date
baldurk 57d8cfa89a Add stb_image_resize for thumbnail processing 2016-11-02 23:37:38 +01:00
baldurk 953ebe0389 Avoid __builtin_cpu_supports to workaround gcc bug. Refs #366
* Upstream stb_image.h uses __builtin_cpu_supports to detect if SSE2 is
  available, but GCC versions from at least 5.4 and up to apparently
  6.1.1 on Fedora 24 then give an error about a missing hidden symbol
  __cpu_model when the resulting code is compiled into a DSO.
* Avoiding this by just assuming x64 gives SSE2 will fix 99% of cases,
  and it's not a big loss for the tiny minority with SSE2 on x86 to miss
  out. Thanks to @Anteru for this suggested fix!
2016-09-20 13:21:09 +02:00
baldurk c6d2c631f9 A couple of typecast warning fixes for stb_image.h 2016-04-09 11:04:51 +02:00
baldurk 23439da708 Update stb libraries. stb_image 2.12, image_write 1.02, truetype 1.11 2016-04-09 11:04:28 +02:00
baldurk 6cd1f70bb6 Fix several warnings for compiling on VS2015
* Note at the time of committing there are still some warnings in MS
  headers that you might need to suppress in a couple of files.
* 3rd party code just has the warnings suppressed for ease of merging.
* The majority of warning fixes were for local variables shadowing
  other locals, function parameters, or members. In most cases they
  weren't a problem, but in some cases it was potentially dangerous!
2015-03-13 10:16:19 +00:00
baldurk 0ee9e9be76 Re-add functions to stb_image_write to write to a FILE*. 2015-01-19 13:25:27 +00:00
baldurk 128779581f Update to stb_image_write v0.97 and stb_image v2.02 2015-01-19 13:25:24 +00:00
baldurk e8508be085 Re-do text rendering to use stb_truetype so it's portable to linux 2014-10-30 22:47:21 +00:00
baldurk 8ba8041a2a Add variants to stb_image_write that take FILE* instead of filename 2014-09-16 01:16:55 +01:00
baldurk 03b6e01d1b Add Radiance RGBE .hdr writer to stb_image_write.h 2014-09-09 01:38:10 +01:00
baldurk f443a40b06 Move stb_impl to a C file so I can test that changes compile 2014-09-09 01:07:18 +01:00
baldurk c1f92dd3d5 Add stb_image.h and stb_image_write.h from http://nothings.org 2014-09-08 19:31:07 +01:00