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

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.
This commit is contained in:
Reuh 2015-12-30 19:15:46 +01:00
parent 73b5c55133
commit b87b2676e6
7 changed files with 31 additions and 30 deletions

View file

@ -53,8 +53,8 @@ void load_map_lib(lua_State *L);
Start drawing to a screen.
Must be called before any draw operation.
@function start
@tparam number screen the screen to draw to (`GFX_TOP` or `GFX_BOTTOM`)
@tparam[opt=GFX_LEFT] number eye the eye to draw to (`GFX_LEFT` or `GFX_RIGHT`)
@tparam number screen the screen to draw to (`gfx.TOP` or `gfx.BOTTOM`)
@tparam[opt=gfx.LEFT] number eye the eye to draw to (`gfx.LEFT` or `gfx.RIGHT`)
*/
static int gfx_start(lua_State *L) {
u8 screen = luaL_checkinteger(L, 1);
@ -382,27 +382,27 @@ struct { char *name; int value; } gfx_constants[] = {
/***
Constant used to select the top screen.
It is equal to `0`.
@field GFX_TOP
@field TOP
*/
{ "GFX_TOP", GFX_TOP },
{ "TOP", GFX_TOP },
/***
Constant used to select the bottom screen.
It is equal to `1`.
@field GFX_BOTTOM
@field BOTTOM
*/
{ "GFX_BOTTOM", GFX_BOTTOM },
{ "BOTTOM", GFX_BOTTOM },
/***
Constant used to select the left eye.
It is equal to `0`.
@field GFX_LEFT
@field LEFT
*/
{ "GFX_LEFT", GFX_LEFT },
{ "LEFT", GFX_LEFT },
/***
Constant used to select the right eye.
It is equal to `1`.
@field GFX_RIGHT
@field RIGHT
*/
{ "GFX_RIGHT", GFX_RIGHT },
{ "RIGHT", GFX_RIGHT },
/***
The top screen height, in pixels.
It is equal to `240`.