1 #ifndef panda__glxext_h_
2 #define panda__glxext_h_ 1
39 #define GLX_GLXEXT_VERSION 20140416
50 #ifndef GLX_VERSION_1_3
51 #define GLX_VERSION_1_3 1
52 typedef XID GLXContextID;
53 typedef struct __GLXFBConfigRec *GLXFBConfig;
54 typedef XID GLXWindow;
55 typedef XID GLXPbuffer;
56 #define GLX_WINDOW_BIT 0x00000001
57 #define GLX_PIXMAP_BIT 0x00000002
58 #define GLX_PBUFFER_BIT 0x00000004
59 #define GLX_RGBA_BIT 0x00000001
60 #define GLX_COLOR_INDEX_BIT 0x00000002
61 #define GLX_PBUFFER_CLOBBER_MASK 0x08000000
62 #define GLX_FRONT_LEFT_BUFFER_BIT 0x00000001
63 #define GLX_FRONT_RIGHT_BUFFER_BIT 0x00000002
64 #define GLX_BACK_LEFT_BUFFER_BIT 0x00000004
65 #define GLX_BACK_RIGHT_BUFFER_BIT 0x00000008
66 #define GLX_AUX_BUFFERS_BIT 0x00000010
67 #define GLX_DEPTH_BUFFER_BIT 0x00000020
68 #define GLX_STENCIL_BUFFER_BIT 0x00000040
69 #define GLX_ACCUM_BUFFER_BIT 0x00000080
70 #define GLX_CONFIG_CAVEAT 0x20
71 #define GLX_X_VISUAL_TYPE 0x22
72 #define GLX_TRANSPARENT_TYPE 0x23
73 #define GLX_TRANSPARENT_INDEX_VALUE 0x24
74 #define GLX_TRANSPARENT_RED_VALUE 0x25
75 #define GLX_TRANSPARENT_GREEN_VALUE 0x26
76 #define GLX_TRANSPARENT_BLUE_VALUE 0x27
77 #define GLX_TRANSPARENT_ALPHA_VALUE 0x28
78 #define GLX_DONT_CARE 0xFFFFFFFF
79 #define GLX_NONE 0x8000
80 #define GLX_SLOW_CONFIG 0x8001
81 #define GLX_TRUE_COLOR 0x8002
82 #define GLX_DIRECT_COLOR 0x8003
83 #define GLX_PSEUDO_COLOR 0x8004
84 #define GLX_STATIC_COLOR 0x8005
85 #define GLX_GRAY_SCALE 0x8006
86 #define GLX_STATIC_GRAY 0x8007
87 #define GLX_TRANSPARENT_RGB 0x8008
88 #define GLX_TRANSPARENT_INDEX 0x8009
89 #define GLX_VISUAL_ID 0x800B
90 #define GLX_SCREEN 0x800C
91 #define GLX_NON_CONFORMANT_CONFIG 0x800D
92 #define GLX_DRAWABLE_TYPE 0x8010
93 #define GLX_RENDER_TYPE 0x8011
94 #define GLX_X_RENDERABLE 0x8012
95 #define GLX_FBCONFIG_ID 0x8013
96 #define GLX_RGBA_TYPE 0x8014
97 #define GLX_COLOR_INDEX_TYPE 0x8015
98 #define GLX_MAX_PBUFFER_WIDTH 0x8016
99 #define GLX_MAX_PBUFFER_HEIGHT 0x8017
100 #define GLX_MAX_PBUFFER_PIXELS 0x8018
101 #define GLX_PRESERVED_CONTENTS 0x801B
102 #define GLX_LARGEST_PBUFFER 0x801C
103 #define GLX_WIDTH 0x801D
104 #define GLX_HEIGHT 0x801E
105 #define GLX_EVENT_MASK 0x801F
106 #define GLX_DAMAGED 0x8020
107 #define GLX_SAVED 0x8021
108 #define GLX_WINDOW 0x8022
109 #define GLX_PBUFFER 0x8023
110 #define GLX_PBUFFER_HEIGHT 0x8040
111 #define GLX_PBUFFER_WIDTH 0x8041
112 typedef GLXFBConfig *( *PFNGLXGETFBCONFIGSPROC) (X11_Display *dpy,
int screen,
int *nelements);
113 typedef GLXFBConfig *( *PFNGLXCHOOSEFBCONFIGPROC) (X11_Display *dpy,
int screen,
const int *attrib_list,
int *nelements);
114 typedef int ( *PFNGLXGETFBCONFIGATTRIBPROC) (X11_Display *dpy, GLXFBConfig config,
int attribute,
int *value);
115 typedef XVisualInfo *( *PFNGLXGETVISUALFROMFBCONFIGPROC) (X11_Display *dpy, GLXFBConfig config);
116 typedef GLXWindow ( *PFNGLXCREATEWINDOWPROC) (X11_Display *dpy, GLXFBConfig config, X11_Window win,
const int *attrib_list);
117 typedef void ( *PFNGLXDESTROYWINDOWPROC) (X11_Display *dpy, GLXWindow win);
118 typedef GLXPixmap ( *PFNGLXCREATEPIXMAPPROC) (X11_Display *dpy, GLXFBConfig config, Pixmap pixmap,
const int *attrib_list);
119 typedef void ( *PFNGLXDESTROYPIXMAPPROC) (X11_Display *dpy, GLXPixmap pixmap);
120 typedef GLXPbuffer ( *PFNGLXCREATEPBUFFERPROC) (X11_Display *dpy, GLXFBConfig config,
const int *attrib_list);
121 typedef void ( *PFNGLXDESTROYPBUFFERPROC) (X11_Display *dpy, GLXPbuffer pbuf);
122 typedef void ( *PFNGLXQUERYDRAWABLEPROC) (X11_Display *dpy, GLXDrawable draw,
int attribute,
unsigned int *value);
123 typedef GLXContext ( *PFNGLXCREATENEWCONTEXTPROC) (X11_Display *dpy, GLXFBConfig config,
int render_type, GLXContext share_list, Bool direct);
124 typedef Bool ( *PFNGLXMAKECONTEXTCURRENTPROC) (X11_Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
125 typedef GLXDrawable ( *PFNGLXGETCURRENTREADDRAWABLEPROC) (void);
126 typedef int ( *PFNGLXQUERYCONTEXTPROC) (X11_Display *dpy, GLXContext ctx,
int attribute,
int *value);
127 typedef void ( *PFNGLXSELECTEVENTPROC) (X11_Display *dpy, GLXDrawable draw,
unsigned long event_mask);
128 typedef void ( *PFNGLXGETSELECTEDEVENTPROC) (X11_Display *dpy, GLXDrawable draw,
unsigned long *event_mask);
129 #ifdef GLX_GLXEXT_PROTOTYPES
130 GLXFBConfig *glXGetFBConfigs (X11_Display *dpy,
int screen,
int *nelements);
131 GLXFBConfig *glXChooseFBConfig (X11_Display *dpy,
int screen,
const int *attrib_list,
int *nelements);
132 int glXGetFBConfigAttrib (X11_Display *dpy, GLXFBConfig config,
int attribute,
int *value);
133 XVisualInfo *glXGetVisualFromFBConfig (X11_Display *dpy, GLXFBConfig config);
134 GLXWindow glXCreateWindow (X11_Display *dpy, GLXFBConfig config, X11_Window win,
const int *attrib_list);
135 void glXDestroyWindow (X11_Display *dpy, GLXWindow win);
136 GLXPixmap glXCreatePixmap (X11_Display *dpy, GLXFBConfig config, Pixmap pixmap,
const int *attrib_list);
137 void glXDestroyPixmap (X11_Display *dpy, GLXPixmap pixmap);
138 GLXPbuffer glXCreatePbuffer (X11_Display *dpy, GLXFBConfig config,
const int *attrib_list);
139 void glXDestroyPbuffer (X11_Display *dpy, GLXPbuffer pbuf);
140 void glXQueryDrawable (X11_Display *dpy, GLXDrawable draw,
int attribute,
unsigned int *value);
141 GLXContext glXCreateNewContext (X11_Display *dpy, GLXFBConfig config,
int render_type, GLXContext share_list, Bool direct);
142 Bool glXMakeContextCurrent (X11_Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
143 GLXDrawable glXGetCurrentReadDrawable (
void);
144 int glXQueryContext (X11_Display *dpy, GLXContext ctx,
int attribute,
int *value);
145 void glXSelectEvent (X11_Display *dpy, GLXDrawable draw,
unsigned long event_mask);
146 void glXGetSelectedEvent (X11_Display *dpy, GLXDrawable draw,
unsigned long *event_mask);
150 #ifndef GLX_VERSION_1_4
151 #define GLX_VERSION_1_4 1
152 typedef void ( *__GLXextFuncPtr)(void);
153 #define GLX_SAMPLE_BUFFERS 100000
154 #define GLX_SAMPLES 100001
155 typedef __GLXextFuncPtr ( *PFNGLXGETPROCADDRESSPROC) (
const GLubyte *procName);
156 #ifdef GLX_GLXEXT_PROTOTYPES
157 __GLXextFuncPtr glXGetProcAddress (
const GLubyte *procName);
161 #ifndef GLX_ARB_create_context
162 #define GLX_ARB_create_context 1
163 #define GLX_CONTEXT_DEBUG_BIT_ARB 0x00000001
164 #define GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x00000002
165 #define GLX_CONTEXT_MAJOR_VERSION_ARB 0x2091
166 #define GLX_CONTEXT_MINOR_VERSION_ARB 0x2092
167 #define GLX_CONTEXT_FLAGS_ARB 0x2094
168 typedef GLXContext ( *PFNGLXCREATECONTEXTATTRIBSARBPROC) (X11_Display *dpy, GLXFBConfig config, GLXContext share_context, Bool direct,
const int *attrib_list);
169 #ifdef GLX_GLXEXT_PROTOTYPES
170 GLXContext glXCreateContextAttribsARB (X11_Display *dpy, GLXFBConfig config, GLXContext share_context, Bool direct,
const int *attrib_list);
174 #ifndef GLX_ARB_create_context_profile
175 #define GLX_ARB_create_context_profile 1
176 #define GLX_CONTEXT_CORE_PROFILE_BIT_ARB 0x00000001
177 #define GLX_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB 0x00000002
178 #define GLX_CONTEXT_PROFILE_MASK_ARB 0x9126
181 #ifndef GLX_ARB_create_context_robustness
182 #define GLX_ARB_create_context_robustness 1
183 #define GLX_CONTEXT_ROBUST_ACCESS_BIT_ARB 0x00000004
184 #define GLX_LOSE_CONTEXT_ON_RESET_ARB 0x8252
185 #define GLX_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB 0x8256
186 #define GLX_NO_RESET_NOTIFICATION_ARB 0x8261
189 #ifndef GLX_ARB_fbconfig_float
190 #define GLX_ARB_fbconfig_float 1
191 #define GLX_RGBA_FLOAT_TYPE_ARB 0x20B9
192 #define GLX_RGBA_FLOAT_BIT_ARB 0x00000004
195 #ifndef GLX_ARB_framebuffer_sRGB
196 #define GLX_ARB_framebuffer_sRGB 1
197 #define GLX_FRAMEBUFFER_SRGB_CAPABLE_ARB 0x20B2
200 #ifndef GLX_ARB_get_proc_address
201 #define GLX_ARB_get_proc_address 1
202 typedef __GLXextFuncPtr ( *PFNGLXGETPROCADDRESSARBPROC) (
const GLubyte *procName);
203 #ifdef GLX_GLXEXT_PROTOTYPES
204 __GLXextFuncPtr glXGetProcAddressARB (
const GLubyte *procName);
208 #ifndef GLX_ARB_multisample
209 #define GLX_ARB_multisample 1
210 #define GLX_SAMPLE_BUFFERS_ARB 100000
211 #define GLX_SAMPLES_ARB 100001
214 #ifndef GLX_ARB_robustness_application_isolation
215 #define GLX_ARB_robustness_application_isolation 1
216 #define GLX_CONTEXT_RESET_ISOLATION_BIT_ARB 0x00000008
219 #ifndef GLX_ARB_robustness_share_group_isolation
220 #define GLX_ARB_robustness_share_group_isolation 1
223 #ifndef GLX_ARB_vertex_buffer_object
224 #define GLX_ARB_vertex_buffer_object 1
225 #define GLX_CONTEXT_ALLOW_BUFFER_BYTE_ORDER_MISMATCH_ARB 0x2095
228 #ifndef GLX_3DFX_multisample
229 #define GLX_3DFX_multisample 1
230 #define GLX_SAMPLE_BUFFERS_3DFX 0x8050
231 #define GLX_SAMPLES_3DFX 0x8051
234 #ifndef GLX_AMD_gpu_association
235 #define GLX_AMD_gpu_association 1
236 #define GLX_GPU_VENDOR_AMD 0x1F00
237 #define GLX_GPU_RENDERER_STRING_AMD 0x1F01
238 #define GLX_GPU_OPENGL_VERSION_STRING_AMD 0x1F02
239 #define GLX_GPU_FASTEST_TARGET_GPUS_AMD 0x21A2
240 #define GLX_GPU_RAM_AMD 0x21A3
241 #define GLX_GPU_CLOCK_AMD 0x21A4
242 #define GLX_GPU_NUM_PIPES_AMD 0x21A5
243 #define GLX_GPU_NUM_SIMD_AMD 0x21A6
244 #define GLX_GPU_NUM_RB_AMD 0x21A7
245 #define GLX_GPU_NUM_SPI_AMD 0x21A8
248 #ifndef GLX_EXT_buffer_age
249 #define GLX_EXT_buffer_age 1
250 #define GLX_BACK_BUFFER_AGE_EXT 0x20F4
253 #ifndef GLX_EXT_create_context_es2_profile
254 #define GLX_EXT_create_context_es2_profile 1
255 #define GLX_CONTEXT_ES2_PROFILE_BIT_EXT 0x00000004
258 #ifndef GLX_EXT_create_context_es_profile
259 #define GLX_EXT_create_context_es_profile 1
260 #define GLX_CONTEXT_ES_PROFILE_BIT_EXT 0x00000004
263 #ifndef GLX_EXT_fbconfig_packed_float
264 #define GLX_EXT_fbconfig_packed_float 1
265 #define GLX_RGBA_UNSIGNED_FLOAT_TYPE_EXT 0x20B1
266 #define GLX_RGBA_UNSIGNED_FLOAT_BIT_EXT 0x00000008
269 #ifndef GLX_EXT_framebuffer_sRGB
270 #define GLX_EXT_framebuffer_sRGB 1
271 #define GLX_FRAMEBUFFER_SRGB_CAPABLE_EXT 0x20B2
274 #ifndef GLX_EXT_stereo_tree
275 #define GLX_EXT_stereo_tree 1
278 unsigned long serial;
280 X11_Display *display;
286 #define GLX_STEREO_TREE_EXT 0x20F5
287 #define GLX_STEREO_NOTIFY_MASK_EXT 0x00000001
288 #define GLX_STEREO_NOTIFY_EXT 0x00000000
291 #ifndef GLX_EXT_swap_control
292 #define GLX_EXT_swap_control 1
293 #define GLX_SWAP_INTERVAL_EXT 0x20F1
294 #define GLX_MAX_SWAP_INTERVAL_EXT 0x20F2
295 typedef void ( *PFNGLXSWAPINTERVALEXTPROC) (X11_Display *dpy, GLXDrawable drawable,
int interval);
296 #ifdef GLX_GLXEXT_PROTOTYPES
297 void glXSwapIntervalEXT (X11_Display *dpy, GLXDrawable drawable,
int interval);
301 #ifndef GLX_EXT_swap_control_tear
302 #define GLX_EXT_swap_control_tear 1
303 #define GLX_LATE_SWAPS_TEAR_EXT 0x20F3
306 #ifndef GLX_EXT_texture_from_pixmap
307 #define GLX_EXT_texture_from_pixmap 1
308 #define GLX_TEXTURE_1D_BIT_EXT 0x00000001
309 #define GLX_TEXTURE_2D_BIT_EXT 0x00000002
310 #define GLX_TEXTURE_RECTANGLE_BIT_EXT 0x00000004
311 #define GLX_BIND_TO_TEXTURE_RGB_EXT 0x20D0
312 #define GLX_BIND_TO_TEXTURE_RGBA_EXT 0x20D1
313 #define GLX_BIND_TO_MIPMAP_TEXTURE_EXT 0x20D2
314 #define GLX_BIND_TO_TEXTURE_TARGETS_EXT 0x20D3
315 #define GLX_Y_INVERTED_EXT 0x20D4
316 #define GLX_TEXTURE_FORMAT_EXT 0x20D5
317 #define GLX_TEXTURE_TARGET_EXT 0x20D6
318 #define GLX_MIPMAP_TEXTURE_EXT 0x20D7
319 #define GLX_TEXTURE_FORMAT_NONE_EXT 0x20D8
320 #define GLX_TEXTURE_FORMAT_RGB_EXT 0x20D9
321 #define GLX_TEXTURE_FORMAT_RGBA_EXT 0x20DA
322 #define GLX_TEXTURE_1D_EXT 0x20DB
323 #define GLX_TEXTURE_2D_EXT 0x20DC
324 #define GLX_TEXTURE_RECTANGLE_EXT 0x20DD
325 #define GLX_FRONT_LEFT_EXT 0x20DE
326 #define GLX_FRONT_RIGHT_EXT 0x20DF
327 #define GLX_BACK_LEFT_EXT 0x20E0
328 #define GLX_BACK_RIGHT_EXT 0x20E1
329 #define GLX_FRONT_EXT 0x20DE
330 #define GLX_BACK_EXT 0x20E0
331 #define GLX_AUX0_EXT 0x20E2
332 #define GLX_AUX1_EXT 0x20E3
333 #define GLX_AUX2_EXT 0x20E4
334 #define GLX_AUX3_EXT 0x20E5
335 #define GLX_AUX4_EXT 0x20E6
336 #define GLX_AUX5_EXT 0x20E7
337 #define GLX_AUX6_EXT 0x20E8
338 #define GLX_AUX7_EXT 0x20E9
339 #define GLX_AUX8_EXT 0x20EA
340 #define GLX_AUX9_EXT 0x20EB
341 typedef void ( *PFNGLXBINDTEXIMAGEEXTPROC) (X11_Display *dpy, GLXDrawable drawable,
int buffer,
const int *attrib_list);
342 typedef void ( *PFNGLXRELEASETEXIMAGEEXTPROC) (X11_Display *dpy, GLXDrawable drawable,
int buffer);
343 #ifdef GLX_GLXEXT_PROTOTYPES
344 void glXBindTexImageEXT (X11_Display *dpy, GLXDrawable drawable,
int buffer,
const int *attrib_list);
345 void glXReleaseTexImageEXT (X11_Display *dpy, GLXDrawable drawable,
int buffer);
349 #ifndef GLX_EXT_visual_info
350 #define GLX_EXT_visual_info 1
351 #define GLX_X_VISUAL_TYPE_EXT 0x22
352 #define GLX_TRANSPARENT_TYPE_EXT 0x23
353 #define GLX_TRANSPARENT_INDEX_VALUE_EXT 0x24
354 #define GLX_TRANSPARENT_RED_VALUE_EXT 0x25
355 #define GLX_TRANSPARENT_GREEN_VALUE_EXT 0x26
356 #define GLX_TRANSPARENT_BLUE_VALUE_EXT 0x27
357 #define GLX_TRANSPARENT_ALPHA_VALUE_EXT 0x28
358 #define GLX_NONE_EXT 0x8000
359 #define GLX_TRUE_COLOR_EXT 0x8002
360 #define GLX_DIRECT_COLOR_EXT 0x8003
361 #define GLX_PSEUDO_COLOR_EXT 0x8004
362 #define GLX_STATIC_COLOR_EXT 0x8005
363 #define GLX_GRAY_SCALE_EXT 0x8006
364 #define GLX_STATIC_GRAY_EXT 0x8007
365 #define GLX_TRANSPARENT_RGB_EXT 0x8008
366 #define GLX_TRANSPARENT_INDEX_EXT 0x8009
369 #ifndef GLX_EXT_visual_rating
370 #define GLX_EXT_visual_rating 1
371 #define GLX_VISUAL_CAVEAT_EXT 0x20
372 #define GLX_SLOW_VISUAL_EXT 0x8001
373 #define GLX_NON_CONFORMANT_VISUAL_EXT 0x800D
376 #ifndef GLX_INTEL_swap_event
377 #define GLX_INTEL_swap_event 1
378 #define GLX_BUFFER_SWAP_COMPLETE_INTEL_MASK 0x04000000
379 #define GLX_EXCHANGE_COMPLETE_INTEL 0x8180
380 #define GLX_COPY_COMPLETE_INTEL 0x8181
381 #define GLX_FLIP_COMPLETE_INTEL 0x8182
384 #ifndef GLX_MESA_agp_offset
385 #define GLX_MESA_agp_offset 1
386 typedef unsigned int ( *PFNGLXGETAGPOFFSETMESAPROC) (
const void *pointer);
387 #ifdef GLX_GLXEXT_PROTOTYPES
388 unsigned int glXGetAGPOffsetMESA (
const void *pointer);
392 #ifndef GLX_MESA_copy_sub_buffer
393 #define GLX_MESA_copy_sub_buffer 1
394 typedef void ( *PFNGLXCOPYSUBBUFFERMESAPROC) (X11_Display *dpy, GLXDrawable drawable,
int x,
int y,
int width,
int height);
395 #ifdef GLX_GLXEXT_PROTOTYPES
396 void glXCopySubBufferMESA (X11_Display *dpy, GLXDrawable drawable,
int x,
int y,
int width,
int height);
400 #ifndef GLX_MESA_pixmap_colormap
401 #define GLX_MESA_pixmap_colormap 1
402 typedef GLXPixmap ( *PFNGLXCREATEGLXPIXMAPMESAPROC) (X11_Display *dpy, XVisualInfo *visual, Pixmap pixmap, Colormap cmap);
403 #ifdef GLX_GLXEXT_PROTOTYPES
404 GLXPixmap glXCreateGLXPixmapMESA (X11_Display *dpy, XVisualInfo *visual, Pixmap pixmap, Colormap cmap);
408 #ifndef GLX_MESA_query_renderer
409 #define GLX_MESA_query_renderer 1
410 #define GLX_RENDERER_VENDOR_ID_MESA 0x8183
411 #define GLX_RENDERER_DEVICE_ID_MESA 0x8184
412 #define GLX_RENDERER_VERSION_MESA 0x8185
413 #define GLX_RENDERER_ACCELERATED_MESA 0x8186
414 #define GLX_RENDERER_VIDEO_MEMORY_MESA 0x8187
415 #define GLX_RENDERER_UNIFIED_MEMORY_ARCHITECTURE_MESA 0x8188
416 #define GLX_RENDERER_PREFERRED_PROFILE_MESA 0x8189
417 #define GLX_RENDERER_OPENGL_CORE_PROFILE_VERSION_MESA 0x818A
418 #define GLX_RENDERER_OPENGL_COMPATIBILITY_PROFILE_VERSION_MESA 0x818B
419 #define GLX_RENDERER_OPENGL_ES_PROFILE_VERSION_MESA 0x818C
420 #define GLX_RENDERER_OPENGL_ES2_PROFILE_VERSION_MESA 0x818D
421 #define GLX_RENDERER_ID_MESA 0x818E
422 typedef Bool ( *PFNGLXQUERYCURRENTRENDERERINTEGERMESAPROC) (
int attribute,
unsigned int *value);
423 typedef const char *( *PFNGLXQUERYCURRENTRENDERERSTRINGMESAPROC) (
int attribute);
424 typedef Bool ( *PFNGLXQUERYRENDERERINTEGERMESAPROC) (X11_Display *dpy,
int screen,
int renderer,
int attribute,
unsigned int *value);
425 typedef const char *( *PFNGLXQUERYRENDERERSTRINGMESAPROC) (X11_Display *dpy,
int screen,
int renderer,
int attribute);
426 #ifdef GLX_GLXEXT_PROTOTYPES
427 Bool glXQueryCurrentRendererIntegerMESA (
int attribute,
unsigned int *value);
428 const char *glXQueryCurrentRendererStringMESA (
int attribute);
429 Bool glXQueryRendererIntegerMESA (X11_Display *dpy,
int screen,
int renderer,
int attribute,
unsigned int *value);
430 const char *glXQueryRendererStringMESA (X11_Display *dpy,
int screen,
int renderer,
int attribute);
434 #ifndef GLX_MESA_release_buffers
435 #define GLX_MESA_release_buffers 1
436 typedef Bool ( *PFNGLXRELEASEBUFFERSMESAPROC) (X11_Display *dpy, GLXDrawable drawable);
437 #ifdef GLX_GLXEXT_PROTOTYPES
438 Bool glXReleaseBuffersMESA (X11_Display *dpy, GLXDrawable drawable);
442 #ifndef GLX_MESA_set_3dfx_mode
443 #define GLX_MESA_set_3dfx_mode 1
444 #define GLX_3DFX_WINDOW_MODE_MESA 0x1
445 #define GLX_3DFX_FULLSCREEN_MODE_MESA 0x2
446 typedef Bool ( *PFNGLXSET3DFXMODEMESAPROC) (
int mode);
447 #ifdef GLX_GLXEXT_PROTOTYPES
448 Bool glXSet3DfxModeMESA (
int mode);
452 #ifndef GLX_NV_copy_image
453 #define GLX_NV_copy_image 1
454 typedef void ( *PFNGLXCOPYIMAGESUBDATANVPROC) (X11_Display *dpy, GLXContext srcCtx, GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLXContext dstCtx, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei width, GLsizei height, GLsizei depth);
455 #ifdef GLX_GLXEXT_PROTOTYPES
456 void glXCopyImageSubDataNV (X11_Display *dpy, GLXContext srcCtx, GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLXContext dstCtx, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei width, GLsizei height, GLsizei depth);
460 #ifndef GLX_NV_delay_before_swap
461 #define GLX_NV_delay_before_swap 1
462 typedef Bool ( *PFNGLXDELAYBEFORESWAPNVPROC) (X11_Display *dpy, GLXDrawable drawable, GLfloat seconds);
463 #ifdef GLX_GLXEXT_PROTOTYPES
464 Bool glXDelayBeforeSwapNV (X11_Display *dpy, GLXDrawable drawable, GLfloat seconds);
468 #ifndef GLX_NV_float_buffer
469 #define GLX_NV_float_buffer 1
470 #define GLX_FLOAT_COMPONENTS_NV 0x20B0
473 #ifndef GLX_NV_multisample_coverage
474 #define GLX_NV_multisample_coverage 1
475 #define GLX_COVERAGE_SAMPLES_NV 100001
476 #define GLX_COLOR_SAMPLES_NV 0x20B3
479 #ifndef GLX_NV_present_video
480 #define GLX_NV_present_video 1
481 #define GLX_NUM_VIDEO_SLOTS_NV 0x20F0
482 typedef unsigned int *( *PFNGLXENUMERATEVIDEODEVICESNVPROC) (X11_Display *dpy,
int screen,
int *nelements);
483 typedef int ( *PFNGLXBINDVIDEODEVICENVPROC) (X11_Display *dpy,
unsigned int video_slot,
unsigned int video_device,
const int *attrib_list);
484 #ifdef GLX_GLXEXT_PROTOTYPES
485 unsigned int *glXEnumerateVideoDevicesNV (X11_Display *dpy,
int screen,
int *nelements);
486 int glXBindVideoDeviceNV (X11_Display *dpy,
unsigned int video_slot,
unsigned int video_device,
const int *attrib_list);
490 #ifndef GLX_NV_swap_group
491 #define GLX_NV_swap_group 1
492 typedef Bool ( *PFNGLXJOINSWAPGROUPNVPROC) (X11_Display *dpy, GLXDrawable drawable, GLuint group);
493 typedef Bool ( *PFNGLXBINDSWAPBARRIERNVPROC) (X11_Display *dpy, GLuint group, GLuint barrier);
494 typedef Bool ( *PFNGLXQUERYSWAPGROUPNVPROC) (X11_Display *dpy, GLXDrawable drawable, GLuint *group, GLuint *barrier);
495 typedef Bool ( *PFNGLXQUERYMAXSWAPGROUPSNVPROC) (X11_Display *dpy,
int screen, GLuint *maxGroups, GLuint *maxBarriers);
496 typedef Bool ( *PFNGLXQUERYFRAMECOUNTNVPROC) (X11_Display *dpy,
int screen, GLuint *count);
497 typedef Bool ( *PFNGLXRESETFRAMECOUNTNVPROC) (X11_Display *dpy,
int screen);
498 #ifdef GLX_GLXEXT_PROTOTYPES
499 Bool glXJoinSwapGroupNV (X11_Display *dpy, GLXDrawable drawable, GLuint group);
500 Bool glXBindSwapBarrierNV (X11_Display *dpy, GLuint group, GLuint barrier);
501 Bool glXQuerySwapGroupNV (X11_Display *dpy, GLXDrawable drawable, GLuint *group, GLuint *barrier);
502 Bool glXQueryMaxSwapGroupsNV (X11_Display *dpy,
int screen, GLuint *maxGroups, GLuint *maxBarriers);
503 Bool glXQueryFrameCountNV (X11_Display *dpy,
int screen, GLuint *count);
504 Bool glXResetFrameCountNV (X11_Display *dpy,
int screen);
508 #ifndef GLX_NV_video_capture
509 #define GLX_NV_video_capture 1
510 typedef XID GLXVideoCaptureDeviceNV;
511 #define GLX_DEVICE_ID_NV 0x20CD
512 #define GLX_UNIQUE_ID_NV 0x20CE
513 #define GLX_NUM_VIDEO_CAPTURE_SLOTS_NV 0x20CF
514 typedef int ( *PFNGLXBINDVIDEOCAPTUREDEVICENVPROC) (X11_Display *dpy,
unsigned int video_capture_slot, GLXVideoCaptureDeviceNV device);
515 typedef GLXVideoCaptureDeviceNV *( *PFNGLXENUMERATEVIDEOCAPTUREDEVICESNVPROC) (X11_Display *dpy,
int screen,
int *nelements);
516 typedef void ( *PFNGLXLOCKVIDEOCAPTUREDEVICENVPROC) (X11_Display *dpy, GLXVideoCaptureDeviceNV device);
517 typedef int ( *PFNGLXQUERYVIDEOCAPTUREDEVICENVPROC) (X11_Display *dpy, GLXVideoCaptureDeviceNV device,
int attribute,
int *value);
518 typedef void ( *PFNGLXRELEASEVIDEOCAPTUREDEVICENVPROC) (X11_Display *dpy, GLXVideoCaptureDeviceNV device);
519 #ifdef GLX_GLXEXT_PROTOTYPES
520 int glXBindVideoCaptureDeviceNV (X11_Display *dpy,
unsigned int video_capture_slot, GLXVideoCaptureDeviceNV device);
521 GLXVideoCaptureDeviceNV *glXEnumerateVideoCaptureDevicesNV (X11_Display *dpy,
int screen,
int *nelements);
522 void glXLockVideoCaptureDeviceNV (X11_Display *dpy, GLXVideoCaptureDeviceNV device);
523 int glXQueryVideoCaptureDeviceNV (X11_Display *dpy, GLXVideoCaptureDeviceNV device,
int attribute,
int *value);
524 void glXReleaseVideoCaptureDeviceNV (X11_Display *dpy, GLXVideoCaptureDeviceNV device);
528 #ifndef GLX_NV_video_output
529 #define GLX_NV_video_output 1
530 typedef unsigned int GLXVideoDeviceNV;
531 #define GLX_VIDEO_OUT_COLOR_NV 0x20C3
532 #define GLX_VIDEO_OUT_ALPHA_NV 0x20C4
533 #define GLX_VIDEO_OUT_DEPTH_NV 0x20C5
534 #define GLX_VIDEO_OUT_COLOR_AND_ALPHA_NV 0x20C6
535 #define GLX_VIDEO_OUT_COLOR_AND_DEPTH_NV 0x20C7
536 #define GLX_VIDEO_OUT_FRAME_NV 0x20C8
537 #define GLX_VIDEO_OUT_FIELD_1_NV 0x20C9
538 #define GLX_VIDEO_OUT_FIELD_2_NV 0x20CA
539 #define GLX_VIDEO_OUT_STACKED_FIELDS_1_2_NV 0x20CB
540 #define GLX_VIDEO_OUT_STACKED_FIELDS_2_1_NV 0x20CC
541 typedef int ( *PFNGLXGETVIDEODEVICENVPROC) (X11_Display *dpy,
int screen,
int numVideoDevices, GLXVideoDeviceNV *pVideoDevice);
542 typedef int ( *PFNGLXRELEASEVIDEODEVICENVPROC) (X11_Display *dpy,
int screen, GLXVideoDeviceNV VideoDevice);
543 typedef int ( *PFNGLXBINDVIDEOIMAGENVPROC) (X11_Display *dpy, GLXVideoDeviceNV VideoDevice, GLXPbuffer pbuf,
int iVideoBuffer);
544 typedef int ( *PFNGLXRELEASEVIDEOIMAGENVPROC) (X11_Display *dpy, GLXPbuffer pbuf);
545 typedef int ( *PFNGLXSENDPBUFFERTOVIDEONVPROC) (X11_Display *dpy, GLXPbuffer pbuf,
int iBufferType,
unsigned long *pulCounterPbuffer, GLboolean bBlock);
546 typedef int ( *PFNGLXGETVIDEOINFONVPROC) (X11_Display *dpy,
int screen, GLXVideoDeviceNV VideoDevice,
unsigned long *pulCounterOutputPbuffer,
unsigned long *pulCounterOutputVideo);
547 #ifdef GLX_GLXEXT_PROTOTYPES
548 int glXGetVideoDeviceNV (X11_Display *dpy,
int screen,
int numVideoDevices, GLXVideoDeviceNV *pVideoDevice);
549 int glXReleaseVideoDeviceNV (X11_Display *dpy,
int screen, GLXVideoDeviceNV VideoDevice);
550 int glXBindVideoImageNV (X11_Display *dpy, GLXVideoDeviceNV VideoDevice, GLXPbuffer pbuf,
int iVideoBuffer);
551 int glXReleaseVideoImageNV (X11_Display *dpy, GLXPbuffer pbuf);
552 int glXSendPbufferToVideoNV (X11_Display *dpy, GLXPbuffer pbuf,
int iBufferType,
unsigned long *pulCounterPbuffer, GLboolean bBlock);
553 int glXGetVideoInfoNV (X11_Display *dpy,
int screen, GLXVideoDeviceNV VideoDevice,
unsigned long *pulCounterOutputPbuffer,
unsigned long *pulCounterOutputVideo);
557 #ifndef GLX_OML_swap_method
558 #define GLX_OML_swap_method 1
559 #define GLX_SWAP_METHOD_OML 0x8060
560 #define GLX_SWAP_EXCHANGE_OML 0x8061
561 #define GLX_SWAP_COPY_OML 0x8062
562 #define GLX_SWAP_UNDEFINED_OML 0x8063
565 #ifndef GLX_OML_sync_control
566 #define GLX_OML_sync_control 1
567 #ifndef GLEXT_64_TYPES_DEFINED
569 #define GLEXT_64_TYPES_DEFINED
572 #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
573 #include <inttypes.h>
574 #elif defined(__sun__) || defined(__digital__)
575 #include <inttypes.h>
576 #if defined(__STDC__)
577 #if defined(__arch64__) || defined(_LP64)
578 typedef long int int64_t;
579 typedef unsigned long int uint64_t;
581 typedef long long int int64_t;
582 typedef unsigned long long int uint64_t;
585 #elif defined( __VMS ) || defined(__sgi)
586 #include <inttypes.h>
587 #elif defined(__SCO__) || defined(__USLC__)
589 #elif defined(__UNIXOS2__) || defined(__SOL64__)
590 typedef long int int32_t;
591 typedef long long int int64_t;
592 typedef unsigned long long int uint64_t;
593 #elif defined(_WIN32) && defined(__GNUC__)
595 #elif defined(_WIN32)
596 typedef __int32 int32_t;
597 typedef __int64 int64_t;
598 typedef unsigned __int64 uint64_t;
601 #include <inttypes.h>
604 typedef Bool ( *PFNGLXGETSYNCVALUESOMLPROC) (X11_Display *dpy, GLXDrawable drawable, int64_t *ust, int64_t *msc, int64_t *sbc);
605 typedef Bool ( *PFNGLXGETMSCRATEOMLPROC) (X11_Display *dpy, GLXDrawable drawable, int32_t *numerator, int32_t *denominator);
606 typedef int64_t ( *PFNGLXSWAPBUFFERSMSCOMLPROC) (X11_Display *dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder);
607 typedef Bool ( *PFNGLXWAITFORMSCOMLPROC) (X11_Display *dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder, int64_t *ust, int64_t *msc, int64_t *sbc);
608 typedef Bool ( *PFNGLXWAITFORSBCOMLPROC) (X11_Display *dpy, GLXDrawable drawable, int64_t target_sbc, int64_t *ust, int64_t *msc, int64_t *sbc);
609 #ifdef GLX_GLXEXT_PROTOTYPES
610 Bool glXGetSyncValuesOML (X11_Display *dpy, GLXDrawable drawable, int64_t *ust, int64_t *msc, int64_t *sbc);
611 Bool glXGetMscRateOML (X11_Display *dpy, GLXDrawable drawable, int32_t *numerator, int32_t *denominator);
612 int64_t glXSwapBuffersMscOML (X11_Display *dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder);
613 Bool glXWaitForMscOML (X11_Display *dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder, int64_t *ust, int64_t *msc, int64_t *sbc);
614 Bool glXWaitForSbcOML (X11_Display *dpy, GLXDrawable drawable, int64_t target_sbc, int64_t *ust, int64_t *msc, int64_t *sbc);
618 #ifndef GLX_SGIS_blended_overlay
619 #define GLX_SGIS_blended_overlay 1
620 #define GLX_BLENDED_RGBA_SGIS 0x8025
623 #ifndef GLX_SGIS_multisample
624 #define GLX_SGIS_multisample 1
625 #define GLX_SAMPLE_BUFFERS_SGIS 100000
626 #define GLX_SAMPLES_SGIS 100001
629 #ifndef GLX_SGIS_shared_multisample
630 #define GLX_SGIS_shared_multisample 1
631 #define GLX_MULTISAMPLE_SUB_RECT_WIDTH_SGIS 0x8026
632 #define GLX_MULTISAMPLE_SUB_RECT_HEIGHT_SGIS 0x8027
635 #ifndef GLX_SGIX_dmbuffer
636 #define GLX_SGIX_dmbuffer 1
637 typedef XID GLXPbufferSGIX;
639 #define GLX_DIGITAL_MEDIA_PBUFFER_SGIX 0x8024
640 typedef Bool ( *PFNGLXASSOCIATEDMPBUFFERSGIXPROC) (X11_Display *dpy, GLXPbufferSGIX pbuffer, DMparams *params, DMbuffer dmbuffer);
641 #ifdef GLX_GLXEXT_PROTOTYPES
642 Bool glXAssociateDMPbufferSGIX (X11_Display *dpy, GLXPbufferSGIX pbuffer, DMparams *params, DMbuffer dmbuffer);
647 #ifndef GLX_SGIX_fbconfig
648 #define GLX_SGIX_fbconfig 1
649 typedef struct __GLXFBConfigRec *GLXFBConfigSGIX;
650 #define GLX_WINDOW_BIT_SGIX 0x00000001
651 #define GLX_PIXMAP_BIT_SGIX 0x00000002
652 #define GLX_RGBA_BIT_SGIX 0x00000001
653 #define GLX_COLOR_INDEX_BIT_SGIX 0x00000002
654 #define GLX_DRAWABLE_TYPE_SGIX 0x8010
655 #define GLX_RENDER_TYPE_SGIX 0x8011
656 #define GLX_X_RENDERABLE_SGIX 0x8012
657 #define GLX_FBCONFIG_ID_SGIX 0x8013
658 #define GLX_RGBA_TYPE_SGIX 0x8014
659 #define GLX_COLOR_INDEX_TYPE_SGIX 0x8015
660 typedef int ( *PFNGLXGETFBCONFIGATTRIBSGIXPROC) (X11_Display *dpy, GLXFBConfigSGIX config,
int attribute,
int *value);
661 typedef GLXFBConfigSGIX *( *PFNGLXCHOOSEFBCONFIGSGIXPROC) (X11_Display *dpy,
int screen,
int *attrib_list,
int *nelements);
662 typedef GLXPixmap ( *PFNGLXCREATEGLXPIXMAPWITHCONFIGSGIXPROC) (X11_Display *dpy, GLXFBConfigSGIX config, Pixmap pixmap);
663 typedef GLXContext ( *PFNGLXCREATECONTEXTWITHCONFIGSGIXPROC) (X11_Display *dpy, GLXFBConfigSGIX config,
int render_type, GLXContext share_list, Bool direct);
664 typedef XVisualInfo *( *PFNGLXGETVISUALFROMFBCONFIGSGIXPROC) (X11_Display *dpy, GLXFBConfigSGIX config);
665 typedef GLXFBConfigSGIX ( *PFNGLXGETFBCONFIGFROMVISUALSGIXPROC) (X11_Display *dpy, XVisualInfo *vis);
666 #ifdef GLX_GLXEXT_PROTOTYPES
667 int glXGetFBConfigAttribSGIX (X11_Display *dpy, GLXFBConfigSGIX config,
int attribute,
int *value);
668 GLXFBConfigSGIX *glXChooseFBConfigSGIX (X11_Display *dpy,
int screen,
int *attrib_list,
int *nelements);
669 GLXPixmap glXCreateGLXPixmapWithConfigSGIX (X11_Display *dpy, GLXFBConfigSGIX config, Pixmap pixmap);
670 GLXContext glXCreateContextWithConfigSGIX (X11_Display *dpy, GLXFBConfigSGIX config,
int render_type, GLXContext share_list, Bool direct);
671 XVisualInfo *glXGetVisualFromFBConfigSGIX (X11_Display *dpy, GLXFBConfigSGIX config);
672 GLXFBConfigSGIX glXGetFBConfigFromVisualSGIX (X11_Display *dpy, XVisualInfo *vis);
676 #ifndef GLX_SGIX_hyperpipe
677 #define GLX_SGIX_hyperpipe 1
685 unsigned int participationType;
690 int srcXOrigin, srcYOrigin, srcWidth, srcHeight;
691 int destXOrigin, destYOrigin, destWidth, destHeight;
695 int XOrigin, YOrigin, maxHeight, maxWidth;
697 #define GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX 80
698 #define GLX_BAD_HYPERPIPE_CONFIG_SGIX 91
699 #define GLX_BAD_HYPERPIPE_SGIX 92
700 #define GLX_HYPERPIPE_DISPLAY_PIPE_SGIX 0x00000001
701 #define GLX_HYPERPIPE_RENDER_PIPE_SGIX 0x00000002
702 #define GLX_PIPE_RECT_SGIX 0x00000001
703 #define GLX_PIPE_RECT_LIMITS_SGIX 0x00000002
704 #define GLX_HYPERPIPE_STEREO_SGIX 0x00000003
705 #define GLX_HYPERPIPE_PIXEL_AVERAGE_SGIX 0x00000004
706 #define GLX_HYPERPIPE_ID_SGIX 0x8030
708 typedef int ( *PFNGLXHYPERPIPECONFIGSGIXPROC) (X11_Display *dpy,
int networkId,
int npipes,
GLXHyperpipeConfigSGIX *cfg,
int *hpId);
709 typedef GLXHyperpipeConfigSGIX *( *PFNGLXQUERYHYPERPIPECONFIGSGIXPROC) (X11_Display *dpy,
int hpId,
int *npipes);
710 typedef int ( *PFNGLXDESTROYHYPERPIPECONFIGSGIXPROC) (X11_Display *dpy,
int hpId);
711 typedef int ( *PFNGLXBINDHYPERPIPESGIXPROC) (X11_Display *dpy,
int hpId);
712 typedef int ( *PFNGLXQUERYHYPERPIPEBESTATTRIBSGIXPROC) (X11_Display *dpy,
int timeSlice,
int attrib,
int size,
void *attribList,
void *returnAttribList);
713 typedef int ( *PFNGLXHYPERPIPEATTRIBSGIXPROC) (X11_Display *dpy,
int timeSlice,
int attrib,
int size,
void *attribList);
714 typedef int ( *PFNGLXQUERYHYPERPIPEATTRIBSGIXPROC) (X11_Display *dpy,
int timeSlice,
int attrib,
int size,
void *returnAttribList);
715 #ifdef GLX_GLXEXT_PROTOTYPES
717 int glXHyperpipeConfigSGIX (X11_Display *dpy,
int networkId,
int npipes,
GLXHyperpipeConfigSGIX *cfg,
int *hpId);
719 int glXDestroyHyperpipeConfigSGIX (X11_Display *dpy,
int hpId);
720 int glXBindHyperpipeSGIX (X11_Display *dpy,
int hpId);
721 int glXQueryHyperpipeBestAttribSGIX (X11_Display *dpy,
int timeSlice,
int attrib,
int size,
void *attribList,
void *returnAttribList);
722 int glXHyperpipeAttribSGIX (X11_Display *dpy,
int timeSlice,
int attrib,
int size,
void *attribList);
723 int glXQueryHyperpipeAttribSGIX (X11_Display *dpy,
int timeSlice,
int attrib,
int size,
void *returnAttribList);
727 #ifndef GLX_SGIX_pbuffer
728 #define GLX_SGIX_pbuffer 1
729 #define GLX_PBUFFER_BIT_SGIX 0x00000004
730 #define GLX_BUFFER_CLOBBER_MASK_SGIX 0x08000000
731 #define GLX_FRONT_LEFT_BUFFER_BIT_SGIX 0x00000001
732 #define GLX_FRONT_RIGHT_BUFFER_BIT_SGIX 0x00000002
733 #define GLX_BACK_LEFT_BUFFER_BIT_SGIX 0x00000004
734 #define GLX_BACK_RIGHT_BUFFER_BIT_SGIX 0x00000008
735 #define GLX_AUX_BUFFERS_BIT_SGIX 0x00000010
736 #define GLX_DEPTH_BUFFER_BIT_SGIX 0x00000020
737 #define GLX_STENCIL_BUFFER_BIT_SGIX 0x00000040
738 #define GLX_ACCUM_BUFFER_BIT_SGIX 0x00000080
739 #define GLX_SAMPLE_BUFFERS_BIT_SGIX 0x00000100
740 #define GLX_MAX_PBUFFER_WIDTH_SGIX 0x8016
741 #define GLX_MAX_PBUFFER_HEIGHT_SGIX 0x8017
742 #define GLX_MAX_PBUFFER_PIXELS_SGIX 0x8018
743 #define GLX_OPTIMAL_PBUFFER_WIDTH_SGIX 0x8019
744 #define GLX_OPTIMAL_PBUFFER_HEIGHT_SGIX 0x801A
745 #define GLX_PRESERVED_CONTENTS_SGIX 0x801B
746 #define GLX_LARGEST_PBUFFER_SGIX 0x801C
747 #define GLX_WIDTH_SGIX 0x801D
748 #define GLX_HEIGHT_SGIX 0x801E
749 #define GLX_EVENT_MASK_SGIX 0x801F
750 #define GLX_DAMAGED_SGIX 0x8020
751 #define GLX_SAVED_SGIX 0x8021
752 #define GLX_WINDOW_SGIX 0x8022
753 #define GLX_PBUFFER_SGIX 0x8023
754 typedef GLXPbufferSGIX ( *PFNGLXCREATEGLXPBUFFERSGIXPROC) (X11_Display *dpy, GLXFBConfigSGIX config,
unsigned int width,
unsigned int height,
int *attrib_list);
755 typedef void ( *PFNGLXDESTROYGLXPBUFFERSGIXPROC) (X11_Display *dpy, GLXPbufferSGIX pbuf);
756 typedef int ( *PFNGLXQUERYGLXPBUFFERSGIXPROC) (X11_Display *dpy, GLXPbufferSGIX pbuf,
int attribute,
unsigned int *value);
757 typedef void ( *PFNGLXSELECTEVENTSGIXPROC) (X11_Display *dpy, GLXDrawable drawable,
unsigned long mask);
758 typedef void ( *PFNGLXGETSELECTEDEVENTSGIXPROC) (X11_Display *dpy, GLXDrawable drawable,
unsigned long *mask);
759 #ifdef GLX_GLXEXT_PROTOTYPES
760 GLXPbufferSGIX glXCreateGLXPbufferSGIX (X11_Display *dpy, GLXFBConfigSGIX config,
unsigned int width,
unsigned int height,
int *attrib_list);
761 void glXDestroyGLXPbufferSGIX (X11_Display *dpy, GLXPbufferSGIX pbuf);
762 int glXQueryGLXPbufferSGIX (X11_Display *dpy, GLXPbufferSGIX pbuf,
int attribute,
unsigned int *value);
763 void glXSelectEventSGIX (X11_Display *dpy, GLXDrawable drawable,
unsigned long mask);
764 void glXGetSelectedEventSGIX (X11_Display *dpy, GLXDrawable drawable,
unsigned long *mask);
768 #ifndef GLX_SGIX_swap_barrier
769 #define GLX_SGIX_swap_barrier 1
770 typedef void ( *PFNGLXBINDSWAPBARRIERSGIXPROC) (X11_Display *dpy, GLXDrawable drawable,
int barrier);
771 typedef Bool ( *PFNGLXQUERYMAXSWAPBARRIERSSGIXPROC) (X11_Display *dpy,
int screen,
int *max);
772 #ifdef GLX_GLXEXT_PROTOTYPES
773 void glXBindSwapBarrierSGIX (X11_Display *dpy, GLXDrawable drawable,
int barrier);
774 Bool glXQueryMaxSwapBarriersSGIX (X11_Display *dpy,
int screen,
int *max);
778 #ifndef GLX_SGIX_swap_group
779 #define GLX_SGIX_swap_group 1
780 typedef void ( *PFNGLXJOINSWAPGROUPSGIXPROC) (X11_Display *dpy, GLXDrawable drawable, GLXDrawable member);
781 #ifdef GLX_GLXEXT_PROTOTYPES
782 void glXJoinSwapGroupSGIX (X11_Display *dpy, GLXDrawable drawable, GLXDrawable member);
786 #ifndef GLX_SGIX_video_resize
787 #define GLX_SGIX_video_resize 1
788 #define GLX_SYNC_FRAME_SGIX 0x00000000
789 #define GLX_SYNC_SWAP_SGIX 0x00000001
790 typedef int ( *PFNGLXBINDCHANNELTOWINDOWSGIXPROC) (X11_Display *display,
int screen,
int channel, X11_Window window);
791 typedef int ( *PFNGLXCHANNELRECTSGIXPROC) (X11_Display *display,
int screen,
int channel,
int x,
int y,
int w,
int h);
792 typedef int ( *PFNGLXQUERYCHANNELRECTSGIXPROC) (X11_Display *display,
int screen,
int channel,
int *dx,
int *dy,
int *dw,
int *dh);
793 typedef int ( *PFNGLXQUERYCHANNELDELTASSGIXPROC) (X11_Display *display,
int screen,
int channel,
int *x,
int *y,
int *w,
int *h);
794 typedef int ( *PFNGLXCHANNELRECTSYNCSGIXPROC) (X11_Display *display,
int screen,
int channel, GLenum synctype);
795 #ifdef GLX_GLXEXT_PROTOTYPES
796 int glXBindChannelToWindowSGIX (X11_Display *display,
int screen,
int channel, X11_Window window);
797 int glXChannelRectSGIX (X11_Display *display,
int screen,
int channel,
int x,
int y,
int w,
int h);
798 int glXQueryChannelRectSGIX (X11_Display *display,
int screen,
int channel,
int *dx,
int *dy,
int *dw,
int *dh);
799 int glXQueryChannelDeltasSGIX (X11_Display *display,
int screen,
int channel,
int *x,
int *y,
int *w,
int *h);
800 int glXChannelRectSyncSGIX (X11_Display *display,
int screen,
int channel, GLenum synctype);
804 #ifndef GLX_SGIX_video_source
805 #define GLX_SGIX_video_source 1
806 typedef XID GLXVideoSourceSGIX;
808 typedef GLXVideoSourceSGIX ( *PFNGLXCREATEGLXVIDEOSOURCESGIXPROC) (X11_Display *display,
int screen, VLServer server, VLPath path,
int nodeClass, VLNode drainNode);
809 typedef void ( *PFNGLXDESTROYGLXVIDEOSOURCESGIXPROC) (X11_Display *dpy, GLXVideoSourceSGIX glxvideosource);
810 #ifdef GLX_GLXEXT_PROTOTYPES
811 GLXVideoSourceSGIX glXCreateGLXVideoSourceSGIX (X11_Display *display,
int screen, VLServer server, VLPath path,
int nodeClass, VLNode drainNode);
812 void glXDestroyGLXVideoSourceSGIX (X11_Display *dpy, GLXVideoSourceSGIX glxvideosource);
817 #ifndef GLX_SGIX_visual_select_group
818 #define GLX_SGIX_visual_select_group 1
819 #define GLX_VISUAL_SELECT_GROUP_SGIX 0x8028
822 #ifndef GLX_SGI_cushion
823 #define GLX_SGI_cushion 1
824 typedef void ( *PFNGLXCUSHIONSGIPROC) (X11_Display *dpy, X11_Window window,
float cushion);
825 #ifdef GLX_GLXEXT_PROTOTYPES
826 void glXCushionSGI (X11_Display *dpy, X11_Window window,
float cushion);
830 #ifndef GLX_SGI_make_current_read
831 #define GLX_SGI_make_current_read 1
832 typedef Bool ( *PFNGLXMAKECURRENTREADSGIPROC) (X11_Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
833 typedef GLXDrawable ( *PFNGLXGETCURRENTREADDRAWABLESGIPROC) (void);
834 #ifdef GLX_GLXEXT_PROTOTYPES
835 Bool glXMakeCurrentReadSGI (X11_Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
836 GLXDrawable glXGetCurrentReadDrawableSGI (
void);
840 #ifndef GLX_SGI_swap_control
841 #define GLX_SGI_swap_control 1
842 typedef int ( *PFNGLXSWAPINTERVALSGIPROC) (
int interval);
843 #ifdef GLX_GLXEXT_PROTOTYPES
844 int glXSwapIntervalSGI (
int interval);
848 #ifndef GLX_SGI_video_sync
849 #define GLX_SGI_video_sync 1
850 typedef int ( *PFNGLXGETVIDEOSYNCSGIPROC) (
unsigned int *count);
851 typedef int ( *PFNGLXWAITVIDEOSYNCSGIPROC) (
int divisor,
int remainder,
unsigned int *count);
852 #ifdef GLX_GLXEXT_PROTOTYPES
853 int glXGetVideoSyncSGI (
unsigned int *count);
854 int glXWaitVideoSyncSGI (
int divisor,
int remainder,
unsigned int *count);
858 #ifndef GLX_SUN_get_transparent_index
859 #define GLX_SUN_get_transparent_index 1
860 typedef Status ( *PFNGLXGETTRANSPARENTINDEXSUNPROC) (X11_Display *dpy, X11_Window overlay, X11_Window underlay,
long *pTransparentIndex);
861 #ifdef GLX_GLXEXT_PROTOTYPES
862 Status glXGetTransparentIndexSUN (X11_Display *dpy, X11_Window overlay, X11_Window underlay,
long *pTransparentIndex);