VirtualBox

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

最後變更 在這個檔案從61332是 52970,由 vboxsync 提交於 10 年 前

Devices/Graphics: added original vmsvga and vmsvga_glext headers (2009-04)

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

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