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

35 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
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
Firew0lf
5107f0277c Updated sf2dlib, added a "thickness" argument to lines (warning: break some old lines), Added WIP render targets, Added arguments (main file and root path)
You'll need to update some of your codes if you used lines with colors, or you'll have some ... Nice line effects.
2016-03-22 21:48:52 +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
9db21c7831 Added gfx.scissor
Note: doesn't work on citra but it does on real hardware.
2016-03-09 16:13:06 +01:00
Firew0lf
e84ab0e3b2 Added functions to set/get the default text size, closes #4 2016-02-24 21:48:28 +01:00
Firew0lf
499bfa99a3 ADDED THREAD ! Minor changes on other libs.
To communicate with a thread, use sockets on localhost, this should work.
Or use the return code, or the "last error", but that's crappy.
For the return code, just `return <number>`; only works with integers.
2016-01-17 12:18:39 +01:00
Reuh
b87b2676e6 gfx.GFX_TOP, gfx.GFX_BOTTOM, gfx.GFX_LEFT, gfx.GFX_RIGHT -> gfx.TOP, gfx.BOTTOM, gfx.LEFT, gfx.RIGHT
Also commented and moved tests/audio to examples/audio because the code is quite clean, and we lack examples.
2015-12-30 19:15:46 +01:00
Reuh
73b5c55133 gfx.startFrame -> gfx.start and gfx.endFrame -> gfx.stop 2015-12-30 18:19:13 +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
Firew0lf
2e782ed9ea Updated to the latest ctrulib, Fixed some minor bugs.
Working with citra, untested on real hardware but should be OK.
IR should now work.
Let's add some 3D drawing and sound now !
2015-12-14 23:11:45 +01:00
Reuh
d015918d22 Ignore the sdmc: prefix in fs.list; added missing space on some strings for the null-termination 2015-10-25 12:03:21 +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
Firew0lf
dcdeec6525 Updated the sftdlib, Added some functions in gfx and gfx.texture 2015-10-09 00:02:23 +02:00
Firew0lf
b47634f699 Fixed the documentation error with lzlib, Added gfx.get3D(), Enhanced the ir library errors returns. 2015-09-15 23:10:15 +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
45f3216ed8 Updated font and fs lib; updated editor; updated sf2dlib
Libs additions: font.load, font:unload, font:getWidth, fs.getDirectory, fs.setDirectory, fs.exists

Editor additions: syntaxic coloring and mono font

sf2dlib update: you will need the latest version of ctrulib.

Also, because of the lib font needs, the sftdlib was modified.
2015-09-05 19:00:36 +02:00
Firew0lf
af9e160668 Added a function to get the available VRAM space, Improved the ctr.news library 2015-08-23 18:07:15 +02:00
Reuh
0af33d0b3a Cleaned initialisation process 2015-08-22 20:37:45 +02:00
Reuh
2a5513473d Support for special characters in gfx.text; added scrolling to the default shell; updated sftdlib.
There is a known bug with different text size in sftdlib.
2015-08-22 16:45:32 +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
7896c89e5f Added a basic texture library
Bonus: you can "nil" a texture to destroy it !
2015-08-21 12:39:39 +02:00
Reuh
ee4ea72335 Oh well. 3d is actually written 3D 2015-08-20 10:49:43 +02:00
Reuh
9ab25f7518 TABS. TABS EVERYWHERE. Please.
Also, gfx.set3D now accept any value (not only boolean), like on Lua. Because why not (Also changed the ctrulib gfxSet3D function to the sf2dlib one).
2015-08-20 10:45:18 +02:00
Firew0lf
58309b39c2 Added the 3D effect
Works nice, but can burn your eyes.
Warning: the example can actually burn your eyes.
2015-08-20 01:26:21 +02:00
Reuh
b772a42d28 Added ctr.gfx.getFPS, renamed ctr.hid.read to ctr.hid.keys, unload font from memory when exiting and did some cleaning 2015-08-19 17:14:02 +02:00
Reuh
7edb1e2f7b Added ctr.gfx.text and the Bitsream Vera font 2015-08-19 14:32:53 +02:00
Firew0lf
b5249e1957 Improved the gfx.startFrame() function to select a screen, Fixed some values now defined with the C ones 2015-08-19 01:46:04 +02:00
Firew0lf
0c2f641c74 Added some values in the gfx lib 2015-08-19 01:36:15 +02:00
Reuh
d21906c684 Added ctr.gfx.line, ctr.gfx.point and ctr.gfx.circle 2015-08-18 17:27:30 +02:00
Reuh
5c0292f914 Added angle support to ctr.gfx.rectangle 2015-08-18 16:55:38 +02:00
Reuh
3441dd266f Added ctr.gfx.color lib; color.setDefault and color.getDefault working 2015-08-18 16:19:11 +02:00
Reuh
2584e46816 Added gfx.startFrame and gfx.endFrame 2015-08-18 15:40:54 +02:00
Reuh
03baa21c10 Added some code 2015-08-17 18:15:37 +02:00