From d287078c658d26d41a28f92b62b023048c5503ce Mon Sep 17 00:00:00 2001 From: jussi Date: Mon, 30 Oct 2023 00:04:11 +0200 Subject: Userdata objects can be referenced with lightuserdata. --- include/lua_core.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'include/lua_core.h') diff --git a/include/lua_core.h b/include/lua_core.h index 861b235..f8c94ac 100644 --- a/include/lua_core.h +++ b/include/lua_core.h @@ -57,6 +57,21 @@ Ray uluaGetRay( lua_State *L ); Ray uluaGetRayIndex( lua_State *L, int index ); NPatchInfo uluaGetNPatchInfo( lua_State *L ); NPatchInfo uluaGetNPatchInfoIndex( lua_State *L, int index ); +Image* uluaGetImage( lua_State *L, int index ); +Texture* uluaGetTexture( lua_State *L, int index ); +RenderTexture* uluaGetRenderTexture( lua_State *L, int index ); +Shader* uluaGetShader( lua_State *L, int index ); +Mesh* uluaGetMesh( lua_State *L, int index ); +Camera2D* uluaGetCamera2D( lua_State *L, int index ); +Camera3D* uluaGetCamera3D( lua_State *L, int index ); +Font* uluaGetFont( lua_State *L, int index ); +Wave* uluaGetWave( lua_State *L, int index ); +Sound* uluaGetSound( lua_State *L, int index ); +Music* uluaGetMusic( lua_State *L, int index ); +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. */ void uluaPushColor( lua_State *L, Color color ); void uluaPushVector2( lua_State *L, Vector2 vector ); -- cgit v1.2.3