VirtualBox

source: vbox/trunk/src/VBox/Devices/Graphics/vmsvga_glext/glxext.h@ 82968

Last change on this file since 82968 was 76565, checked in by vboxsync, 6 years ago

Devices: Use VBOX_INCLUDED_SRC_ as header guard prefix with scm.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 43.8 KB
Line 
1
2#ifndef __glxext_h_
3#define __glxext_h_
4#ifndef RT_WITHOUT_PRAGMA_ONCE
5# pragma once
6#endif
7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
12/*
13** THIS FILE IS OBSOLETE. Please migrate away from using the
14** ".spec" files and the headers generated from them to the
15** XML Registry and headers generated from that. See
16** http://www.opengl.org/registry/api/README.txt
17** for more information.
18**
19**
20** Copyright (c) 2007-2013 The Khronos Group Inc.
21**
22** Permission is hereby granted, free of charge, to any person obtaining a
23** copy of this software and/or associated documentation files (the
24** "Materials"), to deal in the Materials without restriction, including
25** without limitation the rights to use, copy, modify, merge, publish,
26** distribute, sublicense, and/or sell copies of the Materials, and to
27** permit persons to whom the Materials are furnished to do so, subject to
28** the following conditions:
29**
30** The above copyright notice and this permission notice shall be included
31** in all copies or substantial portions of the Materials.
32**
33** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
34** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
35** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
36** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
37** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
38** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
39** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
40*/
41
42/* Function declaration macros - to move into glplatform.h */
43
44#if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__)
45#define WIN32_LEAN_AND_MEAN 1
46#include <windows.h>
47#endif
48
49#ifndef APIENTRY
50#define APIENTRY
51#endif
52#ifndef APIENTRYP
53#define APIENTRYP APIENTRY *
54#endif
55#ifndef GLAPI
56#define GLAPI extern
57#endif
58
59/*************************************************************/
60
61/* Header file version number, required by OpenGL ABI for Linux */
62/* glxext.h last updated 2013/06/10 */
63/* Current version at http://www.opengl.org/registry/ */
64#define GLX_GLXEXT_VERSION 36
65
66#ifndef GLX_VERSION_1_3
67#define GLX_WINDOW_BIT 0x00000001
68#define GLX_PIXMAP_BIT 0x00000002
69#define GLX_PBUFFER_BIT 0x00000004
70#define GLX_RGBA_BIT 0x00000001
71#define GLX_COLOR_INDEX_BIT 0x00000002
72#define GLX_PBUFFER_CLOBBER_MASK 0x08000000
73#define GLX_FRONT_LEFT_BUFFER_BIT 0x00000001
74#define GLX_FRONT_RIGHT_BUFFER_BIT 0x00000002
75#define GLX_BACK_LEFT_BUFFER_BIT 0x00000004
76#define GLX_BACK_RIGHT_BUFFER_BIT 0x00000008
77#define GLX_AUX_BUFFERS_BIT 0x00000010
78#define GLX_DEPTH_BUFFER_BIT 0x00000020
79#define GLX_STENCIL_BUFFER_BIT 0x00000040
80#define GLX_ACCUM_BUFFER_BIT 0x00000080
81#define GLX_CONFIG_CAVEAT 0x20
82#define GLX_X_VISUAL_TYPE 0x22
83#define GLX_TRANSPARENT_TYPE 0x23
84#define GLX_TRANSPARENT_INDEX_VALUE 0x24
85#define GLX_TRANSPARENT_RED_VALUE 0x25
86#define GLX_TRANSPARENT_GREEN_VALUE 0x26
87#define GLX_TRANSPARENT_BLUE_VALUE 0x27
88#define GLX_TRANSPARENT_ALPHA_VALUE 0x28
89#define GLX_DONT_CARE 0xFFFFFFFF
90#define GLX_NONE 0x8000
91#define GLX_SLOW_CONFIG 0x8001
92#define GLX_TRUE_COLOR 0x8002
93#define GLX_DIRECT_COLOR 0x8003
94#define GLX_PSEUDO_COLOR 0x8004
95#define GLX_STATIC_COLOR 0x8005
96#define GLX_GRAY_SCALE 0x8006
97#define GLX_STATIC_GRAY 0x8007
98#define GLX_TRANSPARENT_RGB 0x8008
99#define GLX_TRANSPARENT_INDEX 0x8009
100#define GLX_VISUAL_ID 0x800B
101#define GLX_SCREEN 0x800C
102#define GLX_NON_CONFORMANT_CONFIG 0x800D
103#define GLX_DRAWABLE_TYPE 0x8010
104#define GLX_RENDER_TYPE 0x8011
105#define GLX_X_RENDERABLE 0x8012
106#define GLX_FBCONFIG_ID 0x8013
107#define GLX_RGBA_TYPE 0x8014
108#define GLX_COLOR_INDEX_TYPE 0x8015
109#define GLX_MAX_PBUFFER_WIDTH 0x8016
110#define GLX_MAX_PBUFFER_HEIGHT 0x8017
111#define GLX_MAX_PBUFFER_PIXELS 0x8018
112#define GLX_PRESERVED_CONTENTS 0x801B
113#define GLX_LARGEST_PBUFFER 0x801C
114#define GLX_WIDTH 0x801D
115#define GLX_HEIGHT 0x801E
116#define GLX_EVENT_MASK 0x801F
117#define GLX_DAMAGED 0x8020
118#define GLX_SAVED 0x8021
119#define GLX_WINDOW 0x8022
120#define GLX_PBUFFER 0x8023
121#define GLX_PBUFFER_HEIGHT 0x8040
122#define GLX_PBUFFER_WIDTH 0x8041
123#endif
124
125#ifndef GLX_VERSION_1_4
126#define GLX_SAMPLE_BUFFERS 100000
127#define GLX_SAMPLES 100001
128#endif
129
130#ifndef GLX_ARB_get_proc_address
131#endif
132
133#ifndef GLX_ARB_multisample
134#define GLX_SAMPLE_BUFFERS_ARB 100000
135#define GLX_SAMPLES_ARB 100001
136#endif
137
138#ifndef GLX_ARB_vertex_buffer_object
139#define GLX_CONTEXT_ALLOW_BUFFER_BYTE_ORDER_MISMATCH_ARB 0x2095
140#endif
141
142#ifndef GLX_ARB_fbconfig_float
143#define GLX_RGBA_FLOAT_TYPE_ARB 0x20B9
144#define GLX_RGBA_FLOAT_BIT_ARB 0x00000004
145#endif
146
147#ifndef GLX_ARB_framebuffer_sRGB
148#define GLX_FRAMEBUFFER_SRGB_CAPABLE_ARB 0x20B2
149#endif
150
151#ifndef GLX_ARB_create_context
152#define GLX_CONTEXT_DEBUG_BIT_ARB 0x00000001
153#define GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x00000002
154#define GLX_CONTEXT_MAJOR_VERSION_ARB 0x2091
155#define GLX_CONTEXT_MINOR_VERSION_ARB 0x2092
156#define GLX_CONTEXT_FLAGS_ARB 0x2094
157#endif
158
159#ifndef GLX_ARB_create_context_profile
160#define GLX_CONTEXT_CORE_PROFILE_BIT_ARB 0x00000001
161#define GLX_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB 0x00000002
162#define GLX_CONTEXT_PROFILE_MASK_ARB 0x9126
163#endif
164
165#ifndef GLX_ARB_create_context_robustness
166#define GLX_CONTEXT_ROBUST_ACCESS_BIT_ARB 0x00000004
167#define GLX_LOSE_CONTEXT_ON_RESET_ARB 0x8252
168#define GLX_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB 0x8256
169#define GLX_NO_RESET_NOTIFICATION_ARB 0x8261
170#endif
171
172#ifndef GLX_SGIS_multisample
173#define GLX_SAMPLE_BUFFERS_SGIS 100000
174#define GLX_SAMPLES_SGIS 100001
175#endif
176
177#ifndef GLX_EXT_visual_info
178#define GLX_X_VISUAL_TYPE_EXT 0x22
179#define GLX_TRANSPARENT_TYPE_EXT 0x23
180#define GLX_TRANSPARENT_INDEX_VALUE_EXT 0x24
181#define GLX_TRANSPARENT_RED_VALUE_EXT 0x25
182#define GLX_TRANSPARENT_GREEN_VALUE_EXT 0x26
183#define GLX_TRANSPARENT_BLUE_VALUE_EXT 0x27
184#define GLX_TRANSPARENT_ALPHA_VALUE_EXT 0x28
185#define GLX_NONE_EXT 0x8000
186#define GLX_TRUE_COLOR_EXT 0x8002
187#define GLX_DIRECT_COLOR_EXT 0x8003
188#define GLX_PSEUDO_COLOR_EXT 0x8004
189#define GLX_STATIC_COLOR_EXT 0x8005
190#define GLX_GRAY_SCALE_EXT 0x8006
191#define GLX_STATIC_GRAY_EXT 0x8007
192#define GLX_TRANSPARENT_RGB_EXT 0x8008
193#define GLX_TRANSPARENT_INDEX_EXT 0x8009
194#endif
195
196#ifndef GLX_SGI_swap_control
197#endif
198
199#ifndef GLX_SGI_video_sync
200#endif
201
202#ifndef GLX_SGI_make_current_read
203#endif
204
205#ifndef GLX_SGIX_video_source
206#endif
207
208#ifndef GLX_EXT_visual_rating
209#define GLX_VISUAL_CAVEAT_EXT 0x20
210#define GLX_SLOW_VISUAL_EXT 0x8001
211#define GLX_NON_CONFORMANT_VISUAL_EXT 0x800D
212/* reuse GLX_NONE_EXT */
213#endif
214
215#ifndef GLX_EXT_import_context
216#define GLX_SHARE_CONTEXT_EXT 0x800A
217#define GLX_VISUAL_ID_EXT 0x800B
218#define GLX_SCREEN_EXT 0x800C
219#endif
220
221#ifndef GLX_SGIX_fbconfig
222#define GLX_WINDOW_BIT_SGIX 0x00000001
223#define GLX_PIXMAP_BIT_SGIX 0x00000002
224#define GLX_RGBA_BIT_SGIX 0x00000001
225#define GLX_COLOR_INDEX_BIT_SGIX 0x00000002
226#define GLX_DRAWABLE_TYPE_SGIX 0x8010
227#define GLX_RENDER_TYPE_SGIX 0x8011
228#define GLX_X_RENDERABLE_SGIX 0x8012
229#define GLX_FBCONFIG_ID_SGIX 0x8013
230#define GLX_RGBA_TYPE_SGIX 0x8014
231#define GLX_COLOR_INDEX_TYPE_SGIX 0x8015
232/* reuse GLX_SCREEN_EXT */
233#endif
234
235#ifndef GLX_SGIX_pbuffer
236#define GLX_PBUFFER_BIT_SGIX 0x00000004
237#define GLX_BUFFER_CLOBBER_MASK_SGIX 0x08000000
238#define GLX_FRONT_LEFT_BUFFER_BIT_SGIX 0x00000001
239#define GLX_FRONT_RIGHT_BUFFER_BIT_SGIX 0x00000002
240#define GLX_BACK_LEFT_BUFFER_BIT_SGIX 0x00000004
241#define GLX_BACK_RIGHT_BUFFER_BIT_SGIX 0x00000008
242#define GLX_AUX_BUFFERS_BIT_SGIX 0x00000010
243#define GLX_DEPTH_BUFFER_BIT_SGIX 0x00000020
244#define GLX_STENCIL_BUFFER_BIT_SGIX 0x00000040
245#define GLX_ACCUM_BUFFER_BIT_SGIX 0x00000080
246#define GLX_SAMPLE_BUFFERS_BIT_SGIX 0x00000100
247#define GLX_MAX_PBUFFER_WIDTH_SGIX 0x8016
248#define GLX_MAX_PBUFFER_HEIGHT_SGIX 0x8017
249#define GLX_MAX_PBUFFER_PIXELS_SGIX 0x8018
250#define GLX_OPTIMAL_PBUFFER_WIDTH_SGIX 0x8019
251#define GLX_OPTIMAL_PBUFFER_HEIGHT_SGIX 0x801A
252#define GLX_PRESERVED_CONTENTS_SGIX 0x801B
253#define GLX_LARGEST_PBUFFER_SGIX 0x801C
254#define GLX_WIDTH_SGIX 0x801D
255#define GLX_HEIGHT_SGIX 0x801E
256#define GLX_EVENT_MASK_SGIX 0x801F
257#define GLX_DAMAGED_SGIX 0x8020
258#define GLX_SAVED_SGIX 0x8021
259#define GLX_WINDOW_SGIX 0x8022
260#define GLX_PBUFFER_SGIX 0x8023
261#endif
262
263#ifndef GLX_SGI_cushion
264#endif
265
266#ifndef GLX_SGIX_video_resize
267#define GLX_SYNC_FRAME_SGIX 0x00000000
268#define GLX_SYNC_SWAP_SGIX 0x00000001
269#endif
270
271#ifndef GLX_SGIX_dmbuffer
272#define GLX_DIGITAL_MEDIA_PBUFFER_SGIX 0x8024
273#endif
274
275#ifndef GLX_SGIX_swap_group
276#endif
277
278#ifndef GLX_SGIX_swap_barrier
279#endif
280
281#ifndef GLX_SGIS_blended_overlay
282#define GLX_BLENDED_RGBA_SGIS 0x8025
283#endif
284
285#ifndef GLX_SGIS_shared_multisample
286#define GLX_MULTISAMPLE_SUB_RECT_WIDTH_SGIS 0x8026
287#define GLX_MULTISAMPLE_SUB_RECT_HEIGHT_SGIS 0x8027
288#endif
289
290#ifndef GLX_SUN_get_transparent_index
291#endif
292
293#ifndef GLX_3DFX_multisample
294#define GLX_SAMPLE_BUFFERS_3DFX 0x8050
295#define GLX_SAMPLES_3DFX 0x8051
296#endif
297
298#ifndef GLX_MESA_copy_sub_buffer
299#endif
300
301#ifndef GLX_MESA_pixmap_colormap
302#endif
303
304#ifndef GLX_MESA_release_buffers
305#endif
306
307#ifndef GLX_MESA_set_3dfx_mode
308#define GLX_3DFX_WINDOW_MODE_MESA 0x1
309#define GLX_3DFX_FULLSCREEN_MODE_MESA 0x2
310#endif
311
312#ifndef GLX_SGIX_visual_select_group
313#define GLX_VISUAL_SELECT_GROUP_SGIX 0x8028
314#endif
315
316#ifndef GLX_OML_swap_method
317#define GLX_SWAP_METHOD_OML 0x8060
318#define GLX_SWAP_EXCHANGE_OML 0x8061
319#define GLX_SWAP_COPY_OML 0x8062
320#define GLX_SWAP_UNDEFINED_OML 0x8063
321#endif
322
323#ifndef GLX_OML_sync_control
324#endif
325
326#ifndef GLX_NV_float_buffer
327#define GLX_FLOAT_COMPONENTS_NV 0x20B0
328#endif
329
330#ifndef GLX_SGIX_hyperpipe
331#define GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX 80
332#define GLX_BAD_HYPERPIPE_CONFIG_SGIX 91
333#define GLX_BAD_HYPERPIPE_SGIX 92
334#define GLX_HYPERPIPE_DISPLAY_PIPE_SGIX 0x00000001
335#define GLX_HYPERPIPE_RENDER_PIPE_SGIX 0x00000002
336#define GLX_PIPE_RECT_SGIX 0x00000001
337#define GLX_PIPE_RECT_LIMITS_SGIX 0x00000002
338#define GLX_HYPERPIPE_STEREO_SGIX 0x00000003
339#define GLX_HYPERPIPE_PIXEL_AVERAGE_SGIX 0x00000004
340#define GLX_HYPERPIPE_ID_SGIX 0x8030
341#endif
342
343#ifndef GLX_MESA_agp_offset
344#endif
345
346#ifndef GLX_EXT_fbconfig_packed_float
347#define GLX_RGBA_UNSIGNED_FLOAT_TYPE_EXT 0x20B1
348#define GLX_RGBA_UNSIGNED_FLOAT_BIT_EXT 0x00000008
349#endif
350
351#ifndef GLX_EXT_framebuffer_sRGB
352#define GLX_FRAMEBUFFER_SRGB_CAPABLE_EXT 0x20B2
353#endif
354
355#ifndef GLX_EXT_texture_from_pixmap
356#define GLX_TEXTURE_1D_BIT_EXT 0x00000001
357#define GLX_TEXTURE_2D_BIT_EXT 0x00000002
358#define GLX_TEXTURE_RECTANGLE_BIT_EXT 0x00000004
359#define GLX_BIND_TO_TEXTURE_RGB_EXT 0x20D0
360#define GLX_BIND_TO_TEXTURE_RGBA_EXT 0x20D1
361#define GLX_BIND_TO_MIPMAP_TEXTURE_EXT 0x20D2
362#define GLX_BIND_TO_TEXTURE_TARGETS_EXT 0x20D3
363#define GLX_Y_INVERTED_EXT 0x20D4
364#define GLX_TEXTURE_FORMAT_EXT 0x20D5
365#define GLX_TEXTURE_TARGET_EXT 0x20D6
366#define GLX_MIPMAP_TEXTURE_EXT 0x20D7
367#define GLX_TEXTURE_FORMAT_NONE_EXT 0x20D8
368#define GLX_TEXTURE_FORMAT_RGB_EXT 0x20D9
369#define GLX_TEXTURE_FORMAT_RGBA_EXT 0x20DA
370#define GLX_TEXTURE_1D_EXT 0x20DB
371#define GLX_TEXTURE_2D_EXT 0x20DC
372#define GLX_TEXTURE_RECTANGLE_EXT 0x20DD
373#define GLX_FRONT_LEFT_EXT 0x20DE
374#define GLX_FRONT_RIGHT_EXT 0x20DF
375#define GLX_BACK_LEFT_EXT 0x20E0
376#define GLX_BACK_RIGHT_EXT 0x20E1
377#define GLX_FRONT_EXT GLX_FRONT_LEFT_EXT
378#define GLX_BACK_EXT GLX_BACK_LEFT_EXT
379#define GLX_AUX0_EXT 0x20E2
380#define GLX_AUX1_EXT 0x20E3
381#define GLX_AUX2_EXT 0x20E4
382#define GLX_AUX3_EXT 0x20E5
383#define GLX_AUX4_EXT 0x20E6
384#define GLX_AUX5_EXT 0x20E7
385#define GLX_AUX6_EXT 0x20E8
386#define GLX_AUX7_EXT 0x20E9
387#define GLX_AUX8_EXT 0x20EA
388#define GLX_AUX9_EXT 0x20EB
389#endif
390
391#ifndef GLX_NV_present_video
392#define GLX_NUM_VIDEO_SLOTS_NV 0x20F0
393#endif
394
395#ifndef GLX_NV_video_out
396#define GLX_VIDEO_OUT_COLOR_NV 0x20C3
397#define GLX_VIDEO_OUT_ALPHA_NV 0x20C4
398#define GLX_VIDEO_OUT_DEPTH_NV 0x20C5
399#define GLX_VIDEO_OUT_COLOR_AND_ALPHA_NV 0x20C6
400#define GLX_VIDEO_OUT_COLOR_AND_DEPTH_NV 0x20C7
401#define GLX_VIDEO_OUT_FRAME_NV 0x20C8
402#define GLX_VIDEO_OUT_FIELD_1_NV 0x20C9
403#define GLX_VIDEO_OUT_FIELD_2_NV 0x20CA
404#define GLX_VIDEO_OUT_STACKED_FIELDS_1_2_NV 0x20CB
405#define GLX_VIDEO_OUT_STACKED_FIELDS_2_1_NV 0x20CC
406#endif
407
408#ifndef GLX_NV_swap_group
409#endif
410
411#ifndef GLX_NV_video_capture
412#define GLX_DEVICE_ID_NV 0x20CD
413#define GLX_UNIQUE_ID_NV 0x20CE
414#define GLX_NUM_VIDEO_CAPTURE_SLOTS_NV 0x20CF
415#endif
416
417#ifndef GLX_EXT_swap_control
418#define GLX_SWAP_INTERVAL_EXT 0x20F1
419#define GLX_MAX_SWAP_INTERVAL_EXT 0x20F2
420#endif
421
422#ifndef GLX_NV_copy_image
423#endif
424
425#ifndef GLX_INTEL_swap_event
426#define GLX_BUFFER_SWAP_COMPLETE_INTEL_MASK 0x04000000
427#define GLX_EXCHANGE_COMPLETE_INTEL 0x8180
428#define GLX_COPY_COMPLETE_INTEL 0x8181
429#define GLX_FLIP_COMPLETE_INTEL 0x8182
430#endif
431
432#ifndef GLX_NV_multisample_coverage
433#define GLX_COVERAGE_SAMPLES_NV 100001
434#define GLX_COLOR_SAMPLES_NV 0x20B3
435#endif
436
437#ifndef GLX_AMD_gpu_association
438#define GLX_GPU_VENDOR_AMD 0x1F00
439#define GLX_GPU_RENDERER_STRING_AMD 0x1F01
440#define GLX_GPU_OPENGL_VERSION_STRING_AMD 0x1F02
441#define GLX_GPU_FASTEST_TARGET_GPUS_AMD 0x21A2
442#define GLX_GPU_RAM_AMD 0x21A3
443#define GLX_GPU_CLOCK_AMD 0x21A4
444#define GLX_GPU_NUM_PIPES_AMD 0x21A5
445#define GLX_GPU_NUM_SIMD_AMD 0x21A6
446#define GLX_GPU_NUM_RB_AMD 0x21A7
447#define GLX_GPU_NUM_SPI_AMD 0x21A8
448#endif
449
450#ifndef GLX_EXT_create_context_es2_profile
451#define GLX_CONTEXT_ES2_PROFILE_BIT_EXT 0x00000004
452#endif
453
454#ifndef GLX_EXT_create_context_es_profile
455#define GLX_CONTEXT_ES_PROFILE_BIT_EXT 0x00000004
456#endif
457
458#ifndef GLX_EXT_swap_control_tear
459#define GLX_LATE_SWAPS_TEAR_EXT 0x20F3
460#endif
461
462#ifndef GLX_EXT_buffer_age
463#define GLX_BACK_BUFFER_AGE_EXT 0x20F4
464#endif
465
466
467/*************************************************************/
468
469#ifndef GLX_ARB_get_proc_address
470typedef void (*__GLXextFuncPtr)(void);
471#endif
472
473#ifndef GLX_SGIX_video_source
474typedef XID GLXVideoSourceSGIX;
475#endif
476
477#ifndef GLX_SGIX_fbconfig
478typedef XID GLXFBConfigIDSGIX;
479typedef struct __GLXFBConfigRec *GLXFBConfigSGIX;
480#endif
481
482#ifndef GLX_SGIX_pbuffer
483typedef XID GLXPbufferSGIX;
484typedef struct {
485 int type;
486 unsigned long serial; /* # of last request processed by server */
487 Bool send_event; /* true if this came for SendEvent request */
488 Display *display; /* display the event was read from */
489 GLXDrawable drawable; /* i.d. of Drawable */
490 int event_type; /* GLX_DAMAGED_SGIX or GLX_SAVED_SGIX */
491 int draw_type; /* GLX_WINDOW_SGIX or GLX_PBUFFER_SGIX */
492 unsigned int mask; /* mask indicating which buffers are affected*/
493 int x, y;
494 int width, height;
495 int count; /* if nonzero, at least this many more */
496} GLXBufferClobberEventSGIX;
497#endif
498
499#ifndef GLX_NV_video_output
500typedef unsigned int GLXVideoDeviceNV;
501#endif
502
503#ifndef GLX_NV_video_capture
504typedef XID GLXVideoCaptureDeviceNV;
505#endif
506
507#ifndef GLEXT_64_TYPES_DEFINED
508/* This code block is duplicated in glext.h, so must be protected */
509#define GLEXT_64_TYPES_DEFINED
510/* Define int32_t, int64_t, and uint64_t types for UST/MSC */
511/* (as used in the GLX_OML_sync_control extension). */
512#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
513#include <inttypes.h>
514#elif defined(__sun__) || defined(__digital__)
515#include <inttypes.h>
516#if defined(__STDC__)
517#if defined(__arch64__) || defined(_LP64)
518typedef long int int64_t;
519typedef unsigned long int uint64_t;
520#else
521typedef long long int int64_t;
522typedef unsigned long long int uint64_t;
523#endif /* __arch64__ */
524#endif /* __STDC__ */
525#elif defined( __VMS ) || defined(__sgi)
526#include <inttypes.h>
527#elif defined(__SCO__) || defined(__USLC__)
528#include <stdint.h>
529#elif defined(__UNIXOS2__) || defined(__SOL64__)
530typedef long int int32_t;
531typedef long long int int64_t;
532typedef unsigned long long int uint64_t;
533#elif defined(_WIN32) && defined(__GNUC__)
534#include <stdint.h>
535#elif defined(_WIN32)
536typedef __int32 int32_t;
537typedef __int64 int64_t;
538typedef unsigned __int64 uint64_t;
539#else
540#include <inttypes.h> /* Fallback option */
541#endif
542#endif
543
544#ifndef GLX_VERSION_1_3
545#define GLX_VERSION_1_3 1
546#ifdef GLX_GLXEXT_PROTOTYPES
547extern GLXFBConfig * glXGetFBConfigs (Display *dpy, int screen, int *nelements);
548extern GLXFBConfig * glXChooseFBConfig (Display *dpy, int screen, const int *attrib_list, int *nelements);
549extern int glXGetFBConfigAttrib (Display *dpy, GLXFBConfig config, int attribute, int *value);
550extern XVisualInfo * glXGetVisualFromFBConfig (Display *dpy, GLXFBConfig config);
551extern GLXWindow glXCreateWindow (Display *dpy, GLXFBConfig config, Window win, const int *attrib_list);
552extern void glXDestroyWindow (Display *dpy, GLXWindow win);
553extern GLXPixmap glXCreatePixmap (Display *dpy, GLXFBConfig config, Pixmap pixmap, const int *attrib_list);
554extern void glXDestroyPixmap (Display *dpy, GLXPixmap pixmap);
555extern GLXPbuffer glXCreatePbuffer (Display *dpy, GLXFBConfig config, const int *attrib_list);
556extern void glXDestroyPbuffer (Display *dpy, GLXPbuffer pbuf);
557extern void glXQueryDrawable (Display *dpy, GLXDrawable draw, int attribute, unsigned int *value);
558extern GLXContext glXCreateNewContext (Display *dpy, GLXFBConfig config, int render_type, GLXContext share_list, Bool direct);
559extern Bool glXMakeContextCurrent (Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
560extern GLXDrawable glXGetCurrentReadDrawable (void);
561extern Display * glXGetCurrentDisplay (void);
562extern int glXQueryContext (Display *dpy, GLXContext ctx, int attribute, int *value);
563extern void glXSelectEvent (Display *dpy, GLXDrawable draw, unsigned long event_mask);
564extern void glXGetSelectedEvent (Display *dpy, GLXDrawable draw, unsigned long *event_mask);
565#endif /* GLX_GLXEXT_PROTOTYPES */
566typedef GLXFBConfig * ( * PFNGLXGETFBCONFIGSPROC) (Display *dpy, int screen, int *nelements);
567typedef GLXFBConfig * ( * PFNGLXCHOOSEFBCONFIGPROC) (Display *dpy, int screen, const int *attrib_list, int *nelements);
568typedef int ( * PFNGLXGETFBCONFIGATTRIBPROC) (Display *dpy, GLXFBConfig config, int attribute, int *value);
569typedef XVisualInfo * ( * PFNGLXGETVISUALFROMFBCONFIGPROC) (Display *dpy, GLXFBConfig config);
570typedef GLXWindow ( * PFNGLXCREATEWINDOWPROC) (Display *dpy, GLXFBConfig config, Window win, const int *attrib_list);
571typedef void ( * PFNGLXDESTROYWINDOWPROC) (Display *dpy, GLXWindow win);
572typedef GLXPixmap ( * PFNGLXCREATEPIXMAPPROC) (Display *dpy, GLXFBConfig config, Pixmap pixmap, const int *attrib_list);
573typedef void ( * PFNGLXDESTROYPIXMAPPROC) (Display *dpy, GLXPixmap pixmap);
574typedef GLXPbuffer ( * PFNGLXCREATEPBUFFERPROC) (Display *dpy, GLXFBConfig config, const int *attrib_list);
575typedef void ( * PFNGLXDESTROYPBUFFERPROC) (Display *dpy, GLXPbuffer pbuf);
576typedef void ( * PFNGLXQUERYDRAWABLEPROC) (Display *dpy, GLXDrawable draw, int attribute, unsigned int *value);
577typedef GLXContext ( * PFNGLXCREATENEWCONTEXTPROC) (Display *dpy, GLXFBConfig config, int render_type, GLXContext share_list, Bool direct);
578typedef Bool ( * PFNGLXMAKECONTEXTCURRENTPROC) (Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
579typedef GLXDrawable ( * PFNGLXGETCURRENTREADDRAWABLEPROC) (void);
580typedef Display * ( * PFNGLXGETCURRENTDISPLAYPROC) (void);
581typedef int ( * PFNGLXQUERYCONTEXTPROC) (Display *dpy, GLXContext ctx, int attribute, int *value);
582typedef void ( * PFNGLXSELECTEVENTPROC) (Display *dpy, GLXDrawable draw, unsigned long event_mask);
583typedef void ( * PFNGLXGETSELECTEDEVENTPROC) (Display *dpy, GLXDrawable draw, unsigned long *event_mask);
584#endif
585
586#ifndef GLX_VERSION_1_4
587#define GLX_VERSION_1_4 1
588#ifdef GLX_GLXEXT_PROTOTYPES
589extern __GLXextFuncPtr glXGetProcAddress (const GLubyte *procName);
590#endif /* GLX_GLXEXT_PROTOTYPES */
591typedef __GLXextFuncPtr ( * PFNGLXGETPROCADDRESSPROC) (const GLubyte *procName);
592#endif
593
594#ifndef GLX_ARB_get_proc_address
595#define GLX_ARB_get_proc_address 1
596#ifdef GLX_GLXEXT_PROTOTYPES
597extern __GLXextFuncPtr glXGetProcAddressARB (const GLubyte *procName);
598#endif /* GLX_GLXEXT_PROTOTYPES */
599typedef __GLXextFuncPtr ( * PFNGLXGETPROCADDRESSARBPROC) (const GLubyte *procName);
600#endif
601
602#ifndef GLX_ARB_multisample
603#define GLX_ARB_multisample 1
604#endif
605
606#ifndef GLX_ARB_fbconfig_float
607#define GLX_ARB_fbconfig_float 1
608#endif
609
610#ifndef GLX_ARB_framebuffer_sRGB
611#define GLX_ARB_framebuffer_sRGB 1
612#endif
613
614#ifndef GLX_ARB_create_context
615#define GLX_ARB_create_context 1
616#ifdef GLX_GLXEXT_PROTOTYPES
617extern GLXContext glXCreateContextAttribsARB (Display *dpy, GLXFBConfig config, GLXContext share_context, Bool direct, const int *attrib_list);
618#endif /* GLX_GLXEXT_PROTOTYPES */
619typedef GLXContext ( * PFNGLXCREATECONTEXTATTRIBSARBPROC) (Display *dpy, GLXFBConfig config, GLXContext share_context, Bool direct, const int *attrib_list);
620#endif
621
622#ifndef GLX_ARB_create_context_profile
623#define GLX_ARB_create_context_profile 1
624#endif
625
626#ifndef GLX_ARB_create_context_robustness
627#define GLX_ARB_create_context_robustness 1
628#endif
629
630#ifndef GLX_SGIS_multisample
631#define GLX_SGIS_multisample 1
632#endif
633
634#ifndef GLX_EXT_visual_info
635#define GLX_EXT_visual_info 1
636#endif
637
638#ifndef GLX_SGI_swap_control
639#define GLX_SGI_swap_control 1
640#ifdef GLX_GLXEXT_PROTOTYPES
641extern int glXSwapIntervalSGI (int interval);
642#endif /* GLX_GLXEXT_PROTOTYPES */
643typedef int ( * PFNGLXSWAPINTERVALSGIPROC) (int interval);
644#endif
645
646#ifndef GLX_SGI_video_sync
647#define GLX_SGI_video_sync 1
648#ifdef GLX_GLXEXT_PROTOTYPES
649extern int glXGetVideoSyncSGI (unsigned int *count);
650extern int glXWaitVideoSyncSGI (int divisor, int remainder, unsigned int *count);
651#endif /* GLX_GLXEXT_PROTOTYPES */
652typedef int ( * PFNGLXGETVIDEOSYNCSGIPROC) (unsigned int *count);
653typedef int ( * PFNGLXWAITVIDEOSYNCSGIPROC) (int divisor, int remainder, unsigned int *count);
654#endif
655
656#ifndef GLX_SGI_make_current_read
657#define GLX_SGI_make_current_read 1
658#ifdef GLX_GLXEXT_PROTOTYPES
659extern Bool glXMakeCurrentReadSGI (Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
660extern GLXDrawable glXGetCurrentReadDrawableSGI (void);
661#endif /* GLX_GLXEXT_PROTOTYPES */
662typedef Bool ( * PFNGLXMAKECURRENTREADSGIPROC) (Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
663typedef GLXDrawable ( * PFNGLXGETCURRENTREADDRAWABLESGIPROC) (void);
664#endif
665
666#ifndef GLX_SGIX_video_source
667#define GLX_SGIX_video_source 1
668#ifdef _VL_H
669#ifdef GLX_GLXEXT_PROTOTYPES
670extern GLXVideoSourceSGIX glXCreateGLXVideoSourceSGIX (Display *display, int screen, VLServer server, VLPath path, int nodeClass, VLNode drainNode);
671extern void glXDestroyGLXVideoSourceSGIX (Display *dpy, GLXVideoSourceSGIX glxvideosource);
672#endif /* GLX_GLXEXT_PROTOTYPES */
673typedef GLXVideoSourceSGIX ( * PFNGLXCREATEGLXVIDEOSOURCESGIXPROC) (Display *display, int screen, VLServer server, VLPath path, int nodeClass, VLNode drainNode);
674typedef void ( * PFNGLXDESTROYGLXVIDEOSOURCESGIXPROC) (Display *dpy, GLXVideoSourceSGIX glxvideosource);
675#endif /* _VL_H */
676#endif
677
678#ifndef GLX_EXT_visual_rating
679#define GLX_EXT_visual_rating 1
680#endif
681
682#ifndef GLX_EXT_import_context
683#define GLX_EXT_import_context 1
684#ifdef GLX_GLXEXT_PROTOTYPES
685extern Display * glXGetCurrentDisplayEXT (void);
686extern int glXQueryContextInfoEXT (Display *dpy, GLXContext context, int attribute, int *value);
687extern GLXContextID glXGetContextIDEXT (const GLXContext context);
688extern GLXContext glXImportContextEXT (Display *dpy, GLXContextID contextID);
689extern void glXFreeContextEXT (Display *dpy, GLXContext context);
690#endif /* GLX_GLXEXT_PROTOTYPES */
691typedef Display * ( * PFNGLXGETCURRENTDISPLAYEXTPROC) (void);
692typedef int ( * PFNGLXQUERYCONTEXTINFOEXTPROC) (Display *dpy, GLXContext context, int attribute, int *value);
693typedef GLXContextID ( * PFNGLXGETCONTEXTIDEXTPROC) (const GLXContext context);
694typedef GLXContext ( * PFNGLXIMPORTCONTEXTEXTPROC) (Display *dpy, GLXContextID contextID);
695typedef void ( * PFNGLXFREECONTEXTEXTPROC) (Display *dpy, GLXContext context);
696#endif
697
698#ifndef GLX_SGIX_fbconfig
699#define GLX_SGIX_fbconfig 1
700#ifdef GLX_GLXEXT_PROTOTYPES
701extern int glXGetFBConfigAttribSGIX (Display *dpy, GLXFBConfigSGIX config, int attribute, int *value);
702extern GLXFBConfigSGIX * glXChooseFBConfigSGIX (Display *dpy, int screen, int *attrib_list, int *nelements);
703extern GLXPixmap glXCreateGLXPixmapWithConfigSGIX (Display *dpy, GLXFBConfigSGIX config, Pixmap pixmap);
704extern GLXContext glXCreateContextWithConfigSGIX (Display *dpy, GLXFBConfigSGIX config, int render_type, GLXContext share_list, Bool direct);
705extern XVisualInfo * glXGetVisualFromFBConfigSGIX (Display *dpy, GLXFBConfigSGIX config);
706extern GLXFBConfigSGIX glXGetFBConfigFromVisualSGIX (Display *dpy, XVisualInfo *vis);
707#endif /* GLX_GLXEXT_PROTOTYPES */
708typedef int ( * PFNGLXGETFBCONFIGATTRIBSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, int attribute, int *value);
709typedef GLXFBConfigSGIX * ( * PFNGLXCHOOSEFBCONFIGSGIXPROC) (Display *dpy, int screen, int *attrib_list, int *nelements);
710typedef GLXPixmap ( * PFNGLXCREATEGLXPIXMAPWITHCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, Pixmap pixmap);
711typedef GLXContext ( * PFNGLXCREATECONTEXTWITHCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, int render_type, GLXContext share_list, Bool direct);
712typedef XVisualInfo * ( * PFNGLXGETVISUALFROMFBCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config);
713typedef GLXFBConfigSGIX ( * PFNGLXGETFBCONFIGFROMVISUALSGIXPROC) (Display *dpy, XVisualInfo *vis);
714#endif
715
716#ifndef GLX_SGIX_pbuffer
717#define GLX_SGIX_pbuffer 1
718#ifdef GLX_GLXEXT_PROTOTYPES
719extern GLXPbufferSGIX glXCreateGLXPbufferSGIX (Display *dpy, GLXFBConfigSGIX config, unsigned int width, unsigned int height, int *attrib_list);
720extern void glXDestroyGLXPbufferSGIX (Display *dpy, GLXPbufferSGIX pbuf);
721extern int glXQueryGLXPbufferSGIX (Display *dpy, GLXPbufferSGIX pbuf, int attribute, unsigned int *value);
722extern void glXSelectEventSGIX (Display *dpy, GLXDrawable drawable, unsigned long mask);
723extern void glXGetSelectedEventSGIX (Display *dpy, GLXDrawable drawable, unsigned long *mask);
724#endif /* GLX_GLXEXT_PROTOTYPES */
725typedef GLXPbufferSGIX ( * PFNGLXCREATEGLXPBUFFERSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, unsigned int width, unsigned int height, int *attrib_list);
726typedef void ( * PFNGLXDESTROYGLXPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuf);
727typedef int ( * PFNGLXQUERYGLXPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuf, int attribute, unsigned int *value);
728typedef void ( * PFNGLXSELECTEVENTSGIXPROC) (Display *dpy, GLXDrawable drawable, unsigned long mask);
729typedef void ( * PFNGLXGETSELECTEDEVENTSGIXPROC) (Display *dpy, GLXDrawable drawable, unsigned long *mask);
730#endif
731
732#ifndef GLX_SGI_cushion
733#define GLX_SGI_cushion 1
734#ifdef GLX_GLXEXT_PROTOTYPES
735extern void glXCushionSGI (Display *dpy, Window window, float cushion);
736#endif /* GLX_GLXEXT_PROTOTYPES */
737typedef void ( * PFNGLXCUSHIONSGIPROC) (Display *dpy, Window window, float cushion);
738#endif
739
740#ifndef GLX_SGIX_video_resize
741#define GLX_SGIX_video_resize 1
742#ifdef GLX_GLXEXT_PROTOTYPES
743extern int glXBindChannelToWindowSGIX (Display *display, int screen, int channel, Window window);
744extern int glXChannelRectSGIX (Display *display, int screen, int channel, int x, int y, int w, int h);
745extern int glXQueryChannelRectSGIX (Display *display, int screen, int channel, int *dx, int *dy, int *dw, int *dh);
746extern int glXQueryChannelDeltasSGIX (Display *display, int screen, int channel, int *x, int *y, int *w, int *h);
747extern int glXChannelRectSyncSGIX (Display *display, int screen, int channel, GLenum synctype);
748#endif /* GLX_GLXEXT_PROTOTYPES */
749typedef int ( * PFNGLXBINDCHANNELTOWINDOWSGIXPROC) (Display *display, int screen, int channel, Window window);
750typedef int ( * PFNGLXCHANNELRECTSGIXPROC) (Display *display, int screen, int channel, int x, int y, int w, int h);
751typedef int ( * PFNGLXQUERYCHANNELRECTSGIXPROC) (Display *display, int screen, int channel, int *dx, int *dy, int *dw, int *dh);
752typedef int ( * PFNGLXQUERYCHANNELDELTASSGIXPROC) (Display *display, int screen, int channel, int *x, int *y, int *w, int *h);
753typedef int ( * PFNGLXCHANNELRECTSYNCSGIXPROC) (Display *display, int screen, int channel, GLenum synctype);
754#endif
755
756#ifndef GLX_SGIX_dmbuffer
757#define GLX_SGIX_dmbuffer 1
758#ifdef _DM_BUFFER_H_
759#ifdef GLX_GLXEXT_PROTOTYPES
760extern Bool glXAssociateDMPbufferSGIX (Display *dpy, GLXPbufferSGIX pbuffer, DMparams *params, DMbuffer dmbuffer);
761#endif /* GLX_GLXEXT_PROTOTYPES */
762typedef Bool ( * PFNGLXASSOCIATEDMPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuffer, DMparams *params, DMbuffer dmbuffer);
763#endif /* _DM_BUFFER_H_ */
764#endif
765
766#ifndef GLX_SGIX_swap_group
767#define GLX_SGIX_swap_group 1
768#ifdef GLX_GLXEXT_PROTOTYPES
769extern void glXJoinSwapGroupSGIX (Display *dpy, GLXDrawable drawable, GLXDrawable member);
770#endif /* GLX_GLXEXT_PROTOTYPES */
771typedef void ( * PFNGLXJOINSWAPGROUPSGIXPROC) (Display *dpy, GLXDrawable drawable, GLXDrawable member);
772#endif
773
774#ifndef GLX_SGIX_swap_barrier
775#define GLX_SGIX_swap_barrier 1
776#ifdef GLX_GLXEXT_PROTOTYPES
777extern void glXBindSwapBarrierSGIX (Display *dpy, GLXDrawable drawable, int barrier);
778extern Bool glXQueryMaxSwapBarriersSGIX (Display *dpy, int screen, int *max);
779#endif /* GLX_GLXEXT_PROTOTYPES */
780typedef void ( * PFNGLXBINDSWAPBARRIERSGIXPROC) (Display *dpy, GLXDrawable drawable, int barrier);
781typedef Bool ( * PFNGLXQUERYMAXSWAPBARRIERSSGIXPROC) (Display *dpy, int screen, int *max);
782#endif
783
784#ifndef GLX_SUN_get_transparent_index
785#define GLX_SUN_get_transparent_index 1
786#ifdef GLX_GLXEXT_PROTOTYPES
787extern Status glXGetTransparentIndexSUN (Display *dpy, Window overlay, Window underlay, long *pTransparentIndex);
788#endif /* GLX_GLXEXT_PROTOTYPES */
789typedef Status ( * PFNGLXGETTRANSPARENTINDEXSUNPROC) (Display *dpy, Window overlay, Window underlay, long *pTransparentIndex);
790#endif
791
792#ifndef GLX_MESA_copy_sub_buffer
793#define GLX_MESA_copy_sub_buffer 1
794#ifdef GLX_GLXEXT_PROTOTYPES
795extern void glXCopySubBufferMESA (Display *dpy, GLXDrawable drawable, int x, int y, int width, int height);
796#endif /* GLX_GLXEXT_PROTOTYPES */
797typedef void ( * PFNGLXCOPYSUBBUFFERMESAPROC) (Display *dpy, GLXDrawable drawable, int x, int y, int width, int height);
798#endif
799
800#ifndef GLX_MESA_pixmap_colormap
801#define GLX_MESA_pixmap_colormap 1
802#ifdef GLX_GLXEXT_PROTOTYPES
803extern GLXPixmap glXCreateGLXPixmapMESA (Display *dpy, XVisualInfo *visual, Pixmap pixmap, Colormap cmap);
804#endif /* GLX_GLXEXT_PROTOTYPES */
805typedef GLXPixmap ( * PFNGLXCREATEGLXPIXMAPMESAPROC) (Display *dpy, XVisualInfo *visual, Pixmap pixmap, Colormap cmap);
806#endif
807
808#ifndef GLX_MESA_release_buffers
809#define GLX_MESA_release_buffers 1
810#ifdef GLX_GLXEXT_PROTOTYPES
811extern Bool glXReleaseBuffersMESA (Display *dpy, GLXDrawable drawable);
812#endif /* GLX_GLXEXT_PROTOTYPES */
813typedef Bool ( * PFNGLXRELEASEBUFFERSMESAPROC) (Display *dpy, GLXDrawable drawable);
814#endif
815
816#ifndef GLX_MESA_set_3dfx_mode
817#define GLX_MESA_set_3dfx_mode 1
818#ifdef GLX_GLXEXT_PROTOTYPES
819extern Bool glXSet3DfxModeMESA (int mode);
820#endif /* GLX_GLXEXT_PROTOTYPES */
821typedef Bool ( * PFNGLXSET3DFXMODEMESAPROC) (int mode);
822#endif
823
824#ifndef GLX_SGIX_visual_select_group
825#define GLX_SGIX_visual_select_group 1
826#endif
827
828#ifndef GLX_OML_swap_method
829#define GLX_OML_swap_method 1
830#endif
831
832#ifndef GLX_OML_sync_control
833#define GLX_OML_sync_control 1
834#ifdef GLX_GLXEXT_PROTOTYPES
835extern Bool glXGetSyncValuesOML (Display *dpy, GLXDrawable drawable, int64_t *ust, int64_t *msc, int64_t *sbc);
836extern Bool glXGetMscRateOML (Display *dpy, GLXDrawable drawable, int32_t *numerator, int32_t *denominator);
837extern int64_t glXSwapBuffersMscOML (Display *dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder);
838extern Bool glXWaitForMscOML (Display *dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder, int64_t *ust, int64_t *msc, int64_t *sbc);
839extern Bool glXWaitForSbcOML (Display *dpy, GLXDrawable drawable, int64_t target_sbc, int64_t *ust, int64_t *msc, int64_t *sbc);
840#endif /* GLX_GLXEXT_PROTOTYPES */
841typedef Bool ( * PFNGLXGETSYNCVALUESOMLPROC) (Display *dpy, GLXDrawable drawable, int64_t *ust, int64_t *msc, int64_t *sbc);
842typedef Bool ( * PFNGLXGETMSCRATEOMLPROC) (Display *dpy, GLXDrawable drawable, int32_t *numerator, int32_t *denominator);
843typedef int64_t ( * PFNGLXSWAPBUFFERSMSCOMLPROC) (Display *dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder);
844typedef Bool ( * PFNGLXWAITFORMSCOMLPROC) (Display *dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder, int64_t *ust, int64_t *msc, int64_t *sbc);
845typedef Bool ( * PFNGLXWAITFORSBCOMLPROC) (Display *dpy, GLXDrawable drawable, int64_t target_sbc, int64_t *ust, int64_t *msc, int64_t *sbc);
846#endif
847
848#ifndef GLX_NV_float_buffer
849#define GLX_NV_float_buffer 1
850#endif
851
852#ifndef GLX_SGIX_hyperpipe
853#define GLX_SGIX_hyperpipe 1
854
855typedef struct {
856 char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX];
857 int networkId;
858} GLXHyperpipeNetworkSGIX;
859
860typedef struct {
861 char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX];
862 int channel;
863 unsigned int
864 participationType;
865 int timeSlice;
866} GLXHyperpipeConfigSGIX;
867
868typedef struct {
869 char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX];
870 int srcXOrigin, srcYOrigin, srcWidth, srcHeight;
871 int destXOrigin, destYOrigin, destWidth, destHeight;
872} GLXPipeRect;
873
874typedef struct {
875 char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX];
876 int XOrigin, YOrigin, maxHeight, maxWidth;
877} GLXPipeRectLimits;
878
879#ifdef GLX_GLXEXT_PROTOTYPES
880extern GLXHyperpipeNetworkSGIX * glXQueryHyperpipeNetworkSGIX (Display *dpy, int *npipes);
881extern int glXHyperpipeConfigSGIX (Display *dpy, int networkId, int npipes, GLXHyperpipeConfigSGIX *cfg, int *hpId);
882extern GLXHyperpipeConfigSGIX * glXQueryHyperpipeConfigSGIX (Display *dpy, int hpId, int *npipes);
883extern int glXDestroyHyperpipeConfigSGIX (Display *dpy, int hpId);
884extern int glXBindHyperpipeSGIX (Display *dpy, int hpId);
885extern int glXQueryHyperpipeBestAttribSGIX (Display *dpy, int timeSlice, int attrib, int size, void *attribList, void *returnAttribList);
886extern int glXHyperpipeAttribSGIX (Display *dpy, int timeSlice, int attrib, int size, void *attribList);
887extern int glXQueryHyperpipeAttribSGIX (Display *dpy, int timeSlice, int attrib, int size, void *returnAttribList);
888#endif /* GLX_GLXEXT_PROTOTYPES */
889typedef GLXHyperpipeNetworkSGIX * ( * PFNGLXQUERYHYPERPIPENETWORKSGIXPROC) (Display *dpy, int *npipes);
890typedef int ( * PFNGLXHYPERPIPECONFIGSGIXPROC) (Display *dpy, int networkId, int npipes, GLXHyperpipeConfigSGIX *cfg, int *hpId);
891typedef GLXHyperpipeConfigSGIX * ( * PFNGLXQUERYHYPERPIPECONFIGSGIXPROC) (Display *dpy, int hpId, int *npipes);
892typedef int ( * PFNGLXDESTROYHYPERPIPECONFIGSGIXPROC) (Display *dpy, int hpId);
893typedef int ( * PFNGLXBINDHYPERPIPESGIXPROC) (Display *dpy, int hpId);
894typedef int ( * PFNGLXQUERYHYPERPIPEBESTATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *attribList, void *returnAttribList);
895typedef int ( * PFNGLXHYPERPIPEATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *attribList);
896typedef int ( * PFNGLXQUERYHYPERPIPEATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *returnAttribList);
897#endif
898
899#ifndef GLX_MESA_agp_offset
900#define GLX_MESA_agp_offset 1
901#ifdef GLX_GLXEXT_PROTOTYPES
902extern unsigned int glXGetAGPOffsetMESA (const void *pointer);
903#endif /* GLX_GLXEXT_PROTOTYPES */
904typedef unsigned int ( * PFNGLXGETAGPOFFSETMESAPROC) (const void *pointer);
905#endif
906
907#ifndef GLX_EXT_fbconfig_packed_float
908#define GLX_EXT_fbconfig_packed_float 1
909#endif
910
911#ifndef GLX_EXT_framebuffer_sRGB
912#define GLX_EXT_framebuffer_sRGB 1
913#endif
914
915#ifndef GLX_EXT_texture_from_pixmap
916#define GLX_EXT_texture_from_pixmap 1
917#ifdef GLX_GLXEXT_PROTOTYPES
918extern void glXBindTexImageEXT (Display *dpy, GLXDrawable drawable, int buffer, const int *attrib_list);
919extern void glXReleaseTexImageEXT (Display *dpy, GLXDrawable drawable, int buffer);
920#endif /* GLX_GLXEXT_PROTOTYPES */
921typedef void ( * PFNGLXBINDTEXIMAGEEXTPROC) (Display *dpy, GLXDrawable drawable, int buffer, const int *attrib_list);
922typedef void ( * PFNGLXRELEASETEXIMAGEEXTPROC) (Display *dpy, GLXDrawable drawable, int buffer);
923#endif
924
925#ifndef GLX_NV_present_video
926#define GLX_NV_present_video 1
927#ifdef GLX_GLXEXT_PROTOTYPES
928extern unsigned int * glXEnumerateVideoDevicesNV (Display *dpy, int screen, int *nelements);
929extern int glXBindVideoDeviceNV (Display *dpy, unsigned int video_slot, unsigned int video_device, const int *attrib_list);
930#endif /* GLX_GLXEXT_PROTOTYPES */
931typedef unsigned int * ( * PFNGLXENUMERATEVIDEODEVICESNVPROC) (Display *dpy, int screen, int *nelements);
932typedef int ( * PFNGLXBINDVIDEODEVICENVPROC) (Display *dpy, unsigned int video_slot, unsigned int video_device, const int *attrib_list);
933#endif
934
935#ifndef GLX_NV_video_output
936#define GLX_NV_video_output 1
937#ifdef GLX_GLXEXT_PROTOTYPES
938extern int glXGetVideoDeviceNV (Display *dpy, int screen, int numVideoDevices, GLXVideoDeviceNV *pVideoDevice);
939extern int glXReleaseVideoDeviceNV (Display *dpy, int screen, GLXVideoDeviceNV VideoDevice);
940extern int glXBindVideoImageNV (Display *dpy, GLXVideoDeviceNV VideoDevice, GLXPbuffer pbuf, int iVideoBuffer);
941extern int glXReleaseVideoImageNV (Display *dpy, GLXPbuffer pbuf);
942extern int glXSendPbufferToVideoNV (Display *dpy, GLXPbuffer pbuf, int iBufferType, unsigned long *pulCounterPbuffer, GLboolean bBlock);
943extern int glXGetVideoInfoNV (Display *dpy, int screen, GLXVideoDeviceNV VideoDevice, unsigned long *pulCounterOutputPbuffer, unsigned long *pulCounterOutputVideo);
944#endif /* GLX_GLXEXT_PROTOTYPES */
945typedef int ( * PFNGLXGETVIDEODEVICENVPROC) (Display *dpy, int screen, int numVideoDevices, GLXVideoDeviceNV *pVideoDevice);
946typedef int ( * PFNGLXRELEASEVIDEODEVICENVPROC) (Display *dpy, int screen, GLXVideoDeviceNV VideoDevice);
947typedef int ( * PFNGLXBINDVIDEOIMAGENVPROC) (Display *dpy, GLXVideoDeviceNV VideoDevice, GLXPbuffer pbuf, int iVideoBuffer);
948typedef int ( * PFNGLXRELEASEVIDEOIMAGENVPROC) (Display *dpy, GLXPbuffer pbuf);
949typedef int ( * PFNGLXSENDPBUFFERTOVIDEONVPROC) (Display *dpy, GLXPbuffer pbuf, int iBufferType, unsigned long *pulCounterPbuffer, GLboolean bBlock);
950typedef int ( * PFNGLXGETVIDEOINFONVPROC) (Display *dpy, int screen, GLXVideoDeviceNV VideoDevice, unsigned long *pulCounterOutputPbuffer, unsigned long *pulCounterOutputVideo);
951#endif
952
953#ifndef GLX_NV_swap_group
954#define GLX_NV_swap_group 1
955#ifdef GLX_GLXEXT_PROTOTYPES
956extern Bool glXJoinSwapGroupNV (Display *dpy, GLXDrawable drawable, GLuint group);
957extern Bool glXBindSwapBarrierNV (Display *dpy, GLuint group, GLuint barrier);
958extern Bool glXQuerySwapGroupNV (Display *dpy, GLXDrawable drawable, GLuint *group, GLuint *barrier);
959extern Bool glXQueryMaxSwapGroupsNV (Display *dpy, int screen, GLuint *maxGroups, GLuint *maxBarriers);
960extern Bool glXQueryFrameCountNV (Display *dpy, int screen, GLuint *count);
961extern Bool glXResetFrameCountNV (Display *dpy, int screen);
962#endif /* GLX_GLXEXT_PROTOTYPES */
963typedef Bool ( * PFNGLXJOINSWAPGROUPNVPROC) (Display *dpy, GLXDrawable drawable, GLuint group);
964typedef Bool ( * PFNGLXBINDSWAPBARRIERNVPROC) (Display *dpy, GLuint group, GLuint barrier);
965typedef Bool ( * PFNGLXQUERYSWAPGROUPNVPROC) (Display *dpy, GLXDrawable drawable, GLuint *group, GLuint *barrier);
966typedef Bool ( * PFNGLXQUERYMAXSWAPGROUPSNVPROC) (Display *dpy, int screen, GLuint *maxGroups, GLuint *maxBarriers);
967typedef Bool ( * PFNGLXQUERYFRAMECOUNTNVPROC) (Display *dpy, int screen, GLuint *count);
968typedef Bool ( * PFNGLXRESETFRAMECOUNTNVPROC) (Display *dpy, int screen);
969#endif
970
971#ifndef GLX_NV_video_capture
972#define GLX_NV_video_capture 1
973#ifdef GLX_GLXEXT_PROTOTYPES
974extern int glXBindVideoCaptureDeviceNV (Display *dpy, unsigned int video_capture_slot, GLXVideoCaptureDeviceNV device);
975extern GLXVideoCaptureDeviceNV * glXEnumerateVideoCaptureDevicesNV (Display *dpy, int screen, int *nelements);
976extern void glXLockVideoCaptureDeviceNV (Display *dpy, GLXVideoCaptureDeviceNV device);
977extern int glXQueryVideoCaptureDeviceNV (Display *dpy, GLXVideoCaptureDeviceNV device, int attribute, int *value);
978extern void glXReleaseVideoCaptureDeviceNV (Display *dpy, GLXVideoCaptureDeviceNV device);
979#endif /* GLX_GLXEXT_PROTOTYPES */
980typedef int ( * PFNGLXBINDVIDEOCAPTUREDEVICENVPROC) (Display *dpy, unsigned int video_capture_slot, GLXVideoCaptureDeviceNV device);
981typedef GLXVideoCaptureDeviceNV * ( * PFNGLXENUMERATEVIDEOCAPTUREDEVICESNVPROC) (Display *dpy, int screen, int *nelements);
982typedef void ( * PFNGLXLOCKVIDEOCAPTUREDEVICENVPROC) (Display *dpy, GLXVideoCaptureDeviceNV device);
983typedef int ( * PFNGLXQUERYVIDEOCAPTUREDEVICENVPROC) (Display *dpy, GLXVideoCaptureDeviceNV device, int attribute, int *value);
984typedef void ( * PFNGLXRELEASEVIDEOCAPTUREDEVICENVPROC) (Display *dpy, GLXVideoCaptureDeviceNV device);
985#endif
986
987#ifndef GLX_EXT_swap_control
988#define GLX_EXT_swap_control 1
989#ifdef GLX_GLXEXT_PROTOTYPES
990extern void glXSwapIntervalEXT (Display *dpy, GLXDrawable drawable, int interval);
991#endif /* GLX_GLXEXT_PROTOTYPES */
992typedef void ( * PFNGLXSWAPINTERVALEXTPROC) (Display *dpy, GLXDrawable drawable, int interval);
993#endif
994
995#ifndef GLX_NV_copy_image
996#define GLX_NV_copy_image 1
997#ifdef GLX_GLXEXT_PROTOTYPES
998extern void glXCopyImageSubDataNV (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);
999#endif /* GLX_GLXEXT_PROTOTYPES */
1000typedef void ( * PFNGLXCOPYIMAGESUBDATANVPROC) (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);
1001#endif
1002
1003#ifndef GLX_INTEL_swap_event
1004#define GLX_INTEL_swap_event 1
1005#endif
1006
1007#ifndef GLX_NV_multisample_coverage
1008#define GLX_NV_multisample_coverage 1
1009#endif
1010
1011#ifndef GLX_EXT_create_context_es2_profile
1012#define GLX_EXT_create_context_es2_profile 1
1013#endif
1014
1015#ifndef GLX_EXT_create_context_es_profile
1016#define GLX_EXT_create_context_es_profile 1
1017#endif
1018
1019#ifndef GLX_EXT_swap_control_tear
1020#define GLX_EXT_swap_control_tear 1
1021#endif
1022
1023#ifndef GLX_EXT_buffer_age
1024#define GLX_EXT_buffer_age 1
1025#endif
1026
1027
1028#ifdef __cplusplus
1029}
1030#endif
1031
1032#endif /* !__glxext_h_ */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette