Update RingOpenGL 1.1 - Add Function (Source Code) : void glEvalMesh1(GLenum mode, GLint i1, GLint i2)
@@ -4296,6 +4296,28 @@ RING_FUNC(ring_glEvalCoord2fv)
glEvalCoord2fv((GLfloat *) RING_API_GETCPOINTER(1,"GLfloat"));
}
+
+RING_FUNC(ring_glEvalMesh1)
+{
+ 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 ;
+ }
+ glEvalMesh1( (GLenum ) (int) RING_API_GETNUMBER(1), (GLint ) RING_API_GETNUMBER(2), (GLint ) RING_API_GETNUMBER(3));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -4382,6 +4404,7 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glevalcoord2dv",ring_glEvalCoord2dv);
ring_vm_funcregister("glevalcoord2f",ring_glEvalCoord2f);
ring_vm_funcregister("glevalcoord2fv",ring_glEvalCoord2fv);
+ ring_vm_funcregister("glevalmesh1",ring_glEvalMesh1);
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);
