Update RingOpenGL - Add Function (Source Code) : void glColor3i(GLint red,GLint green,GLint blue)
@@ -584,6 +584,28 @@ RING_FUNC(ring_glColor3s)
free(RING_API_GETCPOINTER(3,"GLshort"));
}
+
+RING_FUNC(ring_glColor3i)
+{
+ if ( RING_API_PARACOUNT != 3 ) {
+ RING_API_ERROR(RING_API_MISS3PARA);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(1) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(2) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(3) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ glColor3i( (GLint ) RING_API_GETNUMBER(1), (GLint ) RING_API_GETNUMBER(2), (GLint ) RING_API_GETNUMBER(3));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -617,4 +639,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glclipplane",ring_glClipPlane);
ring_vm_funcregister("glcolor3b",ring_glColor3b);
ring_vm_funcregister("glcolor3s",ring_glColor3s);
+ ring_vm_funcregister("glcolor3i",ring_glColor3i);
}
