mirror of
https://github.com/ctruLua/ctruLua.git
synced 2025-10-27 16:39:29 +00:00
Added the :save() method to textures, Added support for some image formats
The new image formats are loaded with stb_image, and the textures are saved with stb_image_write. https://github.com/nothings/stb You can now load GIFs (not animated), PSD, TGA, HDR, PIC and PNM. The texture loading still uses sfil for JPEG, PNG, and BMP. You can force the use of stbi by loading with the "type" argument in texture.load() set to 242 (or anything 5<x<250, but 242 is a good value). The :save() formats are PNG and BMP only.
This commit is contained in:
parent
6143341760
commit
eae356ce80
5 changed files with 7764 additions and 5 deletions
1045
libs/stb/include/stb_image_write.h
Normal file
1045
libs/stb/include/stb_image_write.h
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue