Update RingOpenGL - Add Function (Source Code) : void glSecondaryColor3us(GLushort red,GLushort green,GLushort blue)
@@ -7574,6 +7574,22 @@ RING_FUNC(ring_glSecondaryColor3ub)
free(RING_API_GETCPOINTER(3,"GLubyte"));
}
+
+RING_FUNC(ring_glSecondaryColor3us)
+{
+ if ( RING_API_PARACOUNT != 3 ) {
+ RING_API_ERROR(RING_API_MISS3PARA);
+ return ;
+ }
+ glSecondaryColor3us(* (GLushort *) RING_API_GETCPOINTER(1,"GLushort"),* (GLushort *) RING_API_GETCPOINTER(2,"GLushort"),* (GLushort *) RING_API_GETCPOINTER(3,"GLushort"));
+ if (RING_API_ISCPOINTERNOTASSIGNED(1))
+ free(RING_API_GETCPOINTER(1,"GLushort"));
+ if (RING_API_ISCPOINTERNOTASSIGNED(2))
+ free(RING_API_GETCPOINTER(2,"GLushort"));
+ if (RING_API_ISCPOINTERNOTASSIGNED(3))
+ free(RING_API_GETCPOINTER(3,"GLushort"));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -7948,4 +7964,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glsecondarycolor3f",ring_glSecondaryColor3f);
ring_vm_funcregister("glsecondarycolor3d",ring_glSecondaryColor3d);
ring_vm_funcregister("glsecondarycolor3ub",ring_glSecondaryColor3ub);
+ ring_vm_funcregister("glsecondarycolor3us",ring_glSecondaryColor3us);
}
