summaryrefslogtreecommitdiff
path: root/include/lua_core.h
diff options
context:
space:
mode:
authorjussi2023-06-01 23:56:14 +0300
committerjussi2023-06-01 23:56:14 +0300
commit560ff1a208e93a3636615380743ce76bd8811c94 (patch)
tree01024beb57f5dff7fbc5034e8e8349964cd197ac /include/lua_core.h
parent8008ebf1b041e837eecf54c3904156309508a2a8 (diff)
downloadreilua-enhanced-560ff1a208e93a3636615380743ce76bd8811c94.tar.gz
reilua-enhanced-560ff1a208e93a3636615380743ce76bd8811c94.tar.bz2
reilua-enhanced-560ff1a208e93a3636615380743ce76bd8811c94.zip
Camera2D and Camera3D can be given as tables.
Diffstat (limited to 'include/lua_core.h')
-rw-r--r--include/lua_core.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/lua_core.h b/include/lua_core.h
index 7abef67..04924bc 100644
--- a/include/lua_core.h
+++ b/include/lua_core.h
@@ -8,8 +8,10 @@ void luaCallDraw();
void luaCallExit();
void luaRegister();
/* Type validators. */
-bool isValidTexture( lua_State *L, int index );
-bool isValidRenderTexture( lua_State *L, int index );
+bool isValidTexture( lua_State *L, int index, bool allowTable );
+bool isValidRenderTexture( lua_State *L, int index, bool allowTable );
+bool isValidCamera2D( lua_State *L, int index, bool allowTable );
+bool isValidCamera3D( lua_State *L, int index, bool allowTable );
/* Lua Util functions. */
Color uluaGetColor( lua_State *L );
Color uluaGetColorIndex( lua_State *L, int index );
@@ -33,6 +35,8 @@ NPatchInfo uluaGetNPatchInfo( lua_State *L );
NPatchInfo uluaGetNPatchInfoIndex( lua_State *L, int index );
Texture uluaGetTexture( lua_State *L, int index );
RenderTexture uluaGetRenderTexture( lua_State *L, int index );
+Camera2D uluaGetCamera2D( lua_State *L, int index );
+Camera3D uluaGetCamera3D( lua_State *L, int index );
/* Push types. */
void uluaPushColor( lua_State *L, Color color );
void uluaPushVector2( lua_State *L, Vector2 vector );