Update RingOpenGL - Add Function (Source Code) : void glBlendFuncSeparate(GLenum srcRGB,GLenum dstRGB,GLenum srcAlpha,GLenum dstAlpha)
@@ -308,6 +308,32 @@ RING_FUNC(ring_glBlendFunc)
glBlendFunc( (GLenum ) (int) RING_API_GETNUMBER(1), (GLenum ) (int) RING_API_GETNUMBER(2));
}
+
+RING_FUNC(ring_glBlendFuncSeparate)
+{
+ 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 ;
+ }
+ glBlendFuncSeparate( (GLenum ) (int) RING_API_GETNUMBER(1), (GLenum ) (int) RING_API_GETNUMBER(2), (GLenum ) (int) RING_API_GETNUMBER(3), (GLenum ) (int) RING_API_GETNUMBER(4));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -326,4 +352,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glblendequation",ring_glBlendEquation);
ring_vm_funcregister("glblendequationseparate",ring_glBlendEquationSeparate);
ring_vm_funcregister("glblendfunc",ring_glBlendFunc);
+ ring_vm_funcregister("glblendfuncseparate",ring_glBlendFuncSeparate);
}
