Update RingOpenGL - Add Function (Source Code) : void glVertex2f(GLfloat x,GLfloat y)
@@ -9774,6 +9774,24 @@ RING_FUNC(ring_glVertex2i)
glVertex2i( (GLint ) RING_API_GETNUMBER(1), (GLint ) RING_API_GETNUMBER(2));
}
+
+RING_FUNC(ring_glVertex2f)
+{
+ if ( RING_API_PARACOUNT != 2 ) {
+ RING_API_ERROR(RING_API_MISS2PARA);
+ 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 ;
+ }
+ glVertex2f( (GLfloat ) RING_API_GETNUMBER(1), (GLfloat ) RING_API_GETNUMBER(2));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -10251,4 +10269,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glvalidateprogram",ring_glValidateProgram);
ring_vm_funcregister("glvertex2s",ring_glVertex2s);
ring_vm_funcregister("glvertex2i",ring_glVertex2i);
+ ring_vm_funcregister("glvertex2f",ring_glVertex2f);
}
