diff options
Diffstat (limited to 'src/gl.c')
| -rw-r--r-- | src/gl.c | 28 |
1 files changed, 28 insertions, 0 deletions
@@ -78,6 +78,20 @@ int lglBlitFramebuffer( lua_State* L ) { */ /* +> RL.glDepthRange( float nearVal, float farVal ) + +Specify mapping of depth values from normalized device coordinates to window coordinates +*/ +int lglDepthRange( lua_State* L ) { + float nearVal = luaL_checknumber( L, 1 ); + float farVal = luaL_checknumber( L, 2 ); + + glDepthRange( nearVal, farVal ); + + return 0; +} + +/* > RL.glEnable( int cap ) Enable server-side GL capabilities @@ -104,6 +118,20 @@ int lglDisable( lua_State* L ) { } /* +> RL.glPolygonOffset( float factor, float units ) + +Set the scale and units used to calculate depth values +*/ +int lglPolygonOffset( lua_State* L ) { + float factor = luaL_checknumber( L, 1 ); + float units = luaL_checknumber( L, 2 ); + + glPolygonOffset( factor, units ); + + return 0; +} + +/* > RL.glStencilFunc( int func, int ref, int mask ) Set front and back function and reference value for stencil testing |
