diff options
| author | jussi | 2023-10-27 22:53:56 +0300 |
|---|---|---|
| committer | jussi | 2023-10-27 22:53:56 +0300 |
| commit | 7ef87c8e2f7824a8abfe715aef23b4a6d2e4db78 (patch) | |
| tree | a1a669e8af511c79657cbad1de69419c86212127 /include/lua_core.h | |
| parent | 4cb4edcaf0d8b08d888a60d1a5d36f6e3690a4df (diff) | |
| download | reilua-enhanced-7ef87c8e2f7824a8abfe715aef23b4a6d2e4db78.tar.gz reilua-enhanced-7ef87c8e2f7824a8abfe715aef23b4a6d2e4db78.tar.bz2 reilua-enhanced-7ef87c8e2f7824a8abfe715aef23b4a6d2e4db78.zip | |
New object types for Image, Texture, RenderTexture, Camera2D, Camera3D and Shader.
Diffstat (limited to 'include/lua_core.h')
| -rw-r--r-- | include/lua_core.h | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/include/lua_core.h b/include/lua_core.h index d2a7a08..1efaf1c 100644 --- a/include/lua_core.h +++ b/include/lua_core.h @@ -28,10 +28,6 @@ typedef struct { int y; } Buffer; -typedef struct { - int age; -} Kissa; - bool luaInit( int argn, const char **argc ); int luaTraceback( lua_State *L ); bool luaCallMain(); @@ -39,12 +35,8 @@ void luaCallProcess(); void luaCallDraw(); void luaCallExit(); void luaRegister(); -/* Type validators. */ -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. */ +bool uluaGetBoolean( lua_State *L, int index ); Color uluaGetColor( lua_State *L ); Color uluaGetColorIndex( lua_State *L, int index ); Vector2 uluaGetVector2( lua_State *L ); @@ -65,10 +57,6 @@ Ray uluaGetRay( lua_State *L ); Ray uluaGetRayIndex( lua_State *L, int index ); 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 ); @@ -80,7 +68,12 @@ void uluaPushMatrix( lua_State *L, Matrix matrix ); void uluaPushRay( lua_State *L, Ray ray ); void uluaPushRayCollision( lua_State *L, RayCollision rayCol ); void uluaPushBoundingBox( lua_State *L, BoundingBox box ); +void uluaPushImage( lua_State *L, Image image ); void uluaPushTexture( lua_State *L, Texture texture ); +void uluaPushRenderTexture( lua_State *L, RenderTexture renderTexture ); +void uluaPushCamera2D( lua_State *L, Camera2D camera ); +void uluaPushCamera3D( lua_State *L, Camera3D camera ); +void uluaPushShader( lua_State *L, Shader shader ); int uluaGetTableLen( lua_State *L ); int uluaGetTableLenIndex( lua_State *L, int index ); |
