Update RingOpenGL - Add Function (Source Code) : void glColorMask(GLboolean red,GLboolean green,GLboolean blue,GLboolean alpha)
@@ -1104,6 +1104,32 @@ RING_FUNC(ring_glColor4uiv)
glColor4uiv((GLuint *) RING_API_GETCPOINTER(1,"GLuint"));
}
+
+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);
@@ -1167,4 +1193,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glcolor4ubv",ring_glColor4ubv);
ring_vm_funcregister("glcolor4usv",ring_glColor4usv);
ring_vm_funcregister("glcolor4uiv",ring_glColor4uiv);
+ ring_vm_funcregister("glcolormask",ring_glColorMask);
}
