Clone of mesa.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

glxext.h 43KB

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