Update RingOpenGL - Add Function (Source Code) : void glStencilMask(GLuint mask)
@@ -7898,6 +7898,20 @@ RING_FUNC(ring_glStencilFuncSeparate)
glStencilFuncSeparate( (GLenum ) (int) RING_API_GETNUMBER(1), (GLenum ) (int) RING_API_GETNUMBER(2), (GLint ) RING_API_GETNUMBER(3), (GLuint ) RING_API_GETNUMBER(4));
}
+
+RING_FUNC(ring_glStencilMask)
+{
+ if ( RING_API_PARACOUNT != 1 ) {
+ RING_API_ERROR(RING_API_MISS1PARA);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(1) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ glStencilMask( (GLuint ) RING_API_GETNUMBER(1));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -8289,4 +8303,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glshadersource",ring_glShaderSource);
ring_vm_funcregister("glstencilfunc",ring_glStencilFunc);
ring_vm_funcregister("glstencilfuncseparate",ring_glStencilFuncSeparate);
+ ring_vm_funcregister("glstencilmask",ring_glStencilMask);
}
