Update RingOpenGL - Add Function (Source Code) : void glVertex3f(GLfloat x,GLfloat y,GLfloat z)
@@ -9848,6 +9848,28 @@ RING_FUNC(ring_glVertex3i)
glVertex3i( (GLint ) RING_API_GETNUMBER(1), (GLint ) RING_API_GETNUMBER(2), (GLint ) RING_API_GETNUMBER(3));
}
+
+RING_FUNC(ring_glVertex3f)
+{
+ 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 ;
+ }
+ glVertex3f( (GLfloat ) RING_API_GETNUMBER(1), (GLfloat ) RING_API_GETNUMBER(2), (GLfloat ) RING_API_GETNUMBER(3));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -10329,4 +10351,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glvertex2d",ring_glVertex2d);
ring_vm_funcregister("glvertex3s",ring_glVertex3s);
ring_vm_funcregister("glvertex3i",ring_glVertex3i);
+ ring_vm_funcregister("glvertex3f",ring_glVertex3f);
}
