glxext.h 47 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954
  1. #ifndef __glx_glxext_h_
  2. #define __glx_glxext_h_ 1
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. /*
  7. ** Copyright 2013-2020 The Khronos Group Inc.
  8. ** SPDX-License-Identifier: MIT
  9. **
  10. ** This header is generated from the Khronos OpenGL / OpenGL ES XML
  11. ** API Registry. The current version of the Registry, generator scripts
  12. ** used to make the header, and the header can be found at
  13. ** https://github.com/KhronosGroup/OpenGL-Registry
  14. */
  15. #define GLX_GLXEXT_VERSION 20220530
  16. /* Generated C header for:
  17. * API: glx
  18. * Versions considered: .*
  19. * Versions emitted: 1\.[3-9]
  20. * Default extensions included: glx
  21. * Additional extensions included: _nomatch_^
  22. * Extensions removed: _nomatch_^
  23. */
  24. #ifndef GLX_VERSION_1_3
  25. #define GLX_VERSION_1_3 1
  26. typedef XID GLXContextID;
  27. typedef struct __GLXFBConfigRec *GLXFBConfig;
  28. typedef XID GLXWindow;
  29. typedef XID GLXPbuffer;
  30. #define GLX_WINDOW_BIT 0x00000001
  31. #define GLX_PIXMAP_BIT 0x00000002
  32. #define GLX_PBUFFER_BIT 0x00000004
  33. #define GLX_RGBA_BIT 0x00000001
  34. #define GLX_COLOR_INDEX_BIT 0x00000002
  35. #define GLX_PBUFFER_CLOBBER_MASK 0x08000000
  36. #define GLX_FRONT_LEFT_BUFFER_BIT 0x00000001
  37. #define GLX_FRONT_RIGHT_BUFFER_BIT 0x00000002
  38. #define GLX_BACK_LEFT_BUFFER_BIT 0x00000004
  39. #define GLX_BACK_RIGHT_BUFFER_BIT 0x00000008
  40. #define GLX_AUX_BUFFERS_BIT 0x00000010
  41. #define GLX_DEPTH_BUFFER_BIT 0x00000020
  42. #define GLX_STENCIL_BUFFER_BIT 0x00000040
  43. #define GLX_ACCUM_BUFFER_BIT 0x00000080
  44. #define GLX_CONFIG_CAVEAT 0x20
  45. #define GLX_X_VISUAL_TYPE 0x22
  46. #define GLX_TRANSPARENT_TYPE 0x23
  47. #define GLX_TRANSPARENT_INDEX_VALUE 0x24
  48. #define GLX_TRANSPARENT_RED_VALUE 0x25
  49. #define GLX_TRANSPARENT_GREEN_VALUE 0x26
  50. #define GLX_TRANSPARENT_BLUE_VALUE 0x27
  51. #define GLX_TRANSPARENT_ALPHA_VALUE 0x28
  52. #define GLX_DONT_CARE 0xFFFFFFFF
  53. #define GLX_NONE 0x8000
  54. #define GLX_SLOW_CONFIG 0x8001
  55. #define GLX_TRUE_COLOR 0x8002
  56. #define GLX_DIRECT_COLOR 0x8003
  57. #define GLX_PSEUDO_COLOR 0x8004
  58. #define GLX_STATIC_COLOR 0x8005
  59. #define GLX_GRAY_SCALE 0x8006
  60. #define GLX_STATIC_GRAY 0x8007
  61. #define GLX_TRANSPARENT_RGB 0x8008
  62. #define GLX_TRANSPARENT_INDEX 0x8009
  63. #define GLX_VISUAL_ID 0x800B
  64. #define GLX_SCREEN 0x800C
  65. #define GLX_NON_CONFORMANT_CONFIG 0x800D
  66. #define GLX_DRAWABLE_TYPE 0x8010
  67. #define GLX_RENDER_TYPE 0x8011
  68. #define GLX_X_RENDERABLE 0x8012
  69. #define GLX_FBCONFIG_ID 0x8013
  70. #define GLX_RGBA_TYPE 0x8014
  71. #define GLX_COLOR_INDEX_TYPE 0x8015
  72. #define GLX_MAX_PBUFFER_WIDTH 0x8016
  73. #define GLX_MAX_PBUFFER_HEIGHT 0x8017
  74. #define GLX_MAX_PBUFFER_PIXELS 0x8018
  75. #define GLX_PRESERVED_CONTENTS 0x801B
  76. #define GLX_LARGEST_PBUFFER 0x801C
  77. #define GLX_WIDTH 0x801D
  78. #define GLX_HEIGHT 0x801E
  79. #define GLX_EVENT_MASK 0x801F
  80. #define GLX_DAMAGED 0x8020
  81. #define GLX_SAVED 0x8021
  82. #define GLX_WINDOW 0x8022
  83. #define GLX_PBUFFER 0x8023
  84. #define GLX_PBUFFER_HEIGHT 0x8040
  85. #define GLX_PBUFFER_WIDTH 0x8041
  86. typedef GLXFBConfig *( *PFNGLXGETFBCONFIGSPROC) (Display *dpy, int screen, int *nelements);
  87. typedef GLXFBConfig *( *PFNGLXCHOOSEFBCONFIGPROC) (Display *dpy, int screen, const int *attrib_list, int *nelements);
  88. typedef int ( *PFNGLXGETFBCONFIGATTRIBPROC) (Display *dpy, GLXFBConfig config, int attribute, int *value);
  89. typedef XVisualInfo *( *PFNGLXGETVISUALFROMFBCONFIGPROC) (Display *dpy, GLXFBConfig config);
  90. typedef GLXWindow ( *PFNGLXCREATEWINDOWPROC) (Display *dpy, GLXFBConfig config, Window win, const int *attrib_list);
  91. typedef void ( *PFNGLXDESTROYWINDOWPROC) (Display *dpy, GLXWindow win);
  92. typedef GLXPixmap ( *PFNGLXCREATEPIXMAPPROC) (Display *dpy, GLXFBConfig config, Pixmap pixmap, const int *attrib_list);
  93. typedef void ( *PFNGLXDESTROYPIXMAPPROC) (Display *dpy, GLXPixmap pixmap);
  94. typedef GLXPbuffer ( *PFNGLXCREATEPBUFFERPROC) (Display *dpy, GLXFBConfig config, const int *attrib_list);
  95. typedef void ( *PFNGLXDESTROYPBUFFERPROC) (Display *dpy, GLXPbuffer pbuf);
  96. typedef void ( *PFNGLXQUERYDRAWABLEPROC) (Display *dpy, GLXDrawable draw, int attribute, unsigned int *value);
  97. typedef GLXContext ( *PFNGLXCREATENEWCONTEXTPROC) (Display *dpy, GLXFBConfig config, int render_type, GLXContext share_list, Bool direct);
  98. typedef Bool ( *PFNGLXMAKECONTEXTCURRENTPROC) (Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
  99. typedef GLXDrawable ( *PFNGLXGETCURRENTREADDRAWABLEPROC) (void);
  100. typedef int ( *PFNGLXQUERYCONTEXTPROC) (Display *dpy, GLXContext ctx, int attribute, int *value);
  101. typedef void ( *PFNGLXSELECTEVENTPROC) (Display *dpy, GLXDrawable draw, unsigned long event_mask);
  102. typedef void ( *PFNGLXGETSELECTEDEVENTPROC) (Display *dpy, GLXDrawable draw, unsigned long *event_mask);
  103. #ifdef GLX_GLXEXT_PROTOTYPES
  104. GLXFBConfig *glXGetFBConfigs (Display *dpy, int screen, int *nelements);
  105. GLXFBConfig *glXChooseFBConfig (Display *dpy, int screen, const int *attrib_list, int *nelements);
  106. int glXGetFBConfigAttrib (Display *dpy, GLXFBConfig config, int attribute, int *value);
  107. XVisualInfo *glXGetVisualFromFBConfig (Display *dpy, GLXFBConfig config);
  108. GLXWindow glXCreateWindow (Display *dpy, GLXFBConfig config, Window win, const int *attrib_list);
  109. void glXDestroyWindow (Display *dpy, GLXWindow win);
  110. GLXPixmap glXCreatePixmap (Display *dpy, GLXFBConfig config, Pixmap pixmap, const int *attrib_list);
  111. void glXDestroyPixmap (Display *dpy, GLXPixmap pixmap);
  112. GLXPbuffer glXCreatePbuffer (Display *dpy, GLXFBConfig config, const int *attrib_list);
  113. void glXDestroyPbuffer (Display *dpy, GLXPbuffer pbuf);
  114. void glXQueryDrawable (Display *dpy, GLXDrawable draw, int attribute, unsigned int *value);
  115. GLXContext glXCreateNewContext (Display *dpy, GLXFBConfig config, int render_type, GLXContext share_list, Bool direct);
  116. Bool glXMakeContextCurrent (Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
  117. GLXDrawable glXGetCurrentReadDrawable (void);
  118. int glXQueryContext (Display *dpy, GLXContext ctx, int attribute, int *value);
  119. void glXSelectEvent (Display *dpy, GLXDrawable draw, unsigned long event_mask);
  120. void glXGetSelectedEvent (Display *dpy, GLXDrawable draw, unsigned long *event_mask);
  121. #endif
  122. #endif /* GLX_VERSION_1_3 */
  123. #ifndef GLX_VERSION_1_4
  124. #define GLX_VERSION_1_4 1
  125. typedef void ( *__GLXextFuncPtr)(void);
  126. #define GLX_SAMPLE_BUFFERS 100000
  127. #define GLX_SAMPLES 100001
  128. typedef __GLXextFuncPtr ( *PFNGLXGETPROCADDRESSPROC) (const GLubyte *procName);
  129. #ifdef GLX_GLXEXT_PROTOTYPES
  130. __GLXextFuncPtr glXGetProcAddress (const GLubyte *procName);
  131. #endif
  132. #endif /* GLX_VERSION_1_4 */
  133. #ifndef GLX_ARB_context_flush_control
  134. #define GLX_ARB_context_flush_control 1
  135. #define GLX_CONTEXT_RELEASE_BEHAVIOR_ARB 0x2097
  136. #define GLX_CONTEXT_RELEASE_BEHAVIOR_NONE_ARB 0
  137. #define GLX_CONTEXT_RELEASE_BEHAVIOR_FLUSH_ARB 0x2098
  138. #endif /* GLX_ARB_context_flush_control */
  139. #ifndef GLX_ARB_create_context
  140. #define GLX_ARB_create_context 1
  141. #define GLX_CONTEXT_DEBUG_BIT_ARB 0x00000001
  142. #define GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x00000002
  143. #define GLX_CONTEXT_MAJOR_VERSION_ARB 0x2091
  144. #define GLX_CONTEXT_MINOR_VERSION_ARB 0x2092
  145. #define GLX_CONTEXT_FLAGS_ARB 0x2094
  146. typedef GLXContext ( *PFNGLXCREATECONTEXTATTRIBSARBPROC) (Display *dpy, GLXFBConfig config, GLXContext share_context, Bool direct, const int *attrib_list);
  147. #ifdef GLX_GLXEXT_PROTOTYPES
  148. GLXContext glXCreateContextAttribsARB (Display *dpy, GLXFBConfig config, GLXContext share_context, Bool direct, const int *attrib_list);
  149. #endif
  150. #endif /* GLX_ARB_create_context */
  151. #ifndef GLX_ARB_create_context_no_error
  152. #define GLX_ARB_create_context_no_error 1
  153. #define GLX_CONTEXT_OPENGL_NO_ERROR_ARB 0x31B3
  154. #endif /* GLX_ARB_create_context_no_error */
  155. #ifndef GLX_ARB_create_context_profile
  156. #define GLX_ARB_create_context_profile 1
  157. #define GLX_CONTEXT_CORE_PROFILE_BIT_ARB 0x00000001
  158. #define GLX_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB 0x00000002
  159. #define GLX_CONTEXT_PROFILE_MASK_ARB 0x9126
  160. #endif /* GLX_ARB_create_context_profile */
  161. #ifndef GLX_ARB_create_context_robustness
  162. #define GLX_ARB_create_context_robustness 1
  163. #define GLX_CONTEXT_ROBUST_ACCESS_BIT_ARB 0x00000004
  164. #define GLX_LOSE_CONTEXT_ON_RESET_ARB 0x8252
  165. #define GLX_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB 0x8256
  166. #define GLX_NO_RESET_NOTIFICATION_ARB 0x8261
  167. #endif /* GLX_ARB_create_context_robustness */
  168. #ifndef GLX_ARB_fbconfig_float
  169. #define GLX_ARB_fbconfig_float 1
  170. #define GLX_RGBA_FLOAT_TYPE_ARB 0x20B9
  171. #define GLX_RGBA_FLOAT_BIT_ARB 0x00000004
  172. #endif /* GLX_ARB_fbconfig_float */
  173. #ifndef GLX_ARB_framebuffer_sRGB
  174. #define GLX_ARB_framebuffer_sRGB 1
  175. #define GLX_FRAMEBUFFER_SRGB_CAPABLE_ARB 0x20B2
  176. #endif /* GLX_ARB_framebuffer_sRGB */
  177. #ifndef GLX_ARB_get_proc_address
  178. #define GLX_ARB_get_proc_address 1
  179. typedef __GLXextFuncPtr ( *PFNGLXGETPROCADDRESSARBPROC) (const GLubyte *procName);
  180. #ifdef GLX_GLXEXT_PROTOTYPES
  181. __GLXextFuncPtr glXGetProcAddressARB (const GLubyte *procName);
  182. #endif
  183. #endif /* GLX_ARB_get_proc_address */
  184. #ifndef GLX_ARB_multisample
  185. #define GLX_ARB_multisample 1
  186. #define GLX_SAMPLE_BUFFERS_ARB 100000
  187. #define GLX_SAMPLES_ARB 100001
  188. #endif /* GLX_ARB_multisample */
  189. #ifndef GLX_ARB_robustness_application_isolation
  190. #define GLX_ARB_robustness_application_isolation 1
  191. #define GLX_CONTEXT_RESET_ISOLATION_BIT_ARB 0x00000008
  192. #endif /* GLX_ARB_robustness_application_isolation */
  193. #ifndef GLX_ARB_robustness_share_group_isolation
  194. #define GLX_ARB_robustness_share_group_isolation 1
  195. #endif /* GLX_ARB_robustness_share_group_isolation */
  196. #ifndef GLX_ARB_vertex_buffer_object
  197. #define GLX_ARB_vertex_buffer_object 1
  198. #define GLX_CONTEXT_ALLOW_BUFFER_BYTE_ORDER_MISMATCH_ARB 0x2095
  199. #endif /* GLX_ARB_vertex_buffer_object */
  200. #ifndef GLX_3DFX_multisample
  201. #define GLX_3DFX_multisample 1
  202. #define GLX_SAMPLE_BUFFERS_3DFX 0x8050
  203. #define GLX_SAMPLES_3DFX 0x8051
  204. #endif /* GLX_3DFX_multisample */
  205. #ifndef GLX_AMD_gpu_association
  206. #define GLX_AMD_gpu_association 1
  207. #define GLX_GPU_VENDOR_AMD 0x1F00
  208. #define GLX_GPU_RENDERER_STRING_AMD 0x1F01
  209. #define GLX_GPU_OPENGL_VERSION_STRING_AMD 0x1F02
  210. #define GLX_GPU_FASTEST_TARGET_GPUS_AMD 0x21A2
  211. #define GLX_GPU_RAM_AMD 0x21A3
  212. #define GLX_GPU_CLOCK_AMD 0x21A4
  213. #define GLX_GPU_NUM_PIPES_AMD 0x21A5
  214. #define GLX_GPU_NUM_SIMD_AMD 0x21A6
  215. #define GLX_GPU_NUM_RB_AMD 0x21A7
  216. #define GLX_GPU_NUM_SPI_AMD 0x21A8
  217. typedef unsigned int ( *PFNGLXGETGPUIDSAMDPROC) (unsigned int maxCount, unsigned int *ids);
  218. typedef int ( *PFNGLXGETGPUINFOAMDPROC) (unsigned int id, int property, GLenum dataType, unsigned int size, void *data);
  219. typedef unsigned int ( *PFNGLXGETCONTEXTGPUIDAMDPROC) (GLXContext ctx);
  220. typedef GLXContext ( *PFNGLXCREATEASSOCIATEDCONTEXTAMDPROC) (unsigned int id, GLXContext share_list);
  221. typedef GLXContext ( *PFNGLXCREATEASSOCIATEDCONTEXTATTRIBSAMDPROC) (unsigned int id, GLXContext share_context, const int *attribList);
  222. typedef Bool ( *PFNGLXDELETEASSOCIATEDCONTEXTAMDPROC) (GLXContext ctx);
  223. typedef Bool ( *PFNGLXMAKEASSOCIATEDCONTEXTCURRENTAMDPROC) (GLXContext ctx);
  224. typedef GLXContext ( *PFNGLXGETCURRENTASSOCIATEDCONTEXTAMDPROC) (void);
  225. typedef void ( *PFNGLXBLITCONTEXTFRAMEBUFFERAMDPROC) (GLXContext dstCtx, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
  226. #ifdef GLX_GLXEXT_PROTOTYPES
  227. unsigned int glXGetGPUIDsAMD (unsigned int maxCount, unsigned int *ids);
  228. int glXGetGPUInfoAMD (unsigned int id, int property, GLenum dataType, unsigned int size, void *data);
  229. unsigned int glXGetContextGPUIDAMD (GLXContext ctx);
  230. GLXContext glXCreateAssociatedContextAMD (unsigned int id, GLXContext share_list);
  231. GLXContext glXCreateAssociatedContextAttribsAMD (unsigned int id, GLXContext share_context, const int *attribList);
  232. Bool glXDeleteAssociatedContextAMD (GLXContext ctx);
  233. Bool glXMakeAssociatedContextCurrentAMD (GLXContext ctx);
  234. GLXContext glXGetCurrentAssociatedContextAMD (void);
  235. void glXBlitContextFramebufferAMD (GLXContext dstCtx, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
  236. #endif
  237. #endif /* GLX_AMD_gpu_association */
  238. #ifndef GLX_EXT_buffer_age
  239. #define GLX_EXT_buffer_age 1
  240. #define GLX_BACK_BUFFER_AGE_EXT 0x20F4
  241. #endif /* GLX_EXT_buffer_age */
  242. #ifndef GLX_EXT_context_priority
  243. #define GLX_EXT_context_priority 1
  244. #define GLX_CONTEXT_PRIORITY_LEVEL_EXT 0x3100
  245. #define GLX_CONTEXT_PRIORITY_HIGH_EXT 0x3101
  246. #define GLX_CONTEXT_PRIORITY_MEDIUM_EXT 0x3102
  247. #define GLX_CONTEXT_PRIORITY_LOW_EXT 0x3103
  248. #endif /* GLX_EXT_context_priority */
  249. #ifndef GLX_EXT_create_context_es2_profile
  250. #define GLX_EXT_create_context_es2_profile 1
  251. #define GLX_CONTEXT_ES2_PROFILE_BIT_EXT 0x00000004
  252. #endif /* GLX_EXT_create_context_es2_profile */
  253. #ifndef GLX_EXT_create_context_es_profile
  254. #define GLX_EXT_create_context_es_profile 1
  255. #define GLX_CONTEXT_ES_PROFILE_BIT_EXT 0x00000004
  256. #endif /* GLX_EXT_create_context_es_profile */
  257. #ifndef GLX_EXT_fbconfig_packed_float
  258. #define GLX_EXT_fbconfig_packed_float 1
  259. #define GLX_RGBA_UNSIGNED_FLOAT_TYPE_EXT 0x20B1
  260. #define GLX_RGBA_UNSIGNED_FLOAT_BIT_EXT 0x00000008
  261. #endif /* GLX_EXT_fbconfig_packed_float */
  262. #ifndef GLX_EXT_framebuffer_sRGB
  263. #define GLX_EXT_framebuffer_sRGB 1
  264. #define GLX_FRAMEBUFFER_SRGB_CAPABLE_EXT 0x20B2
  265. #endif /* GLX_EXT_framebuffer_sRGB */
  266. #ifndef GLX_EXT_get_drawable_type
  267. #define GLX_EXT_get_drawable_type 1
  268. #endif /* GLX_EXT_get_drawable_type */
  269. #ifndef GLX_EXT_import_context
  270. #define GLX_EXT_import_context 1
  271. #define GLX_SHARE_CONTEXT_EXT 0x800A
  272. #define GLX_VISUAL_ID_EXT 0x800B
  273. #define GLX_SCREEN_EXT 0x800C
  274. typedef Display *( *PFNGLXGETCURRENTDISPLAYEXTPROC) (void);
  275. typedef int ( *PFNGLXQUERYCONTEXTINFOEXTPROC) (Display *dpy, GLXContext context, int attribute, int *value);
  276. typedef GLXContextID ( *PFNGLXGETCONTEXTIDEXTPROC) (const GLXContext context);
  277. typedef GLXContext ( *PFNGLXIMPORTCONTEXTEXTPROC) (Display *dpy, GLXContextID contextID);
  278. typedef void ( *PFNGLXFREECONTEXTEXTPROC) (Display *dpy, GLXContext context);
  279. #ifdef GLX_GLXEXT_PROTOTYPES
  280. Display *glXGetCurrentDisplayEXT (void);
  281. int glXQueryContextInfoEXT (Display *dpy, GLXContext context, int attribute, int *value);
  282. GLXContextID glXGetContextIDEXT (const GLXContext context);
  283. GLXContext glXImportContextEXT (Display *dpy, GLXContextID contextID);
  284. void glXFreeContextEXT (Display *dpy, GLXContext context);
  285. #endif
  286. #endif /* GLX_EXT_import_context */
  287. #ifndef GLX_EXT_libglvnd
  288. #define GLX_EXT_libglvnd 1
  289. #define GLX_VENDOR_NAMES_EXT 0x20F6
  290. #endif /* GLX_EXT_libglvnd */
  291. #ifndef GLX_EXT_no_config_context
  292. #define GLX_EXT_no_config_context 1
  293. #endif /* GLX_EXT_no_config_context */
  294. #ifndef GLX_EXT_stereo_tree
  295. #define GLX_EXT_stereo_tree 1
  296. typedef struct {
  297. int type;
  298. unsigned long serial;
  299. Bool send_event;
  300. Display *display;
  301. int extension;
  302. int evtype;
  303. GLXDrawable window;
  304. Bool stereo_tree;
  305. } GLXStereoNotifyEventEXT;
  306. #define GLX_STEREO_TREE_EXT 0x20F5
  307. #define GLX_STEREO_NOTIFY_MASK_EXT 0x00000001
  308. #define GLX_STEREO_NOTIFY_EXT 0x00000000
  309. #endif /* GLX_EXT_stereo_tree */
  310. #ifndef GLX_EXT_swap_control
  311. #define GLX_EXT_swap_control 1
  312. #define GLX_SWAP_INTERVAL_EXT 0x20F1
  313. #define GLX_MAX_SWAP_INTERVAL_EXT 0x20F2
  314. typedef void ( *PFNGLXSWAPINTERVALEXTPROC) (Display *dpy, GLXDrawable drawable, int interval);
  315. #ifdef GLX_GLXEXT_PROTOTYPES
  316. void glXSwapIntervalEXT (Display *dpy, GLXDrawable drawable, int interval);
  317. #endif
  318. #endif /* GLX_EXT_swap_control */
  319. #ifndef GLX_EXT_swap_control_tear
  320. #define GLX_EXT_swap_control_tear 1
  321. #define GLX_LATE_SWAPS_TEAR_EXT 0x20F3
  322. #endif /* GLX_EXT_swap_control_tear */
  323. #ifndef GLX_EXT_texture_from_pixmap
  324. #define GLX_EXT_texture_from_pixmap 1
  325. #define GLX_TEXTURE_1D_BIT_EXT 0x00000001
  326. #define GLX_TEXTURE_2D_BIT_EXT 0x00000002
  327. #define GLX_TEXTURE_RECTANGLE_BIT_EXT 0x00000004
  328. #define GLX_BIND_TO_TEXTURE_RGB_EXT 0x20D0
  329. #define GLX_BIND_TO_TEXTURE_RGBA_EXT 0x20D1
  330. #define GLX_BIND_TO_MIPMAP_TEXTURE_EXT 0x20D2
  331. #define GLX_BIND_TO_TEXTURE_TARGETS_EXT 0x20D3
  332. #define GLX_Y_INVERTED_EXT 0x20D4
  333. #define GLX_TEXTURE_FORMAT_EXT 0x20D5
  334. #define GLX_TEXTURE_TARGET_EXT 0x20D6
  335. #define GLX_MIPMAP_TEXTURE_EXT 0x20D7
  336. #define GLX_TEXTURE_FORMAT_NONE_EXT 0x20D8
  337. #define GLX_TEXTURE_FORMAT_RGB_EXT 0x20D9
  338. #define GLX_TEXTURE_FORMAT_RGBA_EXT 0x20DA
  339. #define GLX_TEXTURE_1D_EXT 0x20DB
  340. #define GLX_TEXTURE_2D_EXT 0x20DC
  341. #define GLX_TEXTURE_RECTANGLE_EXT 0x20DD
  342. #define GLX_FRONT_LEFT_EXT 0x20DE
  343. #define GLX_FRONT_RIGHT_EXT 0x20DF
  344. #define GLX_BACK_LEFT_EXT 0x20E0
  345. #define GLX_BACK_RIGHT_EXT 0x20E1
  346. #define GLX_FRONT_EXT 0x20DE
  347. #define GLX_BACK_EXT 0x20E0
  348. #define GLX_AUX0_EXT 0x20E2
  349. #define GLX_AUX1_EXT 0x20E3
  350. #define GLX_AUX2_EXT 0x20E4
  351. #define GLX_AUX3_EXT 0x20E5
  352. #define GLX_AUX4_EXT 0x20E6
  353. #define GLX_AUX5_EXT 0x20E7
  354. #define GLX_AUX6_EXT 0x20E8
  355. #define GLX_AUX7_EXT 0x20E9
  356. #define GLX_AUX8_EXT 0x20EA
  357. #define GLX_AUX9_EXT 0x20EB
  358. typedef void ( *PFNGLXBINDTEXIMAGEEXTPROC) (Display *dpy, GLXDrawable drawable, int buffer, const int *attrib_list);
  359. typedef void ( *PFNGLXRELEASETEXIMAGEEXTPROC) (Display *dpy, GLXDrawable drawable, int buffer);
  360. #ifdef GLX_GLXEXT_PROTOTYPES
  361. void glXBindTexImageEXT (Display *dpy, GLXDrawable drawable, int buffer, const int *attrib_list);
  362. void glXReleaseTexImageEXT (Display *dpy, GLXDrawable drawable, int buffer);
  363. #endif
  364. #endif /* GLX_EXT_texture_from_pixmap */
  365. #ifndef GLX_EXT_visual_info
  366. #define GLX_EXT_visual_info 1
  367. #define GLX_X_VISUAL_TYPE_EXT 0x22
  368. #define GLX_TRANSPARENT_TYPE_EXT 0x23
  369. #define GLX_TRANSPARENT_INDEX_VALUE_EXT 0x24
  370. #define GLX_TRANSPARENT_RED_VALUE_EXT 0x25
  371. #define GLX_TRANSPARENT_GREEN_VALUE_EXT 0x26
  372. #define GLX_TRANSPARENT_BLUE_VALUE_EXT 0x27
  373. #define GLX_TRANSPARENT_ALPHA_VALUE_EXT 0x28
  374. #define GLX_NONE_EXT 0x8000
  375. #define GLX_TRUE_COLOR_EXT 0x8002
  376. #define GLX_DIRECT_COLOR_EXT 0x8003
  377. #define GLX_PSEUDO_COLOR_EXT 0x8004
  378. #define GLX_STATIC_COLOR_EXT 0x8005
  379. #define GLX_GRAY_SCALE_EXT 0x8006
  380. #define GLX_STATIC_GRAY_EXT 0x8007
  381. #define GLX_TRANSPARENT_RGB_EXT 0x8008
  382. #define GLX_TRANSPARENT_INDEX_EXT 0x8009
  383. #endif /* GLX_EXT_visual_info */
  384. #ifndef GLX_EXT_visual_rating
  385. #define GLX_EXT_visual_rating 1
  386. #define GLX_VISUAL_CAVEAT_EXT 0x20
  387. #define GLX_SLOW_VISUAL_EXT 0x8001
  388. #define GLX_NON_CONFORMANT_VISUAL_EXT 0x800D
  389. #endif /* GLX_EXT_visual_rating */
  390. #ifndef GLX_INTEL_swap_event
  391. #define GLX_INTEL_swap_event 1
  392. #define GLX_BUFFER_SWAP_COMPLETE_INTEL_MASK 0x04000000
  393. #define GLX_EXCHANGE_COMPLETE_INTEL 0x8180
  394. #define GLX_COPY_COMPLETE_INTEL 0x8181
  395. #define GLX_FLIP_COMPLETE_INTEL 0x8182
  396. #endif /* GLX_INTEL_swap_event */
  397. #ifndef GLX_MESA_agp_offset
  398. #define GLX_MESA_agp_offset 1
  399. typedef unsigned int ( *PFNGLXGETAGPOFFSETMESAPROC) (const void *pointer);
  400. #ifdef GLX_GLXEXT_PROTOTYPES
  401. unsigned int glXGetAGPOffsetMESA (const void *pointer);
  402. #endif
  403. #endif /* GLX_MESA_agp_offset */
  404. #ifndef GLX_MESA_copy_sub_buffer
  405. #define GLX_MESA_copy_sub_buffer 1
  406. typedef void ( *PFNGLXCOPYSUBBUFFERMESAPROC) (Display *dpy, GLXDrawable drawable, int x, int y, int width, int height);
  407. #ifdef GLX_GLXEXT_PROTOTYPES
  408. void glXCopySubBufferMESA (Display *dpy, GLXDrawable drawable, int x, int y, int width, int height);
  409. #endif
  410. #endif /* GLX_MESA_copy_sub_buffer */
  411. #ifndef GLX_MESA_pixmap_colormap
  412. #define GLX_MESA_pixmap_colormap 1
  413. typedef GLXPixmap ( *PFNGLXCREATEGLXPIXMAPMESAPROC) (Display *dpy, XVisualInfo *visual, Pixmap pixmap, Colormap cmap);
  414. #ifdef GLX_GLXEXT_PROTOTYPES
  415. GLXPixmap glXCreateGLXPixmapMESA (Display *dpy, XVisualInfo *visual, Pixmap pixmap, Colormap cmap);
  416. #endif
  417. #endif /* GLX_MESA_pixmap_colormap */
  418. #ifndef GLX_MESA_query_renderer
  419. #define GLX_MESA_query_renderer 1
  420. #define GLX_RENDERER_VENDOR_ID_MESA 0x8183
  421. #define GLX_RENDERER_DEVICE_ID_MESA 0x8184
  422. #define GLX_RENDERER_VERSION_MESA 0x8185
  423. #define GLX_RENDERER_ACCELERATED_MESA 0x8186
  424. #define GLX_RENDERER_VIDEO_MEMORY_MESA 0x8187
  425. #define GLX_RENDERER_UNIFIED_MEMORY_ARCHITECTURE_MESA 0x8188
  426. #define GLX_RENDERER_PREFERRED_PROFILE_MESA 0x8189
  427. #define GLX_RENDERER_OPENGL_CORE_PROFILE_VERSION_MESA 0x818A
  428. #define GLX_RENDERER_OPENGL_COMPATIBILITY_PROFILE_VERSION_MESA 0x818B
  429. #define GLX_RENDERER_OPENGL_ES_PROFILE_VERSION_MESA 0x818C
  430. #define GLX_RENDERER_OPENGL_ES2_PROFILE_VERSION_MESA 0x818D
  431. typedef Bool ( *PFNGLXQUERYCURRENTRENDERERINTEGERMESAPROC) (int attribute, unsigned int *value);
  432. typedef const char *( *PFNGLXQUERYCURRENTRENDERERSTRINGMESAPROC) (int attribute);
  433. typedef Bool ( *PFNGLXQUERYRENDERERINTEGERMESAPROC) (Display *dpy, int screen, int renderer, int attribute, unsigned int *value);
  434. typedef const char *( *PFNGLXQUERYRENDERERSTRINGMESAPROC) (Display *dpy, int screen, int renderer, int attribute);
  435. #ifdef GLX_GLXEXT_PROTOTYPES
  436. Bool glXQueryCurrentRendererIntegerMESA (int attribute, unsigned int *value);
  437. const char *glXQueryCurrentRendererStringMESA (int attribute);
  438. Bool glXQueryRendererIntegerMESA (Display *dpy, int screen, int renderer, int attribute, unsigned int *value);
  439. const char *glXQueryRendererStringMESA (Display *dpy, int screen, int renderer, int attribute);
  440. #endif
  441. #endif /* GLX_MESA_query_renderer */
  442. #ifndef GLX_MESA_release_buffers
  443. #define GLX_MESA_release_buffers 1
  444. typedef Bool ( *PFNGLXRELEASEBUFFERSMESAPROC) (Display *dpy, GLXDrawable drawable);
  445. #ifdef GLX_GLXEXT_PROTOTYPES
  446. Bool glXReleaseBuffersMESA (Display *dpy, GLXDrawable drawable);
  447. #endif
  448. #endif /* GLX_MESA_release_buffers */
  449. #ifndef GLX_MESA_set_3dfx_mode
  450. #define GLX_MESA_set_3dfx_mode 1
  451. #define GLX_3DFX_WINDOW_MODE_MESA 0x1
  452. #define GLX_3DFX_FULLSCREEN_MODE_MESA 0x2
  453. typedef GLboolean ( *PFNGLXSET3DFXMODEMESAPROC) (GLint mode);
  454. #ifdef GLX_GLXEXT_PROTOTYPES
  455. GLboolean glXSet3DfxModeMESA (GLint mode);
  456. #endif
  457. #endif /* GLX_MESA_set_3dfx_mode */
  458. #ifndef GLX_MESA_swap_control
  459. #define GLX_MESA_swap_control 1
  460. typedef int ( *PFNGLXGETSWAPINTERVALMESAPROC) (void);
  461. typedef int ( *PFNGLXSWAPINTERVALMESAPROC) (unsigned int interval);
  462. #ifdef GLX_GLXEXT_PROTOTYPES
  463. int glXGetSwapIntervalMESA (void);
  464. int glXSwapIntervalMESA (unsigned int interval);
  465. #endif
  466. #endif /* GLX_MESA_swap_control */
  467. #ifndef GLX_NV_copy_buffer
  468. #define GLX_NV_copy_buffer 1
  469. typedef void ( *PFNGLXCOPYBUFFERSUBDATANVPROC) (Display *dpy, GLXContext readCtx, GLXContext writeCtx, GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
  470. typedef void ( *PFNGLXNAMEDCOPYBUFFERSUBDATANVPROC) (Display *dpy, GLXContext readCtx, GLXContext writeCtx, GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
  471. #ifdef GLX_GLXEXT_PROTOTYPES
  472. void glXCopyBufferSubDataNV (Display *dpy, GLXContext readCtx, GLXContext writeCtx, GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
  473. void glXNamedCopyBufferSubDataNV (Display *dpy, GLXContext readCtx, GLXContext writeCtx, GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
  474. #endif
  475. #endif /* GLX_NV_copy_buffer */
  476. #ifndef GLX_NV_copy_image
  477. #define GLX_NV_copy_image 1
  478. typedef 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);
  479. #ifdef GLX_GLXEXT_PROTOTYPES
  480. 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);
  481. #endif
  482. #endif /* GLX_NV_copy_image */
  483. #ifndef GLX_NV_delay_before_swap
  484. #define GLX_NV_delay_before_swap 1
  485. typedef Bool ( *PFNGLXDELAYBEFORESWAPNVPROC) (Display *dpy, GLXDrawable drawable, GLfloat seconds);
  486. #ifdef GLX_GLXEXT_PROTOTYPES
  487. Bool glXDelayBeforeSwapNV (Display *dpy, GLXDrawable drawable, GLfloat seconds);
  488. #endif
  489. #endif /* GLX_NV_delay_before_swap */
  490. #ifndef GLX_NV_float_buffer
  491. #define GLX_NV_float_buffer 1
  492. #define GLX_FLOAT_COMPONENTS_NV 0x20B0
  493. #endif /* GLX_NV_float_buffer */
  494. #ifndef GLX_NV_multigpu_context
  495. #define GLX_NV_multigpu_context 1
  496. #define GLX_CONTEXT_MULTIGPU_ATTRIB_NV 0x20AA
  497. #define GLX_CONTEXT_MULTIGPU_ATTRIB_SINGLE_NV 0x20AB
  498. #define GLX_CONTEXT_MULTIGPU_ATTRIB_AFR_NV 0x20AC
  499. #define GLX_CONTEXT_MULTIGPU_ATTRIB_MULTICAST_NV 0x20AD
  500. #define GLX_CONTEXT_MULTIGPU_ATTRIB_MULTI_DISPLAY_MULTICAST_NV 0x20AE
  501. #endif /* GLX_NV_multigpu_context */
  502. #ifndef GLX_NV_multisample_coverage
  503. #define GLX_NV_multisample_coverage 1
  504. #define GLX_COVERAGE_SAMPLES_NV 100001
  505. #define GLX_COLOR_SAMPLES_NV 0x20B3
  506. #endif /* GLX_NV_multisample_coverage */
  507. #ifndef GLX_NV_present_video
  508. #define GLX_NV_present_video 1
  509. #define GLX_NUM_VIDEO_SLOTS_NV 0x20F0
  510. typedef unsigned int *( *PFNGLXENUMERATEVIDEODEVICESNVPROC) (Display *dpy, int screen, int *nelements);
  511. typedef int ( *PFNGLXBINDVIDEODEVICENVPROC) (Display *dpy, unsigned int video_slot, unsigned int video_device, const int *attrib_list);
  512. #ifdef GLX_GLXEXT_PROTOTYPES
  513. unsigned int *glXEnumerateVideoDevicesNV (Display *dpy, int screen, int *nelements);
  514. int glXBindVideoDeviceNV (Display *dpy, unsigned int video_slot, unsigned int video_device, const int *attrib_list);
  515. #endif
  516. #endif /* GLX_NV_present_video */
  517. #ifndef GLX_NV_robustness_video_memory_purge
  518. #define GLX_NV_robustness_video_memory_purge 1
  519. #define GLX_GENERATE_RESET_ON_VIDEO_MEMORY_PURGE_NV 0x20F7
  520. #endif /* GLX_NV_robustness_video_memory_purge */
  521. #ifndef GLX_NV_swap_group
  522. #define GLX_NV_swap_group 1
  523. typedef Bool ( *PFNGLXJOINSWAPGROUPNVPROC) (Display *dpy, GLXDrawable drawable, GLuint group);
  524. typedef Bool ( *PFNGLXBINDSWAPBARRIERNVPROC) (Display *dpy, GLuint group, GLuint barrier);
  525. typedef Bool ( *PFNGLXQUERYSWAPGROUPNVPROC) (Display *dpy, GLXDrawable drawable, GLuint *group, GLuint *barrier);
  526. typedef Bool ( *PFNGLXQUERYMAXSWAPGROUPSNVPROC) (Display *dpy, int screen, GLuint *maxGroups, GLuint *maxBarriers);
  527. typedef Bool ( *PFNGLXQUERYFRAMECOUNTNVPROC) (Display *dpy, int screen, GLuint *count);
  528. typedef Bool ( *PFNGLXRESETFRAMECOUNTNVPROC) (Display *dpy, int screen);
  529. #ifdef GLX_GLXEXT_PROTOTYPES
  530. Bool glXJoinSwapGroupNV (Display *dpy, GLXDrawable drawable, GLuint group);
  531. Bool glXBindSwapBarrierNV (Display *dpy, GLuint group, GLuint barrier);
  532. Bool glXQuerySwapGroupNV (Display *dpy, GLXDrawable drawable, GLuint *group, GLuint *barrier);
  533. Bool glXQueryMaxSwapGroupsNV (Display *dpy, int screen, GLuint *maxGroups, GLuint *maxBarriers);
  534. Bool glXQueryFrameCountNV (Display *dpy, int screen, GLuint *count);
  535. Bool glXResetFrameCountNV (Display *dpy, int screen);
  536. #endif
  537. #endif /* GLX_NV_swap_group */
  538. #ifndef GLX_NV_video_capture
  539. #define GLX_NV_video_capture 1
  540. typedef XID GLXVideoCaptureDeviceNV;
  541. #define GLX_DEVICE_ID_NV 0x20CD
  542. #define GLX_UNIQUE_ID_NV 0x20CE
  543. #define GLX_NUM_VIDEO_CAPTURE_SLOTS_NV 0x20CF
  544. typedef int ( *PFNGLXBINDVIDEOCAPTUREDEVICENVPROC) (Display *dpy, unsigned int video_capture_slot, GLXVideoCaptureDeviceNV device);
  545. typedef GLXVideoCaptureDeviceNV *( *PFNGLXENUMERATEVIDEOCAPTUREDEVICESNVPROC) (Display *dpy, int screen, int *nelements);
  546. typedef void ( *PFNGLXLOCKVIDEOCAPTUREDEVICENVPROC) (Display *dpy, GLXVideoCaptureDeviceNV device);
  547. typedef int ( *PFNGLXQUERYVIDEOCAPTUREDEVICENVPROC) (Display *dpy, GLXVideoCaptureDeviceNV device, int attribute, int *value);
  548. typedef void ( *PFNGLXRELEASEVIDEOCAPTUREDEVICENVPROC) (Display *dpy, GLXVideoCaptureDeviceNV device);
  549. #ifdef GLX_GLXEXT_PROTOTYPES
  550. int glXBindVideoCaptureDeviceNV (Display *dpy, unsigned int video_capture_slot, GLXVideoCaptureDeviceNV device);
  551. GLXVideoCaptureDeviceNV *glXEnumerateVideoCaptureDevicesNV (Display *dpy, int screen, int *nelements);
  552. void glXLockVideoCaptureDeviceNV (Display *dpy, GLXVideoCaptureDeviceNV device);
  553. int glXQueryVideoCaptureDeviceNV (Display *dpy, GLXVideoCaptureDeviceNV device, int attribute, int *value);
  554. void glXReleaseVideoCaptureDeviceNV (Display *dpy, GLXVideoCaptureDeviceNV device);
  555. #endif
  556. #endif /* GLX_NV_video_capture */
  557. #ifndef GLX_NV_video_out
  558. #define GLX_NV_video_out 1
  559. typedef unsigned int GLXVideoDeviceNV;
  560. #define GLX_VIDEO_OUT_COLOR_NV 0x20C3
  561. #define GLX_VIDEO_OUT_ALPHA_NV 0x20C4
  562. #define GLX_VIDEO_OUT_DEPTH_NV 0x20C5
  563. #define GLX_VIDEO_OUT_COLOR_AND_ALPHA_NV 0x20C6
  564. #define GLX_VIDEO_OUT_COLOR_AND_DEPTH_NV 0x20C7
  565. #define GLX_VIDEO_OUT_FRAME_NV 0x20C8
  566. #define GLX_VIDEO_OUT_FIELD_1_NV 0x20C9
  567. #define GLX_VIDEO_OUT_FIELD_2_NV 0x20CA
  568. #define GLX_VIDEO_OUT_STACKED_FIELDS_1_2_NV 0x20CB
  569. #define GLX_VIDEO_OUT_STACKED_FIELDS_2_1_NV 0x20CC
  570. typedef int ( *PFNGLXGETVIDEODEVICENVPROC) (Display *dpy, int screen, int numVideoDevices, GLXVideoDeviceNV *pVideoDevice);
  571. typedef int ( *PFNGLXRELEASEVIDEODEVICENVPROC) (Display *dpy, int screen, GLXVideoDeviceNV VideoDevice);
  572. typedef int ( *PFNGLXBINDVIDEOIMAGENVPROC) (Display *dpy, GLXVideoDeviceNV VideoDevice, GLXPbuffer pbuf, int iVideoBuffer);
  573. typedef int ( *PFNGLXRELEASEVIDEOIMAGENVPROC) (Display *dpy, GLXPbuffer pbuf);
  574. typedef int ( *PFNGLXSENDPBUFFERTOVIDEONVPROC) (Display *dpy, GLXPbuffer pbuf, int iBufferType, unsigned long *pulCounterPbuffer, GLboolean bBlock);
  575. typedef int ( *PFNGLXGETVIDEOINFONVPROC) (Display *dpy, int screen, GLXVideoDeviceNV VideoDevice, unsigned long *pulCounterOutputPbuffer, unsigned long *pulCounterOutputVideo);
  576. #ifdef GLX_GLXEXT_PROTOTYPES
  577. int glXGetVideoDeviceNV (Display *dpy, int screen, int numVideoDevices, GLXVideoDeviceNV *pVideoDevice);
  578. int glXReleaseVideoDeviceNV (Display *dpy, int screen, GLXVideoDeviceNV VideoDevice);
  579. int glXBindVideoImageNV (Display *dpy, GLXVideoDeviceNV VideoDevice, GLXPbuffer pbuf, int iVideoBuffer);
  580. int glXReleaseVideoImageNV (Display *dpy, GLXPbuffer pbuf);
  581. int glXSendPbufferToVideoNV (Display *dpy, GLXPbuffer pbuf, int iBufferType, unsigned long *pulCounterPbuffer, GLboolean bBlock);
  582. int glXGetVideoInfoNV (Display *dpy, int screen, GLXVideoDeviceNV VideoDevice, unsigned long *pulCounterOutputPbuffer, unsigned long *pulCounterOutputVideo);
  583. #endif
  584. #endif /* GLX_NV_video_out */
  585. #ifndef GLX_OML_swap_method
  586. #define GLX_OML_swap_method 1
  587. #define GLX_SWAP_METHOD_OML 0x8060
  588. #define GLX_SWAP_EXCHANGE_OML 0x8061
  589. #define GLX_SWAP_COPY_OML 0x8062
  590. #define GLX_SWAP_UNDEFINED_OML 0x8063
  591. #endif /* GLX_OML_swap_method */
  592. #ifndef GLX_OML_sync_control
  593. #define GLX_OML_sync_control 1
  594. #ifndef GLEXT_64_TYPES_DEFINED
  595. /* This code block is duplicated in glext.h, so must be protected */
  596. #define GLEXT_64_TYPES_DEFINED
  597. /* Define int32_t, int64_t, and uint64_t types for UST/MSC */
  598. /* (as used in the GLX_OML_sync_control extension). */
  599. #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
  600. #include <inttypes.h>
  601. #elif defined(__sun__) || defined(__digital__)
  602. #include <inttypes.h>
  603. #if defined(__STDC__)
  604. #if defined(__arch64__) || defined(_LP64)
  605. typedef long int int64_t;
  606. typedef unsigned long int uint64_t;
  607. #else
  608. typedef long long int int64_t;
  609. typedef unsigned long long int uint64_t;
  610. #endif /* __arch64__ */
  611. #endif /* __STDC__ */
  612. #elif defined( __VMS ) || defined(__sgi)
  613. #include <inttypes.h>
  614. #elif defined(__SCO__) || defined(__USLC__)
  615. #include <stdint.h>
  616. #elif defined(__UNIXOS2__) || defined(__SOL64__)
  617. typedef long int int32_t;
  618. typedef long long int int64_t;
  619. typedef unsigned long long int uint64_t;
  620. #elif defined(_WIN32) && defined(__GNUC__)
  621. #include <stdint.h>
  622. #elif defined(_WIN32)
  623. typedef __int32 int32_t;
  624. typedef __int64 int64_t;
  625. typedef unsigned __int64 uint64_t;
  626. #else
  627. /* Fallback if nothing above works */
  628. #include <inttypes.h>
  629. #endif
  630. #endif
  631. typedef Bool ( *PFNGLXGETSYNCVALUESOMLPROC) (Display *dpy, GLXDrawable drawable, int64_t *ust, int64_t *msc, int64_t *sbc);
  632. typedef Bool ( *PFNGLXGETMSCRATEOMLPROC) (Display *dpy, GLXDrawable drawable, int32_t *numerator, int32_t *denominator);
  633. typedef int64_t ( *PFNGLXSWAPBUFFERSMSCOMLPROC) (Display *dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder);
  634. typedef 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);
  635. typedef Bool ( *PFNGLXWAITFORSBCOMLPROC) (Display *dpy, GLXDrawable drawable, int64_t target_sbc, int64_t *ust, int64_t *msc, int64_t *sbc);
  636. #ifdef GLX_GLXEXT_PROTOTYPES
  637. Bool glXGetSyncValuesOML (Display *dpy, GLXDrawable drawable, int64_t *ust, int64_t *msc, int64_t *sbc);
  638. Bool glXGetMscRateOML (Display *dpy, GLXDrawable drawable, int32_t *numerator, int32_t *denominator);
  639. int64_t glXSwapBuffersMscOML (Display *dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder);
  640. 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);
  641. Bool glXWaitForSbcOML (Display *dpy, GLXDrawable drawable, int64_t target_sbc, int64_t *ust, int64_t *msc, int64_t *sbc);
  642. #endif
  643. #endif /* GLX_OML_sync_control */
  644. #ifndef GLX_SGIS_blended_overlay
  645. #define GLX_SGIS_blended_overlay 1
  646. #define GLX_BLENDED_RGBA_SGIS 0x8025
  647. #endif /* GLX_SGIS_blended_overlay */
  648. #ifndef GLX_SGIS_multisample
  649. #define GLX_SGIS_multisample 1
  650. #define GLX_SAMPLE_BUFFERS_SGIS 100000
  651. #define GLX_SAMPLES_SGIS 100001
  652. #endif /* GLX_SGIS_multisample */
  653. #ifndef GLX_SGIS_shared_multisample
  654. #define GLX_SGIS_shared_multisample 1
  655. #define GLX_MULTISAMPLE_SUB_RECT_WIDTH_SGIS 0x8026
  656. #define GLX_MULTISAMPLE_SUB_RECT_HEIGHT_SGIS 0x8027
  657. #endif /* GLX_SGIS_shared_multisample */
  658. #ifndef GLX_SGIX_dmbuffer
  659. #define GLX_SGIX_dmbuffer 1
  660. typedef XID GLXPbufferSGIX;
  661. #ifdef _DM_BUFFER_H_
  662. #define GLX_DIGITAL_MEDIA_PBUFFER_SGIX 0x8024
  663. typedef Bool ( *PFNGLXASSOCIATEDMPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuffer, DMparams *params, DMbuffer dmbuffer);
  664. #ifdef GLX_GLXEXT_PROTOTYPES
  665. Bool glXAssociateDMPbufferSGIX (Display *dpy, GLXPbufferSGIX pbuffer, DMparams *params, DMbuffer dmbuffer);
  666. #endif
  667. #endif /* _DM_BUFFER_H_ */
  668. #endif /* GLX_SGIX_dmbuffer */
  669. #ifndef GLX_SGIX_fbconfig
  670. #define GLX_SGIX_fbconfig 1
  671. typedef struct __GLXFBConfigRec *GLXFBConfigSGIX;
  672. #define GLX_WINDOW_BIT_SGIX 0x00000001
  673. #define GLX_PIXMAP_BIT_SGIX 0x00000002
  674. #define GLX_RGBA_BIT_SGIX 0x00000001
  675. #define GLX_COLOR_INDEX_BIT_SGIX 0x00000002
  676. #define GLX_DRAWABLE_TYPE_SGIX 0x8010
  677. #define GLX_RENDER_TYPE_SGIX 0x8011
  678. #define GLX_X_RENDERABLE_SGIX 0x8012
  679. #define GLX_FBCONFIG_ID_SGIX 0x8013
  680. #define GLX_RGBA_TYPE_SGIX 0x8014
  681. #define GLX_COLOR_INDEX_TYPE_SGIX 0x8015
  682. typedef int ( *PFNGLXGETFBCONFIGATTRIBSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, int attribute, int *value);
  683. typedef GLXFBConfigSGIX *( *PFNGLXCHOOSEFBCONFIGSGIXPROC) (Display *dpy, int screen, int *attrib_list, int *nelements);
  684. typedef GLXPixmap ( *PFNGLXCREATEGLXPIXMAPWITHCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, Pixmap pixmap);
  685. typedef GLXContext ( *PFNGLXCREATECONTEXTWITHCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, int render_type, GLXContext share_list, Bool direct);
  686. typedef XVisualInfo *( *PFNGLXGETVISUALFROMFBCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config);
  687. typedef GLXFBConfigSGIX ( *PFNGLXGETFBCONFIGFROMVISUALSGIXPROC) (Display *dpy, XVisualInfo *vis);
  688. #ifdef GLX_GLXEXT_PROTOTYPES
  689. int glXGetFBConfigAttribSGIX (Display *dpy, GLXFBConfigSGIX config, int attribute, int *value);
  690. GLXFBConfigSGIX *glXChooseFBConfigSGIX (Display *dpy, int screen, int *attrib_list, int *nelements);
  691. GLXPixmap glXCreateGLXPixmapWithConfigSGIX (Display *dpy, GLXFBConfigSGIX config, Pixmap pixmap);
  692. GLXContext glXCreateContextWithConfigSGIX (Display *dpy, GLXFBConfigSGIX config, int render_type, GLXContext share_list, Bool direct);
  693. XVisualInfo *glXGetVisualFromFBConfigSGIX (Display *dpy, GLXFBConfigSGIX config);
  694. GLXFBConfigSGIX glXGetFBConfigFromVisualSGIX (Display *dpy, XVisualInfo *vis);
  695. #endif
  696. #endif /* GLX_SGIX_fbconfig */
  697. #ifndef GLX_SGIX_hyperpipe
  698. #define GLX_SGIX_hyperpipe 1
  699. typedef struct {
  700. char pipeName[80]; /* Should be [GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX] */
  701. int networkId;
  702. } GLXHyperpipeNetworkSGIX;
  703. typedef struct {
  704. char pipeName[80]; /* Should be [GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX] */
  705. int channel;
  706. unsigned int participationType;
  707. int timeSlice;
  708. } GLXHyperpipeConfigSGIX;
  709. typedef struct {
  710. char pipeName[80]; /* Should be [GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX] */
  711. int srcXOrigin, srcYOrigin, srcWidth, srcHeight;
  712. int destXOrigin, destYOrigin, destWidth, destHeight;
  713. } GLXPipeRect;
  714. typedef struct {
  715. char pipeName[80]; /* Should be [GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX] */
  716. int XOrigin, YOrigin, maxHeight, maxWidth;
  717. } GLXPipeRectLimits;
  718. #define GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX 80
  719. #define GLX_BAD_HYPERPIPE_CONFIG_SGIX 91
  720. #define GLX_BAD_HYPERPIPE_SGIX 92
  721. #define GLX_HYPERPIPE_DISPLAY_PIPE_SGIX 0x00000001
  722. #define GLX_HYPERPIPE_RENDER_PIPE_SGIX 0x00000002
  723. #define GLX_PIPE_RECT_SGIX 0x00000001
  724. #define GLX_PIPE_RECT_LIMITS_SGIX 0x00000002
  725. #define GLX_HYPERPIPE_STEREO_SGIX 0x00000003
  726. #define GLX_HYPERPIPE_PIXEL_AVERAGE_SGIX 0x00000004
  727. #define GLX_HYPERPIPE_ID_SGIX 0x8030
  728. typedef GLXHyperpipeNetworkSGIX *( *PFNGLXQUERYHYPERPIPENETWORKSGIXPROC) (Display *dpy, int *npipes);
  729. typedef int ( *PFNGLXHYPERPIPECONFIGSGIXPROC) (Display *dpy, int networkId, int npipes, GLXHyperpipeConfigSGIX *cfg, int *hpId);
  730. typedef GLXHyperpipeConfigSGIX *( *PFNGLXQUERYHYPERPIPECONFIGSGIXPROC) (Display *dpy, int hpId, int *npipes);
  731. typedef int ( *PFNGLXDESTROYHYPERPIPECONFIGSGIXPROC) (Display *dpy, int hpId);
  732. typedef int ( *PFNGLXBINDHYPERPIPESGIXPROC) (Display *dpy, int hpId);
  733. typedef int ( *PFNGLXQUERYHYPERPIPEBESTATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *attribList, void *returnAttribList);
  734. typedef int ( *PFNGLXHYPERPIPEATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *attribList);
  735. typedef int ( *PFNGLXQUERYHYPERPIPEATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *returnAttribList);
  736. #ifdef GLX_GLXEXT_PROTOTYPES
  737. GLXHyperpipeNetworkSGIX *glXQueryHyperpipeNetworkSGIX (Display *dpy, int *npipes);
  738. int glXHyperpipeConfigSGIX (Display *dpy, int networkId, int npipes, GLXHyperpipeConfigSGIX *cfg, int *hpId);
  739. GLXHyperpipeConfigSGIX *glXQueryHyperpipeConfigSGIX (Display *dpy, int hpId, int *npipes);
  740. int glXDestroyHyperpipeConfigSGIX (Display *dpy, int hpId);
  741. int glXBindHyperpipeSGIX (Display *dpy, int hpId);
  742. int glXQueryHyperpipeBestAttribSGIX (Display *dpy, int timeSlice, int attrib, int size, void *attribList, void *returnAttribList);
  743. int glXHyperpipeAttribSGIX (Display *dpy, int timeSlice, int attrib, int size, void *attribList);
  744. int glXQueryHyperpipeAttribSGIX (Display *dpy, int timeSlice, int attrib, int size, void *returnAttribList);
  745. #endif
  746. #endif /* GLX_SGIX_hyperpipe */
  747. #ifndef GLX_SGIX_pbuffer
  748. #define GLX_SGIX_pbuffer 1
  749. #define GLX_PBUFFER_BIT_SGIX 0x00000004
  750. #define GLX_BUFFER_CLOBBER_MASK_SGIX 0x08000000
  751. #define GLX_FRONT_LEFT_BUFFER_BIT_SGIX 0x00000001
  752. #define GLX_FRONT_RIGHT_BUFFER_BIT_SGIX 0x00000002
  753. #define GLX_BACK_LEFT_BUFFER_BIT_SGIX 0x00000004
  754. #define GLX_BACK_RIGHT_BUFFER_BIT_SGIX 0x00000008
  755. #define GLX_AUX_BUFFERS_BIT_SGIX 0x00000010
  756. #define GLX_DEPTH_BUFFER_BIT_SGIX 0x00000020
  757. #define GLX_STENCIL_BUFFER_BIT_SGIX 0x00000040
  758. #define GLX_ACCUM_BUFFER_BIT_SGIX 0x00000080
  759. #define GLX_SAMPLE_BUFFERS_BIT_SGIX 0x00000100
  760. #define GLX_MAX_PBUFFER_WIDTH_SGIX 0x8016
  761. #define GLX_MAX_PBUFFER_HEIGHT_SGIX 0x8017
  762. #define GLX_MAX_PBUFFER_PIXELS_SGIX 0x8018
  763. #define GLX_OPTIMAL_PBUFFER_WIDTH_SGIX 0x8019
  764. #define GLX_OPTIMAL_PBUFFER_HEIGHT_SGIX 0x801A
  765. #define GLX_PRESERVED_CONTENTS_SGIX 0x801B
  766. #define GLX_LARGEST_PBUFFER_SGIX 0x801C
  767. #define GLX_WIDTH_SGIX 0x801D
  768. #define GLX_HEIGHT_SGIX 0x801E
  769. #define GLX_EVENT_MASK_SGIX 0x801F
  770. #define GLX_DAMAGED_SGIX 0x8020
  771. #define GLX_SAVED_SGIX 0x8021
  772. #define GLX_WINDOW_SGIX 0x8022
  773. #define GLX_PBUFFER_SGIX 0x8023
  774. typedef GLXPbufferSGIX ( *PFNGLXCREATEGLXPBUFFERSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, unsigned int width, unsigned int height, int *attrib_list);
  775. typedef void ( *PFNGLXDESTROYGLXPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuf);
  776. typedef void ( *PFNGLXQUERYGLXPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuf, int attribute, unsigned int *value);
  777. typedef void ( *PFNGLXSELECTEVENTSGIXPROC) (Display *dpy, GLXDrawable drawable, unsigned long mask);
  778. typedef void ( *PFNGLXGETSELECTEDEVENTSGIXPROC) (Display *dpy, GLXDrawable drawable, unsigned long *mask);
  779. #ifdef GLX_GLXEXT_PROTOTYPES
  780. GLXPbufferSGIX glXCreateGLXPbufferSGIX (Display *dpy, GLXFBConfigSGIX config, unsigned int width, unsigned int height, int *attrib_list);
  781. void glXDestroyGLXPbufferSGIX (Display *dpy, GLXPbufferSGIX pbuf);
  782. void glXQueryGLXPbufferSGIX (Display *dpy, GLXPbufferSGIX pbuf, int attribute, unsigned int *value);
  783. void glXSelectEventSGIX (Display *dpy, GLXDrawable drawable, unsigned long mask);
  784. void glXGetSelectedEventSGIX (Display *dpy, GLXDrawable drawable, unsigned long *mask);
  785. #endif
  786. #endif /* GLX_SGIX_pbuffer */
  787. #ifndef GLX_SGIX_swap_barrier
  788. #define GLX_SGIX_swap_barrier 1
  789. typedef void ( *PFNGLXBINDSWAPBARRIERSGIXPROC) (Display *dpy, GLXDrawable drawable, int barrier);
  790. typedef Bool ( *PFNGLXQUERYMAXSWAPBARRIERSSGIXPROC) (Display *dpy, int screen, int *max);
  791. #ifdef GLX_GLXEXT_PROTOTYPES
  792. void glXBindSwapBarrierSGIX (Display *dpy, GLXDrawable drawable, int barrier);
  793. Bool glXQueryMaxSwapBarriersSGIX (Display *dpy, int screen, int *max);
  794. #endif
  795. #endif /* GLX_SGIX_swap_barrier */
  796. #ifndef GLX_SGIX_swap_group
  797. #define GLX_SGIX_swap_group 1
  798. typedef void ( *PFNGLXJOINSWAPGROUPSGIXPROC) (Display *dpy, GLXDrawable drawable, GLXDrawable member);
  799. #ifdef GLX_GLXEXT_PROTOTYPES
  800. void glXJoinSwapGroupSGIX (Display *dpy, GLXDrawable drawable, GLXDrawable member);
  801. #endif
  802. #endif /* GLX_SGIX_swap_group */
  803. #ifndef GLX_SGIX_video_resize
  804. #define GLX_SGIX_video_resize 1
  805. #define GLX_SYNC_FRAME_SGIX 0x00000000
  806. #define GLX_SYNC_SWAP_SGIX 0x00000001
  807. typedef int ( *PFNGLXBINDCHANNELTOWINDOWSGIXPROC) (Display *display, int screen, int channel, Window window);
  808. typedef int ( *PFNGLXCHANNELRECTSGIXPROC) (Display *display, int screen, int channel, int x, int y, int w, int h);
  809. typedef int ( *PFNGLXQUERYCHANNELRECTSGIXPROC) (Display *display, int screen, int channel, int *dx, int *dy, int *dw, int *dh);
  810. typedef int ( *PFNGLXQUERYCHANNELDELTASSGIXPROC) (Display *display, int screen, int channel, int *x, int *y, int *w, int *h);
  811. typedef int ( *PFNGLXCHANNELRECTSYNCSGIXPROC) (Display *display, int screen, int channel, GLenum synctype);
  812. #ifdef GLX_GLXEXT_PROTOTYPES
  813. int glXBindChannelToWindowSGIX (Display *display, int screen, int channel, Window window);
  814. int glXChannelRectSGIX (Display *display, int screen, int channel, int x, int y, int w, int h);
  815. int glXQueryChannelRectSGIX (Display *display, int screen, int channel, int *dx, int *dy, int *dw, int *dh);
  816. int glXQueryChannelDeltasSGIX (Display *display, int screen, int channel, int *x, int *y, int *w, int *h);
  817. int glXChannelRectSyncSGIX (Display *display, int screen, int channel, GLenum synctype);
  818. #endif
  819. #endif /* GLX_SGIX_video_resize */
  820. #ifndef GLX_SGIX_video_source
  821. #define GLX_SGIX_video_source 1
  822. typedef XID GLXVideoSourceSGIX;
  823. #ifdef _VL_H
  824. typedef GLXVideoSourceSGIX ( *PFNGLXCREATEGLXVIDEOSOURCESGIXPROC) (Display *display, int screen, VLServer server, VLPath path, int nodeClass, VLNode drainNode);
  825. typedef void ( *PFNGLXDESTROYGLXVIDEOSOURCESGIXPROC) (Display *dpy, GLXVideoSourceSGIX glxvideosource);
  826. #ifdef GLX_GLXEXT_PROTOTYPES
  827. GLXVideoSourceSGIX glXCreateGLXVideoSourceSGIX (Display *display, int screen, VLServer server, VLPath path, int nodeClass, VLNode drainNode);
  828. void glXDestroyGLXVideoSourceSGIX (Display *dpy, GLXVideoSourceSGIX glxvideosource);
  829. #endif
  830. #endif /* _VL_H */
  831. #endif /* GLX_SGIX_video_source */
  832. #ifndef GLX_SGIX_visual_select_group
  833. #define GLX_SGIX_visual_select_group 1
  834. #define GLX_VISUAL_SELECT_GROUP_SGIX 0x8028
  835. #endif /* GLX_SGIX_visual_select_group */
  836. #ifndef GLX_SGI_cushion
  837. #define GLX_SGI_cushion 1
  838. typedef void ( *PFNGLXCUSHIONSGIPROC) (Display *dpy, Window window, float cushion);
  839. #ifdef GLX_GLXEXT_PROTOTYPES
  840. void glXCushionSGI (Display *dpy, Window window, float cushion);
  841. #endif
  842. #endif /* GLX_SGI_cushion */
  843. #ifndef GLX_SGI_make_current_read
  844. #define GLX_SGI_make_current_read 1
  845. typedef Bool ( *PFNGLXMAKECURRENTREADSGIPROC) (Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
  846. typedef GLXDrawable ( *PFNGLXGETCURRENTREADDRAWABLESGIPROC) (void);
  847. #ifdef GLX_GLXEXT_PROTOTYPES
  848. Bool glXMakeCurrentReadSGI (Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
  849. GLXDrawable glXGetCurrentReadDrawableSGI (void);
  850. #endif
  851. #endif /* GLX_SGI_make_current_read */
  852. #ifndef GLX_SGI_swap_control
  853. #define GLX_SGI_swap_control 1
  854. typedef int ( *PFNGLXSWAPINTERVALSGIPROC) (int interval);
  855. #ifdef GLX_GLXEXT_PROTOTYPES
  856. int glXSwapIntervalSGI (int interval);
  857. #endif
  858. #endif /* GLX_SGI_swap_control */
  859. #ifndef GLX_SGI_video_sync
  860. #define GLX_SGI_video_sync 1
  861. typedef int ( *PFNGLXGETVIDEOSYNCSGIPROC) (unsigned int *count);
  862. typedef int ( *PFNGLXWAITVIDEOSYNCSGIPROC) (int divisor, int remainder, unsigned int *count);
  863. #ifdef GLX_GLXEXT_PROTOTYPES
  864. int glXGetVideoSyncSGI (unsigned int *count);
  865. int glXWaitVideoSyncSGI (int divisor, int remainder, unsigned int *count);
  866. #endif
  867. #endif /* GLX_SGI_video_sync */
  868. #ifndef GLX_SUN_get_transparent_index
  869. #define GLX_SUN_get_transparent_index 1
  870. typedef Status ( *PFNGLXGETTRANSPARENTINDEXSUNPROC) (Display *dpy, Window overlay, Window underlay, unsigned long *pTransparentIndex);
  871. #ifdef GLX_GLXEXT_PROTOTYPES
  872. Status glXGetTransparentIndexSUN (Display *dpy, Window overlay, Window underlay, unsigned long *pTransparentIndex);
  873. #endif
  874. #endif /* GLX_SUN_get_transparent_index */
  875. #ifdef __cplusplus
  876. }
  877. #endif
  878. #endif