Update RingOpenGL - Add Function (Source Code) : void glIndexs(GLshort c)
@@ -4476,6 +4476,18 @@ RING_FUNC(ring_glHistogram)
glHistogram( (GLenum ) (int) RING_API_GETNUMBER(1), (GLsizei ) (int) RING_API_GETNUMBER(2), (GLenum ) (int) RING_API_GETNUMBER(3), (GLboolean ) RING_API_GETNUMBER(4));
}
+
+RING_FUNC(ring_glIndexs)
+{
+ if ( RING_API_PARACOUNT != 1 ) {
+ RING_API_ERROR(RING_API_MISS1PARA);
+ return ;
+ }
+ glIndexs(* (GLshort *) RING_API_GETCPOINTER(1,"GLshort"));
+ if (RING_API_ISCPOINTERNOTASSIGNED(1))
+ free(RING_API_GETCPOINTER(1,"GLshort"));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -4689,4 +4701,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glgetvertexattribpointerv",ring_glGetVertexAttribPointerv);
ring_vm_funcregister("glhint",ring_glHint);
ring_vm_funcregister("glhistogram",ring_glHistogram);
+ ring_vm_funcregister("glindexs",ring_glIndexs);
}
