glxext.h 48 KB

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