Update RingOpenGL - Add Function (Source Code) : void glColor4usv(const GLushort * v)
@@ -1076,6 +1076,20 @@ RING_FUNC(ring_glColor4ubv)
glColor4ubv((GLubyte *) RING_API_GETCPOINTER(1,"GLubyte"));
}
+
+RING_FUNC(ring_glColor4usv)
+{
+ if ( RING_API_PARACOUNT != 1 ) {
+ RING_API_ERROR(RING_API_MISS1PARA);
+ return ;
+ }
+ if ( ! RING_API_ISPOINTER(1) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ glColor4usv((GLushort *) RING_API_GETCPOINTER(1,"GLushort"));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -1137,4 +1151,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glcolor4fv",ring_glColor4fv);
ring_vm_funcregister("glcolor4dv",ring_glColor4dv);
ring_vm_funcregister("glcolor4ubv",ring_glColor4ubv);
+ ring_vm_funcregister("glcolor4usv",ring_glColor4usv);
}
