Update RingOpenGL - Add Function (Source Code) : void glColor4bv(const GLbyte * v)
@@ -992,6 +992,20 @@ RING_FUNC(ring_glColor3uiv)
glColor3uiv((GLuint *) RING_API_GETCPOINTER(1,"GLuint"));
}
+
+RING_FUNC(ring_glColor4bv)
+{
+ if ( RING_API_PARACOUNT != 1 ) {
+ RING_API_ERROR(RING_API_MISS1PARA);
+ return ;
+ }
+ if ( ! RING_API_ISPOINTER(1) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ glColor4bv((GLbyte *) RING_API_GETCPOINTER(1,"GLbyte"));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -1047,4 +1061,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glcolor3ubv",ring_glColor3ubv);
ring_vm_funcregister("glcolor3usv",ring_glColor3usv);
ring_vm_funcregister("glcolor3uiv",ring_glColor3uiv);
+ ring_vm_funcregister("glcolor4bv",ring_glColor4bv);
}
