Update RingOpenGL - Add Function (Source Code) : void glClearAccum(GLfloat red,GLfloat green,GLfloat blue,GLfloat alpha)
@@ -436,6 +436,32 @@ RING_FUNC(ring_glClear)
glClear( (GLbitfield ) (int) RING_API_GETNUMBER(1));
}
+
+RING_FUNC(ring_glClearAccum)
+{
+ 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 ;
+ }
+ glClearAccum( (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);
@@ -460,4 +486,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glcalllist",ring_glCallList);
ring_vm_funcregister("glcalllists",ring_glCallLists);
ring_vm_funcregister("glclear",ring_glClear);
+ ring_vm_funcregister("glclearaccum",ring_glClearAccum);
}
