Update RingOpenGL - Add Function (Source Code) : void glGetHistogramParameteriv(GLenum target,GLenum pname,GLint * params)
@@ -3474,6 +3474,28 @@ RING_FUNC(ring_glGetHistogramParameterfv)
glGetHistogramParameterfv( (GLenum ) (int) RING_API_GETNUMBER(1), (GLenum ) (int) RING_API_GETNUMBER(2),(GLfloat *) RING_API_GETCPOINTER(3,"GLfloat"));
}
+
+RING_FUNC(ring_glGetHistogramParameteriv)
+{
+ 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 ;
+ }
+ glGetHistogramParameteriv( (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);
@@ -3642,4 +3664,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glgeterror",ring_glGetError);
ring_vm_funcregister("glgethistogram",ring_glGetHistogram);
ring_vm_funcregister("glgethistogramparameterfv",ring_glGetHistogramParameterfv);
+ ring_vm_funcregister("glgethistogramparameteriv",ring_glGetHistogramParameteriv);
}
