glxe.h 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405
  1. //-----------------------------------------------------------------------------
  2. // Copyright (c) 2012 GarageGames, LLC
  3. //
  4. // Permission is hereby granted, free of charge, to any person obtaining a copy
  5. // of this software and associated documentation files (the "Software"), to
  6. // deal in the Software without restriction, including without limitation the
  7. // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
  8. // sell copies of the Software, and to permit persons to whom the Software is
  9. // furnished to do so, subject to the following conditions:
  10. //
  11. // The above copyright notice and this permission notice shall be included in
  12. // all copies or substantial portions of the Software.
  13. //
  14. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  15. // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  16. // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  17. // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  18. // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  19. // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
  20. // IN THE SOFTWARE.
  21. //-----------------------------------------------------------------------------
  22. #ifdef GLX_3DFX_multisample
  23. #define GLX_SAMPLE_BUFFERS_3DFX 0x8050
  24. #define GLX_SAMPLES_3DFX 0x8051
  25. #endif
  26. #ifdef GLX_ARB_fbconfig_float
  27. #define GLX_RGBA_FLOAT_BIT 0x00000004
  28. #define GLX_RGBA_FLOAT_TYPE 0x20B9
  29. #endif
  30. #ifdef GLX_ARB_get_proc_address
  31. #define glXGetProcAddressARB XGL_FUNCPTR(glXGetProcAddressARB)
  32. #endif
  33. #ifdef GLX_ARB_multisample
  34. #define GLX_SAMPLE_BUFFERS_ARB 100000
  35. #define GLX_SAMPLES_ARB 100001
  36. #endif
  37. #ifdef GLX_ATI_pixel_format_float
  38. #define GLX_RGBA_FLOAT_ATI_BIT 0x00000100
  39. #endif
  40. #ifdef GLX_ATI_render_texture
  41. #define GLX_BIND_TO_TEXTURE_RGB_ATI 0x9800
  42. #define GLX_BIND_TO_TEXTURE_RGBA_ATI 0x9801
  43. #define GLX_TEXTURE_FORMAT_ATI 0x9802
  44. #define GLX_TEXTURE_TARGET_ATI 0x9803
  45. #define GLX_MIPMAP_TEXTURE_ATI 0x9804
  46. #define GLX_TEXTURE_RGB_ATI 0x9805
  47. #define GLX_TEXTURE_RGBA_ATI 0x9806
  48. #define GLX_NO_TEXTURE_ATI 0x9807
  49. #define GLX_TEXTURE_CUBE_MAP_ATI 0x9808
  50. #define GLX_TEXTURE_1D_ATI 0x9809
  51. #define GLX_TEXTURE_2D_ATI 0x980A
  52. #define GLX_MIPMAP_LEVEL_ATI 0x980B
  53. #define GLX_CUBE_MAP_FACE_ATI 0x980C
  54. #define GLX_TEXTURE_CUBE_MAP_POSITIVE_X_ATI 0x980D
  55. #define GLX_TEXTURE_CUBE_MAP_NEGATIVE_X_ATI 0x980E
  56. #define GLX_TEXTURE_CUBE_MAP_POSITIVE_Y_ATI 0x980F
  57. #define GLX_TEXTURE_CUBE_MAP_NEGATIVE_Y_ATI 0x9810
  58. #define GLX_TEXTURE_CUBE_MAP_POSITIVE_Z_ATI 0x9811
  59. #define GLX_TEXTURE_CUBE_MAP_NEGATIVE_Z_ATI 0x9812
  60. #define GLX_FRONT_LEFT_ATI 0x9813
  61. #define GLX_FRONT_RIGHT_ATI 0x9814
  62. #define GLX_BACK_LEFT_ATI 0x9815
  63. #define GLX_BACK_RIGHT_ATI 0x9816
  64. #define GLX_AUX0_ATI 0x9817
  65. #define GLX_AUX1_ATI 0x9818
  66. #define GLX_AUX2_ATI 0x9819
  67. #define GLX_AUX3_ATI 0x981A
  68. #define GLX_AUX4_ATI 0x981B
  69. #define GLX_AUX5_ATI 0x981C
  70. #define GLX_AUX6_ATI 0x981D
  71. #define GLX_AUX7_ATI 0x981E
  72. #define GLX_AUX8_ATI 0x981F
  73. #define GLX_AUX9_ATI 0x9820
  74. #define GLX_BIND_TO_TEXTURE_LUMINANCE_ATI 0x9821
  75. #define GLX_BIND_TO_TEXTURE_INTENSITY_ATI 0x9822
  76. #define glXBindTexImageATI XGL_FUNCPTR(glXBindTexImageATI)
  77. #define glXReleaseTexImageATI XGL_FUNCPTR(glXReleaseTexImageATI)
  78. #define glXDrawableAttribATI XGL_FUNCPTR(glXDrawableAttribATI)
  79. #endif
  80. #ifdef GLX_EXT_import_context
  81. typedef XID GLXContextID;
  82. #define GLX_SHARE_CONTEXT_EXT 0x800A
  83. #define GLX_VISUAL_ID_EXT 0x800B
  84. #define GLX_SCREEN_EXT 0x800C
  85. #define glXFreeContextEXT XGL_FUNCPTR(glXFreeContextEXT)
  86. #define glXGetContextIDEXT XGL_FUNCPTR(glXGetContextIDEXT)
  87. #define glXImportContextEXT XGL_FUNCPTR(glXImportContextEXT)
  88. #define glXQueryContextInfoEXT XGL_FUNCPTR(glXQueryContextInfoEXT)
  89. #endif
  90. #ifdef GLX_EXT_scene_marker
  91. #endif
  92. #ifdef GLX_EXT_visual_info
  93. #define GLX_X_VISUAL_TYPE_EXT 0x22
  94. #define GLX_TRANSPARENT_TYPE_EXT 0x23
  95. #define GLX_TRANSPARENT_INDEX_VALUE_EXT 0x24
  96. #define GLX_TRANSPARENT_RED_VALUE_EXT 0x25
  97. #define GLX_TRANSPARENT_GREEN_VALUE_EXT 0x26
  98. #define GLX_TRANSPARENT_BLUE_VALUE_EXT 0x27
  99. #define GLX_TRANSPARENT_ALPHA_VALUE_EXT 0x28
  100. #define GLX_NONE_EXT 0x8000
  101. #define GLX_TRUE_COLOR_EXT 0x8002
  102. #define GLX_DIRECT_COLOR_EXT 0x8003
  103. #define GLX_PSEUDO_COLOR_EXT 0x8004
  104. #define GLX_STATIC_COLOR_EXT 0x8005
  105. #define GLX_GRAY_SCALE_EXT 0x8006
  106. #define GLX_STATIC_GRAY_EXT 0x8007
  107. #define GLX_TRANSPARENT_RGB_EXT 0x8008
  108. #define GLX_TRANSPARENT_INDEX_EXT 0x8009
  109. #endif
  110. #ifdef GLX_EXT_visual_rating
  111. #define GLX_VISUAL_CAVEAT_EXT 0x20
  112. #define GLX_SLOW_VISUAL_EXT 0x8001
  113. #define GLX_NON_CONFORMANT_VISUAL_EXT 0x800D
  114. #endif
  115. #ifdef GLX_MESA_agp_offset
  116. #define glXGetAGPOffsetMESA XGL_FUNCPTR(glXGetAGPOffsetMESA)
  117. #endif
  118. #ifdef GLX_MESA_copy_sub_buffer
  119. #define glXCopySubBufferMESA XGL_FUNCPTR(glXCopySubBufferMESA)
  120. #endif
  121. #ifdef GLX_MESA_pixmap_colormap
  122. #define glXCreateGLXPixmapMESA XGL_FUNCPTR(glXCreateGLXPixmapMESA)
  123. #endif
  124. #ifdef GLX_MESA_release_buffers
  125. #define glXReleaseBuffersMESA XGL_FUNCPTR(glXReleaseBuffersMESA)
  126. #endif
  127. #ifdef GLX_MESA_set_3dfx_mode
  128. #define GLX_3DFX_WINDOW_MODE_MESA 0x1
  129. #define GLX_3DFX_FULLSCREEN_MODE_MESA 0x2
  130. #define glXSet3DfxModeMESA XGL_FUNCPTR(glXSet3DfxModeMESA)
  131. #endif
  132. #ifdef GLX_NV_float_buffer
  133. #define GLX_FLOAT_COMPONENTS_NV 0x20B0
  134. #endif
  135. #ifdef GLX_NV_vertex_array_range
  136. #define glXAllocateMemoryNV XGL_FUNCPTR(glXAllocateMemoryNV)
  137. #define glXFreeMemoryNV XGL_FUNCPTR(glXFreeMemoryNV)
  138. #endif
  139. #ifdef GLX_OML_swap_method
  140. #define GLX_SWAP_METHOD_OML 0x8060
  141. #define GLX_SWAP_EXCHANGE_OML 0x8061
  142. #define GLX_SWAP_COPY_OML 0x8062
  143. #define GLX_SWAP_UNDEFINED_OML 0x8063
  144. #endif
  145. #ifdef GLX_OML_sync_control
  146. #define glXGetMscRateOML XGL_FUNCPTR(glXGetMscRateOML)
  147. #define glXGetSyncValuesOML XGL_FUNCPTR(glXGetSyncValuesOML)
  148. #define glXSwapBuffersMscOML XGL_FUNCPTR(glXSwapBuffersMscOML)
  149. #define glXWaitForMscOML XGL_FUNCPTR(glXWaitForMscOML)
  150. #define glXWaitForSbcOML XGL_FUNCPTR(glXWaitForSbcOML)
  151. #endif
  152. #ifdef GLX_SGIS_blended_overlay
  153. #define GLX_BLENDED_RGBA_SGIS 0x8025
  154. #endif
  155. #ifdef GLX_SGIS_color_range
  156. #define GLX_MAX_GREEN_SGIS 0
  157. #define GLX_MIN_RED_SGIS 0
  158. #define GLX_MIN_BLUE_SGIS 0
  159. #define GLX_MAX_RED_SGIS 0
  160. #define GLX_MAX_ALPHA_SGIS 0
  161. #define GLX_MIN_GREEN_SGIS 0
  162. #define GLX_MIN_ALPHA_SGIS 0
  163. #define GLX_EXTENDED_RANGE_SGIS 0
  164. #define GLX_MAX_BLUE_SGIS 0
  165. #endif
  166. #ifdef GLX_SGIS_multisample
  167. #define GLX_SAMPLE_BUFFERS_SGIS 100000
  168. #define GLX_SAMPLES_SGIS 100001
  169. #endif
  170. #ifdef GLX_SGIS_shared_multisample
  171. #define GLX_MULTISAMPLE_SUB_RECT_WIDTH_SGIS 0x8026
  172. #define GLX_MULTISAMPLE_SUB_RECT_HEIGHT_SGIS 0x8027
  173. #endif
  174. #ifdef GLX_SGIX_fbconfig
  175. typedef XID GLXFBConfigIDSGIX;
  176. typedef struct __GLXFBConfigRec *GLXFBConfigSGIX;
  177. #define GLX_WINDOW_BIT_SGIX 0x00000001
  178. #define GLX_RGBA_BIT_SGIX 0x00000001
  179. #define GLX_PIXMAP_BIT_SGIX 0x00000002
  180. #define GLX_COLOR_INDEX_BIT_SGIX 0x00000002
  181. #define GLX_SCREEN_EXT 0x800C
  182. #define GLX_DRAWABLE_TYPE_SGIX 0x8010
  183. #define GLX_RENDER_TYPE_SGIX 0x8011
  184. #define GLX_X_RENDERABLE_SGIX 0x8012
  185. #define GLX_FBCONFIG_ID_SGIX 0x8013
  186. #define GLX_RGBA_TYPE_SGIX 0x8014
  187. #define GLX_COLOR_INDEX_TYPE_SGIX 0x8015
  188. #define glXChooseFBConfigSGIX XGL_FUNCPTR(glXChooseFBConfigSGIX)
  189. #define glXCreateContextWithConfigSGIX XGL_FUNCPTR(glXCreateContextWithConfigSGIX)
  190. #define glXCreateGLXPixmapWithConfigSGIX XGL_FUNCPTR(glXCreateGLXPixmapWithConfigSGIX)
  191. #define glXGetFBConfigAttribSGIX XGL_FUNCPTR(glXGetFBConfigAttribSGIX)
  192. #define glXGetFBConfigFromVisualSGIX XGL_FUNCPTR(glXGetFBConfigFromVisualSGIX)
  193. #define glXGetVisualFromFBConfigSGIX XGL_FUNCPTR(glXGetVisualFromFBConfigSGIX)
  194. #endif
  195. #ifdef GLX_SGIX_pbuffer
  196. typedef XID GLXPbufferSGIX;
  197. typedef struct { int type; unsigned long serial; Bool send_event; Display *display; GLXDrawable drawable; int event_type; int draw_type; unsigned int mask; int x, y; int width, height; int count; } GLXBufferClobberEventSGIX;
  198. #define GLX_FRONT_LEFT_BUFFER_BIT_SGIX 0x00000001
  199. #define GLX_FRONT_RIGHT_BUFFER_BIT_SGIX 0x00000002
  200. #define GLX_PBUFFER_BIT_SGIX 0x00000004
  201. #define GLX_BACK_LEFT_BUFFER_BIT_SGIX 0x00000004
  202. #define GLX_BACK_RIGHT_BUFFER_BIT_SGIX 0x00000008
  203. #define GLX_AUX_BUFFERS_BIT_SGIX 0x00000010
  204. #define GLX_DEPTH_BUFFER_BIT_SGIX 0x00000020
  205. #define GLX_STENCIL_BUFFER_BIT_SGIX 0x00000040
  206. #define GLX_ACCUM_BUFFER_BIT_SGIX 0x00000080
  207. #define GLX_SAMPLE_BUFFERS_BIT_SGIX 0x00000100
  208. #define GLX_MAX_PBUFFER_WIDTH_SGIX 0x8016
  209. #define GLX_MAX_PBUFFER_HEIGHT_SGIX 0x8017
  210. #define GLX_MAX_PBUFFER_PIXELS_SGIX 0x8018
  211. #define GLX_OPTIMAL_PBUFFER_WIDTH_SGIX 0x8019
  212. #define GLX_OPTIMAL_PBUFFER_HEIGHT_SGIX 0x801A
  213. #define GLX_PRESERVED_CONTENTS_SGIX 0x801B
  214. #define GLX_LARGEST_PBUFFER_SGIX 0x801C
  215. #define GLX_WIDTH_SGIX 0x801D
  216. #define GLX_HEIGHT_SGIX 0x801E
  217. #define GLX_EVENT_MASK_SGIX 0x801F
  218. #define GLX_DAMAGED_SGIX 0x8020
  219. #define GLX_SAVED_SGIX 0x8021
  220. #define GLX_WINDOW_SGIX 0x8022
  221. #define GLX_PBUFFER_SGIX 0x8023
  222. #define GLX_BUFFER_CLOBBER_MASK_SGIX 0x08000000
  223. #define glXCreateGLXPbufferSGIX XGL_FUNCPTR(glXCreateGLXPbufferSGIX)
  224. #define glXDestroyGLXPbufferSGIX XGL_FUNCPTR(glXDestroyGLXPbufferSGIX)
  225. #define glXGetSelectedEventSGIX XGL_FUNCPTR(glXGetSelectedEventSGIX)
  226. #define glXQueryGLXPbufferSGIX XGL_FUNCPTR(glXQueryGLXPbufferSGIX)
  227. #define glXSelectEventSGIX XGL_FUNCPTR(glXSelectEventSGIX)
  228. #endif
  229. #ifdef GLX_SGIX_swap_barrier
  230. #define glXBindSwapBarrierSGIX XGL_FUNCPTR(glXBindSwapBarrierSGIX)
  231. #define glXQueryMaxSwapBarriersSGIX XGL_FUNCPTR(glXQueryMaxSwapBarriersSGIX)
  232. #endif
  233. #ifdef GLX_SGIX_swap_group
  234. #define glXJoinSwapGroupSGIX XGL_FUNCPTR(glXJoinSwapGroupSGIX)
  235. #endif
  236. #ifdef GLX_SGIX_video_resize
  237. #define GLX_SYNC_FRAME_SGIX 0x00000000
  238. #define GLX_SYNC_SWAP_SGIX 0x00000001
  239. #define glXBindChannelToWindowSGIX XGL_FUNCPTR(glXBindChannelToWindowSGIX)
  240. #define glXChannelRectSGIX XGL_FUNCPTR(glXChannelRectSGIX)
  241. #define glXChannelRectSyncSGIX XGL_FUNCPTR(glXChannelRectSyncSGIX)
  242. #define glXQueryChannelDeltasSGIX XGL_FUNCPTR(glXQueryChannelDeltasSGIX)
  243. #define glXQueryChannelRectSGIX XGL_FUNCPTR(glXQueryChannelRectSGIX)
  244. #endif
  245. #ifdef GLX_SGIX_visual_select_group
  246. #define GLX_VISUAL_SELECT_GROUP_SGIX 0x8028
  247. #endif
  248. #ifdef GLX_SGI_cushion
  249. #define glXCushionSGI XGL_FUNCPTR(glXCushionSGI)
  250. #endif
  251. #ifdef GLX_SGI_make_current_read
  252. #define glXGetCurrentReadDrawableSGI XGL_FUNCPTR(glXGetCurrentReadDrawableSGI)
  253. #define glXMakeCurrentReadSGI XGL_FUNCPTR(glXMakeCurrentReadSGI)
  254. #endif
  255. #ifdef GLX_SGI_swap_control
  256. #define glXSwapIntervalSGI XGL_FUNCPTR(glXSwapIntervalSGI)
  257. #endif
  258. #ifdef GLX_SGI_video_sync
  259. #define glXGetVideoSyncSGI XGL_FUNCPTR(glXGetVideoSyncSGI)
  260. #define glXWaitVideoSyncSGI XGL_FUNCPTR(glXWaitVideoSyncSGI)
  261. #endif
  262. #ifdef GLX_SUN_get_transparent_index
  263. #define glXGetTransparentIndexSUN XGL_FUNCPTR(glXGetTransparentIndexSUN)
  264. #endif
  265. #ifdef GLX_SUN_video_resize
  266. #define GL_VIDEO_RESIZE_COMPENSATION_SUN 0x85CD
  267. #define GLX_VIDEO_RESIZE_SUN 0x8171
  268. #define glXVideoResizeSUN XGL_FUNCPTR(glXVideoResizeSUN)
  269. #define glXGetVideoResizeSUN XGL_FUNCPTR(glXGetVideoResizeSUN)
  270. #endif
  271. #ifdef GLX_VERSION_1_1
  272. #define glXQueryExtensionsString XGL_FUNCPTR(glXQueryExtensionsString)
  273. #define glXGetClientString XGL_FUNCPTR(glXGetClientString)
  274. #define glXQueryServerString XGL_FUNCPTR(glXQueryServerString)
  275. #endif
  276. #ifdef GLX_VERSION_1_2
  277. #define glXGetCurrentDisplay XGL_FUNCPTR(glXGetCurrentDisplay)
  278. #endif
  279. #ifdef GLX_VERSION_1_3
  280. typedef XID GLXWindow;
  281. typedef XID GLXPbuffer;
  282. typedef XID GLXFBConfigID;
  283. typedef struct __GLXFBConfigRec *GLXFBConfig;
  284. typedef struct { int event_type; int draw_type; unsigned long serial; Bool send_event; Display *display; GLXDrawable drawable; unsigned int buffer_mask; unsigned int aux_buffer; int x, y; int width, height; int count; } GLXPbufferClobberEvent;
  285. typedef union __GLXEvent { GLXPbufferClobberEvent glxpbufferclobber; long pad[24]; } GLXEvent;
  286. #define GLX_WINDOW_BIT 0x00000001
  287. #define GLX_PIXMAP_BIT 0x00000002
  288. #define GLX_PBUFFER_BIT 0x00000004
  289. #define GLX_RGBA_BIT 0x00000001
  290. #define GLX_COLOR_INDEX_BIT 0x00000002
  291. #define GLX_PBUFFER_CLOBBER_MASK 0x08000000
  292. #define GLX_FRONT_LEFT_BUFFER_BIT 0x00000001
  293. #define GLX_FRONT_RIGHT_BUFFER_BIT 0x00000002
  294. #define GLX_BACK_LEFT_BUFFER_BIT 0x00000004
  295. #define GLX_BACK_RIGHT_BUFFER_BIT 0x00000008
  296. #define GLX_AUX_BUFFERS_BIT 0x00000010
  297. #define GLX_DEPTH_BUFFER_BIT 0x00000020
  298. #define GLX_STENCIL_BUFFER_BIT 0x00000040
  299. #define GLX_ACCUM_BUFFER_BIT 0x00000080
  300. #define GLX_CONFIG_CAVEAT 0x20
  301. #define GLX_X_VISUAL_TYPE 0x22
  302. #define GLX_TRANSPARENT_TYPE 0x23
  303. #define GLX_TRANSPARENT_INDEX_VALUE 0x24
  304. #define GLX_TRANSPARENT_RED_VALUE 0x25
  305. #define GLX_TRANSPARENT_GREEN_VALUE 0x26
  306. #define GLX_TRANSPARENT_BLUE_VALUE 0x27
  307. #define GLX_TRANSPARENT_ALPHA_VALUE 0x28
  308. #define GLX_DONT_CARE 0xFFFFFFFF
  309. #define GLX_NONE 0x8000
  310. #define GLX_SLOW_CONFIG 0x8001
  311. #define GLX_TRUE_COLOR 0x8002
  312. #define GLX_DIRECT_COLOR 0x8003
  313. #define GLX_PSEUDO_COLOR 0x8004
  314. #define GLX_STATIC_COLOR 0x8005
  315. #define GLX_GRAY_SCALE 0x8006
  316. #define GLX_STATIC_GRAY 0x8007
  317. #define GLX_TRANSPARENT_RGB 0x8008
  318. #define GLX_TRANSPARENT_INDEX 0x8009
  319. #define GLX_VISUAL_ID 0x800B
  320. #define GLX_SCREEN 0x800C
  321. #define GLX_NON_CONFORMANT_CONFIG 0x800D
  322. #define GLX_DRAWABLE_TYPE 0x8010
  323. #define GLX_RENDER_TYPE 0x8011
  324. #define GLX_X_RENDERABLE 0x8012
  325. #define GLX_FBCONFIG_ID 0x8013
  326. #define GLX_RGBA_TYPE 0x8014
  327. #define GLX_COLOR_INDEX_TYPE 0x8015
  328. #define GLX_MAX_PBUFFER_WIDTH 0x8016
  329. #define GLX_MAX_PBUFFER_HEIGHT 0x8017
  330. #define GLX_MAX_PBUFFER_PIXELS 0x8018
  331. #define GLX_PRESERVED_CONTENTS 0x801B
  332. #define GLX_LARGEST_PBUFFER 0x801C
  333. #define GLX_WIDTH 0x801D
  334. #define GLX_HEIGHT 0x801E
  335. #define GLX_EVENT_MASK 0x801F
  336. #define GLX_DAMAGED 0x8020
  337. #define GLX_SAVED 0x8021
  338. #define GLX_WINDOW 0x8022
  339. #define GLX_PBUFFER 0x8023
  340. #define GLX_PBUFFER_HEIGHT 0x8040
  341. #define GLX_PBUFFER_WIDTH 0x8041
  342. #define glXChooseFBConfig XGL_FUNCPTR(glXChooseFBConfig)
  343. #define glXGetFBConfigs XGL_FUNCPTR(glXGetFBConfigs)
  344. #define glXGetVisualFromFBConfig XGL_FUNCPTR(glXGetVisualFromFBConfig)
  345. #define glXGetFBConfigAttrib XGL_FUNCPTR(glXGetFBConfigAttrib)
  346. #define glXCreateWindow XGL_FUNCPTR(glXCreateWindow)
  347. #define glXDestroyWindow XGL_FUNCPTR(glXDestroyWindow)
  348. #define glXCreatePixmap XGL_FUNCPTR(glXCreatePixmap)
  349. #define glXDestroyPixmap XGL_FUNCPTR(glXDestroyPixmap)
  350. #define glXCreatePbuffer XGL_FUNCPTR(glXCreatePbuffer)
  351. #define glXDestroyPbuffer XGL_FUNCPTR(glXDestroyPbuffer)
  352. #define glXQueryDrawable XGL_FUNCPTR(glXQueryDrawable)
  353. #define glXCreateNewContext XGL_FUNCPTR(glXCreateNewContext)
  354. #define glXMakeContextCurrent XGL_FUNCPTR(glXMakeContextCurrent)
  355. #define glXGetCurrentReadDrawable XGL_FUNCPTR(glXGetCurrentReadDrawable)
  356. #define glXQueryContext XGL_FUNCPTR(glXQueryContext)
  357. #define glXSelectEvent XGL_FUNCPTR(glXSelectEvent)
  358. #define glXGetSelectedEvent XGL_FUNCPTR(glXGetSelectedEvent)
  359. #endif
  360. #ifdef GLX_VERSION_1_4
  361. #define GLX_SAMPLE_BUFFERS 100000
  362. #define GLX_SAMPLES 100001
  363. #define glXGetProcAddress XGL_FUNCPTR(glXGetProcAddress)
  364. #endif