Stencil reflection example.
This commit is contained in:
17
src/gl.c
17
src/gl.c
@@ -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
|
||||
*/
|
||||
|
||||
@@ -2298,6 +2298,8 @@ void luaRegister() {
|
||||
assingGlobalFunction( "rlSetMatrixViewOffsetStereo", lrlglSetMatrixViewOffsetStereo );
|
||||
|
||||
/* OpenGL */
|
||||
/* Rendering. */
|
||||
assingGlobalFunction( "glClear", lglClear );
|
||||
/* Frame Buffers. */
|
||||
assingGlobalFunction( "glBlitFramebuffer", lglBlitFramebuffer );
|
||||
/* State Management. */
|
||||
|
||||
Reference in New Issue
Block a user