Update RingOpenGL - Add Function (Source Code) : void glBlendEquationSeparate(GLenum modeRGB,GLenum modeAlpha)
@@ -272,6 +272,24 @@ RING_FUNC(ring_glBlendEquation)
glBlendEquation( (GLenum ) (int) RING_API_GETNUMBER(1));
}
+
+RING_FUNC(ring_glBlendEquationSeparate)
+{
+ if ( RING_API_PARACOUNT != 2 ) {
+ RING_API_ERROR(RING_API_MISS2PARA);
+ 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 ;
+ }
+ glBlendEquationSeparate( (GLenum ) (int) RING_API_GETNUMBER(1), (GLenum ) (int) RING_API_GETNUMBER(2));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -288,4 +306,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glbitmap",ring_glBitmap);
ring_vm_funcregister("glblendcolor",ring_glBlendColor);
ring_vm_funcregister("glblendequation",ring_glBlendEquation);
+ ring_vm_funcregister("glblendequationseparate",ring_glBlendEquationSeparate);
}
