Update RingOpenGL - Add Function (Source Code) : void glGetBufferParameteriv(GLenum target,GLenum value,GLint * data)
@@ -3162,6 +3162,28 @@ RING_FUNC(ring_glGetAttribLocation)
RING_API_RETNUMBER(glGetAttribLocation( (GLuint ) RING_API_GETNUMBER(1),(GLchar *) RING_API_GETCPOINTER(2,"GLchar")));
}
+
+RING_FUNC(ring_glGetBufferParameteriv)
+{
+ 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 ;
+ }
+ glGetBufferParameteriv( (GLenum ) (int) RING_API_GETNUMBER(1), (GLenum ) (int) RING_API_GETNUMBER(2),(GLint *) RING_API_GETCPOINTER(3,"GLint"));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -3316,4 +3338,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glgetactiveuniform",ring_glGetActiveUniform);
ring_vm_funcregister("glgetattachedshaders",ring_glGetAttachedShaders);
ring_vm_funcregister("glgetattriblocation",ring_glGetAttribLocation);
+ ring_vm_funcregister("glgetbufferparameteriv",ring_glGetBufferParameteriv);
}
