Update RingOpenGL - Add Function (Source Code) : void glBlendColor(GLclampf red,GLclampf green,GLclampf blue,GLclampf alpha)
@@ -240,6 +240,24 @@ RING_FUNC(ring_glBitmap)
glBitmap( (GLsizei ) (int) RING_API_GETNUMBER(1), (GLsizei ) (int) RING_API_GETNUMBER(2), (GLfloat ) RING_API_GETNUMBER(3), (GLfloat ) RING_API_GETNUMBER(4), (GLfloat ) RING_API_GETNUMBER(5), (GLfloat ) RING_API_GETNUMBER(6),(GLubyte *) RING_API_GETCPOINTER(7,"GLubyte"));
}
+
+RING_FUNC(ring_glBlendColor)
+{
+ if ( RING_API_PARACOUNT != 4 ) {
+ RING_API_ERROR(RING_API_MISS4PARA);
+ return ;
+ }
+ glBlendColor(* (GLclampf *) RING_API_GETCPOINTER(1,"GLclampf"),* (GLclampf *) RING_API_GETCPOINTER(2,"GLclampf"),* (GLclampf *) RING_API_GETCPOINTER(3,"GLclampf"),* (GLclampf *) RING_API_GETCPOINTER(4,"GLclampf"));
+ if (RING_API_ISCPOINTERNOTASSIGNED(1))
+ free(RING_API_GETCPOINTER(1,"GLclampf"));
+ if (RING_API_ISCPOINTERNOTASSIGNED(2))
+ free(RING_API_GETCPOINTER(2,"GLclampf"));
+ if (RING_API_ISCPOINTERNOTASSIGNED(3))
+ free(RING_API_GETCPOINTER(3,"GLclampf"));
+ if (RING_API_ISCPOINTERNOTASSIGNED(4))
+ free(RING_API_GETCPOINTER(4,"GLclampf"));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -254,4 +272,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glbindbuffer",ring_glBindBuffer);
ring_vm_funcregister("glbindtexture",ring_glBindTexture);
ring_vm_funcregister("glbitmap",ring_glBitmap);
+ ring_vm_funcregister("glblendcolor",ring_glBlendColor);
}
