Update RingOpenGL 1.1 - Add Function (Source Code) : void glVertex2d(GLdouble x, GLdouble y)
@@ -8696,6 +8696,24 @@ RING_FUNC(ring_glTranslatef)
glTranslatef( (GLfloat ) RING_API_GETNUMBER(1), (GLfloat ) RING_API_GETNUMBER(2), (GLfloat ) RING_API_GETNUMBER(3));
}
+
+RING_FUNC(ring_glVertex2d)
+{
+ 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 ;
+ }
+ glVertex2d( (GLdouble ) RING_API_GETNUMBER(1), (GLdouble ) RING_API_GETNUMBER(2));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -9008,6 +9026,7 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("gltexsubimage2d",ring_glTexSubImage2D);
ring_vm_funcregister("gltranslated",ring_glTranslated);
ring_vm_funcregister("gltranslatef",ring_glTranslatef);
+ ring_vm_funcregister("glvertex2d",ring_glVertex2d);
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);
