Update RingOpenGL - Add Function (Source Code) : void glDisableVertexAttribArray(GLuint index)
@@ -2320,6 +2320,20 @@ RING_FUNC(ring_glEnableVertexAttribArray)
glEnableVertexAttribArray( (GLuint ) RING_API_GETNUMBER(1));
}
+
+RING_FUNC(ring_glDisableVertexAttribArray)
+{
+ if ( RING_API_PARACOUNT != 1 ) {
+ RING_API_ERROR(RING_API_MISS1PARA);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(1) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ glDisableVertexAttribArray( (GLuint ) RING_API_GETNUMBER(1));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -2429,4 +2443,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glenable",ring_glEnable);
ring_vm_funcregister("glenableclientstate",ring_glEnableClientState);
ring_vm_funcregister("glenablevertexattribarray",ring_glEnableVertexAttribArray);
+ ring_vm_funcregister("gldisablevertexattribarray",ring_glDisableVertexAttribArray);
}
