Update RingOpenGL 1.1 - Add Function (Source Code) : void glColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
@@ -3610,6 +3610,32 @@ RING_FUNC(ring_glColor4usv)
glColor4usv((GLushort *) RING_API_GETCPOINTER(1,"GLushort"));
}
+
+RING_FUNC(ring_glColorMask)
+{
+ if ( RING_API_PARACOUNT != 4 ) {
+ RING_API_ERROR(RING_API_MISS4PARA);
+ 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 ;
+ }
+ if ( ! RING_API_ISNUMBER(4) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ glColorMask( (GLboolean ) RING_API_GETNUMBER(1), (GLboolean ) RING_API_GETNUMBER(2), (GLboolean ) RING_API_GETNUMBER(3), (GLboolean ) RING_API_GETNUMBER(4));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -3661,6 +3687,7 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glcolor4uiv",ring_glColor4uiv);
ring_vm_funcregister("glcolor4us",ring_glColor4us);
ring_vm_funcregister("glcolor4usv",ring_glColor4usv);
+ ring_vm_funcregister("glcolormask",ring_glColorMask);
ring_vm_funcregister("get_gl_zero",ring_get_gl_zero);
ring_vm_funcregister("get_gl_false",ring_get_gl_false);
ring_vm_funcregister("get_gl_logic_op",ring_get_gl_logic_op);
