Update RingOpenGL - Add Function (Source Code) : void glEnableClientState(GLenum cap)
@@ -2292,6 +2292,20 @@ RING_FUNC(ring_glEnable)
glEnable( (GLenum ) (int) RING_API_GETNUMBER(1));
}
+
+RING_FUNC(ring_glEnableClientState)
+{
+ if ( RING_API_PARACOUNT != 1 ) {
+ RING_API_ERROR(RING_API_MISS1PARA);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(1) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ glEnableClientState( (GLenum ) (int) RING_API_GETNUMBER(1));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -2399,4 +2413,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("gldepthrange",ring_glDepthRange);
ring_vm_funcregister("gldetachshader",ring_glDetachShader);
ring_vm_funcregister("glenable",ring_glEnable);
+ ring_vm_funcregister("glenableclientstate",ring_glEnableClientState);
}
