summaryrefslogtreecommitdiff
path: root/src/lua_core.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua_core.c')
-rw-r--r--src/lua_core.c9
1 files changed, 9 insertions, 0 deletions
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. */