Update RingOpenGL 1.1 - Add Function (Source Code) : void glDrawArrays(GLenum mode, GLint first, GLsizei count)
@@ -3990,6 +3990,28 @@ RING_FUNC(ring_glDisableClientState)
glDisableClientState( (GLenum ) (int) RING_API_GETNUMBER(1));
}
+
+RING_FUNC(ring_glDrawArrays)
+{
+ if ( RING_API_PARACOUNT != 3 ) {
+ RING_API_ERROR(RING_API_MISS3PARA);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(1) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(2) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(3) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ glDrawArrays( (GLenum ) (int) RING_API_GETNUMBER(1), (GLint ) RING_API_GETNUMBER(2), (GLsizei ) (int) RING_API_GETNUMBER(3));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -4057,6 +4079,7 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("gldepthrange",ring_glDepthRange);
ring_vm_funcregister("gldisable",ring_glDisable);
ring_vm_funcregister("gldisableclientstate",ring_glDisableClientState);
+ ring_vm_funcregister("gldrawarrays",ring_glDrawArrays);
ring_vm_funcregister("get_gl_zero",ring_get_gl_zero);
ring_vm_funcregister("get_gl_false",ring_get_gl_false);
ring_vm_funcregister("get_gl_logic_op",ring_get_gl_logic_op);
