Skip to content
Permalink
Browse files

- added a new texture class using stb_image to read a more formats.

This implementation only reads GIF, BMP and PIC formats. No animated GIF support because stb_image does not handle that.
PNG, JPG and TGA are still being handled by the existing dedicated implementations.
PSD and HDR are impractical for reading texture data and thus are disabled.
PnM could be enabled, if its identification semantics were stronger. stb_image only checks the first two characters which simply would falsely identify several flats with the right colors in the first two bytes.

This is more or less a waste product of getting stb_image to work with something actually testable, so it is just provided as-is.
  • Loading branch information...
coelckers committed Oct 6, 2019
1 parent 5cbb1c8 commit 5a72e0bfb7546ca26b1ca52fce2aefbd4a7b5398
@@ -1048,6 +1048,7 @@ set (PCH_SOURCES
gamedata/textures/formats/emptytexture.cpp
gamedata/textures/formats/shadertexture.cpp
gamedata/textures/formats/tgatexture.cpp
gamedata/textures/formats/stbtexture.cpp
gamedata/textures/hires/hqresize.cpp
gamedata/textures/hires/hirestex.cpp
gamedata/fonts/singlelumpfont.cpp

0 comments on commit 5a72e0b

Please sign in to comment.
You can’t perform that action at this time.