Update RingOpenGL - Add Function (Source Code) : void glSampleCoverage(GLclampf value,GLboolean invert)
@@ -7374,6 +7374,22 @@ RING_FUNC(ring_glRotatef)
glRotatef( (GLfloat ) RING_API_GETNUMBER(1), (GLfloat ) RING_API_GETNUMBER(2), (GLfloat ) RING_API_GETNUMBER(3), (GLfloat ) RING_API_GETNUMBER(4));
}
+
+RING_FUNC(ring_glSampleCoverage)
+{
+ if ( RING_API_PARACOUNT != 2 ) {
+ RING_API_ERROR(RING_API_MISS2PARA);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(2) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ glSampleCoverage(* (GLclampf *) RING_API_GETCPOINTER(1,"GLclampf"), (GLboolean ) RING_API_GETNUMBER(2));
+ if (RING_API_ISCPOINTERNOTASSIGNED(1))
+ free(RING_API_GETCPOINTER(1,"GLclampf"));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -7738,4 +7754,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glresethistogram",ring_glResetHistogram);
ring_vm_funcregister("glrotated",ring_glRotated);
ring_vm_funcregister("glrotatef",ring_glRotatef);
+ ring_vm_funcregister("glsamplecoverage",ring_glSampleCoverage);
}
