summaryrefslogtreecommitdiff
path: root/src/lua_core.c
diff options
context:
space:
mode:
authorjussi2023-04-12 00:05:57 +0300
committerjussi2023-04-12 00:05:57 +0300
commit895c7f1a06de2d89347909d62da41be9d62f0d09 (patch)
treef5e5c3a020b63719afc4d85156b7872a2e8b9ccc /src/lua_core.c
parent3445d935d66969a7eec97e8691b68496dc51af0b (diff)
downloadreilua-enhanced-895c7f1a06de2d89347909d62da41be9d62f0d09.tar.gz
reilua-enhanced-895c7f1a06de2d89347909d62da41be9d62f0d09.tar.bz2
reilua-enhanced-895c7f1a06de2d89347909d62da41be9d62f0d09.zip
glBlitFramebuffer.
Diffstat (limited to 'src/lua_core.c')
-rw-r--r--src/lua_core.c17
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 );