Update RingOpenGL 1.1 - Add Function (Source Code) : GLboolean glIsList(GLuint list)
@@ -5404,6 +5404,20 @@ RING_FUNC(ring_glIsEnabled)
RING_API_RETNUMBER(glIsEnabled( (GLenum ) (int) RING_API_GETNUMBER(1)));
}
+
+RING_FUNC(ring_glIsList)
+{
+ 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(glIsList( (GLuint ) RING_API_GETNUMBER(1)));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -5550,6 +5564,7 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glinitnames",ring_glInitNames);
ring_vm_funcregister("glinterleavedarrays",ring_glInterleavedArrays);
ring_vm_funcregister("glisenabled",ring_glIsEnabled);
+ ring_vm_funcregister("glislist",ring_glIsList);
ring_vm_funcregister("get_gl_zero",ring_get_gl_zero);
ring_vm_funcregister("get_gl_false",ring_get_gl_false);
ring_vm_funcregister("get_gl_logic_op",ring_get_gl_logic_op);
