summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Hartmetz <ahartmetz@gmail.com>2013-07-12 10:46:51 +0200
committerAndreas Hartmetz <ahartmetz@gmail.com>2013-07-12 10:52:57 +0200
commite0d4ababfb09afe0f140754163d7a75186b3a037 (patch)
tree4b6fb52b236d337a59f8ff91fad0b9943e8790a0
parent621d0b3f841872e7d73465a7ec55afebad17bfdb (diff)
Update GLX attrib_list support from GLX 1.3 to 1.4.
-rw-r--r--specs/glxapi.py17
1 files changed, 10 insertions, 7 deletions
diff --git a/specs/glxapi.py b/specs/glxapi.py
index e9fa7bde..28884a00 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),