Update RingOpenGL - Add Function (Source Code) : void glGetMinmax(GLenum target,GLboolean reset,GLenum format,GLenum types,GLvoid * values)
@@ -3650,6 +3650,36 @@ RING_FUNC(ring_glGetMaterialiv)
glGetMaterialiv( (GLenum ) (int) RING_API_GETNUMBER(1), (GLenum ) (int) RING_API_GETNUMBER(2),(GLint *) RING_API_GETCPOINTER(3,"GLint"));
}
+
+RING_FUNC(ring_glGetMinmax)
+{
+ if ( RING_API_PARACOUNT != 5 ) {
+ RING_API_ERROR(RING_API_BADPARACOUNT);
+ 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_ISNUMBER(4) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ if ( ! RING_API_ISPOINTER(5) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ glGetMinmax( (GLenum ) (int) RING_API_GETNUMBER(1), (GLboolean ) RING_API_GETNUMBER(2), (GLenum ) (int) RING_API_GETNUMBER(3), (GLenum ) (int) RING_API_GETNUMBER(4),(GLvoid *) RING_API_GETCPOINTER(5,"GLvoid"));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -3826,4 +3856,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glgetmapiv",ring_glGetMapiv);
ring_vm_funcregister("glgetmaterialfv",ring_glGetMaterialfv);
ring_vm_funcregister("glgetmaterialiv",ring_glGetMaterialiv);
+ ring_vm_funcregister("glgetminmax",ring_glGetMinmax);
}
