Update RingOpenGL - Add Function (Source Code) : void * glMapBuffer(GLenum target,GLenum access)
@@ -5258,6 +5258,24 @@ RING_FUNC(ring_glMap2d)
glMap2d( (GLenum ) (int) RING_API_GETNUMBER(1), (GLdouble ) RING_API_GETNUMBER(2), (GLdouble ) RING_API_GETNUMBER(3), (GLint ) RING_API_GETNUMBER(4), (GLint ) RING_API_GETNUMBER(5), (GLdouble ) RING_API_GETNUMBER(6), (GLdouble ) RING_API_GETNUMBER(7), (GLint ) RING_API_GETNUMBER(8), (GLint ) RING_API_GETNUMBER(9),(GLdouble *) RING_API_GETCPOINTER(10,"GLdouble"));
}
+
+RING_FUNC(ring_glMapBuffer)
+{
+ 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 ;
+ }
+ RING_API_RETCPOINTER(glMapBuffer( (GLenum ) (int) RING_API_GETNUMBER(1), (GLenum ) (int) RING_API_GETNUMBER(2)),"void");
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -5515,4 +5533,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glmap1d",ring_glMap1d);
ring_vm_funcregister("glmap2f",ring_glMap2f);
ring_vm_funcregister("glmap2d",ring_glMap2d);
+ ring_vm_funcregister("glmapbuffer",ring_glMapBuffer);
}
