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

32 commits

Author SHA1 Message Date
Neil Zeke Cecchini
3eb41b5062 Tidbits of documentation 2016-02-24 14:23:36 +01:00
Neil Zeke Cecchini
116575fb5f Replaced the old shell with LSH 2016-02-24 14:19:16 +01:00
Reuh
e7c9a60d61 Alphabetical sorting in openfile.lua 2015-12-31 15:54:10 +01:00
Firew0lf
e10a101a4a Added some examples, fixed a typo 2015-12-31 15:41:09 +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
c053997f96 Reset defaults before starting a file (main.lua) 2015-12-29 17:20:29 +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
716c42b849 Fixed keyboard and editor colors 2015-12-24 13:15:00 +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
Reuh
b32fa5da2b Moved keyboard.lua and openfile.lua to the libs/ directory 2015-10-25 12:41:43 +01:00
Reuh
0efdc23576 Moved library path modifications to main.lua, made all paths relative
The library path can now be easlily modified.

Instead of always launching /3ds/ctruLua/main.lua, ctruLua will now launch the main.lua in the current directory (the ctruLua.3dsx directory when launched with HBL).

On citra, this will be the root of the sdmc directory.
2015-10-25 11:08:27 +01: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
Firewolf
3f995629c0 Hotfixed sprite.lua
Removed debug code. Again.
2015-09-02 17:17:33 +02:00
Firew0lf
e0ff7ad9c4 Fixed the the getBox() function (only usable in the library) 2015-09-01 18:23:12 +02:00
Firew0lf
e8471ce6e6 Changed spaces to tabs, Fixed a potential bug, Removed debug stuff 2015-09-01 16:48:49 +02:00
Firew0lf
a4a6e09d74 Added a sprite library (unfinished, but working) 2015-09-01 11:31:09 +02:00
Reuh
6a26be4b43 Added text editor, keyboard lib and stuff in Lua 2015-08-26 12:16:16 +02:00
Firew0lf
d3ca4d0360 "Fixed" the HTTPC lib with the crappiest code you've ever seen, Added a (very) small QTM lib
Don't look at the HTTPC code !!! Also, the example only work a random number of times.
2015-08-24 20:24:15 +02:00
Reuh
8da0e47ae3 Load texture in RAM by default 2015-08-22 20:07:59 +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
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
819dabcf0f Added "icon.png" where needed, Added an error in example.lua 2015-08-21 21:20:50 +02:00
Firew0lf
390fec2b98 Forgot "PLACE_VRAM" in the example
Really, how did that happen ?
2015-08-21 17:01:25 +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
Reuh
85d8f60f94 Added fs lib; fs.list working. Added a simple shell. 2015-08-20 21:12:15 +02:00
Reuh
155a2e9805 Renamed os.run to ctr.run ; added ctr.hid.read
All other HID functions no longer update inputs when they are called.
2015-08-20 14:05:56 +02:00
Reuh
036c0a03ce Updated example
Now with 85% less eye bleeding. Also moved some dirs so it's more logical.
2015-08-20 12:28:33 +02:00