Stencil reflection example.

This commit is contained in:
jussi
2024-04-15 21:57:32 +03:00
parent 3aecd6dd99
commit 41b6739824
7 changed files with 106 additions and 1 deletions

View File

@@ -4,6 +4,23 @@
#include "textures.h"
#include "lgl.h"
/*
## OpenGL - Rendering
*/
/*
> RL.glClear( int mask )
Clear buffers to preset values
*/
int lglClear( lua_State* L ) {
unsigned int mask = luaL_checkinteger( L, 1 );
glClear( mask );
return 0;
}
/*
## OpenGL - Frame Buffers
*/

View File

@@ -2298,6 +2298,8 @@ void luaRegister() {
assingGlobalFunction( "rlSetMatrixViewOffsetStereo", lrlglSetMatrixViewOffsetStereo );
/* OpenGL */
/* Rendering. */
assingGlobalFunction( "glClear", lglClear );
/* Frame Buffers. */
assingGlobalFunction( "glBlitFramebuffer", lglBlitFramebuffer );
/* State Management. */