Update RingOpenGL - Add Function (Source Code) : void glSecondaryColor3b(GLbyte red,GLbyte green,GLbyte blue)
@@ -7460,6 +7460,22 @@ RING_FUNC(ring_glScissor)
glScissor( (GLint ) RING_API_GETNUMBER(1), (GLint ) RING_API_GETNUMBER(2), (GLsizei ) (int) RING_API_GETNUMBER(3), (GLsizei ) (int) RING_API_GETNUMBER(4));
}
+
+RING_FUNC(ring_glSecondaryColor3b)
+{
+ if ( RING_API_PARACOUNT != 3 ) {
+ RING_API_ERROR(RING_API_MISS3PARA);
+ return ;
+ }
+ glSecondaryColor3b(* (GLbyte *) RING_API_GETCPOINTER(1,"GLbyte"),* (GLbyte *) RING_API_GETCPOINTER(2,"GLbyte"),* (GLbyte *) RING_API_GETCPOINTER(3,"GLbyte"));
+ if (RING_API_ISCPOINTERNOTASSIGNED(1))
+ free(RING_API_GETCPOINTER(1,"GLbyte"));
+ if (RING_API_ISCPOINTERNOTASSIGNED(2))
+ free(RING_API_GETCPOINTER(2,"GLbyte"));
+ if (RING_API_ISCPOINTERNOTASSIGNED(3))
+ free(RING_API_GETCPOINTER(3,"GLbyte"));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -7828,4 +7844,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glscaled",ring_glScaled);
ring_vm_funcregister("glscalef",ring_glScalef);
ring_vm_funcregister("glscissor",ring_glScissor);
+ ring_vm_funcregister("glsecondarycolor3b",ring_glSecondaryColor3b);
}
