Update RingOpenGL - Add Function (Source Code) : int glXGetFBConfigAttrib(Display * dpy,GLXFBConfig config,int attribute,int * value)
@@ -12587,6 +12587,31 @@ RING_FUNC(ring_glXGetCurrentReadDrawable)
}
}
+
+RING_FUNC(ring_glXGetFBConfigAttrib)
+{
+ if ( RING_API_PARACOUNT != 4 ) {
+ RING_API_ERROR(RING_API_MISS4PARA);
+ return ;
+ }
+ if ( ! RING_API_ISPOINTER(1) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(3) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ if ( ! RING_API_ISSTRING(4) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ RING_API_RETNUMBER(glXGetFBConfigAttrib((Display *) RING_API_GETCPOINTER(1,"Display"),* (GLXFBConfig *) RING_API_GETCPOINTER(2,"GLXFBConfig"), (int ) RING_API_GETNUMBER(3),RING_API_GETINTPOINTER(4)));
+ if (RING_API_ISCPOINTERNOTASSIGNED(2))
+ free(RING_API_GETCPOINTER(2,"GLXFBConfig"));
+ RING_API_ACCEPTINTVALUE(4) ;
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -13203,4 +13228,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glxgetcurrentdisplay",ring_glXGetCurrentDisplay);
ring_vm_funcregister("glxgetcurrentdrawable",ring_glXGetCurrentDrawable);
ring_vm_funcregister("glxgetcurrentreaddrawable",ring_glXGetCurrentReadDrawable);
+ ring_vm_funcregister("glxgetfbconfigattrib",ring_glXGetFBConfigAttrib);
}
