From b387742850a4d2d6b750f7cdc878ff00d7e4a5fb Mon Sep 17 00:00:00 2001 From: jussi Date: Wed, 10 May 2023 21:21:40 +0300 Subject: DrawBillboardPro and rlglGetVersion. --- src/lua_core.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/lua_core.c') diff --git a/src/lua_core.c b/src/lua_core.c index a718de5..1caf1c7 100644 --- a/src/lua_core.c +++ b/src/lua_core.c @@ -492,6 +492,12 @@ void defineGlobals() { /* LightType */ assignGlobalInt( LIGHT_DIRECTIONAL, "LIGHT_DIRECTIONAL" ); assignGlobalInt( LIGHT_POINT, "LIGHT_POINT" ); + /* rlGlVersion */ + assignGlobalInt( RL_OPENGL_11, "RL_OPENGL_11" ); + assignGlobalInt( RL_OPENGL_21, "RL_OPENGL_21" ); + assignGlobalInt( RL_OPENGL_33, "RL_OPENGL_33" ); + assignGlobalInt( RL_OPENGL_43, "RL_OPENGL_43" ); + assignGlobalInt( RL_OPENGL_ES_20, "RL_OPENGL_ES_20" ); /* OpenGL */ assignGlobalInt( GL_COLOR_BUFFER_BIT, "GL_COLOR_BUFFER_BIT" ); assignGlobalInt( GL_DEPTH_BUFFER_BIT, "GL_DEPTH_BUFFER_BIT" ); @@ -1089,6 +1095,7 @@ void luaRegister() { assingGlobalFunction( "SetModelMeshMaterial", lmodelsSetModelMeshMaterial ); assingGlobalFunction( "DrawBillboard", lmodelsDrawBillboard ); assingGlobalFunction( "DrawBillboardRec", lmodelsDrawBillboardRec ); + assingGlobalFunction( "DrawBillboardPro", lmodelsDrawBillboardPro ); assingGlobalFunction( "SetModelTransform", lmodelsSetModelTransform ); assingGlobalFunction( "GetModelTransform", lmodelsGetModelTransform ); /* Animations. */ @@ -1350,6 +1357,8 @@ void luaRegister() { /* General render state. */ assingGlobalFunction( "rlglSetLineWidth", lrlglSetLineWidth ); assingGlobalFunction( "rlglGetLineWidth", lrlglGetLineWidth ); + /* Initialization functions. */ + assingGlobalFunction( "rlglGetVersion", lrlglGetVersion ); /* OpenGL */ /* Framebuffer management. */ -- cgit v1.2.3