diff options
Diffstat (limited to 'src/lua_core.c')
| -rw-r--r-- | src/lua_core.c | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/src/lua_core.c b/src/lua_core.c index dae916e..3c839c6 100644 --- a/src/lua_core.c +++ b/src/lua_core.c @@ -11,6 +11,7 @@ #include "rgui.h" #include "lights.h" #include "lrlgl.h" +#include "lgl.h" #include "reasings.h" static void assignGlobalInt( int value, const char *name ) { @@ -491,6 +492,12 @@ void defineGlobals() { /* LightType */ assignGlobalInt( LIGHT_DIRECTIONAL, "LIGHT_DIRECTIONAL" ); assignGlobalInt( LIGHT_POINT, "LIGHT_POINT" ); + /* OpenGL */ + assignGlobalInt( GL_COLOR_BUFFER_BIT, "GL_COLOR_BUFFER_BIT" ); + assignGlobalInt( GL_DEPTH_BUFFER_BIT, "GL_DEPTH_BUFFER_BIT" ); + assignGlobalInt( GL_STENCIL_BUFFER_BIT, "GL_STENCIL_BUFFER_BIT" ); + assignGlobalInt( GL_NEAREST, "GL_NEAREST" ); + assignGlobalInt( GL_LINEAR, "GL_LINEAR" ); /*DOC_END*/ lua_pop( L, -1 ); @@ -999,10 +1006,8 @@ void luaRegister() { /* Texture Drawing. */ assingGlobalFunction( "DrawTexture", ltexturesDrawTexture ); assingGlobalFunction( "DrawTextureRec", ltexturesDrawTextureRec ); - // assingGlobalFunction( "DrawTextureTiled", ltexturesDrawTextureTiled ); assingGlobalFunction( "DrawTexturePro", ltexturesDrawTexturePro ); assingGlobalFunction( "DrawTextureNPatch", ltexturesDrawTextureNPatch ); - // assingGlobalFunction( "DrawTexturePoly", ltexturesDrawTexturePoly ); assingGlobalFunction( "BeginTextureMode", ltexturesBeginTextureMode ); assingGlobalFunction( "EndTextureMode", ltexturesEndTextureMode ); assingGlobalFunction( "SetTextureSource", ltexturesSetTextureSource ); @@ -1038,7 +1043,6 @@ void luaRegister() { assingGlobalFunction( "DrawTriangle3D", lmodelsDrawTriangle3D ); assingGlobalFunction( "DrawCube", lmodelsDrawCube ); assingGlobalFunction( "DrawCubeWires", lmodelsDrawCubeWires ); - // assingGlobalFunction( "DrawCubeTexture", lmodelsDrawCubeTexture ); assingGlobalFunction( "DrawSphere", lmodelsDrawSphere ); assingGlobalFunction( "DrawSphereEx", lmodelsDrawSphereEx ); assingGlobalFunction( "DrawSphereWires", lmodelsDrawSphereWires ); @@ -1138,9 +1142,6 @@ void luaRegister() { assingGlobalFunction( "StopSound", laudioStopSound ); assingGlobalFunction( "PauseSound", laudioPauseSound ); assingGlobalFunction( "ResumeSound", laudioResumeSound ); - // assingGlobalFunction( "PlaySoundMulti", laudioPlaySoundMulti ); - // assingGlobalFunction( "StopSoundMulti", laudioStopSoundMulti ); - // assingGlobalFunction( "GetSoundsPlaying", laudioGetSoundsPlaying ); assingGlobalFunction( "IsSoundPlaying", laudioIsSoundPlaying ); assingGlobalFunction( "SetSoundVolume", laudioSetSoundVolume ); assingGlobalFunction( "SetSoundPitch", laudioSetSoundPitch ); @@ -1347,6 +1348,10 @@ void luaRegister() { assingGlobalFunction( "rlglSetLineWidth", lrlglSetLineWidth ); assingGlobalFunction( "rlglGetLineWidth", lrlglGetLineWidth ); + /* OpenGL */ + /* Framebuffer management. */ + assingGlobalFunction( "glBlitFramebuffer", lglBlitFramebuffer ); + /* Easings */ /* Linear Easing functions. */ assingGlobalFunction( "EaseLinear", leasingsEaseLinear ); |
