Update RingOpenGL - Add Function (Source Code) : void glSecondaryColor3ub(GLubyte red,GLubyte green,GLubyte blue)
@@ -7558,6 +7558,22 @@ RING_FUNC(ring_glSecondaryColor3d)
glSecondaryColor3d( (GLdouble ) RING_API_GETNUMBER(1), (GLdouble ) RING_API_GETNUMBER(2), (GLdouble ) RING_API_GETNUMBER(3));
}
+
+RING_FUNC(ring_glSecondaryColor3ub)
+{
+ if ( RING_API_PARACOUNT != 3 ) {
+ RING_API_ERROR(RING_API_MISS3PARA);
+ return ;
+ }
+ glSecondaryColor3ub(* (GLubyte *) RING_API_GETCPOINTER(1,"GLubyte"),* (GLubyte *) RING_API_GETCPOINTER(2,"GLubyte"),* (GLubyte *) RING_API_GETCPOINTER(3,"GLubyte"));
+ if (RING_API_ISCPOINTERNOTASSIGNED(1))
+ free(RING_API_GETCPOINTER(1,"GLubyte"));
+ if (RING_API_ISCPOINTERNOTASSIGNED(2))
+ free(RING_API_GETCPOINTER(2,"GLubyte"));
+ if (RING_API_ISCPOINTERNOTASSIGNED(3))
+ free(RING_API_GETCPOINTER(3,"GLubyte"));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -7931,4 +7947,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glsecondarycolor3i",ring_glSecondaryColor3i);
ring_vm_funcregister("glsecondarycolor3f",ring_glSecondaryColor3f);
ring_vm_funcregister("glsecondarycolor3d",ring_glSecondaryColor3d);
+ ring_vm_funcregister("glsecondarycolor3ub",ring_glSecondaryColor3ub);
}
