Update RingOpenGL - Add Function (Source Code) : void glGetBufferSubData(GLenum target,GLintptr offset,GLsizeiptr size,GLvoid * data)
@@ -3206,6 +3206,32 @@ RING_FUNC(ring_glGetBufferPointerv)
glGetBufferPointerv( (GLenum ) (int) RING_API_GETNUMBER(1), (GLenum ) (int) RING_API_GETNUMBER(2),(GLvoid **) RING_API_GETCPOINTER2POINTER(3,"GLvoid"));
}
+
+RING_FUNC(ring_glGetBufferSubData)
+{
+ if ( RING_API_PARACOUNT != 4 ) {
+ RING_API_ERROR(RING_API_MISS4PARA);
+ 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 ;
+ }
+ if ( ! RING_API_ISPOINTER(4) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ glGetBufferSubData( (GLenum ) (int) RING_API_GETNUMBER(1), (GLintptr ) RING_API_GETNUMBER(2), (GLsizeiptr ) RING_API_GETNUMBER(3),(GLvoid *) RING_API_GETCPOINTER(4,"GLvoid"));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -3362,4 +3388,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glgetattriblocation",ring_glGetAttribLocation);
ring_vm_funcregister("glgetbufferparameteriv",ring_glGetBufferParameteriv);
ring_vm_funcregister("glgetbufferpointerv",ring_glGetBufferPointerv);
+ ring_vm_funcregister("glgetbuffersubdata",ring_glGetBufferSubData);
}
