Update RingOpenGL - Add Function (Source Code) : void glGetBufferPointerv(GLenum target,GLenum pname,GLvoid ** params)
@@ -3184,6 +3184,28 @@ RING_FUNC(ring_glGetBufferParameteriv)
glGetBufferParameteriv( (GLenum ) (int) RING_API_GETNUMBER(1), (GLenum ) (int) RING_API_GETNUMBER(2),(GLint *) RING_API_GETCPOINTER(3,"GLint"));
}
+
+RING_FUNC(ring_glGetBufferPointerv)
+{
+ 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_ISPOINTER(3) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ glGetBufferPointerv( (GLenum ) (int) RING_API_GETNUMBER(1), (GLenum ) (int) RING_API_GETNUMBER(2),(GLvoid **) RING_API_GETCPOINTER2POINTER(3,"GLvoid"));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -3339,4 +3361,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glgetattachedshaders",ring_glGetAttachedShaders);
ring_vm_funcregister("glgetattriblocation",ring_glGetAttribLocation);
ring_vm_funcregister("glgetbufferparameteriv",ring_glGetBufferParameteriv);
+ ring_vm_funcregister("glgetbufferpointerv",ring_glGetBufferPointerv);
}
