From 6467406c48d0ac71274100160002d37f74643af6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Tue, 10 May 2011 20:33:43 +0100 Subject: [PATCH] Symbolic names for GLX string queries. --- glxapi.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/glxapi.py b/glxapi.py index 95f98d7..80548c4 100644 --- a/glxapi.py +++ b/glxapi.py @@ -141,6 +141,11 @@ GLXError = FakeEnum(Int, [ "GLX_BAD_ENUM", ]) +GLXname = FakeEnum(Int, [ + "GLX_VENDOR", + "GLX_VERSION", + "GLX_EXTENSIONS", +]) GLXbuffer = Flags(Int, [ "GLX_WINDOW_BIT", @@ -227,8 +232,8 @@ glxapi.add_functions([ # GLX 1.1 and later Function((Const(String("char *"))), "glXQueryExtensionsString", [(Display, "dpy"), (Int, "screen")]), - Function((Const(String("char *"))), "glXQueryServerString", [(Display, "dpy"), (Int, "screen"), (Int, "name")]), - Function((Const(String("char *"))), "glXGetClientString", [(Display, "dpy"), (Int, "name")]), + Function((Const(String("char *"))), "glXQueryServerString", [(Display, "dpy"), (Int, "screen"), (GLXname, "name")]), + Function((Const(String("char *"))), "glXGetClientString", [(Display, "dpy"), (GLXname, "name")]), # GLX 1.2 and later Function(Display, "glXGetCurrentDisplay", [], sideeffects=False), -- 2.45.2