Update RingOpenGL - Add Function (Source Code) : void glColor4sv(const GLshort * v)
@@ -1006,6 +1006,20 @@ RING_FUNC(ring_glColor4bv)
glColor4bv((GLbyte *) RING_API_GETCPOINTER(1,"GLbyte"));
}
+
+RING_FUNC(ring_glColor4sv)
+{
+ if ( RING_API_PARACOUNT != 1 ) {
+ RING_API_ERROR(RING_API_MISS1PARA);
+ return ;
+ }
+ if ( ! RING_API_ISPOINTER(1) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ glColor4sv((GLshort *) RING_API_GETCPOINTER(1,"GLshort"));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -1062,4 +1076,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glcolor3usv",ring_glColor3usv);
ring_vm_funcregister("glcolor3uiv",ring_glColor3uiv);
ring_vm_funcregister("glcolor4bv",ring_glColor4bv);
+ ring_vm_funcregister("glcolor4sv",ring_glColor4sv);
}
