Update RingOpenGL - Add Function (Source Code) : void glMultiDrawArrays(GLenum mode,GLint * first,GLsizei * count,GLsizei primcount)
@@ -5524,6 +5524,32 @@ RING_FUNC(ring_glMultTransposeMatrixf)
glMultTransposeMatrixf((GLfloat *) RING_API_GETCPOINTER(1,"GLfloat"));
}
+
+RING_FUNC(ring_glMultiDrawArrays)
+{
+ if ( RING_API_PARACOUNT != 4 ) {
+ RING_API_ERROR(RING_API_MISS4PARA);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(1) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ if ( ! RING_API_ISPOINTER(2) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ if ( ! RING_API_ISPOINTER(3) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(4) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ glMultiDrawArrays( (GLenum ) (int) RING_API_GETNUMBER(1),(GLint *) RING_API_GETCPOINTER(2,"GLint"),(GLsizei *) RING_API_GETCPOINTER(3,"GLsizei"), (GLsizei ) (int) RING_API_GETNUMBER(4));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -5794,4 +5820,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glmultmatrixf",ring_glMultMatrixf);
ring_vm_funcregister("glmulttransposematrixd",ring_glMultTransposeMatrixd);
ring_vm_funcregister("glmulttransposematrixf",ring_glMultTransposeMatrixf);
+ ring_vm_funcregister("glmultidrawarrays",ring_glMultiDrawArrays);
}
