Update RingOpenGL 1.1 - Add Function (Source Code) : void glColor4f(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
@@ -3370,6 +3370,32 @@ RING_FUNC(ring_glColor4dv)
glColor4dv((GLdouble *) RING_API_GETCPOINTER(1,"GLdouble"));
}
+
+RING_FUNC(ring_glColor4f)
+{
+ if ( RING_API_PARACOUNT != 4 ) {
+ RING_API_ERROR(RING_API_MISS4PARA);
+ 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 ;
+ }
+ if ( ! RING_API_ISNUMBER(4) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ glColor4f( (GLfloat ) RING_API_GETNUMBER(1), (GLfloat ) RING_API_GETNUMBER(2), (GLfloat ) RING_API_GETNUMBER(3), (GLfloat ) RING_API_GETNUMBER(4));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -3409,6 +3435,7 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glcolor4bv",ring_glColor4bv);
ring_vm_funcregister("glcolor4d",ring_glColor4d);
ring_vm_funcregister("glcolor4dv",ring_glColor4dv);
+ ring_vm_funcregister("glcolor4f",ring_glColor4f);
ring_vm_funcregister("get_gl_zero",ring_get_gl_zero);
ring_vm_funcregister("get_gl_false",ring_get_gl_false);
ring_vm_funcregister("get_gl_logic_op",ring_get_gl_logic_op);
