Update RingOpenGL - Add Function (Source Code) : void glStencilOp(GLenum sfail,GLenum dpfail,GLenum dppass)
@@ -7930,6 +7930,28 @@ RING_FUNC(ring_glStencilMaskSeparate)
glStencilMaskSeparate( (GLenum ) (int) RING_API_GETNUMBER(1), (GLuint ) RING_API_GETNUMBER(2));
}
+
+RING_FUNC(ring_glStencilOp)
+{
+ if ( RING_API_PARACOUNT != 3 ) {
+ RING_API_ERROR(RING_API_MISS3PARA);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(1) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(2) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(3) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ glStencilOp( (GLenum ) (int) RING_API_GETNUMBER(1), (GLenum ) (int) RING_API_GETNUMBER(2), (GLenum ) (int) RING_API_GETNUMBER(3));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -8323,4 +8345,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glstencilfuncseparate",ring_glStencilFuncSeparate);
ring_vm_funcregister("glstencilmask",ring_glStencilMask);
ring_vm_funcregister("glstencilmaskseparate",ring_glStencilMaskSeparate);
+ ring_vm_funcregister("glstencilop",ring_glStencilOp);
}
