diff options
| author | jussi | 2023-10-31 17:15:48 +0200 |
|---|---|---|
| committer | jussi | 2023-10-31 17:15:48 +0200 |
| commit | b9903277bcea27a26fe591d10bdfcc4c2dc03654 (patch) | |
| tree | 3f0ef10571764a11b686cea427a2c490c37cc58e /include/lua_core.h | |
| parent | be39fd96344ee1f4f85ac5c63b4e5f9daf6e5171 (diff) | |
| download | reilua-enhanced-b9903277bcea27a26fe591d10bdfcc4c2dc03654.tar.gz reilua-enhanced-b9903277bcea27a26fe591d10bdfcc4c2dc03654.tar.bz2 reilua-enhanced-b9903277bcea27a26fe591d10bdfcc4c2dc03654.zip | |
Merged uluaGet*Index functions to uluaGet* functions.
Diffstat (limited to 'include/lua_core.h')
| -rw-r--r-- | include/lua_core.h | 39 |
1 files changed, 14 insertions, 25 deletions
diff --git a/include/lua_core.h b/include/lua_core.h index 9090040..44b9ed1 100644 --- a/include/lua_core.h +++ b/include/lua_core.h @@ -35,28 +35,18 @@ void luaCallProcess(); void luaCallDraw(); void luaCallExit(); void luaRegister(); -/* Lua Util functions. */ +/* Lua get types. */ bool uluaGetBoolean( lua_State *L, int index ); -Color uluaGetColor( lua_State *L ); -Color uluaGetColorIndex( lua_State *L, int index ); -Vector2 uluaGetVector2( lua_State *L ); -Vector2 uluaGetVector2Index( lua_State *L, int index ); -Vector3 uluaGetVector3( lua_State *L ); -Vector3 uluaGetVector3Index( lua_State *L, int index ); -Vector4 uluaGetVector4( lua_State *L ); -Vector4 uluaGetVector4Index( lua_State *L, int index ); -Rectangle uluaGetRectangle( lua_State *L ); -Rectangle uluaGetRectangleIndex( lua_State *L, int index ); -Quaternion uluaGetQuaternion( lua_State *L ); -Quaternion uluaGetQuaternionIndex( lua_State *L, int index ); -Matrix uluaGetMatrix( lua_State *L ); -Matrix uluaGetMatrixIndex( lua_State *L, int index ); -BoundingBox uluaGetBoundingBox( lua_State *L ); -BoundingBox uluaGetBoundingBoxIndex( lua_State *L, int index ); -Ray uluaGetRay( lua_State *L ); -Ray uluaGetRayIndex( lua_State *L, int index ); -NPatchInfo uluaGetNPatchInfo( lua_State *L ); -NPatchInfo uluaGetNPatchInfoIndex( lua_State *L, int index ); +Color uluaGetColor( lua_State *L, int index ); +Vector2 uluaGetVector2( lua_State *L, int index ); +Vector3 uluaGetVector3( lua_State *L, int index ); +Vector4 uluaGetVector4( lua_State *L, int index ); +Rectangle uluaGetRectangle( lua_State *L, int index ); +Quaternion uluaGetQuaternion( lua_State *L, int index ); +Matrix uluaGetMatrix( lua_State *L, int index ); +BoundingBox uluaGetBoundingBox( lua_State *L, int index ); +Ray uluaGetRay( lua_State *L, int index ); +NPatchInfo uluaGetNPatchInfo( lua_State *L, int index ); Buffer* uluaGetBuffer( lua_State *L, int index ); Image* uluaGetImage( lua_State *L, int index ); Texture* uluaGetTexture( lua_State *L, int index ); @@ -73,7 +63,7 @@ Light* uluaGetLight( lua_State *L, int index ); Material* uluaGetMaterial( lua_State *L, int index ); Model* uluaGetModel( lua_State *L, int index ); ModelAnimation* uluaGetModelAnimation( lua_State *L, int index ); -/* Push types. */ +/* Lua push types. */ void uluaPushColor( lua_State *L, Color color ); void uluaPushVector2( lua_State *L, Vector2 vector ); void uluaPushVector3( lua_State *L, Vector3 vector ); @@ -101,6 +91,5 @@ void uluaPushMaterial( lua_State *L, Material material ); void uluaPushMesh( lua_State *L, Mesh mesh ); void uluaPushModel( lua_State *L, Model model ); void uluaPushModelAnimation( lua_State *L, ModelAnimation modelAnimation ); - -int uluaGetTableLen( lua_State *L ); -int uluaGetTableLenIndex( lua_State *L, int index ); +/* Utils. */ +int uluaGetTableLen( lua_State *L, int index ); |
