1
0
Fork 0
mirror of https://github.com/ctruLua/ctruLua.git synced 2025-10-27 16:39:29 +00:00
Commit graph

22 commits

Author SHA1 Message Date
Firew0lf
e7ff54d58c Added SSL support to sockets, Added console/stdout support, Removed apt.init/apt.shutdown, Added some SSL options to httpc
The console can __not__ be used with gfx.start() on a screen. You don't have to gfx.render() while print()ing, but you should do it when you are in the main loop.
The SSL sockets don't work with Citra.
2016-04-10 01:47:52 +02:00
Firew0lf
eae356ce80 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.
2016-03-26 16:49:23 +01:00
Reuh
e39fcc6c7b Added Tremor Ogg decoder, removed libvorbis from Makefile. OGG audio working perfectly.
Tremor is extremly similar to libogg but only uses integers (and doesn't provide an encoder). The playing problem with libvorbis was probably a float-precision related issue.

No need for make build-all.
2015-12-29 17:25:34 +01:00
Firew0lf
b4f5365e96 Rolled back to RAM by default for textures (not working on hardware) 2015-12-28 20:57:03 +01:00
Firew0lf
b4d025d602 Updated the sf2dlib and sftdlib; Added the gfx.color.hex() function; Added the New3DS CPU mode control.
As the color order of the sf2dlib changed, you have to change it in your code, or use the color.hex() function.
To fix the problems, just change "0xRRGGBBAA" to "0xAABBGGRR".
Also, the shader compiler changed to Picasso, so you'll need it in order to compile.
https://github.com/fincs/picasso
2015-12-09 23:14:23 +01:00
Firew0lf
dcdeec6525 Updated the sftdlib, Added some functions in gfx and gfx.texture 2015-10-09 00:02:23 +02:00
Firew0lf
406e17d321 Fixed the missing "#include <string.h>" 2015-10-02 18:17:51 +02:00
Ruairidh Carmichael
48afdc07b5 Multiple image types 2015-10-02 14:20:53 +01:00
Firew0lf
070a0d698e Added documentation for the ctr.hid, ctr.ptm, ctr.news and ctr.gfx.texture 2015-09-13 14:39:12 +02:00
Firew0lf
a4a6e09d74 Added a sprite library (unfinished, but working) 2015-09-01 11:31:09 +02:00
Reuh
bbdf8d1571 Small tweak, just in case part 2 2015-08-23 10:28:38 +02:00
Firew0lf
f098e4a68e Small tweak, just in case 2015-08-22 23:57:05 +02:00
Reuh
8da0e47ae3 Load texture in RAM by default 2015-08-22 20:07:59 +02:00
Firew0lf
604247f278 Moved ":setBlendColor()" to the texture object, removed useless functions 2015-08-22 19:54:25 +02:00
Reuh
49ae4454d3 Updated sftdlib and sf2dlib 2015-08-22 19:10:37 +02:00
Reuh
d662e5509d Fixed freeze when Lua tried to garbage collect a unloaded texture 2015-08-22 17:52:50 +02:00
Firew0lf
56b47153b7 Added maps (working \o/), small tweaks in texture.c
There shouldn't be any memory leak.
2015-08-22 02:08:30 +02:00
Firew0lf
f580341aff Fixed #1
"gfx.texture.load()" with a bad file name now return "nil" and an error.
2015-08-21 21:18:41 +02:00
Firew0lf
fd688d0569 Added some functions to the gfx.texture lib 2015-08-21 18:12:32 +02:00
Firew0lf
a28a019db3 Added many things in the gfx.texture lib. 2015-08-21 15:59:19 +02:00
Firew0lf
fd885de68a Small fix in texture lib, Added a texture in "example.lua" 2015-08-21 12:48:20 +02:00
Firew0lf
7896c89e5f Added a basic texture library
Bonus: you can "nil" a texture to destroy it !
2015-08-21 12:39:39 +02:00