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

14 commits

Author SHA1 Message Date
Firew0lf
6b65df0b8e Fixed some documentation, added some things to sockets, "Fixed" the ROMFS
The romfs is still not working, but it works better.
2016-04-13 16:19:25 +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
Firew0lf
6a9fbbb133 Added ":addTrustedRootCA()" to the httpc contexts, close #8, Added some values in ctr.
I didn't test :addTrustedRootCA(), but it's just a simple string-to-char+size function.
2016-03-12 19:57:59 +01:00
Reuh
34c48f360e Added a way to build the documentation as .sublime-completions files (make build-doc-st)
Also replaced make build-doc with make build-doc-html so we can easily add new documentation formats in the future.

To add ctrµLua API autocompletion to Sublime Text, simply copy the output directory (doc/sublimetext) to your ST's package directory.
2016-02-29 19:42:52 +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
Reuh
bda9de4d1c ADDED AUDIO! WAV working perfectly
Added libogg, libvorbis and libvorbisfile to 3ds_portlibs. You will need to compile thems using make build-portlibs. Opening OGG files works but they play badly.

Added a very simple error handler in main.lua

Added audio example.

Renamed isGfxInitialised to isGfxInitialized.

Did you know? The audio module is the longest ctrµLua module.
2015-12-27 19:54:58 +01:00
Reuh
0105970ab7 Updated to Lua 5.3.2 2015-12-04 18:30:38 +01:00
Firew0lf
8500bcb8fa ADDED SOCKETS ! Added ROMFS support (maybe), Improved the news library, added a VBLank waiting function
Sockets are only very buggy/unstable TCP clients, but working. The library was written from scratch.
2015-10-17 23:15:06 +02:00
Reuh
4aad32d5ab Moved lzlib to the libs directory (cleaner) 2015-10-04 12:08:25 +02:00
Reuh
0773992b68 Fully documented ctr and ctr.gfx in the C source
The documentation can be built using LDoc : run make build-doc

However, there's still a bunch of things to document.
2015-09-12 13:35:21 +02:00
Reuh
bea69d4e30 Updated README and Makefile 2015-08-19 16:04:50 +02:00
Reuh
ad4da08685 Ooops. 2015-08-17 21:20:25 +02:00
Reuh
f08a153f6f Updated Makefile
Auto build dependicies and added an icon.
2015-08-17 21:13:45 +02:00
Reuh
03baa21c10 Added some code 2015-08-17 18:15:37 +02:00