1
0
Fork 0
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:
Firew0lf 2016-03-26 16:49:23 +01:00
parent 6143341760
commit eae356ce80
5 changed files with 7764 additions and 5 deletions

View file

@ -67,7 +67,8 @@ LIBDIRS := $(CTRULIB) $(PORTLIBS) \
$(CURDIR)/libs/3ds_portlibs/build \
$(CURDIR)/libs/sf2dlib/libsf2d \
$(CURDIR)/libs/sftdlib/libsftd \
$(CURDIR)/libs/sfillib/libsfil
$(CURDIR)/libs/sfillib/libsfil \
$(CURDIR)/libs/stb
#---------------------------------------------------------------------------------
# no real need to edit anything past this point unless you need to add additional