Commit Graph

289 Commits

Author SHA1 Message Date
Brandon DeRosier
0c9cb2786f Fix emscripten builds by correcting ctype.h include.
The emscripten compat headers work by transparently augmenting imports and including the original headers via `#include_next`.
The search path for emscripten places `system/include/compat` before `system/include`, and so importing with `compat/ctype.h` causes the preprocessor to skip over `system/include/compat` and land the search cursor on `system/include`, which then causes the subsequent `#include_next <ctype.h>` lookup to fail while processing the compat header.

Fixes emscripten-core/emscripten#13109 and bkaradzic/bgfx#2336.
2021-01-30 17:36:17 -08:00
Бранимир Караџић
a8686f9a20 Happy New Year! 2021-01-14 15:53:32 -08:00
Бранимир Караџић
ed4256321e Merge branch 'master' of github.com:bkaradzic/bimg 2021-01-11 23:01:35 -08:00
Бранимир Караџић
3eaff1e68f Updated README. 2021-01-11 23:01:08 -08:00
Бранимир Караџић
90e1bb074e Fixed makefile. 2021-01-04 22:36:50 -08:00
Бранимир Караџић
1366057822 OSX: Added separate osx-arm64 build configuration. 2020-12-31 18:17:51 -08:00
Бранимир Караџић
163a5cd2f5 travisci: Updated xcode version. 2020-12-27 18:24:25 -08:00
Бранимир Караџић
bf830a85f5 texturec: Added support for vertical cubemap strip. 2020-11-25 17:08:29 -08:00
Бранимир Караџић
5077cd017e Merge pull request #48 from mendsley/fix_clang_build
Change -Wunused-but-set-variable to GCC only
2020-10-05 03:44:08 +00:00
Matthew Endsley
dc7b730805 Change -Wunused-but-set-variable to GCC only
Clang (as of version 10.0.0) does not support this flag.
2020-10-04 20:38:50 -07:00
Бранимир Караџић
b65d12aa82 Updated stb headers. 2020-09-14 12:33:54 -07:00
Branimir Karadžić
3702758a46 Fixed warnings. 2020-09-07 10:36:03 -07:00
Branimir Karadžić
ac57c4dd97 Fixed warnings. 2020-09-07 10:07:02 -07:00
Бранимир Караџић
bfe3c683f9 RRenamed BX_CHECK to BX_ASSERT. 2020-06-16 10:06:08 -07:00
Бранимир Караџић
34c307e63f Merge pull request #46 from ejulien/tinyexr_fix_vs2019_16_6_0
tinyexr: Fixes warning C5208 (VS2019 16.6.0)
2020-06-16 15:18:53 +00:00
Emmanuel Julien (Movida)
7af1497aeb tinyexr: Fixes warning C5208 (VS2019 16.6.0) 2020-06-16 12:33:36 +02:00
Бранимир Караџић
9854bc55bb Updated STB "libs". 2020-06-13 13:38:18 -07:00
Бранимир Караџић
17bcbaf414 Fixed warnings. 2020-06-09 20:09:51 -07:00
Бранимир Караџић
4b2fa4de08 Updated LodePNG. 2020-06-09 20:01:17 -07:00
Бранимир Караџић
06d1e315ab Updated README. 2020-05-19 21:08:10 -07:00
Бранимир Караџић
8f8a032a0b Merge pull request #45 from NPatch/master
LodePNG and EXR parsers now set ImageContainer.m_hasAlpha.
2020-05-17 02:41:25 +00:00
NPatch
b336e20b9e Removing hasAlpha from bimg::TextureInfo and bimg::imageGetSize 2020-05-17 04:16:45 +03:00
Бранимир Караџић
9a02c96a3f Merge pull request #44 from juj/html5_examples
Update examples to build on Emscripten Wasm.
2020-05-16 16:02:41 +00:00
NPatch
5de76c05a3 LodePNG and EXR parsers now set ImageContainer.m_hasAlpha.
hasAlpha field added in bimg::TextureInfo and bimg::imageGetSize.
2020-05-16 18:08:21 +03:00
Jukka Jylänki
2e5e22149e Update examples to build on Emscripten Wasm. Add separate wasm and wasm2js targets. 2020-05-16 11:14:41 +03:00
Бранимир Караџић
5ee42f6de1 Removed alignment macros, and added functions instead. 2020-04-19 18:22:49 -07:00
Бранимир Караџић
b093e11e15 Merge branch 'master' of github.com:bkaradzic/bimg 2020-04-04 09:41:36 -07:00
Бранимир Караџић
58e95da232 Updated TinyEXR. 2020-04-04 09:41:28 -07:00
Бранимир Караџић
f27d884d89 Merge pull request #42 from rogual/fix-srgb-ktx-load
Fix bug where loading uncompressed sRGB KTX files would swap B/R
2020-03-05 05:51:40 +00:00
Robin Allen
d69aef2368 Fix bug where loading uncompressed sRGB KTX files would swap B/R 2020-03-04 17:55:17 +00:00
Бранимир Караџић
de9ed6b2ef Merge pull request #41 from rogual/srgb
Enable KTX sRGB formats
2020-03-04 03:23:11 +00:00
Robin Allen
60dea9bd74 texturec: Write sRGB images unless linear is requested 2020-03-03 22:16:16 +00:00
Robin Allen
7d226675ea Enable KTX sRGB formats
- When parsing, set m_srgb flag on the ImageContainer if the image
  is in an sRGB format.

- When writing, take a new srgb parameter. If set, use the appropriate
  sRGB format.
2020-03-03 22:14:59 +00:00
Бранимир Караџић
f19841e815 Removed error. 2020-02-20 07:54:11 -08:00
Бранимир Караџић
29a722a729 Cleanup. 2020-02-08 15:41:35 -08:00
Бранимир Караџић
54519648cf Merge pull request #37 from vvuk/astc-decode-define
Add BIMG_DECODE_ASTC
2020-01-31 19:43:11 -08:00
Vladimir Vukicevic
504ea68273 Add BIMG_DECODE_ASTC 2020-01-31 17:28:41 -08:00
Бранимир Караџић
23d2cd1738 Removed andorid-mips from makefile. 2020-01-18 22:01:01 -08:00
Бранимир Караџић
bfbafce461 Happy New Year! 2020-01-14 21:26:10 -08:00
Бранимир Караџић
b5e1856124 Merge pull request #36 from 0x1F9F1/optimize_bc6h
Optimized BCH6 Decoding
2019-12-31 07:13:58 -08:00
Brick
ea12e899d5 Optimized decodeBlockBc6h 2019-12-31 04:56:23 +00:00
Бранимир Караџић
ed5fec9e82 Added VS2019. 2019-11-27 17:54:29 -08:00
Бранимир Караџић
d697eb9ddf Merge pull request #35 from goodartistscopy/imageWriteKtx_fix
Use the correct layer size in imageWriteKtx
2019-11-26 16:05:45 -08:00
Christophe Dehais
c93f4b5808 Use the correct layer size in imageWriteKtx 2019-11-26 22:07:25 +01:00
Бранимир Караџић
dc4d1f5345 Merge pull request #33 from DJLink/master
fixes build error in latest commit
2019-11-14 06:56:29 -08:00
David Amador
e80463a5e7 fixed build error 2019-11-14 08:52:15 +00:00
Бранимир Караџић
2676f06e89 Cleanup. 2019-11-13 21:26:49 -08:00
Бранимир Караџић
cab4328a94 Cleanup. 2019-11-13 20:39:07 -08:00
Бранимир Караџић
0ab650f972 Cleanup. 2019-11-12 21:36:24 -08:00
Бранимир Караџић
9b5edc85ae WIP: Added ability to enable/disable decoders. 2019-11-10 20:26:04 -08:00