Update RingOpenGL - Add Function (Source Code) : void glMapGrid1f(GLint un,GLfloat u1,GLfloat u2)
@@ -5298,6 +5298,28 @@ RING_FUNC(ring_glMapGrid1d)
glMapGrid1d( (GLint ) RING_API_GETNUMBER(1), (GLdouble ) RING_API_GETNUMBER(2), (GLdouble ) RING_API_GETNUMBER(3));
}
+
+RING_FUNC(ring_glMapGrid1f)
+{
+ 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 ;
+ }
+ glMapGrid1f( (GLint ) 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);
@@ -5557,4 +5579,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glmap2d",ring_glMap2d);
ring_vm_funcregister("glmapbuffer",ring_glMapBuffer);
ring_vm_funcregister("glmapgrid1d",ring_glMapGrid1d);
+ ring_vm_funcregister("glmapgrid1f",ring_glMapGrid1f);
}
