Update RingOpenGL - Add Function (Source Code) : void glMultiDrawElements(GLenum mode,const GLsizei * count,GLenum type,const GLvoid ** indices,GLsizei primcount)
@@ -5550,6 +5550,36 @@ RING_FUNC(ring_glMultiDrawArrays)
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_FUNC(ring_glMultiDrawElements)
+{
+ if ( RING_API_PARACOUNT != 5 ) {
+ RING_API_ERROR(RING_API_BADPARACOUNT);
+ 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_ISNUMBER(3) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ if ( ! RING_API_ISPOINTER(4) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(5) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ glMultiDrawElements( (GLenum ) (int) RING_API_GETNUMBER(1),(GLsizei *) RING_API_GETCPOINTER(2,"GLsizei"), (GLenum ) (int) RING_API_GETNUMBER(3),(GLvoid **) RING_API_GETCPOINTER2POINTER(4,"GLvoid"), (GLsizei ) (int) RING_API_GETNUMBER(5));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -5821,4 +5851,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glmulttransposematrixd",ring_glMultTransposeMatrixd);
ring_vm_funcregister("glmulttransposematrixf",ring_glMultTransposeMatrixf);
ring_vm_funcregister("glmultidrawarrays",ring_glMultiDrawArrays);
+ ring_vm_funcregister("glmultidrawelements",ring_glMultiDrawElements);
}
