Update RingOpenGL - Add Function (Source Code) : void glVertex2sv(const GLshort * v)
@@ -9988,6 +9988,20 @@ RING_FUNC(ring_glVertex4d)
glVertex4d( (GLdouble ) RING_API_GETNUMBER(1), (GLdouble ) RING_API_GETNUMBER(2), (GLdouble ) RING_API_GETNUMBER(3), (GLdouble ) RING_API_GETNUMBER(4));
}
+
+RING_FUNC(ring_glVertex2sv)
+{
+ if ( RING_API_PARACOUNT != 1 ) {
+ RING_API_ERROR(RING_API_MISS1PARA);
+ return ;
+ }
+ if ( ! RING_API_ISPOINTER(1) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ glVertex2sv((GLshort *) RING_API_GETCPOINTER(1,"GLshort"));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -10475,4 +10489,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glvertex4i",ring_glVertex4i);
ring_vm_funcregister("glvertex4f",ring_glVertex4f);
ring_vm_funcregister("glvertex4d",ring_glVertex4d);
+ ring_vm_funcregister("glvertex2sv",ring_glVertex2sv);
}
