Update RingOpenGL - Add Function (Source Code) : const char * glXGetClientString(Display * dpy,int name)
@@ -12470,6 +12470,24 @@ RING_FUNC(ring_glXFreeContextEXT)
free(RING_API_GETCPOINTER(2,"GLXContext"));
}
+
+RING_FUNC(ring_glXGetClientString)
+{
+ if ( RING_API_PARACOUNT != 2 ) {
+ RING_API_ERROR(RING_API_MISS2PARA);
+ return ;
+ }
+ if ( ! RING_API_ISPOINTER(1) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(2) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ RING_API_RETSTRING(glXGetClientString((Display *) RING_API_GETCPOINTER(1,"Display"), (int ) RING_API_GETNUMBER(2)));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("glaccum",ring_glAccum);
@@ -13079,4 +13097,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("glxdestroypixmap",ring_glXDestroyPixmap);
ring_vm_funcregister("glxdestroywindow",ring_glXDestroyWindow);
ring_vm_funcregister("glxfreecontextext",ring_glXFreeContextEXT);
+ ring_vm_funcregister("glxgetclientstring",ring_glXGetClientString);
}
