From e0d4ababfb09afe0f140754163d7a75186b3a037 Mon Sep 17 00:00:00 2001 From: Andreas Hartmetz Date: Fri, 12 Jul 2013 10:46:51 +0200 Subject: [PATCH] Update GLX attrib_list support from GLX 1.3 to 1.4. --- specs/glxapi.py | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/specs/glxapi.py b/specs/glxapi.py index e9fa7bd..28884a0 100644 --- a/specs/glxapi.py +++ b/specs/glxapi.py @@ -228,7 +228,9 @@ GLXVisualAttribs = AttribArray(GLXEnum, GLXCommonSizeAttribs + [ ('GLX_RGBA', None), ('GLX_DOUBLEBUFFER', None), ('GLX_STEREO', None), - ('GLX_AUX_BUFFERS', UInt)], + ('GLX_AUX_BUFFERS', UInt), + ('GLX_SAMPLE_BUFFERS', UInt), + ('GLX_SAMPLES', UInt)], isConst = False ) @@ -238,6 +240,8 @@ GLXFBConfigCommonAttribs = GLXCommonSizeAttribs + [ ('GLX_DOUBLEBUFFER', Bool), ('GLX_STEREO', Bool), ('GLX_AUX_BUFFERS', UInt), + ('GLX_SAMPLE_BUFFERS', UInt), + ('GLX_SAMPLES', UInt), ('GLX_RENDER_TYPE', Flags(Int, ["GLX_RGBA_BIT", "GLX_COLOR_INDEX_BIT"])), ('GLX_DRAWABLE_TYPE', Flags(Int, ["GLX_WINDOW_BIT", "GLX_PIXMAP_BIT", "GLX_PBUFFER_BIT"])), ('GLX_X_RENDERABLE', Bool), @@ -253,15 +257,14 @@ GLXFBConfigCommonAttribs = GLXCommonSizeAttribs + [ GLXFBConfigGLXAttribs = GLXFBConfigCommonAttribs + [ ('GLX_FBCONFIG_ID', Int), # an XID, can we do better than int? -] - -GLXFBConfigSGIXAttribs = GLXFBConfigCommonAttribs + [ - ('GLX_SAMPLE_BUFFERS', UInt), - ('GLX_SAMPLES', UInt) + ('GLX_MAX_PBUFFER_WIDTH', Int), + ('GLX_MAX_PBUFFER_HEIGHT', Int), + ('GLX_MAX_PBUFFER_PIXELS', Int), + ('GLX_VISUAL_ID', Int) # another XID ] GLXFBConfigAttribs = AttribArray(GLXEnum, GLXFBConfigGLXAttribs) -GLXFBConfigSGIXAttribs = AttribArray(GLXEnum, GLXFBConfigSGIXAttribs, isConst = False) +GLXFBConfigSGIXAttribs = AttribArray(GLXEnum, GLXFBConfigCommonAttribs, isConst = False) GLXContextAttribs = AttribArray(GLXEnum, [ ('GLX_CONTEXT_MAJOR_VERSION_ARB', Int), -- 2.43.0