Update RingOpenGL - Add Function (Source Code) : void glRectiv(const GLint * v1,const GLint * v2)
@@ -7258,6 +7258,24 @@ RING_FUNC(ring_glRectfv)
glRectfv((GLfloat *) RING_API_GETCPOINTER(1,"GLfloat"),(GLfloat *) RING_API_GETCPOINTER(2,"GLfloat"));
}
+
+RING_FUNC(ring_glRectiv)
+{
+ if ( RING_API_PARACOUNT != 2 ) {
+ RING_API_ERROR(RING_API_MISS2PARA);
+ return ;
+ }
+ if ( ! RING_API_ISPOINTER(1) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ if ( ! RING_API_ISPOINTER(2) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ glRectiv((GLint *) RING_API_GETCPOINTER(1,"GLint"),(GLint *) RING_API_GETCPOINTER(2,"GLint"));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -7616,4 +7634,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glrects",ring_glRects);
ring_vm_funcregister("glrectdv",ring_glRectdv);
ring_vm_funcregister("glrectfv",ring_glRectfv);
+ ring_vm_funcregister("glrectiv",ring_glRectiv);
}
