Update RingOpenGL - Add Function (Source Code) : GLboolean glIsEnabled(GLenum cap)
@@ -4694,6 +4694,20 @@ RING_FUNC(ring_glIsBuffer)
RING_API_RETNUMBER(glIsBuffer( (GLuint ) RING_API_GETNUMBER(1)));
}
+
+RING_FUNC(ring_glIsEnabled)
+{
+ if ( RING_API_PARACOUNT != 1 ) {
+ RING_API_ERROR(RING_API_MISS1PARA);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(1) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ RING_API_RETNUMBER(glIsEnabled( (GLenum ) (int) RING_API_GETNUMBER(1)));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -4922,4 +4936,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glinitnames",ring_glInitNames);
ring_vm_funcregister("glinterleavedarrays",ring_glInterleavedArrays);
ring_vm_funcregister("glisbuffer",ring_glIsBuffer);
+ ring_vm_funcregister("glisenabled",ring_glIsEnabled);
}
