SDL_opengl.h
上传用户:detong
上传日期:2022-06-22
资源大小:20675k
文件大小:328k
源码类别:

系统编程

开发平台:

Unix_Linux

  1. /*
  2.     SDL - Simple DirectMedia Layer
  3.     Copyright (C) 1997-2006 Sam Lantinga
  4.     This library is free software; you can redistribute it and/or
  5.     modify it under the terms of the GNU Lesser General Public
  6.     License as published by the Free Software Foundation; either
  7.     version 2.1 of the License, or (at your option) any later version.
  8.     This library is distributed in the hope that it will be useful,
  9.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  10.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  11.     Lesser General Public License for more details.
  12.     You should have received a copy of the GNU Lesser General Public
  13.     License along with this library; if not, write to the Free Software
  14.     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  15.     Sam Lantinga
  16.     slouken@libsdl.org
  17. */
  18. /* This is a simple file to encapsulate the OpenGL API headers */
  19. #include "SDL_config.h"
  20. #ifdef __WIN32__
  21. #define WIN32_LEAN_AND_MEAN
  22. #ifndef NOMINMAX
  23. #define NOMINMAX /* Don't defined min() and max() */
  24. #endif
  25. #include <windows.h>
  26. #endif
  27. #ifndef NO_SDL_GLEXT
  28. #define __glext_h_  /* Don't let gl.h include glext.h */
  29. #endif
  30. #if defined(__MACOSX__)
  31. #include <OpenGL/gl.h> /* Header File For The OpenGL Library */
  32. #include <OpenGL/glu.h> /* Header File For The GLU Library */
  33. #elif defined(__MACOS__)
  34. #include <gl.h> /* Header File For The OpenGL Library */
  35. #include <glu.h> /* Header File For The GLU Library */
  36. #else
  37. #include <GL/gl.h> /* Header File For The OpenGL Library */
  38. #include <GL/glu.h> /* Header File For The GLU Library */
  39. #endif
  40. #ifndef NO_SDL_GLEXT
  41. #undef __glext_h_
  42. #endif
  43. /* This file taken from "GLext.h" from the Jeff Molofee OpenGL tutorials.
  44.    It is included here because glext.h is not available on some systems.
  45.    If you don't want this version included, simply define "NO_SDL_GLEXT"
  46.  */
  47. #ifndef NO_SDL_GLEXT
  48. #if !defined(__glext_h_) && !defined(GL_GLEXT_LEGACY)
  49. #define __glext_h_
  50. #ifdef __cplusplus
  51. extern "C" {
  52. #endif
  53. /*
  54. ** License Applicability. Except to the extent portions of this file are
  55. ** made subject to an alternative license as permitted in the SGI Free
  56. ** Software License B, Version 1.1 (the "License"), the contents of this
  57. ** file are subject only to the provisions of the License. You may not use
  58. ** this file except in compliance with the License. You may obtain a copy
  59. ** of the License at Silicon Graphics, Inc., attn: Legal Services, 1600
  60. ** Amphitheatre Parkway, Mountain View, CA 94043-1351, or at:
  61. ** 
  62. ** http://oss.sgi.com/projects/FreeB
  63. ** 
  64. ** Note that, as provided in the License, the Software is distributed on an
  65. ** "AS IS" basis, with ALL EXPRESS AND IMPLIED WARRANTIES AND CONDITIONS
  66. ** DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES AND
  67. ** CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A
  68. ** PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
  69. ** 
  70. ** Original Code. The Original Code is: OpenGL Sample Implementation,
  71. ** Version 1.2.1, released January 26, 2000, developed by Silicon Graphics,
  72. ** Inc. The Original Code is Copyright (c) 1991-2004 Silicon Graphics, Inc.
  73. ** Copyright in any portions created by third parties is as indicated
  74. ** elsewhere herein. All Rights Reserved.
  75. ** 
  76. ** Additional Notice Provisions: This software was created using the
  77. ** OpenGL(R) version 1.2.1 Sample Implementation published by SGI, but has
  78. ** not been independently verified as being compliant with the OpenGL(R)
  79. ** version 1.2.1 Specification.
  80. */
  81. #if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__)
  82. #define WIN32_LEAN_AND_MEAN 1
  83. #include <windows.h>
  84. #endif
  85. #ifndef APIENTRY
  86. #define APIENTRY
  87. #endif
  88. #ifndef APIENTRYP
  89. #define APIENTRYP APIENTRY *
  90. #endif
  91. #ifndef GLAPI
  92. #define GLAPI extern
  93. #endif
  94. /*************************************************************/
  95. /* Header file version number, required by OpenGL ABI for Linux */
  96. /* glext.h last updated 2005/06/20 */
  97. /* Current version at http://oss.sgi.com/projects/ogl-sample/registry/ */
  98. #define GL_GLEXT_VERSION 29
  99. #ifndef GL_VERSION_1_2
  100. #define GL_UNSIGNED_BYTE_3_3_2            0x8032
  101. #define GL_UNSIGNED_SHORT_4_4_4_4         0x8033
  102. #define GL_UNSIGNED_SHORT_5_5_5_1         0x8034
  103. #define GL_UNSIGNED_INT_8_8_8_8           0x8035
  104. #define GL_UNSIGNED_INT_10_10_10_2        0x8036
  105. #define GL_RESCALE_NORMAL                 0x803A
  106. #define GL_TEXTURE_BINDING_3D             0x806A
  107. #define GL_PACK_SKIP_IMAGES               0x806B
  108. #define GL_PACK_IMAGE_HEIGHT              0x806C
  109. #define GL_UNPACK_SKIP_IMAGES             0x806D
  110. #define GL_UNPACK_IMAGE_HEIGHT            0x806E
  111. #define GL_TEXTURE_3D                     0x806F
  112. #define GL_PROXY_TEXTURE_3D               0x8070
  113. #define GL_TEXTURE_DEPTH                  0x8071
  114. #define GL_TEXTURE_WRAP_R                 0x8072
  115. #define GL_MAX_3D_TEXTURE_SIZE            0x8073
  116. #define GL_UNSIGNED_BYTE_2_3_3_REV        0x8362
  117. #define GL_UNSIGNED_SHORT_5_6_5           0x8363
  118. #define GL_UNSIGNED_SHORT_5_6_5_REV       0x8364
  119. #define GL_UNSIGNED_SHORT_4_4_4_4_REV     0x8365
  120. #define GL_UNSIGNED_SHORT_1_5_5_5_REV     0x8366
  121. #define GL_UNSIGNED_INT_8_8_8_8_REV       0x8367
  122. #define GL_UNSIGNED_INT_2_10_10_10_REV    0x8368
  123. #define GL_BGR                            0x80E0
  124. #define GL_BGRA                           0x80E1
  125. #define GL_MAX_ELEMENTS_VERTICES          0x80E8
  126. #define GL_MAX_ELEMENTS_INDICES           0x80E9
  127. #define GL_CLAMP_TO_EDGE                  0x812F
  128. #define GL_TEXTURE_MIN_LOD                0x813A
  129. #define GL_TEXTURE_MAX_LOD                0x813B
  130. #define GL_TEXTURE_BASE_LEVEL             0x813C
  131. #define GL_TEXTURE_MAX_LEVEL              0x813D
  132. #define GL_LIGHT_MODEL_COLOR_CONTROL      0x81F8
  133. #define GL_SINGLE_COLOR                   0x81F9
  134. #define GL_SEPARATE_SPECULAR_COLOR        0x81FA
  135. #define GL_SMOOTH_POINT_SIZE_RANGE        0x0B12
  136. #define GL_SMOOTH_POINT_SIZE_GRANULARITY  0x0B13
  137. #define GL_SMOOTH_LINE_WIDTH_RANGE        0x0B22
  138. #define GL_SMOOTH_LINE_WIDTH_GRANULARITY  0x0B23
  139. #define GL_ALIASED_POINT_SIZE_RANGE       0x846D
  140. #define GL_ALIASED_LINE_WIDTH_RANGE       0x846E
  141. #endif
  142. #ifndef GL_ARB_imaging
  143. #define GL_CONSTANT_COLOR                 0x8001
  144. #define GL_ONE_MINUS_CONSTANT_COLOR       0x8002
  145. #define GL_CONSTANT_ALPHA                 0x8003
  146. #define GL_ONE_MINUS_CONSTANT_ALPHA       0x8004
  147. #define GL_BLEND_COLOR                    0x8005
  148. #define GL_FUNC_ADD                       0x8006
  149. #define GL_MIN                            0x8007
  150. #define GL_MAX                            0x8008
  151. #define GL_BLEND_EQUATION                 0x8009
  152. #define GL_FUNC_SUBTRACT                  0x800A
  153. #define GL_FUNC_REVERSE_SUBTRACT          0x800B
  154. #define GL_CONVOLUTION_1D                 0x8010
  155. #define GL_CONVOLUTION_2D                 0x8011
  156. #define GL_SEPARABLE_2D                   0x8012
  157. #define GL_CONVOLUTION_BORDER_MODE        0x8013
  158. #define GL_CONVOLUTION_FILTER_SCALE       0x8014
  159. #define GL_CONVOLUTION_FILTER_BIAS        0x8015
  160. #define GL_REDUCE                         0x8016
  161. #define GL_CONVOLUTION_FORMAT             0x8017
  162. #define GL_CONVOLUTION_WIDTH              0x8018
  163. #define GL_CONVOLUTION_HEIGHT             0x8019
  164. #define GL_MAX_CONVOLUTION_WIDTH          0x801A
  165. #define GL_MAX_CONVOLUTION_HEIGHT         0x801B
  166. #define GL_POST_CONVOLUTION_RED_SCALE     0x801C
  167. #define GL_POST_CONVOLUTION_GREEN_SCALE   0x801D
  168. #define GL_POST_CONVOLUTION_BLUE_SCALE    0x801E
  169. #define GL_POST_CONVOLUTION_ALPHA_SCALE   0x801F
  170. #define GL_POST_CONVOLUTION_RED_BIAS      0x8020
  171. #define GL_POST_CONVOLUTION_GREEN_BIAS    0x8021
  172. #define GL_POST_CONVOLUTION_BLUE_BIAS     0x8022
  173. #define GL_POST_CONVOLUTION_ALPHA_BIAS    0x8023
  174. #define GL_HISTOGRAM                      0x8024
  175. #define GL_PROXY_HISTOGRAM                0x8025
  176. #define GL_HISTOGRAM_WIDTH                0x8026
  177. #define GL_HISTOGRAM_FORMAT               0x8027
  178. #define GL_HISTOGRAM_RED_SIZE             0x8028
  179. #define GL_HISTOGRAM_GREEN_SIZE           0x8029
  180. #define GL_HISTOGRAM_BLUE_SIZE            0x802A
  181. #define GL_HISTOGRAM_ALPHA_SIZE           0x802B
  182. #define GL_HISTOGRAM_LUMINANCE_SIZE       0x802C
  183. #define GL_HISTOGRAM_SINK                 0x802D
  184. #define GL_MINMAX                         0x802E
  185. #define GL_MINMAX_FORMAT                  0x802F
  186. #define GL_MINMAX_SINK                    0x8030
  187. #define GL_TABLE_TOO_LARGE                0x8031
  188. #define GL_COLOR_MATRIX                   0x80B1
  189. #define GL_COLOR_MATRIX_STACK_DEPTH       0x80B2
  190. #define GL_MAX_COLOR_MATRIX_STACK_DEPTH   0x80B3
  191. #define GL_POST_COLOR_MATRIX_RED_SCALE    0x80B4
  192. #define GL_POST_COLOR_MATRIX_GREEN_SCALE  0x80B5
  193. #define GL_POST_COLOR_MATRIX_BLUE_SCALE   0x80B6
  194. #define GL_POST_COLOR_MATRIX_ALPHA_SCALE  0x80B7
  195. #define GL_POST_COLOR_MATRIX_RED_BIAS     0x80B8
  196. #define GL_POST_COLOR_MATRIX_GREEN_BIAS   0x80B9
  197. #define GL_POST_COLOR_MATRIX_BLUE_BIAS    0x80BA
  198. #define GL_POST_COLOR_MATRIX_ALPHA_BIAS   0x80BB
  199. #define GL_COLOR_TABLE                    0x80D0
  200. #define GL_POST_CONVOLUTION_COLOR_TABLE   0x80D1
  201. #define GL_POST_COLOR_MATRIX_COLOR_TABLE  0x80D2
  202. #define GL_PROXY_COLOR_TABLE              0x80D3
  203. #define GL_PROXY_POST_CONVOLUTION_COLOR_TABLE 0x80D4
  204. #define GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE 0x80D5
  205. #define GL_COLOR_TABLE_SCALE              0x80D6
  206. #define GL_COLOR_TABLE_BIAS               0x80D7
  207. #define GL_COLOR_TABLE_FORMAT             0x80D8
  208. #define GL_COLOR_TABLE_WIDTH              0x80D9
  209. #define GL_COLOR_TABLE_RED_SIZE           0x80DA
  210. #define GL_COLOR_TABLE_GREEN_SIZE         0x80DB
  211. #define GL_COLOR_TABLE_BLUE_SIZE          0x80DC
  212. #define GL_COLOR_TABLE_ALPHA_SIZE         0x80DD
  213. #define GL_COLOR_TABLE_LUMINANCE_SIZE     0x80DE
  214. #define GL_COLOR_TABLE_INTENSITY_SIZE     0x80DF
  215. #define GL_CONSTANT_BORDER                0x8151
  216. #define GL_REPLICATE_BORDER               0x8153
  217. #define GL_CONVOLUTION_BORDER_COLOR       0x8154
  218. #endif
  219. #ifndef GL_VERSION_1_3
  220. #define GL_TEXTURE0                       0x84C0
  221. #define GL_TEXTURE1                       0x84C1
  222. #define GL_TEXTURE2                       0x84C2
  223. #define GL_TEXTURE3                       0x84C3
  224. #define GL_TEXTURE4                       0x84C4
  225. #define GL_TEXTURE5                       0x84C5
  226. #define GL_TEXTURE6                       0x84C6
  227. #define GL_TEXTURE7                       0x84C7
  228. #define GL_TEXTURE8                       0x84C8
  229. #define GL_TEXTURE9                       0x84C9
  230. #define GL_TEXTURE10                      0x84CA
  231. #define GL_TEXTURE11                      0x84CB
  232. #define GL_TEXTURE12                      0x84CC
  233. #define GL_TEXTURE13                      0x84CD
  234. #define GL_TEXTURE14                      0x84CE
  235. #define GL_TEXTURE15                      0x84CF
  236. #define GL_TEXTURE16                      0x84D0
  237. #define GL_TEXTURE17                      0x84D1
  238. #define GL_TEXTURE18                      0x84D2
  239. #define GL_TEXTURE19                      0x84D3
  240. #define GL_TEXTURE20                      0x84D4
  241. #define GL_TEXTURE21                      0x84D5
  242. #define GL_TEXTURE22                      0x84D6
  243. #define GL_TEXTURE23                      0x84D7
  244. #define GL_TEXTURE24                      0x84D8
  245. #define GL_TEXTURE25                      0x84D9
  246. #define GL_TEXTURE26                      0x84DA
  247. #define GL_TEXTURE27                      0x84DB
  248. #define GL_TEXTURE28                      0x84DC
  249. #define GL_TEXTURE29                      0x84DD
  250. #define GL_TEXTURE30                      0x84DE
  251. #define GL_TEXTURE31                      0x84DF
  252. #define GL_ACTIVE_TEXTURE                 0x84E0
  253. #define GL_CLIENT_ACTIVE_TEXTURE          0x84E1
  254. #define GL_MAX_TEXTURE_UNITS              0x84E2
  255. #define GL_TRANSPOSE_MODELVIEW_MATRIX     0x84E3
  256. #define GL_TRANSPOSE_PROJECTION_MATRIX    0x84E4
  257. #define GL_TRANSPOSE_TEXTURE_MATRIX       0x84E5
  258. #define GL_TRANSPOSE_COLOR_MATRIX         0x84E6
  259. #define GL_MULTISAMPLE                    0x809D
  260. #define GL_SAMPLE_ALPHA_TO_COVERAGE       0x809E
  261. #define GL_SAMPLE_ALPHA_TO_ONE            0x809F
  262. #define GL_SAMPLE_COVERAGE                0x80A0
  263. #define GL_SAMPLE_BUFFERS                 0x80A8
  264. #define GL_SAMPLES                        0x80A9
  265. #define GL_SAMPLE_COVERAGE_VALUE          0x80AA
  266. #define GL_SAMPLE_COVERAGE_INVERT         0x80AB
  267. #define GL_MULTISAMPLE_BIT                0x20000000
  268. #define GL_NORMAL_MAP                     0x8511
  269. #define GL_REFLECTION_MAP                 0x8512
  270. #define GL_TEXTURE_CUBE_MAP               0x8513
  271. #define GL_TEXTURE_BINDING_CUBE_MAP       0x8514
  272. #define GL_TEXTURE_CUBE_MAP_POSITIVE_X    0x8515
  273. #define GL_TEXTURE_CUBE_MAP_NEGATIVE_X    0x8516
  274. #define GL_TEXTURE_CUBE_MAP_POSITIVE_Y    0x8517
  275. #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y    0x8518
  276. #define GL_TEXTURE_CUBE_MAP_POSITIVE_Z    0x8519
  277. #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z    0x851A
  278. #define GL_PROXY_TEXTURE_CUBE_MAP         0x851B
  279. #define GL_MAX_CUBE_MAP_TEXTURE_SIZE      0x851C
  280. #define GL_COMPRESSED_ALPHA               0x84E9
  281. #define GL_COMPRESSED_LUMINANCE           0x84EA
  282. #define GL_COMPRESSED_LUMINANCE_ALPHA     0x84EB
  283. #define GL_COMPRESSED_INTENSITY           0x84EC
  284. #define GL_COMPRESSED_RGB                 0x84ED
  285. #define GL_COMPRESSED_RGBA                0x84EE
  286. #define GL_TEXTURE_COMPRESSION_HINT       0x84EF
  287. #define GL_TEXTURE_COMPRESSED_IMAGE_SIZE  0x86A0
  288. #define GL_TEXTURE_COMPRESSED             0x86A1
  289. #define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2
  290. #define GL_COMPRESSED_TEXTURE_FORMATS     0x86A3
  291. #define GL_CLAMP_TO_BORDER                0x812D
  292. #define GL_COMBINE                        0x8570
  293. #define GL_COMBINE_RGB                    0x8571
  294. #define GL_COMBINE_ALPHA                  0x8572
  295. #define GL_SOURCE0_RGB                    0x8580
  296. #define GL_SOURCE1_RGB                    0x8581
  297. #define GL_SOURCE2_RGB                    0x8582
  298. #define GL_SOURCE0_ALPHA                  0x8588
  299. #define GL_SOURCE1_ALPHA                  0x8589
  300. #define GL_SOURCE2_ALPHA                  0x858A
  301. #define GL_OPERAND0_RGB                   0x8590
  302. #define GL_OPERAND1_RGB                   0x8591
  303. #define GL_OPERAND2_RGB                   0x8592
  304. #define GL_OPERAND0_ALPHA                 0x8598
  305. #define GL_OPERAND1_ALPHA                 0x8599
  306. #define GL_OPERAND2_ALPHA                 0x859A
  307. #define GL_RGB_SCALE                      0x8573
  308. #define GL_ADD_SIGNED                     0x8574
  309. #define GL_INTERPOLATE                    0x8575
  310. #define GL_SUBTRACT                       0x84E7
  311. #define GL_CONSTANT                       0x8576
  312. #define GL_PRIMARY_COLOR                  0x8577
  313. #define GL_PREVIOUS                       0x8578
  314. #define GL_DOT3_RGB                       0x86AE
  315. #define GL_DOT3_RGBA                      0x86AF
  316. #endif
  317. #ifndef GL_VERSION_1_4
  318. #define GL_BLEND_DST_RGB                  0x80C8
  319. #define GL_BLEND_SRC_RGB                  0x80C9
  320. #define GL_BLEND_DST_ALPHA                0x80CA
  321. #define GL_BLEND_SRC_ALPHA                0x80CB
  322. #define GL_POINT_SIZE_MIN                 0x8126
  323. #define GL_POINT_SIZE_MAX                 0x8127
  324. #define GL_POINT_FADE_THRESHOLD_SIZE      0x8128
  325. #define GL_POINT_DISTANCE_ATTENUATION     0x8129
  326. #define GL_GENERATE_MIPMAP                0x8191
  327. #define GL_GENERATE_MIPMAP_HINT           0x8192
  328. #define GL_DEPTH_COMPONENT16              0x81A5
  329. #define GL_DEPTH_COMPONENT24              0x81A6
  330. #define GL_DEPTH_COMPONENT32              0x81A7
  331. #define GL_MIRRORED_REPEAT                0x8370
  332. #define GL_FOG_COORDINATE_SOURCE          0x8450
  333. #define GL_FOG_COORDINATE                 0x8451
  334. #define GL_FRAGMENT_DEPTH                 0x8452
  335. #define GL_CURRENT_FOG_COORDINATE         0x8453
  336. #define GL_FOG_COORDINATE_ARRAY_TYPE      0x8454
  337. #define GL_FOG_COORDINATE_ARRAY_STRIDE    0x8455
  338. #define GL_FOG_COORDINATE_ARRAY_POINTER   0x8456
  339. #define GL_FOG_COORDINATE_ARRAY           0x8457
  340. #define GL_COLOR_SUM                      0x8458
  341. #define GL_CURRENT_SECONDARY_COLOR        0x8459
  342. #define GL_SECONDARY_COLOR_ARRAY_SIZE     0x845A
  343. #define GL_SECONDARY_COLOR_ARRAY_TYPE     0x845B
  344. #define GL_SECONDARY_COLOR_ARRAY_STRIDE   0x845C
  345. #define GL_SECONDARY_COLOR_ARRAY_POINTER  0x845D
  346. #define GL_SECONDARY_COLOR_ARRAY          0x845E
  347. #define GL_MAX_TEXTURE_LOD_BIAS           0x84FD
  348. #define GL_TEXTURE_FILTER_CONTROL         0x8500
  349. #define GL_TEXTURE_LOD_BIAS               0x8501
  350. #define GL_INCR_WRAP                      0x8507
  351. #define GL_DECR_WRAP                      0x8508
  352. #define GL_TEXTURE_DEPTH_SIZE             0x884A
  353. #define GL_DEPTH_TEXTURE_MODE             0x884B
  354. #define GL_TEXTURE_COMPARE_MODE           0x884C
  355. #define GL_TEXTURE_COMPARE_FUNC           0x884D
  356. #define GL_COMPARE_R_TO_TEXTURE           0x884E
  357. #endif
  358. #ifndef GL_VERSION_1_5
  359. #define GL_BUFFER_SIZE                    0x8764
  360. #define GL_BUFFER_USAGE                   0x8765
  361. #define GL_QUERY_COUNTER_BITS             0x8864
  362. #define GL_CURRENT_QUERY                  0x8865
  363. #define GL_QUERY_RESULT                   0x8866
  364. #define GL_QUERY_RESULT_AVAILABLE         0x8867
  365. #define GL_ARRAY_BUFFER                   0x8892
  366. #define GL_ELEMENT_ARRAY_BUFFER           0x8893
  367. #define GL_ARRAY_BUFFER_BINDING           0x8894
  368. #define GL_ELEMENT_ARRAY_BUFFER_BINDING   0x8895
  369. #define GL_VERTEX_ARRAY_BUFFER_BINDING    0x8896
  370. #define GL_NORMAL_ARRAY_BUFFER_BINDING    0x8897
  371. #define GL_COLOR_ARRAY_BUFFER_BINDING     0x8898
  372. #define GL_INDEX_ARRAY_BUFFER_BINDING     0x8899
  373. #define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING 0x889A
  374. #define GL_EDGE_FLAG_ARRAY_BUFFER_BINDING 0x889B
  375. #define GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING 0x889C
  376. #define GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING 0x889D
  377. #define GL_WEIGHT_ARRAY_BUFFER_BINDING    0x889E
  378. #define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING 0x889F
  379. #define GL_READ_ONLY                      0x88B8
  380. #define GL_WRITE_ONLY                     0x88B9
  381. #define GL_READ_WRITE                     0x88BA
  382. #define GL_BUFFER_ACCESS                  0x88BB
  383. #define GL_BUFFER_MAPPED                  0x88BC
  384. #define GL_BUFFER_MAP_POINTER             0x88BD
  385. #define GL_STREAM_DRAW                    0x88E0
  386. #define GL_STREAM_READ                    0x88E1
  387. #define GL_STREAM_COPY                    0x88E2
  388. #define GL_STATIC_DRAW                    0x88E4
  389. #define GL_STATIC_READ                    0x88E5
  390. #define GL_STATIC_COPY                    0x88E6
  391. #define GL_DYNAMIC_DRAW                   0x88E8
  392. #define GL_DYNAMIC_READ                   0x88E9
  393. #define GL_DYNAMIC_COPY                   0x88EA
  394. #define GL_SAMPLES_PASSED                 0x8914
  395. #define GL_FOG_COORD_SRC                  GL_FOG_COORDINATE_SOURCE
  396. #define GL_FOG_COORD                      GL_FOG_COORDINATE
  397. #define GL_CURRENT_FOG_COORD              GL_CURRENT_FOG_COORDINATE
  398. #define GL_FOG_COORD_ARRAY_TYPE           GL_FOG_COORDINATE_ARRAY_TYPE
  399. #define GL_FOG_COORD_ARRAY_STRIDE         GL_FOG_COORDINATE_ARRAY_STRIDE
  400. #define GL_FOG_COORD_ARRAY_POINTER        GL_FOG_COORDINATE_ARRAY_POINTER
  401. #define GL_FOG_COORD_ARRAY                GL_FOG_COORDINATE_ARRAY
  402. #define GL_FOG_COORD_ARRAY_BUFFER_BINDING GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING
  403. #define GL_SRC0_RGB                       GL_SOURCE0_RGB
  404. #define GL_SRC1_RGB                       GL_SOURCE1_RGB
  405. #define GL_SRC2_RGB                       GL_SOURCE2_RGB
  406. #define GL_SRC0_ALPHA                     GL_SOURCE0_ALPHA
  407. #define GL_SRC1_ALPHA                     GL_SOURCE1_ALPHA
  408. #define GL_SRC2_ALPHA                     GL_SOURCE2_ALPHA
  409. #endif
  410. #ifndef GL_VERSION_2_0
  411. #define GL_BLEND_EQUATION_RGB             GL_BLEND_EQUATION
  412. #define GL_VERTEX_ATTRIB_ARRAY_ENABLED    0x8622
  413. #define GL_VERTEX_ATTRIB_ARRAY_SIZE       0x8623
  414. #define GL_VERTEX_ATTRIB_ARRAY_STRIDE     0x8624
  415. #define GL_VERTEX_ATTRIB_ARRAY_TYPE       0x8625
  416. #define GL_CURRENT_VERTEX_ATTRIB          0x8626
  417. #define GL_VERTEX_PROGRAM_POINT_SIZE      0x8642
  418. #define GL_VERTEX_PROGRAM_TWO_SIDE        0x8643
  419. #define GL_VERTEX_ATTRIB_ARRAY_POINTER    0x8645
  420. #define GL_STENCIL_BACK_FUNC              0x8800
  421. #define GL_STENCIL_BACK_FAIL              0x8801
  422. #define GL_STENCIL_BACK_PASS_DEPTH_FAIL   0x8802
  423. #define GL_STENCIL_BACK_PASS_DEPTH_PASS   0x8803
  424. #define GL_MAX_DRAW_BUFFERS               0x8824
  425. #define GL_DRAW_BUFFER0                   0x8825
  426. #define GL_DRAW_BUFFER1                   0x8826
  427. #define GL_DRAW_BUFFER2                   0x8827
  428. #define GL_DRAW_BUFFER3                   0x8828
  429. #define GL_DRAW_BUFFER4                   0x8829
  430. #define GL_DRAW_BUFFER5                   0x882A
  431. #define GL_DRAW_BUFFER6                   0x882B
  432. #define GL_DRAW_BUFFER7                   0x882C
  433. #define GL_DRAW_BUFFER8                   0x882D
  434. #define GL_DRAW_BUFFER9                   0x882E
  435. #define GL_DRAW_BUFFER10                  0x882F
  436. #define GL_DRAW_BUFFER11                  0x8830
  437. #define GL_DRAW_BUFFER12                  0x8831
  438. #define GL_DRAW_BUFFER13                  0x8832
  439. #define GL_DRAW_BUFFER14                  0x8833
  440. #define GL_DRAW_BUFFER15                  0x8834
  441. #define GL_BLEND_EQUATION_ALPHA           0x883D
  442. #define GL_POINT_SPRITE                   0x8861
  443. #define GL_COORD_REPLACE                  0x8862
  444. #define GL_MAX_VERTEX_ATTRIBS             0x8869
  445. #define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED 0x886A
  446. #define GL_MAX_TEXTURE_COORDS             0x8871
  447. #define GL_MAX_TEXTURE_IMAGE_UNITS        0x8872
  448. #define GL_FRAGMENT_SHADER                0x8B30
  449. #define GL_VERTEX_SHADER                  0x8B31
  450. #define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS 0x8B49
  451. #define GL_MAX_VERTEX_UNIFORM_COMPONENTS  0x8B4A
  452. #define GL_MAX_VARYING_FLOATS             0x8B4B
  453. #define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS 0x8B4C
  454. #define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS 0x8B4D
  455. #define GL_SHADER_TYPE                    0x8B4F
  456. #define GL_FLOAT_VEC2                     0x8B50
  457. #define GL_FLOAT_VEC3                     0x8B51
  458. #define GL_FLOAT_VEC4                     0x8B52
  459. #define GL_INT_VEC2                       0x8B53
  460. #define GL_INT_VEC3                       0x8B54
  461. #define GL_INT_VEC4                       0x8B55
  462. #define GL_BOOL                           0x8B56
  463. #define GL_BOOL_VEC2                      0x8B57
  464. #define GL_BOOL_VEC3                      0x8B58
  465. #define GL_BOOL_VEC4                      0x8B59
  466. #define GL_FLOAT_MAT2                     0x8B5A
  467. #define GL_FLOAT_MAT3                     0x8B5B
  468. #define GL_FLOAT_MAT4                     0x8B5C
  469. #define GL_SAMPLER_1D                     0x8B5D
  470. #define GL_SAMPLER_2D                     0x8B5E
  471. #define GL_SAMPLER_3D                     0x8B5F
  472. #define GL_SAMPLER_CUBE                   0x8B60
  473. #define GL_SAMPLER_1D_SHADOW              0x8B61
  474. #define GL_SAMPLER_2D_SHADOW              0x8B62
  475. #define GL_DELETE_STATUS                  0x8B80
  476. #define GL_COMPILE_STATUS                 0x8B81
  477. #define GL_LINK_STATUS                    0x8B82
  478. #define GL_VALIDATE_STATUS                0x8B83
  479. #define GL_INFO_LOG_LENGTH                0x8B84
  480. #define GL_ATTACHED_SHADERS               0x8B85
  481. #define GL_ACTIVE_UNIFORMS                0x8B86
  482. #define GL_ACTIVE_UNIFORM_MAX_LENGTH      0x8B87
  483. #define GL_SHADER_SOURCE_LENGTH           0x8B88
  484. #define GL_ACTIVE_ATTRIBUTES              0x8B89
  485. #define GL_ACTIVE_ATTRIBUTE_MAX_LENGTH    0x8B8A
  486. #define GL_FRAGMENT_SHADER_DERIVATIVE_HINT 0x8B8B
  487. #define GL_SHADING_LANGUAGE_VERSION       0x8B8C
  488. #define GL_CURRENT_PROGRAM                0x8B8D
  489. #define GL_POINT_SPRITE_COORD_ORIGIN      0x8CA0
  490. #define GL_LOWER_LEFT                     0x8CA1
  491. #define GL_UPPER_LEFT                     0x8CA2
  492. #define GL_STENCIL_BACK_REF               0x8CA3
  493. #define GL_STENCIL_BACK_VALUE_MASK        0x8CA4
  494. #define GL_STENCIL_BACK_WRITEMASK         0x8CA5
  495. #endif
  496. #ifndef GL_ARB_multitexture
  497. #define GL_TEXTURE0_ARB                   0x84C0
  498. #define GL_TEXTURE1_ARB                   0x84C1
  499. #define GL_TEXTURE2_ARB                   0x84C2
  500. #define GL_TEXTURE3_ARB                   0x84C3
  501. #define GL_TEXTURE4_ARB                   0x84C4
  502. #define GL_TEXTURE5_ARB                   0x84C5
  503. #define GL_TEXTURE6_ARB                   0x84C6
  504. #define GL_TEXTURE7_ARB                   0x84C7
  505. #define GL_TEXTURE8_ARB                   0x84C8
  506. #define GL_TEXTURE9_ARB                   0x84C9
  507. #define GL_TEXTURE10_ARB                  0x84CA
  508. #define GL_TEXTURE11_ARB                  0x84CB
  509. #define GL_TEXTURE12_ARB                  0x84CC
  510. #define GL_TEXTURE13_ARB                  0x84CD
  511. #define GL_TEXTURE14_ARB                  0x84CE
  512. #define GL_TEXTURE15_ARB                  0x84CF
  513. #define GL_TEXTURE16_ARB                  0x84D0
  514. #define GL_TEXTURE17_ARB                  0x84D1
  515. #define GL_TEXTURE18_ARB                  0x84D2
  516. #define GL_TEXTURE19_ARB                  0x84D3
  517. #define GL_TEXTURE20_ARB                  0x84D4
  518. #define GL_TEXTURE21_ARB                  0x84D5
  519. #define GL_TEXTURE22_ARB                  0x84D6
  520. #define GL_TEXTURE23_ARB                  0x84D7
  521. #define GL_TEXTURE24_ARB                  0x84D8
  522. #define GL_TEXTURE25_ARB                  0x84D9
  523. #define GL_TEXTURE26_ARB                  0x84DA
  524. #define GL_TEXTURE27_ARB                  0x84DB
  525. #define GL_TEXTURE28_ARB                  0x84DC
  526. #define GL_TEXTURE29_ARB                  0x84DD
  527. #define GL_TEXTURE30_ARB                  0x84DE
  528. #define GL_TEXTURE31_ARB                  0x84DF
  529. #define GL_ACTIVE_TEXTURE_ARB             0x84E0
  530. #define GL_CLIENT_ACTIVE_TEXTURE_ARB      0x84E1
  531. #define GL_MAX_TEXTURE_UNITS_ARB          0x84E2
  532. #endif
  533. #ifndef GL_ARB_transpose_matrix
  534. #define GL_TRANSPOSE_MODELVIEW_MATRIX_ARB 0x84E3
  535. #define GL_TRANSPOSE_PROJECTION_MATRIX_ARB 0x84E4
  536. #define GL_TRANSPOSE_TEXTURE_MATRIX_ARB   0x84E5
  537. #define GL_TRANSPOSE_COLOR_MATRIX_ARB     0x84E6
  538. #endif
  539. #ifndef GL_ARB_multisample
  540. #define GL_MULTISAMPLE_ARB                0x809D
  541. #define GL_SAMPLE_ALPHA_TO_COVERAGE_ARB   0x809E
  542. #define GL_SAMPLE_ALPHA_TO_ONE_ARB        0x809F
  543. #define GL_SAMPLE_COVERAGE_ARB            0x80A0
  544. #define GL_SAMPLE_BUFFERS_ARB             0x80A8
  545. #define GL_SAMPLES_ARB                    0x80A9
  546. #define GL_SAMPLE_COVERAGE_VALUE_ARB      0x80AA
  547. #define GL_SAMPLE_COVERAGE_INVERT_ARB     0x80AB
  548. #define GL_MULTISAMPLE_BIT_ARB            0x20000000
  549. #endif
  550. #ifndef GL_ARB_texture_env_add
  551. #endif
  552. #ifndef GL_ARB_texture_cube_map
  553. #define GL_NORMAL_MAP_ARB                 0x8511
  554. #define GL_REFLECTION_MAP_ARB             0x8512
  555. #define GL_TEXTURE_CUBE_MAP_ARB           0x8513
  556. #define GL_TEXTURE_BINDING_CUBE_MAP_ARB   0x8514
  557. #define GL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB 0x8515
  558. #define GL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB 0x8516
  559. #define GL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB 0x8517
  560. #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB 0x8518
  561. #define GL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB 0x8519
  562. #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB 0x851A
  563. #define GL_PROXY_TEXTURE_CUBE_MAP_ARB     0x851B
  564. #define GL_MAX_CUBE_MAP_TEXTURE_SIZE_ARB  0x851C
  565. #endif
  566. #ifndef GL_ARB_texture_compression
  567. #define GL_COMPRESSED_ALPHA_ARB           0x84E9
  568. #define GL_COMPRESSED_LUMINANCE_ARB       0x84EA
  569. #define GL_COMPRESSED_LUMINANCE_ALPHA_ARB 0x84EB
  570. #define GL_COMPRESSED_INTENSITY_ARB       0x84EC
  571. #define GL_COMPRESSED_RGB_ARB             0x84ED
  572. #define GL_COMPRESSED_RGBA_ARB            0x84EE
  573. #define GL_TEXTURE_COMPRESSION_HINT_ARB   0x84EF
  574. #define GL_TEXTURE_COMPRESSED_IMAGE_SIZE_ARB 0x86A0
  575. #define GL_TEXTURE_COMPRESSED_ARB         0x86A1
  576. #define GL_NUM_COMPRESSED_TEXTURE_FORMATS_ARB 0x86A2
  577. #define GL_COMPRESSED_TEXTURE_FORMATS_ARB 0x86A3
  578. #endif
  579. #ifndef GL_ARB_texture_border_clamp
  580. #define GL_CLAMP_TO_BORDER_ARB            0x812D
  581. #endif
  582. #ifndef GL_ARB_point_parameters
  583. #define GL_POINT_SIZE_MIN_ARB             0x8126
  584. #define GL_POINT_SIZE_MAX_ARB             0x8127
  585. #define GL_POINT_FADE_THRESHOLD_SIZE_ARB  0x8128
  586. #define GL_POINT_DISTANCE_ATTENUATION_ARB 0x8129
  587. #endif
  588. #ifndef GL_ARB_vertex_blend
  589. #define GL_MAX_VERTEX_UNITS_ARB           0x86A4
  590. #define GL_ACTIVE_VERTEX_UNITS_ARB        0x86A5
  591. #define GL_WEIGHT_SUM_UNITY_ARB           0x86A6
  592. #define GL_VERTEX_BLEND_ARB               0x86A7
  593. #define GL_CURRENT_WEIGHT_ARB             0x86A8
  594. #define GL_WEIGHT_ARRAY_TYPE_ARB          0x86A9
  595. #define GL_WEIGHT_ARRAY_STRIDE_ARB        0x86AA
  596. #define GL_WEIGHT_ARRAY_SIZE_ARB          0x86AB
  597. #define GL_WEIGHT_ARRAY_POINTER_ARB       0x86AC
  598. #define GL_WEIGHT_ARRAY_ARB               0x86AD
  599. #define GL_MODELVIEW0_ARB                 0x1700
  600. #define GL_MODELVIEW1_ARB                 0x850A
  601. #define GL_MODELVIEW2_ARB                 0x8722
  602. #define GL_MODELVIEW3_ARB                 0x8723
  603. #define GL_MODELVIEW4_ARB                 0x8724
  604. #define GL_MODELVIEW5_ARB                 0x8725
  605. #define GL_MODELVIEW6_ARB                 0x8726
  606. #define GL_MODELVIEW7_ARB                 0x8727
  607. #define GL_MODELVIEW8_ARB                 0x8728
  608. #define GL_MODELVIEW9_ARB                 0x8729
  609. #define GL_MODELVIEW10_ARB                0x872A
  610. #define GL_MODELVIEW11_ARB                0x872B
  611. #define GL_MODELVIEW12_ARB                0x872C
  612. #define GL_MODELVIEW13_ARB                0x872D
  613. #define GL_MODELVIEW14_ARB                0x872E
  614. #define GL_MODELVIEW15_ARB                0x872F
  615. #define GL_MODELVIEW16_ARB                0x8730
  616. #define GL_MODELVIEW17_ARB                0x8731
  617. #define GL_MODELVIEW18_ARB                0x8732
  618. #define GL_MODELVIEW19_ARB                0x8733
  619. #define GL_MODELVIEW20_ARB                0x8734
  620. #define GL_MODELVIEW21_ARB                0x8735
  621. #define GL_MODELVIEW22_ARB                0x8736
  622. #define GL_MODELVIEW23_ARB                0x8737
  623. #define GL_MODELVIEW24_ARB                0x8738
  624. #define GL_MODELVIEW25_ARB                0x8739
  625. #define GL_MODELVIEW26_ARB                0x873A
  626. #define GL_MODELVIEW27_ARB                0x873B
  627. #define GL_MODELVIEW28_ARB                0x873C
  628. #define GL_MODELVIEW29_ARB                0x873D
  629. #define GL_MODELVIEW30_ARB                0x873E
  630. #define GL_MODELVIEW31_ARB                0x873F
  631. #endif
  632. #ifndef GL_ARB_matrix_palette
  633. #define GL_MATRIX_PALETTE_ARB             0x8840
  634. #define GL_MAX_MATRIX_PALETTE_STACK_DEPTH_ARB 0x8841
  635. #define GL_MAX_PALETTE_MATRICES_ARB       0x8842
  636. #define GL_CURRENT_PALETTE_MATRIX_ARB     0x8843
  637. #define GL_MATRIX_INDEX_ARRAY_ARB         0x8844
  638. #define GL_CURRENT_MATRIX_INDEX_ARB       0x8845
  639. #define GL_MATRIX_INDEX_ARRAY_SIZE_ARB    0x8846
  640. #define GL_MATRIX_INDEX_ARRAY_TYPE_ARB    0x8847
  641. #define GL_MATRIX_INDEX_ARRAY_STRIDE_ARB  0x8848
  642. #define GL_MATRIX_INDEX_ARRAY_POINTER_ARB 0x8849
  643. #endif
  644. #ifndef GL_ARB_texture_env_combine
  645. #define GL_COMBINE_ARB                    0x8570
  646. #define GL_COMBINE_RGB_ARB                0x8571
  647. #define GL_COMBINE_ALPHA_ARB              0x8572
  648. #define GL_SOURCE0_RGB_ARB                0x8580
  649. #define GL_SOURCE1_RGB_ARB                0x8581
  650. #define GL_SOURCE2_RGB_ARB                0x8582
  651. #define GL_SOURCE0_ALPHA_ARB              0x8588
  652. #define GL_SOURCE1_ALPHA_ARB              0x8589
  653. #define GL_SOURCE2_ALPHA_ARB              0x858A
  654. #define GL_OPERAND0_RGB_ARB               0x8590
  655. #define GL_OPERAND1_RGB_ARB               0x8591
  656. #define GL_OPERAND2_RGB_ARB               0x8592
  657. #define GL_OPERAND0_ALPHA_ARB             0x8598
  658. #define GL_OPERAND1_ALPHA_ARB             0x8599
  659. #define GL_OPERAND2_ALPHA_ARB             0x859A
  660. #define GL_RGB_SCALE_ARB                  0x8573
  661. #define GL_ADD_SIGNED_ARB                 0x8574
  662. #define GL_INTERPOLATE_ARB                0x8575
  663. #define GL_SUBTRACT_ARB                   0x84E7
  664. #define GL_CONSTANT_ARB                   0x8576
  665. #define GL_PRIMARY_COLOR_ARB              0x8577
  666. #define GL_PREVIOUS_ARB                   0x8578
  667. #endif
  668. #ifndef GL_ARB_texture_env_crossbar
  669. #endif
  670. #ifndef GL_ARB_texture_env_dot3
  671. #define GL_DOT3_RGB_ARB                   0x86AE
  672. #define GL_DOT3_RGBA_ARB                  0x86AF
  673. #endif
  674. #ifndef GL_ARB_texture_mirrored_repeat
  675. #define GL_MIRRORED_REPEAT_ARB            0x8370
  676. #endif
  677. #ifndef GL_ARB_depth_texture
  678. #define GL_DEPTH_COMPONENT16_ARB          0x81A5
  679. #define GL_DEPTH_COMPONENT24_ARB          0x81A6
  680. #define GL_DEPTH_COMPONENT32_ARB          0x81A7
  681. #define GL_TEXTURE_DEPTH_SIZE_ARB         0x884A
  682. #define GL_DEPTH_TEXTURE_MODE_ARB         0x884B
  683. #endif
  684. #ifndef GL_ARB_shadow
  685. #define GL_TEXTURE_COMPARE_MODE_ARB       0x884C
  686. #define GL_TEXTURE_COMPARE_FUNC_ARB       0x884D
  687. #define GL_COMPARE_R_TO_TEXTURE_ARB       0x884E
  688. #endif
  689. #ifndef GL_ARB_shadow_ambient
  690. #define GL_TEXTURE_COMPARE_FAIL_VALUE_ARB 0x80BF
  691. #endif
  692. #ifndef GL_ARB_window_pos
  693. #endif
  694. #ifndef GL_ARB_vertex_program
  695. #define GL_COLOR_SUM_ARB                  0x8458
  696. #define GL_VERTEX_PROGRAM_ARB             0x8620
  697. #define GL_VERTEX_ATTRIB_ARRAY_ENABLED_ARB 0x8622
  698. #define GL_VERTEX_ATTRIB_ARRAY_SIZE_ARB   0x8623
  699. #define GL_VERTEX_ATTRIB_ARRAY_STRIDE_ARB 0x8624
  700. #define GL_VERTEX_ATTRIB_ARRAY_TYPE_ARB   0x8625
  701. #define GL_CURRENT_VERTEX_ATTRIB_ARB      0x8626
  702. #define GL_PROGRAM_LENGTH_ARB             0x8627
  703. #define GL_PROGRAM_STRING_ARB             0x8628
  704. #define GL_MAX_PROGRAM_MATRIX_STACK_DEPTH_ARB 0x862E
  705. #define GL_MAX_PROGRAM_MATRICES_ARB       0x862F
  706. #define GL_CURRENT_MATRIX_STACK_DEPTH_ARB 0x8640
  707. #define GL_CURRENT_MATRIX_ARB             0x8641
  708. #define GL_VERTEX_PROGRAM_POINT_SIZE_ARB  0x8642
  709. #define GL_VERTEX_PROGRAM_TWO_SIDE_ARB    0x8643
  710. #define GL_VERTEX_ATTRIB_ARRAY_POINTER_ARB 0x8645
  711. #define GL_PROGRAM_ERROR_POSITION_ARB     0x864B
  712. #define GL_PROGRAM_BINDING_ARB            0x8677
  713. #define GL_MAX_VERTEX_ATTRIBS_ARB         0x8869
  714. #define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED_ARB 0x886A
  715. #define GL_PROGRAM_ERROR_STRING_ARB       0x8874
  716. #define GL_PROGRAM_FORMAT_ASCII_ARB       0x8875
  717. #define GL_PROGRAM_FORMAT_ARB             0x8876
  718. #define GL_PROGRAM_INSTRUCTIONS_ARB       0x88A0
  719. #define GL_MAX_PROGRAM_INSTRUCTIONS_ARB   0x88A1
  720. #define GL_PROGRAM_NATIVE_INSTRUCTIONS_ARB 0x88A2
  721. #define GL_MAX_PROGRAM_NATIVE_INSTRUCTIONS_ARB 0x88A3
  722. #define GL_PROGRAM_TEMPORARIES_ARB        0x88A4
  723. #define GL_MAX_PROGRAM_TEMPORARIES_ARB    0x88A5
  724. #define GL_PROGRAM_NATIVE_TEMPORARIES_ARB 0x88A6
  725. #define GL_MAX_PROGRAM_NATIVE_TEMPORARIES_ARB 0x88A7
  726. #define GL_PROGRAM_PARAMETERS_ARB         0x88A8
  727. #define GL_MAX_PROGRAM_PARAMETERS_ARB     0x88A9
  728. #define GL_PROGRAM_NATIVE_PARAMETERS_ARB  0x88AA
  729. #define GL_MAX_PROGRAM_NATIVE_PARAMETERS_ARB 0x88AB
  730. #define GL_PROGRAM_ATTRIBS_ARB            0x88AC
  731. #define GL_MAX_PROGRAM_ATTRIBS_ARB        0x88AD
  732. #define GL_PROGRAM_NATIVE_ATTRIBS_ARB     0x88AE
  733. #define GL_MAX_PROGRAM_NATIVE_ATTRIBS_ARB 0x88AF
  734. #define GL_PROGRAM_ADDRESS_REGISTERS_ARB  0x88B0
  735. #define GL_MAX_PROGRAM_ADDRESS_REGISTERS_ARB 0x88B1
  736. #define GL_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB 0x88B2
  737. #define GL_MAX_PROGRAM_NATIVE_ADDRESS_REGISTERS_ARB 0x88B3
  738. #define GL_MAX_PROGRAM_LOCAL_PARAMETERS_ARB 0x88B4
  739. #define GL_MAX_PROGRAM_ENV_PARAMETERS_ARB 0x88B5
  740. #define GL_PROGRAM_UNDER_NATIVE_LIMITS_ARB 0x88B6
  741. #define GL_TRANSPOSE_CURRENT_MATRIX_ARB   0x88B7
  742. #define GL_MATRIX0_ARB                    0x88C0
  743. #define GL_MATRIX1_ARB                    0x88C1
  744. #define GL_MATRIX2_ARB                    0x88C2
  745. #define GL_MATRIX3_ARB                    0x88C3
  746. #define GL_MATRIX4_ARB                    0x88C4
  747. #define GL_MATRIX5_ARB                    0x88C5
  748. #define GL_MATRIX6_ARB                    0x88C6
  749. #define GL_MATRIX7_ARB                    0x88C7
  750. #define GL_MATRIX8_ARB                    0x88C8
  751. #define GL_MATRIX9_ARB                    0x88C9
  752. #define GL_MATRIX10_ARB                   0x88CA
  753. #define GL_MATRIX11_ARB                   0x88CB
  754. #define GL_MATRIX12_ARB                   0x88CC
  755. #define GL_MATRIX13_ARB                   0x88CD
  756. #define GL_MATRIX14_ARB                   0x88CE
  757. #define GL_MATRIX15_ARB                   0x88CF
  758. #define GL_MATRIX16_ARB                   0x88D0
  759. #define GL_MATRIX17_ARB                   0x88D1
  760. #define GL_MATRIX18_ARB                   0x88D2
  761. #define GL_MATRIX19_ARB                   0x88D3
  762. #define GL_MATRIX20_ARB                   0x88D4
  763. #define GL_MATRIX21_ARB                   0x88D5
  764. #define GL_MATRIX22_ARB                   0x88D6
  765. #define GL_MATRIX23_ARB                   0x88D7
  766. #define GL_MATRIX24_ARB                   0x88D8
  767. #define GL_MATRIX25_ARB                   0x88D9
  768. #define GL_MATRIX26_ARB                   0x88DA
  769. #define GL_MATRIX27_ARB                   0x88DB
  770. #define GL_MATRIX28_ARB                   0x88DC
  771. #define GL_MATRIX29_ARB                   0x88DD
  772. #define GL_MATRIX30_ARB                   0x88DE
  773. #define GL_MATRIX31_ARB                   0x88DF
  774. #endif
  775. #ifndef GL_ARB_fragment_program
  776. #define GL_FRAGMENT_PROGRAM_ARB           0x8804
  777. #define GL_PROGRAM_ALU_INSTRUCTIONS_ARB   0x8805
  778. #define GL_PROGRAM_TEX_INSTRUCTIONS_ARB   0x8806
  779. #define GL_PROGRAM_TEX_INDIRECTIONS_ARB   0x8807
  780. #define GL_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB 0x8808
  781. #define GL_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB 0x8809
  782. #define GL_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB 0x880A
  783. #define GL_MAX_PROGRAM_ALU_INSTRUCTIONS_ARB 0x880B
  784. #define GL_MAX_PROGRAM_TEX_INSTRUCTIONS_ARB 0x880C
  785. #define GL_MAX_PROGRAM_TEX_INDIRECTIONS_ARB 0x880D
  786. #define GL_MAX_PROGRAM_NATIVE_ALU_INSTRUCTIONS_ARB 0x880E
  787. #define GL_MAX_PROGRAM_NATIVE_TEX_INSTRUCTIONS_ARB 0x880F
  788. #define GL_MAX_PROGRAM_NATIVE_TEX_INDIRECTIONS_ARB 0x8810
  789. #define GL_MAX_TEXTURE_COORDS_ARB         0x8871
  790. #define GL_MAX_TEXTURE_IMAGE_UNITS_ARB    0x8872
  791. #endif
  792. #ifndef GL_ARB_vertex_buffer_object
  793. #define GL_BUFFER_SIZE_ARB                0x8764
  794. #define GL_BUFFER_USAGE_ARB               0x8765
  795. #define GL_ARRAY_BUFFER_ARB               0x8892
  796. #define GL_ELEMENT_ARRAY_BUFFER_ARB       0x8893
  797. #define GL_ARRAY_BUFFER_BINDING_ARB       0x8894
  798. #define GL_ELEMENT_ARRAY_BUFFER_BINDING_ARB 0x8895
  799. #define GL_VERTEX_ARRAY_BUFFER_BINDING_ARB 0x8896
  800. #define GL_NORMAL_ARRAY_BUFFER_BINDING_ARB 0x8897
  801. #define GL_COLOR_ARRAY_BUFFER_BINDING_ARB 0x8898
  802. #define GL_INDEX_ARRAY_BUFFER_BINDING_ARB 0x8899
  803. #define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING_ARB 0x889A
  804. #define GL_EDGE_FLAG_ARRAY_BUFFER_BINDING_ARB 0x889B
  805. #define GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING_ARB 0x889C
  806. #define GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING_ARB 0x889D
  807. #define GL_WEIGHT_ARRAY_BUFFER_BINDING_ARB 0x889E
  808. #define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB 0x889F
  809. #define GL_READ_ONLY_ARB                  0x88B8
  810. #define GL_WRITE_ONLY_ARB                 0x88B9
  811. #define GL_READ_WRITE_ARB                 0x88BA
  812. #define GL_BUFFER_ACCESS_ARB              0x88BB
  813. #define GL_BUFFER_MAPPED_ARB              0x88BC
  814. #define GL_BUFFER_MAP_POINTER_ARB         0x88BD
  815. #define GL_STREAM_DRAW_ARB                0x88E0
  816. #define GL_STREAM_READ_ARB                0x88E1
  817. #define GL_STREAM_COPY_ARB                0x88E2
  818. #define GL_STATIC_DRAW_ARB                0x88E4
  819. #define GL_STATIC_READ_ARB                0x88E5
  820. #define GL_STATIC_COPY_ARB                0x88E6
  821. #define GL_DYNAMIC_DRAW_ARB               0x88E8
  822. #define GL_DYNAMIC_READ_ARB               0x88E9
  823. #define GL_DYNAMIC_COPY_ARB               0x88EA
  824. #endif
  825. #ifndef GL_ARB_occlusion_query
  826. #define GL_QUERY_COUNTER_BITS_ARB         0x8864
  827. #define GL_CURRENT_QUERY_ARB              0x8865
  828. #define GL_QUERY_RESULT_ARB               0x8866
  829. #define GL_QUERY_RESULT_AVAILABLE_ARB     0x8867
  830. #define GL_SAMPLES_PASSED_ARB             0x8914
  831. #endif
  832. #ifndef GL_ARB_shader_objects
  833. #define GL_PROGRAM_OBJECT_ARB             0x8B40
  834. #define GL_SHADER_OBJECT_ARB              0x8B48
  835. #define GL_OBJECT_TYPE_ARB                0x8B4E
  836. #define GL_OBJECT_SUBTYPE_ARB             0x8B4F
  837. #define GL_FLOAT_VEC2_ARB                 0x8B50
  838. #define GL_FLOAT_VEC3_ARB                 0x8B51
  839. #define GL_FLOAT_VEC4_ARB                 0x8B52
  840. #define GL_INT_VEC2_ARB                   0x8B53
  841. #define GL_INT_VEC3_ARB                   0x8B54
  842. #define GL_INT_VEC4_ARB                   0x8B55
  843. #define GL_BOOL_ARB                       0x8B56
  844. #define GL_BOOL_VEC2_ARB                  0x8B57
  845. #define GL_BOOL_VEC3_ARB                  0x8B58
  846. #define GL_BOOL_VEC4_ARB                  0x8B59
  847. #define GL_FLOAT_MAT2_ARB                 0x8B5A
  848. #define GL_FLOAT_MAT3_ARB                 0x8B5B
  849. #define GL_FLOAT_MAT4_ARB                 0x8B5C
  850. #define GL_SAMPLER_1D_ARB                 0x8B5D
  851. #define GL_SAMPLER_2D_ARB                 0x8B5E
  852. #define GL_SAMPLER_3D_ARB                 0x8B5F
  853. #define GL_SAMPLER_CUBE_ARB               0x8B60
  854. #define GL_SAMPLER_1D_SHADOW_ARB          0x8B61
  855. #define GL_SAMPLER_2D_SHADOW_ARB          0x8B62
  856. #define GL_SAMPLER_2D_RECT_ARB            0x8B63
  857. #define GL_SAMPLER_2D_RECT_SHADOW_ARB     0x8B64
  858. #define GL_OBJECT_DELETE_STATUS_ARB       0x8B80
  859. #define GL_OBJECT_COMPILE_STATUS_ARB      0x8B81
  860. #define GL_OBJECT_LINK_STATUS_ARB         0x8B82
  861. #define GL_OBJECT_VALIDATE_STATUS_ARB     0x8B83
  862. #define GL_OBJECT_INFO_LOG_LENGTH_ARB     0x8B84
  863. #define GL_OBJECT_ATTACHED_OBJECTS_ARB    0x8B85
  864. #define GL_OBJECT_ACTIVE_UNIFORMS_ARB     0x8B86
  865. #define GL_OBJECT_ACTIVE_UNIFORM_MAX_LENGTH_ARB 0x8B87
  866. #define GL_OBJECT_SHADER_SOURCE_LENGTH_ARB 0x8B88
  867. #endif
  868. #ifndef GL_ARB_vertex_shader
  869. #define GL_VERTEX_SHADER_ARB              0x8B31
  870. #define GL_MAX_VERTEX_UNIFORM_COMPONENTS_ARB 0x8B4A
  871. #define GL_MAX_VARYING_FLOATS_ARB         0x8B4B
  872. #define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS_ARB 0x8B4C
  873. #define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS_ARB 0x8B4D
  874. #define GL_OBJECT_ACTIVE_ATTRIBUTES_ARB   0x8B89
  875. #define GL_OBJECT_ACTIVE_ATTRIBUTE_MAX_LENGTH_ARB 0x8B8A
  876. #endif
  877. #ifndef GL_ARB_fragment_shader
  878. #define GL_FRAGMENT_SHADER_ARB            0x8B30
  879. #define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS_ARB 0x8B49
  880. #define GL_FRAGMENT_SHADER_DERIVATIVE_HINT_ARB 0x8B8B
  881. #endif
  882. #ifndef GL_ARB_shading_language_100
  883. #define GL_SHADING_LANGUAGE_VERSION_ARB   0x8B8C
  884. #endif
  885. #ifndef GL_ARB_texture_non_power_of_two
  886. #endif
  887. #ifndef GL_ARB_point_sprite
  888. #define GL_POINT_SPRITE_ARB               0x8861
  889. #define GL_COORD_REPLACE_ARB              0x8862
  890. #endif
  891. #ifndef GL_ARB_fragment_program_shadow
  892. #endif
  893. #ifndef GL_ARB_draw_buffers
  894. #define GL_MAX_DRAW_BUFFERS_ARB           0x8824
  895. #define GL_DRAW_BUFFER0_ARB               0x8825
  896. #define GL_DRAW_BUFFER1_ARB               0x8826
  897. #define GL_DRAW_BUFFER2_ARB               0x8827
  898. #define GL_DRAW_BUFFER3_ARB               0x8828
  899. #define GL_DRAW_BUFFER4_ARB               0x8829
  900. #define GL_DRAW_BUFFER5_ARB               0x882A
  901. #define GL_DRAW_BUFFER6_ARB               0x882B
  902. #define GL_DRAW_BUFFER7_ARB               0x882C
  903. #define GL_DRAW_BUFFER8_ARB               0x882D
  904. #define GL_DRAW_BUFFER9_ARB               0x882E
  905. #define GL_DRAW_BUFFER10_ARB              0x882F
  906. #define GL_DRAW_BUFFER11_ARB              0x8830
  907. #define GL_DRAW_BUFFER12_ARB              0x8831
  908. #define GL_DRAW_BUFFER13_ARB              0x8832
  909. #define GL_DRAW_BUFFER14_ARB              0x8833
  910. #define GL_DRAW_BUFFER15_ARB              0x8834
  911. #endif
  912. #ifndef GL_ARB_texture_rectangle
  913. #define GL_TEXTURE_RECTANGLE_ARB          0x84F5
  914. #define GL_TEXTURE_BINDING_RECTANGLE_ARB  0x84F6
  915. #define GL_PROXY_TEXTURE_RECTANGLE_ARB    0x84F7
  916. #define GL_MAX_RECTANGLE_TEXTURE_SIZE_ARB 0x84F8
  917. #endif
  918. #ifndef GL_ARB_color_buffer_float
  919. #define GL_RGBA_FLOAT_MODE_ARB            0x8820
  920. #define GL_CLAMP_VERTEX_COLOR_ARB         0x891A
  921. #define GL_CLAMP_FRAGMENT_COLOR_ARB       0x891B
  922. #define GL_CLAMP_READ_COLOR_ARB           0x891C
  923. #define GL_FIXED_ONLY_ARB                 0x891D
  924. #endif
  925. #ifndef GL_ARB_half_float_pixel
  926. #define GL_HALF_FLOAT_ARB                 0x140B
  927. #endif
  928. #ifndef GL_ARB_texture_float
  929. #define GL_TEXTURE_RED_TYPE_ARB           0x8C10
  930. #define GL_TEXTURE_GREEN_TYPE_ARB         0x8C11
  931. #define GL_TEXTURE_BLUE_TYPE_ARB          0x8C12
  932. #define GL_TEXTURE_ALPHA_TYPE_ARB         0x8C13
  933. #define GL_TEXTURE_LUMINANCE_TYPE_ARB     0x8C14
  934. #define GL_TEXTURE_INTENSITY_TYPE_ARB     0x8C15
  935. #define GL_TEXTURE_DEPTH_TYPE_ARB         0x8C16
  936. #define GL_UNSIGNED_NORMALIZED_ARB        0x8C17
  937. #define GL_RGBA32F_ARB                    0x8814
  938. #define GL_RGB32F_ARB                     0x8815
  939. #define GL_ALPHA32F_ARB                   0x8816
  940. #define GL_INTENSITY32F_ARB               0x8817
  941. #define GL_LUMINANCE32F_ARB               0x8818
  942. #define GL_LUMINANCE_ALPHA32F_ARB         0x8819
  943. #define GL_RGBA16F_ARB                    0x881A
  944. #define GL_RGB16F_ARB                     0x881B
  945. #define GL_ALPHA16F_ARB                   0x881C
  946. #define GL_INTENSITY16F_ARB               0x881D
  947. #define GL_LUMINANCE16F_ARB               0x881E
  948. #define GL_LUMINANCE_ALPHA16F_ARB         0x881F
  949. #endif
  950. #ifndef GL_ARB_pixel_buffer_object
  951. #define GL_PIXEL_PACK_BUFFER_ARB          0x88EB
  952. #define GL_PIXEL_UNPACK_BUFFER_ARB        0x88EC
  953. #define GL_PIXEL_PACK_BUFFER_BINDING_ARB  0x88ED
  954. #define GL_PIXEL_UNPACK_BUFFER_BINDING_ARB 0x88EF
  955. #endif
  956. #ifndef GL_EXT_abgr
  957. #define GL_ABGR_EXT                       0x8000
  958. #endif
  959. #ifndef GL_EXT_blend_color
  960. #define GL_CONSTANT_COLOR_EXT             0x8001
  961. #define GL_ONE_MINUS_CONSTANT_COLOR_EXT   0x8002
  962. #define GL_CONSTANT_ALPHA_EXT             0x8003
  963. #define GL_ONE_MINUS_CONSTANT_ALPHA_EXT   0x8004
  964. #define GL_BLEND_COLOR_EXT                0x8005
  965. #endif
  966. #ifndef GL_EXT_polygon_offset
  967. #define GL_POLYGON_OFFSET_EXT             0x8037
  968. #define GL_POLYGON_OFFSET_FACTOR_EXT      0x8038
  969. #define GL_POLYGON_OFFSET_BIAS_EXT        0x8039
  970. #endif
  971. #ifndef GL_EXT_texture
  972. #define GL_ALPHA4_EXT                     0x803B
  973. #define GL_ALPHA8_EXT                     0x803C
  974. #define GL_ALPHA12_EXT                    0x803D
  975. #define GL_ALPHA16_EXT                    0x803E
  976. #define GL_LUMINANCE4_EXT                 0x803F
  977. #define GL_LUMINANCE8_EXT                 0x8040
  978. #define GL_LUMINANCE12_EXT                0x8041
  979. #define GL_LUMINANCE16_EXT                0x8042
  980. #define GL_LUMINANCE4_ALPHA4_EXT          0x8043
  981. #define GL_LUMINANCE6_ALPHA2_EXT          0x8044
  982. #define GL_LUMINANCE8_ALPHA8_EXT          0x8045
  983. #define GL_LUMINANCE12_ALPHA4_EXT         0x8046
  984. #define GL_LUMINANCE12_ALPHA12_EXT        0x8047
  985. #define GL_LUMINANCE16_ALPHA16_EXT        0x8048
  986. #define GL_INTENSITY_EXT                  0x8049
  987. #define GL_INTENSITY4_EXT                 0x804A
  988. #define GL_INTENSITY8_EXT                 0x804B
  989. #define GL_INTENSITY12_EXT                0x804C
  990. #define GL_INTENSITY16_EXT                0x804D
  991. #define GL_RGB2_EXT                       0x804E
  992. #define GL_RGB4_EXT                       0x804F
  993. #define GL_RGB5_EXT                       0x8050
  994. #define GL_RGB8_EXT                       0x8051
  995. #define GL_RGB10_EXT                      0x8052
  996. #define GL_RGB12_EXT                      0x8053
  997. #define GL_RGB16_EXT                      0x8054
  998. #define GL_RGBA2_EXT                      0x8055
  999. #define GL_RGBA4_EXT                      0x8056
  1000. #define GL_RGB5_A1_EXT                    0x8057
  1001. #define GL_RGBA8_EXT                      0x8058
  1002. #define GL_RGB10_A2_EXT                   0x8059
  1003. #define GL_RGBA12_EXT                     0x805A
  1004. #define GL_RGBA16_EXT                     0x805B
  1005. #define GL_TEXTURE_RED_SIZE_EXT           0x805C
  1006. #define GL_TEXTURE_GREEN_SIZE_EXT         0x805D
  1007. #define GL_TEXTURE_BLUE_SIZE_EXT          0x805E
  1008. #define GL_TEXTURE_ALPHA_SIZE_EXT         0x805F
  1009. #define GL_TEXTURE_LUMINANCE_SIZE_EXT     0x8060
  1010. #define GL_TEXTURE_INTENSITY_SIZE_EXT     0x8061
  1011. #define GL_REPLACE_EXT                    0x8062
  1012. #define GL_PROXY_TEXTURE_1D_EXT           0x8063
  1013. #define GL_PROXY_TEXTURE_2D_EXT           0x8064
  1014. #define GL_TEXTURE_TOO_LARGE_EXT          0x8065
  1015. #endif
  1016. #ifndef GL_EXT_texture3D
  1017. #define GL_PACK_SKIP_IMAGES_EXT           0x806B
  1018. #define GL_PACK_IMAGE_HEIGHT_EXT          0x806C
  1019. #define GL_UNPACK_SKIP_IMAGES_EXT         0x806D
  1020. #define GL_UNPACK_IMAGE_HEIGHT_EXT        0x806E
  1021. #define GL_TEXTURE_3D_EXT                 0x806F
  1022. #define GL_PROXY_TEXTURE_3D_EXT           0x8070
  1023. #define GL_TEXTURE_DEPTH_EXT              0x8071
  1024. #define GL_TEXTURE_WRAP_R_EXT             0x8072
  1025. #define GL_MAX_3D_TEXTURE_SIZE_EXT        0x8073
  1026. #endif
  1027. #ifndef GL_SGIS_texture_filter4
  1028. #define GL_FILTER4_SGIS                   0x8146
  1029. #define GL_TEXTURE_FILTER4_SIZE_SGIS      0x8147
  1030. #endif
  1031. #ifndef GL_EXT_subtexture
  1032. #endif
  1033. #ifndef GL_EXT_copy_texture
  1034. #endif
  1035. #ifndef GL_EXT_histogram
  1036. #define GL_HISTOGRAM_EXT                  0x8024
  1037. #define GL_PROXY_HISTOGRAM_EXT            0x8025
  1038. #define GL_HISTOGRAM_WIDTH_EXT            0x8026
  1039. #define GL_HISTOGRAM_FORMAT_EXT           0x8027
  1040. #define GL_HISTOGRAM_RED_SIZE_EXT         0x8028
  1041. #define GL_HISTOGRAM_GREEN_SIZE_EXT       0x8029
  1042. #define GL_HISTOGRAM_BLUE_SIZE_EXT        0x802A
  1043. #define GL_HISTOGRAM_ALPHA_SIZE_EXT       0x802B
  1044. #define GL_HISTOGRAM_LUMINANCE_SIZE_EXT   0x802C
  1045. #define GL_HISTOGRAM_SINK_EXT             0x802D
  1046. #define GL_MINMAX_EXT                     0x802E
  1047. #define GL_MINMAX_FORMAT_EXT              0x802F
  1048. #define GL_MINMAX_SINK_EXT                0x8030
  1049. #define GL_TABLE_TOO_LARGE_EXT            0x8031
  1050. #endif
  1051. #ifndef GL_EXT_convolution
  1052. #define GL_CONVOLUTION_1D_EXT             0x8010
  1053. #define GL_CONVOLUTION_2D_EXT             0x8011
  1054. #define GL_SEPARABLE_2D_EXT               0x8012
  1055. #define GL_CONVOLUTION_BORDER_MODE_EXT    0x8013
  1056. #define GL_CONVOLUTION_FILTER_SCALE_EXT   0x8014
  1057. #define GL_CONVOLUTION_FILTER_BIAS_EXT    0x8015
  1058. #define GL_REDUCE_EXT                     0x8016
  1059. #define GL_CONVOLUTION_FORMAT_EXT         0x8017
  1060. #define GL_CONVOLUTION_WIDTH_EXT          0x8018
  1061. #define GL_CONVOLUTION_HEIGHT_EXT         0x8019
  1062. #define GL_MAX_CONVOLUTION_WIDTH_EXT      0x801A
  1063. #define GL_MAX_CONVOLUTION_HEIGHT_EXT     0x801B
  1064. #define GL_POST_CONVOLUTION_RED_SCALE_EXT 0x801C
  1065. #define GL_POST_CONVOLUTION_GREEN_SCALE_EXT 0x801D
  1066. #define GL_POST_CONVOLUTION_BLUE_SCALE_EXT 0x801E
  1067. #define GL_POST_CONVOLUTION_ALPHA_SCALE_EXT 0x801F
  1068. #define GL_POST_CONVOLUTION_RED_BIAS_EXT  0x8020
  1069. #define GL_POST_CONVOLUTION_GREEN_BIAS_EXT 0x8021
  1070. #define GL_POST_CONVOLUTION_BLUE_BIAS_EXT 0x8022
  1071. #define GL_POST_CONVOLUTION_ALPHA_BIAS_EXT 0x8023
  1072. #endif
  1073. #ifndef GL_SGI_color_matrix
  1074. #define GL_COLOR_MATRIX_SGI               0x80B1
  1075. #define GL_COLOR_MATRIX_STACK_DEPTH_SGI   0x80B2
  1076. #define GL_MAX_COLOR_MATRIX_STACK_DEPTH_SGI 0x80B3
  1077. #define GL_POST_COLOR_MATRIX_RED_SCALE_SGI 0x80B4
  1078. #define GL_POST_COLOR_MATRIX_GREEN_SCALE_SGI 0x80B5
  1079. #define GL_POST_COLOR_MATRIX_BLUE_SCALE_SGI 0x80B6
  1080. #define GL_POST_COLOR_MATRIX_ALPHA_SCALE_SGI 0x80B7
  1081. #define GL_POST_COLOR_MATRIX_RED_BIAS_SGI 0x80B8
  1082. #define GL_POST_COLOR_MATRIX_GREEN_BIAS_SGI 0x80B9
  1083. #define GL_POST_COLOR_MATRIX_BLUE_BIAS_SGI 0x80BA
  1084. #define GL_POST_COLOR_MATRIX_ALPHA_BIAS_SGI 0x80BB
  1085. #endif
  1086. #ifndef GL_SGI_color_table
  1087. #define GL_COLOR_TABLE_SGI                0x80D0
  1088. #define GL_POST_CONVOLUTION_COLOR_TABLE_SGI 0x80D1
  1089. #define GL_POST_COLOR_MATRIX_COLOR_TABLE_SGI 0x80D2
  1090. #define GL_PROXY_COLOR_TABLE_SGI          0x80D3
  1091. #define GL_PROXY_POST_CONVOLUTION_COLOR_TABLE_SGI 0x80D4
  1092. #define GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE_SGI 0x80D5
  1093. #define GL_COLOR_TABLE_SCALE_SGI          0x80D6
  1094. #define GL_COLOR_TABLE_BIAS_SGI           0x80D7
  1095. #define GL_COLOR_TABLE_FORMAT_SGI         0x80D8
  1096. #define GL_COLOR_TABLE_WIDTH_SGI          0x80D9
  1097. #define GL_COLOR_TABLE_RED_SIZE_SGI       0x80DA
  1098. #define GL_COLOR_TABLE_GREEN_SIZE_SGI     0x80DB
  1099. #define GL_COLOR_TABLE_BLUE_SIZE_SGI      0x80DC
  1100. #define GL_COLOR_TABLE_ALPHA_SIZE_SGI     0x80DD
  1101. #define GL_COLOR_TABLE_LUMINANCE_SIZE_SGI 0x80DE
  1102. #define GL_COLOR_TABLE_INTENSITY_SIZE_SGI 0x80DF
  1103. #endif
  1104. #ifndef GL_SGIS_pixel_texture
  1105. #define GL_PIXEL_TEXTURE_SGIS             0x8353
  1106. #define GL_PIXEL_FRAGMENT_RGB_SOURCE_SGIS 0x8354
  1107. #define GL_PIXEL_FRAGMENT_ALPHA_SOURCE_SGIS 0x8355
  1108. #define GL_PIXEL_GROUP_COLOR_SGIS         0x8356
  1109. #endif
  1110. #ifndef GL_SGIX_pixel_texture
  1111. #define GL_PIXEL_TEX_GEN_SGIX             0x8139
  1112. #define GL_PIXEL_TEX_GEN_MODE_SGIX        0x832B
  1113. #endif
  1114. #ifndef GL_SGIS_texture4D
  1115. #define GL_PACK_SKIP_VOLUMES_SGIS         0x8130
  1116. #define GL_PACK_IMAGE_DEPTH_SGIS          0x8131
  1117. #define GL_UNPACK_SKIP_VOLUMES_SGIS       0x8132
  1118. #define GL_UNPACK_IMAGE_DEPTH_SGIS        0x8133
  1119. #define GL_TEXTURE_4D_SGIS                0x8134
  1120. #define GL_PROXY_TEXTURE_4D_SGIS          0x8135
  1121. #define GL_TEXTURE_4DSIZE_SGIS            0x8136
  1122. #define GL_TEXTURE_WRAP_Q_SGIS            0x8137
  1123. #define GL_MAX_4D_TEXTURE_SIZE_SGIS       0x8138
  1124. #define GL_TEXTURE_4D_BINDING_SGIS        0x814F
  1125. #endif
  1126. #ifndef GL_SGI_texture_color_table
  1127. #define GL_TEXTURE_COLOR_TABLE_SGI        0x80BC
  1128. #define GL_PROXY_TEXTURE_COLOR_TABLE_SGI  0x80BD
  1129. #endif
  1130. #ifndef GL_EXT_cmyka
  1131. #define GL_CMYK_EXT                       0x800C
  1132. #define GL_CMYKA_EXT                      0x800D
  1133. #define GL_PACK_CMYK_HINT_EXT             0x800E
  1134. #define GL_UNPACK_CMYK_HINT_EXT           0x800F
  1135. #endif
  1136. #ifndef GL_EXT_texture_object
  1137. #define GL_TEXTURE_PRIORITY_EXT           0x8066
  1138. #define GL_TEXTURE_RESIDENT_EXT           0x8067
  1139. #define GL_TEXTURE_1D_BINDING_EXT         0x8068
  1140. #define GL_TEXTURE_2D_BINDING_EXT         0x8069
  1141. #define GL_TEXTURE_3D_BINDING_EXT         0x806A
  1142. #endif
  1143. #ifndef GL_SGIS_detail_texture
  1144. #define GL_DETAIL_TEXTURE_2D_SGIS         0x8095
  1145. #define GL_DETAIL_TEXTURE_2D_BINDING_SGIS 0x8096
  1146. #define GL_LINEAR_DETAIL_SGIS             0x8097
  1147. #define GL_LINEAR_DETAIL_ALPHA_SGIS       0x8098
  1148. #define GL_LINEAR_DETAIL_COLOR_SGIS       0x8099
  1149. #define GL_DETAIL_TEXTURE_LEVEL_SGIS      0x809A
  1150. #define GL_DETAIL_TEXTURE_MODE_SGIS       0x809B
  1151. #define GL_DETAIL_TEXTURE_FUNC_POINTS_SGIS 0x809C
  1152. #endif
  1153. #ifndef GL_SGIS_sharpen_texture
  1154. #define GL_LINEAR_SHARPEN_SGIS            0x80AD
  1155. #define GL_LINEAR_SHARPEN_ALPHA_SGIS      0x80AE
  1156. #define GL_LINEAR_SHARPEN_COLOR_SGIS      0x80AF
  1157. #define GL_SHARPEN_TEXTURE_FUNC_POINTS_SGIS 0x80B0
  1158. #endif
  1159. #ifndef GL_EXT_packed_pixels
  1160. #define GL_UNSIGNED_BYTE_3_3_2_EXT        0x8032
  1161. #define GL_UNSIGNED_SHORT_4_4_4_4_EXT     0x8033
  1162. #define GL_UNSIGNED_SHORT_5_5_5_1_EXT     0x8034
  1163. #define GL_UNSIGNED_INT_8_8_8_8_EXT       0x8035
  1164. #define GL_UNSIGNED_INT_10_10_10_2_EXT    0x8036
  1165. #endif
  1166. #ifndef GL_SGIS_texture_lod
  1167. #define GL_TEXTURE_MIN_LOD_SGIS           0x813A
  1168. #define GL_TEXTURE_MAX_LOD_SGIS           0x813B
  1169. #define GL_TEXTURE_BASE_LEVEL_SGIS        0x813C
  1170. #define GL_TEXTURE_MAX_LEVEL_SGIS         0x813D
  1171. #endif
  1172. #ifndef GL_SGIS_multisample
  1173. #define GL_MULTISAMPLE_SGIS               0x809D
  1174. #define GL_SAMPLE_ALPHA_TO_MASK_SGIS      0x809E
  1175. #define GL_SAMPLE_ALPHA_TO_ONE_SGIS       0x809F
  1176. #define GL_SAMPLE_MASK_SGIS               0x80A0
  1177. #define GL_1PASS_SGIS                     0x80A1
  1178. #define GL_2PASS_0_SGIS                   0x80A2
  1179. #define GL_2PASS_1_SGIS                   0x80A3
  1180. #define GL_4PASS_0_SGIS                   0x80A4
  1181. #define GL_4PASS_1_SGIS                   0x80A5
  1182. #define GL_4PASS_2_SGIS                   0x80A6
  1183. #define GL_4PASS_3_SGIS                   0x80A7
  1184. #define GL_SAMPLE_BUFFERS_SGIS            0x80A8
  1185. #define GL_SAMPLES_SGIS                   0x80A9
  1186. #define GL_SAMPLE_MASK_VALUE_SGIS         0x80AA
  1187. #define GL_SAMPLE_MASK_INVERT_SGIS        0x80AB
  1188. #define GL_SAMPLE_PATTERN_SGIS            0x80AC
  1189. #endif
  1190. #ifndef GL_EXT_rescale_normal
  1191. #define GL_RESCALE_NORMAL_EXT             0x803A
  1192. #endif
  1193. #ifndef GL_EXT_vertex_array
  1194. #define GL_VERTEX_ARRAY_EXT               0x8074
  1195. #define GL_NORMAL_ARRAY_EXT               0x8075
  1196. #define GL_COLOR_ARRAY_EXT                0x8076
  1197. #define GL_INDEX_ARRAY_EXT                0x8077
  1198. #define GL_TEXTURE_COORD_ARRAY_EXT        0x8078
  1199. #define GL_EDGE_FLAG_ARRAY_EXT            0x8079
  1200. #define GL_VERTEX_ARRAY_SIZE_EXT          0x807A
  1201. #define GL_VERTEX_ARRAY_TYPE_EXT          0x807B
  1202. #define GL_VERTEX_ARRAY_STRIDE_EXT        0x807C
  1203. #define GL_VERTEX_ARRAY_COUNT_EXT         0x807D
  1204. #define GL_NORMAL_ARRAY_TYPE_EXT          0x807E
  1205. #define GL_NORMAL_ARRAY_STRIDE_EXT        0x807F
  1206. #define GL_NORMAL_ARRAY_COUNT_EXT         0x8080
  1207. #define GL_COLOR_ARRAY_SIZE_EXT           0x8081
  1208. #define GL_COLOR_ARRAY_TYPE_EXT           0x8082
  1209. #define GL_COLOR_ARRAY_STRIDE_EXT         0x8083
  1210. #define GL_COLOR_ARRAY_COUNT_EXT          0x8084
  1211. #define GL_INDEX_ARRAY_TYPE_EXT           0x8085
  1212. #define GL_INDEX_ARRAY_STRIDE_EXT         0x8086
  1213. #define GL_INDEX_ARRAY_COUNT_EXT          0x8087
  1214. #define GL_TEXTURE_COORD_ARRAY_SIZE_EXT   0x8088
  1215. #define GL_TEXTURE_COORD_ARRAY_TYPE_EXT   0x8089
  1216. #define GL_TEXTURE_COORD_ARRAY_STRIDE_EXT 0x808A
  1217. #define GL_TEXTURE_COORD_ARRAY_COUNT_EXT  0x808B
  1218. #define GL_EDGE_FLAG_ARRAY_STRIDE_EXT     0x808C
  1219. #define GL_EDGE_FLAG_ARRAY_COUNT_EXT      0x808D
  1220. #define GL_VERTEX_ARRAY_POINTER_EXT       0x808E
  1221. #define GL_NORMAL_ARRAY_POINTER_EXT       0x808F
  1222. #define GL_COLOR_ARRAY_POINTER_EXT        0x8090
  1223. #define GL_INDEX_ARRAY_POINTER_EXT        0x8091
  1224. #define GL_TEXTURE_COORD_ARRAY_POINTER_EXT 0x8092
  1225. #define GL_EDGE_FLAG_ARRAY_POINTER_EXT    0x8093
  1226. #endif
  1227. #ifndef GL_EXT_misc_attribute
  1228. #endif
  1229. #ifndef GL_SGIS_generate_mipmap
  1230. #define GL_GENERATE_MIPMAP_SGIS           0x8191
  1231. #define GL_GENERATE_MIPMAP_HINT_SGIS      0x8192
  1232. #endif
  1233. #ifndef GL_SGIX_clipmap
  1234. #define GL_LINEAR_CLIPMAP_LINEAR_SGIX     0x8170
  1235. #define GL_TEXTURE_CLIPMAP_CENTER_SGIX    0x8171
  1236. #define GL_TEXTURE_CLIPMAP_FRAME_SGIX     0x8172
  1237. #define GL_TEXTURE_CLIPMAP_OFFSET_SGIX    0x8173
  1238. #define GL_TEXTURE_CLIPMAP_VIRTUAL_DEPTH_SGIX 0x8174
  1239. #define GL_TEXTURE_CLIPMAP_LOD_OFFSET_SGIX 0x8175
  1240. #define GL_TEXTURE_CLIPMAP_DEPTH_SGIX     0x8176
  1241. #define GL_MAX_CLIPMAP_DEPTH_SGIX         0x8177
  1242. #define GL_MAX_CLIPMAP_VIRTUAL_DEPTH_SGIX 0x8178
  1243. #define GL_NEAREST_CLIPMAP_NEAREST_SGIX   0x844D
  1244. #define GL_NEAREST_CLIPMAP_LINEAR_SGIX    0x844E
  1245. #define GL_LINEAR_CLIPMAP_NEAREST_SGIX    0x844F
  1246. #endif
  1247. #ifndef GL_SGIX_shadow
  1248. #define GL_TEXTURE_COMPARE_SGIX           0x819A
  1249. #define GL_TEXTURE_COMPARE_OPERATOR_SGIX  0x819B
  1250. #define GL_TEXTURE_LEQUAL_R_SGIX          0x819C
  1251. #define GL_TEXTURE_GEQUAL_R_SGIX          0x819D
  1252. #endif
  1253. #ifndef GL_SGIS_texture_edge_clamp
  1254. #define GL_CLAMP_TO_EDGE_SGIS             0x812F
  1255. #endif
  1256. #ifndef GL_SGIS_texture_border_clamp
  1257. #define GL_CLAMP_TO_BORDER_SGIS           0x812D
  1258. #endif
  1259. #ifndef GL_EXT_blend_minmax
  1260. #define GL_FUNC_ADD_EXT                   0x8006
  1261. #define GL_MIN_EXT                        0x8007
  1262. #define GL_MAX_EXT                        0x8008
  1263. #define GL_BLEND_EQUATION_EXT             0x8009
  1264. #endif
  1265. #ifndef GL_EXT_blend_subtract
  1266. #define GL_FUNC_SUBTRACT_EXT              0x800A
  1267. #define GL_FUNC_REVERSE_SUBTRACT_EXT      0x800B
  1268. #endif
  1269. #ifndef GL_EXT_blend_logic_op
  1270. #endif
  1271. #ifndef GL_SGIX_interlace
  1272. #define GL_INTERLACE_SGIX                 0x8094
  1273. #endif
  1274. #ifndef GL_SGIX_pixel_tiles
  1275. #define GL_PIXEL_TILE_BEST_ALIGNMENT_SGIX 0x813E
  1276. #define GL_PIXEL_TILE_CACHE_INCREMENT_SGIX 0x813F
  1277. #define GL_PIXEL_TILE_WIDTH_SGIX          0x8140
  1278. #define GL_PIXEL_TILE_HEIGHT_SGIX         0x8141
  1279. #define GL_PIXEL_TILE_GRID_WIDTH_SGIX     0x8142
  1280. #define GL_PIXEL_TILE_GRID_HEIGHT_SGIX    0x8143
  1281. #define GL_PIXEL_TILE_GRID_DEPTH_SGIX     0x8144
  1282. #define GL_PIXEL_TILE_CACHE_SIZE_SGIX     0x8145
  1283. #endif
  1284. #ifndef GL_SGIS_texture_select
  1285. #define GL_DUAL_ALPHA4_SGIS               0x8110
  1286. #define GL_DUAL_ALPHA8_SGIS               0x8111
  1287. #define GL_DUAL_ALPHA12_SGIS              0x8112
  1288. #define GL_DUAL_ALPHA16_SGIS              0x8113
  1289. #define GL_DUAL_LUMINANCE4_SGIS           0x8114
  1290. #define GL_DUAL_LUMINANCE8_SGIS           0x8115
  1291. #define GL_DUAL_LUMINANCE12_SGIS          0x8116
  1292. #define GL_DUAL_LUMINANCE16_SGIS          0x8117
  1293. #define GL_DUAL_INTENSITY4_SGIS           0x8118
  1294. #define GL_DUAL_INTENSITY8_SGIS           0x8119
  1295. #define GL_DUAL_INTENSITY12_SGIS          0x811A
  1296. #define GL_DUAL_INTENSITY16_SGIS          0x811B
  1297. #define GL_DUAL_LUMINANCE_ALPHA4_SGIS     0x811C
  1298. #define GL_DUAL_LUMINANCE_ALPHA8_SGIS     0x811D
  1299. #define GL_QUAD_ALPHA4_SGIS               0x811E
  1300. #define GL_QUAD_ALPHA8_SGIS               0x811F
  1301. #define GL_QUAD_LUMINANCE4_SGIS           0x8120
  1302. #define GL_QUAD_LUMINANCE8_SGIS           0x8121
  1303. #define GL_QUAD_INTENSITY4_SGIS           0x8122
  1304. #define GL_QUAD_INTENSITY8_SGIS           0x8123
  1305. #define GL_DUAL_TEXTURE_SELECT_SGIS       0x8124
  1306. #define GL_QUAD_TEXTURE_SELECT_SGIS       0x8125
  1307. #endif
  1308. #ifndef GL_SGIX_sprite
  1309. #define GL_SPRITE_SGIX                    0x8148
  1310. #define GL_SPRITE_MODE_SGIX               0x8149
  1311. #define GL_SPRITE_AXIS_SGIX               0x814A
  1312. #define GL_SPRITE_TRANSLATION_SGIX        0x814B
  1313. #define GL_SPRITE_AXIAL_SGIX              0x814C
  1314. #define GL_SPRITE_OBJECT_ALIGNED_SGIX     0x814D
  1315. #define GL_SPRITE_EYE_ALIGNED_SGIX        0x814E
  1316. #endif
  1317. #ifndef GL_SGIX_texture_multi_buffer
  1318. #define GL_TEXTURE_MULTI_BUFFER_HINT_SGIX 0x812E
  1319. #endif
  1320. #ifndef GL_EXT_point_parameters
  1321. #define GL_POINT_SIZE_MIN_EXT             0x8126
  1322. #define GL_POINT_SIZE_MAX_EXT             0x8127
  1323. #define GL_POINT_FADE_THRESHOLD_SIZE_EXT  0x8128
  1324. #define GL_DISTANCE_ATTENUATION_EXT       0x8129
  1325. #endif
  1326. #ifndef GL_SGIS_point_parameters
  1327. #define GL_POINT_SIZE_MIN_SGIS            0x8126
  1328. #define GL_POINT_SIZE_MAX_SGIS            0x8127
  1329. #define GL_POINT_FADE_THRESHOLD_SIZE_SGIS 0x8128
  1330. #define GL_DISTANCE_ATTENUATION_SGIS      0x8129
  1331. #endif
  1332. #ifndef GL_SGIX_instruments
  1333. #define GL_INSTRUMENT_BUFFER_POINTER_SGIX 0x8180
  1334. #define GL_INSTRUMENT_MEASUREMENTS_SGIX   0x8181
  1335. #endif
  1336. #ifndef GL_SGIX_texture_scale_bias
  1337. #define GL_POST_TEXTURE_FILTER_BIAS_SGIX  0x8179
  1338. #define GL_POST_TEXTURE_FILTER_SCALE_SGIX 0x817A
  1339. #define GL_POST_TEXTURE_FILTER_BIAS_RANGE_SGIX 0x817B
  1340. #define GL_POST_TEXTURE_FILTER_SCALE_RANGE_SGIX 0x817C
  1341. #endif
  1342. #ifndef GL_SGIX_framezoom
  1343. #define GL_FRAMEZOOM_SGIX                 0x818B
  1344. #define GL_FRAMEZOOM_FACTOR_SGIX          0x818C
  1345. #define GL_MAX_FRAMEZOOM_FACTOR_SGIX      0x818D
  1346. #endif
  1347. #ifndef GL_SGIX_tag_sample_buffer
  1348. #endif
  1349. #ifndef GL_FfdMaskSGIX
  1350. #define GL_TEXTURE_DEFORMATION_BIT_SGIX   0x00000001
  1351. #define GL_GEOMETRY_DEFORMATION_BIT_SGIX  0x00000002
  1352. #endif
  1353. #ifndef GL_SGIX_polynomial_ffd
  1354. #define GL_GEOMETRY_DEFORMATION_SGIX      0x8194
  1355. #define GL_TEXTURE_DEFORMATION_SGIX       0x8195
  1356. #define GL_DEFORMATIONS_MASK_SGIX         0x8196
  1357. #define GL_MAX_DEFORMATION_ORDER_SGIX     0x8197
  1358. #endif
  1359. #ifndef GL_SGIX_reference_plane
  1360. #define GL_REFERENCE_PLANE_SGIX           0x817D
  1361. #define GL_REFERENCE_PLANE_EQUATION_SGIX  0x817E
  1362. #endif
  1363. #ifndef GL_SGIX_flush_raster
  1364. #endif
  1365. #ifndef GL_SGIX_depth_texture
  1366. #define GL_DEPTH_COMPONENT16_SGIX         0x81A5
  1367. #define GL_DEPTH_COMPONENT24_SGIX         0x81A6
  1368. #define GL_DEPTH_COMPONENT32_SGIX         0x81A7
  1369. #endif
  1370. #ifndef GL_SGIS_fog_function
  1371. #define GL_FOG_FUNC_SGIS                  0x812A
  1372. #define GL_FOG_FUNC_POINTS_SGIS           0x812B
  1373. #define GL_MAX_FOG_FUNC_POINTS_SGIS       0x812C
  1374. #endif
  1375. #ifndef GL_SGIX_fog_offset
  1376. #define GL_FOG_OFFSET_SGIX                0x8198
  1377. #define GL_FOG_OFFSET_VALUE_SGIX          0x8199
  1378. #endif
  1379. #ifndef GL_HP_image_transform
  1380. #define GL_IMAGE_SCALE_X_HP               0x8155
  1381. #define GL_IMAGE_SCALE_Y_HP               0x8156
  1382. #define GL_IMAGE_TRANSLATE_X_HP           0x8157
  1383. #define GL_IMAGE_TRANSLATE_Y_HP           0x8158
  1384. #define GL_IMAGE_ROTATE_ANGLE_HP          0x8159
  1385. #define GL_IMAGE_ROTATE_ORIGIN_X_HP       0x815A
  1386. #define GL_IMAGE_ROTATE_ORIGIN_Y_HP       0x815B
  1387. #define GL_IMAGE_MAG_FILTER_HP            0x815C
  1388. #define GL_IMAGE_MIN_FILTER_HP            0x815D
  1389. #define GL_IMAGE_CUBIC_WEIGHT_HP          0x815E
  1390. #define GL_CUBIC_HP                       0x815F
  1391. #define GL_AVERAGE_HP                     0x8160
  1392. #define GL_IMAGE_TRANSFORM_2D_HP          0x8161
  1393. #define GL_POST_IMAGE_TRANSFORM_COLOR_TABLE_HP 0x8162
  1394. #define GL_PROXY_POST_IMAGE_TRANSFORM_COLOR_TABLE_HP 0x8163
  1395. #endif
  1396. #ifndef GL_HP_convolution_border_modes
  1397. #define GL_IGNORE_BORDER_HP               0x8150
  1398. #define GL_CONSTANT_BORDER_HP             0x8151
  1399. #define GL_REPLICATE_BORDER_HP            0x8153
  1400. #define GL_CONVOLUTION_BORDER_COLOR_HP    0x8154
  1401. #endif
  1402. #ifndef GL_INGR_palette_buffer
  1403. #endif
  1404. #ifndef GL_SGIX_texture_add_env
  1405. #define GL_TEXTURE_ENV_BIAS_SGIX          0x80BE
  1406. #endif
  1407. #ifndef GL_EXT_color_subtable
  1408. #endif
  1409. #ifndef GL_PGI_vertex_hints
  1410. #define GL_VERTEX_DATA_HINT_PGI           0x1A22A
  1411. #define GL_VERTEX_CONSISTENT_HINT_PGI     0x1A22B
  1412. #define GL_MATERIAL_SIDE_HINT_PGI         0x1A22C
  1413. #define GL_MAX_VERTEX_HINT_PGI            0x1A22D
  1414. #define GL_COLOR3_BIT_PGI                 0x00010000
  1415. #define GL_COLOR4_BIT_PGI                 0x00020000
  1416. #define GL_EDGEFLAG_BIT_PGI               0x00040000
  1417. #define GL_INDEX_BIT_PGI                  0x00080000
  1418. #define GL_MAT_AMBIENT_BIT_PGI            0x00100000
  1419. #define GL_MAT_AMBIENT_AND_DIFFUSE_BIT_PGI 0x00200000
  1420. #define GL_MAT_DIFFUSE_BIT_PGI            0x00400000
  1421. #define GL_MAT_EMISSION_BIT_PGI           0x00800000
  1422. #define GL_MAT_COLOR_INDEXES_BIT_PGI      0x01000000
  1423. #define GL_MAT_SHININESS_BIT_PGI          0x02000000
  1424. #define GL_MAT_SPECULAR_BIT_PGI           0x04000000
  1425. #define GL_NORMAL_BIT_PGI                 0x08000000
  1426. #define GL_TEXCOORD1_BIT_PGI              0x10000000
  1427. #define GL_TEXCOORD2_BIT_PGI              0x20000000
  1428. #define GL_TEXCOORD3_BIT_PGI              0x40000000
  1429. #define GL_TEXCOORD4_BIT_PGI              0x80000000
  1430. #define GL_VERTEX23_BIT_PGI               0x00000004
  1431. #define GL_VERTEX4_BIT_PGI                0x00000008
  1432. #endif
  1433. #ifndef GL_PGI_misc_hints
  1434. #define GL_PREFER_DOUBLEBUFFER_HINT_PGI   0x1A1F8
  1435. #define GL_CONSERVE_MEMORY_HINT_PGI       0x1A1FD
  1436. #define GL_RECLAIM_MEMORY_HINT_PGI        0x1A1FE
  1437. #define GL_NATIVE_GRAPHICS_HANDLE_PGI     0x1A202
  1438. #define GL_NATIVE_GRAPHICS_BEGIN_HINT_PGI 0x1A203
  1439. #define GL_NATIVE_GRAPHICS_END_HINT_PGI   0x1A204
  1440. #define GL_ALWAYS_FAST_HINT_PGI           0x1A20C
  1441. #define GL_ALWAYS_SOFT_HINT_PGI           0x1A20D
  1442. #define GL_ALLOW_DRAW_OBJ_HINT_PGI        0x1A20E
  1443. #define GL_ALLOW_DRAW_WIN_HINT_PGI        0x1A20F
  1444. #define GL_ALLOW_DRAW_FRG_HINT_PGI        0x1A210
  1445. #define GL_ALLOW_DRAW_MEM_HINT_PGI        0x1A211
  1446. #define GL_STRICT_DEPTHFUNC_HINT_PGI      0x1A216
  1447. #define GL_STRICT_LIGHTING_HINT_PGI       0x1A217
  1448. #define GL_STRICT_SCISSOR_HINT_PGI        0x1A218
  1449. #define GL_FULL_STIPPLE_HINT_PGI          0x1A219
  1450. #define GL_CLIP_NEAR_HINT_PGI             0x1A220
  1451. #define GL_CLIP_FAR_HINT_PGI              0x1A221
  1452. #define GL_WIDE_LINE_HINT_PGI             0x1A222
  1453. #define GL_BACK_NORMALS_HINT_PGI          0x1A223
  1454. #endif
  1455. #ifndef GL_EXT_paletted_texture
  1456. #define GL_COLOR_INDEX1_EXT               0x80E2
  1457. #define GL_COLOR_INDEX2_EXT               0x80E3
  1458. #define GL_COLOR_INDEX4_EXT               0x80E4
  1459. #define GL_COLOR_INDEX8_EXT               0x80E5
  1460. #define GL_COLOR_INDEX12_EXT              0x80E6
  1461. #define GL_COLOR_INDEX16_EXT              0x80E7
  1462. #define GL_TEXTURE_INDEX_SIZE_EXT         0x80ED
  1463. #endif
  1464. #ifndef GL_EXT_clip_volume_hint
  1465. #define GL_CLIP_VOLUME_CLIPPING_HINT_EXT  0x80F0
  1466. #endif
  1467. #ifndef GL_SGIX_list_priority
  1468. #define GL_LIST_PRIORITY_SGIX             0x8182
  1469. #endif
  1470. #ifndef GL_SGIX_ir_instrument1
  1471. #define GL_IR_INSTRUMENT1_SGIX            0x817F
  1472. #endif
  1473. #ifndef GL_SGIX_calligraphic_fragment
  1474. #define GL_CALLIGRAPHIC_FRAGMENT_SGIX     0x8183
  1475. #endif
  1476. #ifndef GL_SGIX_texture_lod_bias
  1477. #define GL_TEXTURE_LOD_BIAS_S_SGIX        0x818E
  1478. #define GL_TEXTURE_LOD_BIAS_T_SGIX        0x818F
  1479. #define GL_TEXTURE_LOD_BIAS_R_SGIX        0x8190
  1480. #endif
  1481. #ifndef GL_SGIX_shadow_ambient
  1482. #define GL_SHADOW_AMBIENT_SGIX            0x80BF
  1483. #endif
  1484. #ifndef GL_EXT_index_texture
  1485. #endif
  1486. #ifndef GL_EXT_index_material
  1487. #define GL_INDEX_MATERIAL_EXT             0x81B8
  1488. #define GL_INDEX_MATERIAL_PARAMETER_EXT   0x81B9
  1489. #define GL_INDEX_MATERIAL_FACE_EXT        0x81BA
  1490. #endif
  1491. #ifndef GL_EXT_index_func
  1492. #define GL_INDEX_TEST_EXT                 0x81B5
  1493. #define GL_INDEX_TEST_FUNC_EXT            0x81B6
  1494. #define GL_INDEX_TEST_REF_EXT             0x81B7
  1495. #endif
  1496. #ifndef GL_EXT_index_array_formats
  1497. #define GL_IUI_V2F_EXT                    0x81AD
  1498. #define GL_IUI_V3F_EXT                    0x81AE
  1499. #define GL_IUI_N3F_V2F_EXT                0x81AF
  1500. #define GL_IUI_N3F_V3F_EXT                0x81B0
  1501. #define GL_T2F_IUI_V2F_EXT                0x81B1
  1502. #define GL_T2F_IUI_V3F_EXT                0x81B2
  1503. #define GL_T2F_IUI_N3F_V2F_EXT            0x81B3
  1504. #define GL_T2F_IUI_N3F_V3F_EXT            0x81B4
  1505. #endif
  1506. #ifndef GL_EXT_compiled_vertex_array
  1507. #define GL_ARRAY_ELEMENT_LOCK_FIRST_EXT   0x81A8
  1508. #define GL_ARRAY_ELEMENT_LOCK_COUNT_EXT   0x81A9
  1509. #endif
  1510. #ifndef GL_EXT_cull_vertex
  1511. #define GL_CULL_VERTEX_EXT                0x81AA
  1512. #define GL_CULL_VERTEX_EYE_POSITION_EXT   0x81AB
  1513. #define GL_CULL_VERTEX_OBJECT_POSITION_EXT 0x81AC
  1514. #endif
  1515. #ifndef GL_SGIX_ycrcb
  1516. #define GL_YCRCB_422_SGIX                 0x81BB
  1517. #define GL_YCRCB_444_SGIX                 0x81BC
  1518. #endif
  1519. #ifndef GL_SGIX_fragment_lighting
  1520. #define GL_FRAGMENT_LIGHTING_SGIX         0x8400
  1521. #define GL_FRAGMENT_COLOR_MATERIAL_SGIX   0x8401
  1522. #define GL_FRAGMENT_COLOR_MATERIAL_FACE_SGIX 0x8402
  1523. #define GL_FRAGMENT_COLOR_MATERIAL_PARAMETER_SGIX 0x8403
  1524. #define GL_MAX_FRAGMENT_LIGHTS_SGIX       0x8404
  1525. #define GL_MAX_ACTIVE_LIGHTS_SGIX         0x8405
  1526. #define GL_CURRENT_RASTER_NORMAL_SGIX     0x8406
  1527. #define GL_LIGHT_ENV_MODE_SGIX            0x8407
  1528. #define GL_FRAGMENT_LIGHT_MODEL_LOCAL_VIEWER_SGIX 0x8408
  1529. #define GL_FRAGMENT_LIGHT_MODEL_TWO_SIDE_SGIX 0x8409
  1530. #define GL_FRAGMENT_LIGHT_MODEL_AMBIENT_SGIX 0x840A
  1531. #define GL_FRAGMENT_LIGHT_MODEL_NORMAL_INTERPOLATION_SGIX 0x840B
  1532. #define GL_FRAGMENT_LIGHT0_SGIX           0x840C
  1533. #define GL_FRAGMENT_LIGHT1_SGIX           0x840D
  1534. #define GL_FRAGMENT_LIGHT2_SGIX           0x840E
  1535. #define GL_FRAGMENT_LIGHT3_SGIX           0x840F
  1536. #define GL_FRAGMENT_LIGHT4_SGIX           0x8410
  1537. #define GL_FRAGMENT_LIGHT5_SGIX           0x8411
  1538. #define GL_FRAGMENT_LIGHT6_SGIX           0x8412
  1539. #define GL_FRAGMENT_LIGHT7_SGIX           0x8413
  1540. #endif
  1541. #ifndef GL_IBM_rasterpos_clip
  1542. #define GL_RASTER_POSITION_UNCLIPPED_IBM  0x19262
  1543. #endif
  1544. #ifndef GL_HP_texture_lighting
  1545. #define GL_TEXTURE_LIGHTING_MODE_HP       0x8167
  1546. #define GL_TEXTURE_POST_SPECULAR_HP       0x8168
  1547. #define GL_TEXTURE_PRE_SPECULAR_HP        0x8169
  1548. #endif
  1549. #ifndef GL_EXT_draw_range_elements
  1550. #define GL_MAX_ELEMENTS_VERTICES_EXT      0x80E8
  1551. #define GL_MAX_ELEMENTS_INDICES_EXT       0x80E9
  1552. #endif
  1553. #ifndef GL_WIN_phong_shading
  1554. #define GL_PHONG_WIN                      0x80EA
  1555. #define GL_PHONG_HINT_WIN                 0x80EB
  1556. #endif
  1557. #ifndef GL_WIN_specular_fog
  1558. #define GL_FOG_SPECULAR_TEXTURE_WIN       0x80EC
  1559. #endif
  1560. #ifndef GL_EXT_light_texture
  1561. #define GL_FRAGMENT_MATERIAL_EXT          0x8349
  1562. #define GL_FRAGMENT_NORMAL_EXT            0x834A
  1563. #define GL_FRAGMENT_COLOR_EXT             0x834C
  1564. #define GL_ATTENUATION_EXT                0x834D
  1565. #define GL_SHADOW_ATTENUATION_EXT         0x834E
  1566. #define GL_TEXTURE_APPLICATION_MODE_EXT   0x834F
  1567. #define GL_TEXTURE_LIGHT_EXT              0x8350
  1568. #define GL_TEXTURE_MATERIAL_FACE_EXT      0x8351
  1569. #define GL_TEXTURE_MATERIAL_PARAMETER_EXT 0x8352
  1570. /* reuse GL_FRAGMENT_DEPTH_EXT */
  1571. #endif
  1572. #ifndef GL_SGIX_blend_alpha_minmax
  1573. #define GL_ALPHA_MIN_SGIX                 0x8320
  1574. #define GL_ALPHA_MAX_SGIX                 0x8321
  1575. #endif
  1576. #ifndef GL_SGIX_impact_pixel_texture
  1577. #define GL_PIXEL_TEX_GEN_Q_CEILING_SGIX   0x8184
  1578. #define GL_PIXEL_TEX_GEN_Q_ROUND_SGIX     0x8185
  1579. #define GL_PIXEL_TEX_GEN_Q_FLOOR_SGIX     0x8186
  1580. #define GL_PIXEL_TEX_GEN_ALPHA_REPLACE_SGIX 0x8187
  1581. #define GL_PIXEL_TEX_GEN_ALPHA_NO_REPLACE_SGIX 0x8188
  1582. #define GL_PIXEL_TEX_GEN_ALPHA_LS_SGIX    0x8189
  1583. #define GL_PIXEL_TEX_GEN_ALPHA_MS_SGIX    0x818A
  1584. #endif
  1585. #ifndef GL_EXT_bgra
  1586. #define GL_BGR_EXT                        0x80E0
  1587. #define GL_BGRA_EXT                       0x80E1
  1588. #endif
  1589. #ifndef GL_SGIX_async
  1590. #define GL_ASYNC_MARKER_SGIX              0x8329
  1591. #endif
  1592. #ifndef GL_SGIX_async_pixel
  1593. #define GL_ASYNC_TEX_IMAGE_SGIX           0x835C
  1594. #define GL_ASYNC_DRAW_PIXELS_SGIX         0x835D
  1595. #define GL_ASYNC_READ_PIXELS_SGIX         0x835E
  1596. #define GL_MAX_ASYNC_TEX_IMAGE_SGIX       0x835F
  1597. #define GL_MAX_ASYNC_DRAW_PIXELS_SGIX     0x8360
  1598. #define GL_MAX_ASYNC_READ_PIXELS_SGIX     0x8361
  1599. #endif
  1600. #ifndef GL_SGIX_async_histogram
  1601. #define GL_ASYNC_HISTOGRAM_SGIX           0x832C
  1602. #define GL_MAX_ASYNC_HISTOGRAM_SGIX       0x832D
  1603. #endif
  1604. #ifndef GL_INTEL_texture_scissor
  1605. #endif
  1606. #ifndef GL_INTEL_parallel_arrays
  1607. #define GL_PARALLEL_ARRAYS_INTEL          0x83F4
  1608. #define GL_VERTEX_ARRAY_PARALLEL_POINTERS_INTEL 0x83F5
  1609. #define GL_NORMAL_ARRAY_PARALLEL_POINTERS_INTEL 0x83F6
  1610. #define GL_COLOR_ARRAY_PARALLEL_POINTERS_INTEL 0x83F7
  1611. #define GL_TEXTURE_COORD_ARRAY_PARALLEL_POINTERS_INTEL 0x83F8
  1612. #endif
  1613. #ifndef GL_HP_occlusion_test
  1614. #define GL_OCCLUSION_TEST_HP              0x8165
  1615. #define GL_OCCLUSION_TEST_RESULT_HP       0x8166
  1616. #endif
  1617. #ifndef GL_EXT_pixel_transform
  1618. #define GL_PIXEL_TRANSFORM_2D_EXT         0x8330
  1619. #define GL_PIXEL_MAG_FILTER_EXT           0x8331
  1620. #define GL_PIXEL_MIN_FILTER_EXT           0x8332
  1621. #define GL_PIXEL_CUBIC_WEIGHT_EXT         0x8333
  1622. #define GL_CUBIC_EXT                      0x8334
  1623. #define GL_AVERAGE_EXT                    0x8335
  1624. #define GL_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT 0x8336
  1625. #define GL_MAX_PIXEL_TRANSFORM_2D_STACK_DEPTH_EXT 0x8337
  1626. #define GL_PIXEL_TRANSFORM_2D_MATRIX_EXT  0x8338
  1627. #endif
  1628. #ifndef GL_EXT_pixel_transform_color_table
  1629. #endif
  1630. #ifndef GL_EXT_shared_texture_palette
  1631. #define GL_SHARED_TEXTURE_PALETTE_EXT     0x81FB
  1632. #endif
  1633. #ifndef GL_EXT_separate_specular_color
  1634. #define GL_LIGHT_MODEL_COLOR_CONTROL_EXT  0x81F8
  1635. #define GL_SINGLE_COLOR_EXT               0x81F9
  1636. #define GL_SEPARATE_SPECULAR_COLOR_EXT    0x81FA
  1637. #endif
  1638. #ifndef GL_EXT_secondary_color
  1639. #define GL_COLOR_SUM_EXT                  0x8458
  1640. #define GL_CURRENT_SECONDARY_COLOR_EXT    0x8459
  1641. #define GL_SECONDARY_COLOR_ARRAY_SIZE_EXT 0x845A
  1642. #define GL_SECONDARY_COLOR_ARRAY_TYPE_EXT 0x845B
  1643. #define GL_SECONDARY_COLOR_ARRAY_STRIDE_EXT 0x845C
  1644. #define GL_SECONDARY_COLOR_ARRAY_POINTER_EXT 0x845D
  1645. #define GL_SECONDARY_COLOR_ARRAY_EXT      0x845E
  1646. #endif
  1647. #ifndef GL_EXT_texture_perturb_normal
  1648. #define GL_PERTURB_EXT                    0x85AE
  1649. #define GL_TEXTURE_NORMAL_EXT             0x85AF
  1650. #endif
  1651. #ifndef GL_EXT_multi_draw_arrays
  1652. #endif
  1653. #ifndef GL_EXT_fog_coord
  1654. #define GL_FOG_COORDINATE_SOURCE_EXT      0x8450
  1655. #define GL_FOG_COORDINATE_EXT             0x8451
  1656. #define GL_FRAGMENT_DEPTH_EXT             0x8452
  1657. #define GL_CURRENT_FOG_COORDINATE_EXT     0x8453
  1658. #define GL_FOG_COORDINATE_ARRAY_TYPE_EXT  0x8454
  1659. #define GL_FOG_COORDINATE_ARRAY_STRIDE_EXT 0x8455
  1660. #define GL_FOG_COORDINATE_ARRAY_POINTER_EXT 0x8456
  1661. #define GL_FOG_COORDINATE_ARRAY_EXT       0x8457
  1662. #endif
  1663. #ifndef GL_REND_screen_coordinates
  1664. #define GL_SCREEN_COORDINATES_REND        0x8490
  1665. #define GL_INVERTED_SCREEN_W_REND         0x8491
  1666. #endif
  1667. #ifndef GL_EXT_coordinate_frame
  1668. #define GL_TANGENT_ARRAY_EXT              0x8439
  1669. #define GL_BINORMAL_ARRAY_EXT             0x843A
  1670. #define GL_CURRENT_TANGENT_EXT            0x843B
  1671. #define GL_CURRENT_BINORMAL_EXT           0x843C
  1672. #define GL_TANGENT_ARRAY_TYPE_EXT         0x843E
  1673. #define GL_TANGENT_ARRAY_STRIDE_EXT       0x843F
  1674. #define GL_BINORMAL_ARRAY_TYPE_EXT        0x8440
  1675. #define GL_BINORMAL_ARRAY_STRIDE_EXT      0x8441
  1676. #define GL_TANGENT_ARRAY_POINTER_EXT      0x8442
  1677. #define GL_BINORMAL_ARRAY_POINTER_EXT     0x8443
  1678. #define GL_MAP1_TANGENT_EXT               0x8444
  1679. #define GL_MAP2_TANGENT_EXT               0x8445
  1680. #define GL_MAP1_BINORMAL_EXT              0x8446
  1681. #define GL_MAP2_BINORMAL_EXT              0x8447
  1682. #endif
  1683. #ifndef GL_EXT_texture_env_combine
  1684. #define GL_COMBINE_EXT                    0x8570
  1685. #define GL_COMBINE_RGB_EXT                0x8571
  1686. #define GL_COMBINE_ALPHA_EXT              0x8572
  1687. #define GL_RGB_SCALE_EXT                  0x8573
  1688. #define GL_ADD_SIGNED_EXT                 0x8574
  1689. #define GL_INTERPOLATE_EXT                0x8575
  1690. #define GL_CONSTANT_EXT                   0x8576
  1691. #define GL_PRIMARY_COLOR_EXT              0x8577
  1692. #define GL_PREVIOUS_EXT                   0x8578
  1693. #define GL_SOURCE0_RGB_EXT                0x8580
  1694. #define GL_SOURCE1_RGB_EXT                0x8581
  1695. #define GL_SOURCE2_RGB_EXT                0x8582
  1696. #define GL_SOURCE0_ALPHA_EXT              0x8588
  1697. #define GL_SOURCE1_ALPHA_EXT              0x8589
  1698. #define GL_SOURCE2_ALPHA_EXT              0x858A
  1699. #define GL_OPERAND0_RGB_EXT               0x8590
  1700. #define GL_OPERAND1_RGB_EXT               0x8591
  1701. #define GL_OPERAND2_RGB_EXT               0x8592
  1702. #define GL_OPERAND0_ALPHA_EXT             0x8598
  1703. #define GL_OPERAND1_ALPHA_EXT             0x8599
  1704. #define GL_OPERAND2_ALPHA_EXT             0x859A
  1705. #endif
  1706. #ifndef GL_APPLE_specular_vector
  1707. #define GL_LIGHT_MODEL_SPECULAR_VECTOR_APPLE 0x85B0
  1708. #endif
  1709. #ifndef GL_APPLE_transform_hint
  1710. #define GL_TRANSFORM_HINT_APPLE           0x85B1
  1711. #endif
  1712. #ifndef GL_SGIX_fog_scale
  1713. #define GL_FOG_SCALE_SGIX                 0x81FC
  1714. #define GL_FOG_SCALE_VALUE_SGIX           0x81FD
  1715. #endif
  1716. #ifndef GL_SUNX_constant_data
  1717. #define GL_UNPACK_CONSTANT_DATA_SUNX      0x81D5
  1718. #define GL_TEXTURE_CONSTANT_DATA_SUNX     0x81D6
  1719. #endif
  1720. #ifndef GL_SUN_global_alpha
  1721. #define GL_GLOBAL_ALPHA_SUN               0x81D9
  1722. #define GL_GLOBAL_ALPHA_FACTOR_SUN        0x81DA
  1723. #endif
  1724. #ifndef GL_SUN_triangle_list
  1725. #define GL_RESTART_SUN                    0x0001
  1726. #define GL_REPLACE_MIDDLE_SUN             0x0002
  1727. #define GL_REPLACE_OLDEST_SUN             0x0003
  1728. #define GL_TRIANGLE_LIST_SUN              0x81D7
  1729. #define GL_REPLACEMENT_CODE_SUN           0x81D8
  1730. #define GL_REPLACEMENT_CODE_ARRAY_SUN     0x85C0
  1731. #define GL_REPLACEMENT_CODE_ARRAY_TYPE_SUN 0x85C1
  1732. #define GL_REPLACEMENT_CODE_ARRAY_STRIDE_SUN 0x85C2
  1733. #define GL_REPLACEMENT_CODE_ARRAY_POINTER_SUN 0x85C3
  1734. #define GL_R1UI_V3F_SUN                   0x85C4
  1735. #define GL_R1UI_C4UB_V3F_SUN              0x85C5
  1736. #define GL_R1UI_C3F_V3F_SUN               0x85C6
  1737. #define GL_R1UI_N3F_V3F_SUN               0x85C7
  1738. #define GL_R1UI_C4F_N3F_V3F_SUN           0x85C8
  1739. #define GL_R1UI_T2F_V3F_SUN               0x85C9
  1740. #define GL_R1UI_T2F_N3F_V3F_SUN           0x85CA
  1741. #define GL_R1UI_T2F_C4F_N3F_V3F_SUN       0x85CB
  1742. #endif
  1743. #ifndef GL_SUN_vertex
  1744. #endif
  1745. #ifndef GL_EXT_blend_func_separate
  1746. #define GL_BLEND_DST_RGB_EXT              0x80C8
  1747. #define GL_BLEND_SRC_RGB_EXT              0x80C9
  1748. #define GL_BLEND_DST_ALPHA_EXT            0x80CA
  1749. #define GL_BLEND_SRC_ALPHA_EXT            0x80CB
  1750. #endif
  1751. #ifndef GL_INGR_color_clamp
  1752. #define GL_RED_MIN_CLAMP_INGR             0x8560
  1753. #define GL_GREEN_MIN_CLAMP_INGR           0x8561
  1754. #define GL_BLUE_MIN_CLAMP_INGR            0x8562
  1755. #define GL_ALPHA_MIN_CLAMP_INGR           0x8563
  1756. #define GL_RED_MAX_CLAMP_INGR             0x8564
  1757. #define GL_GREEN_MAX_CLAMP_INGR           0x8565
  1758. #define GL_BLUE_MAX_CLAMP_INGR            0x8566
  1759. #define GL_ALPHA_MAX_CLAMP_INGR           0x8567
  1760. #endif
  1761. #ifndef GL_INGR_interlace_read
  1762. #define GL_INTERLACE_READ_INGR            0x8568
  1763. #endif
  1764. #ifndef GL_EXT_stencil_wrap
  1765. #define GL_INCR_WRAP_EXT                  0x8507
  1766. #define GL_DECR_WRAP_EXT                  0x8508
  1767. #endif
  1768. #ifndef GL_EXT_422_pixels
  1769. #define GL_422_EXT                        0x80CC
  1770. #define GL_422_REV_EXT                    0x80CD
  1771. #define GL_422_AVERAGE_EXT                0x80CE
  1772. #define GL_422_REV_AVERAGE_EXT            0x80CF
  1773. #endif
  1774. #ifndef GL_NV_texgen_reflection
  1775. #define GL_NORMAL_MAP_NV                  0x8511
  1776. #define GL_REFLECTION_MAP_NV              0x8512
  1777. #endif
  1778. #ifndef GL_EXT_texture_cube_map
  1779. #define GL_NORMAL_MAP_EXT                 0x8511
  1780. #define GL_REFLECTION_MAP_EXT             0x8512
  1781. #define GL_TEXTURE_CUBE_MAP_EXT           0x8513
  1782. #define GL_TEXTURE_BINDING_CUBE_MAP_EXT   0x8514
  1783. #define GL_TEXTURE_CUBE_MAP_POSITIVE_X_EXT 0x8515
  1784. #define GL_TEXTURE_CUBE_MAP_NEGATIVE_X_EXT 0x8516
  1785. #define GL_TEXTURE_CUBE_MAP_POSITIVE_Y_EXT 0x8517
  1786. #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_EXT 0x8518
  1787. #define GL_TEXTURE_CUBE_MAP_POSITIVE_Z_EXT 0x8519
  1788. #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_EXT 0x851A
  1789. #define GL_PROXY_TEXTURE_CUBE_MAP_EXT     0x851B
  1790. #define GL_MAX_CUBE_MAP_TEXTURE_SIZE_EXT  0x851C
  1791. #endif
  1792. #ifndef GL_SUN_convolution_border_modes
  1793. #define GL_WRAP_BORDER_SUN                0x81D4
  1794. #endif
  1795. #ifndef GL_EXT_texture_env_add
  1796. #endif
  1797. #ifndef GL_EXT_texture_lod_bias
  1798. #define GL_MAX_TEXTURE_LOD_BIAS_EXT       0x84FD
  1799. #define GL_TEXTURE_FILTER_CONTROL_EXT     0x8500
  1800. #define GL_TEXTURE_LOD_BIAS_EXT           0x8501
  1801. #endif
  1802. #ifndef GL_EXT_texture_filter_anisotropic
  1803. #define GL_TEXTURE_MAX_ANISOTROPY_EXT     0x84FE
  1804. #define GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT 0x84FF
  1805. #endif
  1806. #ifndef GL_EXT_vertex_weighting
  1807. #define GL_MODELVIEW0_STACK_DEPTH_EXT     GL_MODELVIEW_STACK_DEPTH
  1808. #define GL_MODELVIEW1_STACK_DEPTH_EXT     0x8502
  1809. #define GL_MODELVIEW0_MATRIX_EXT          GL_MODELVIEW_MATRIX
  1810. #define GL_MODELVIEW1_MATRIX_EXT          0x8506
  1811. #define GL_VERTEX_WEIGHTING_EXT           0x8509
  1812. #define GL_MODELVIEW0_EXT                 GL_MODELVIEW
  1813. #define GL_MODELVIEW1_EXT                 0x850A
  1814. #define GL_CURRENT_VERTEX_WEIGHT_EXT      0x850B
  1815. #define GL_VERTEX_WEIGHT_ARRAY_EXT        0x850C
  1816. #define GL_VERTEX_WEIGHT_ARRAY_SIZE_EXT   0x850D
  1817. #define GL_VERTEX_WEIGHT_ARRAY_TYPE_EXT   0x850E
  1818. #define GL_VERTEX_WEIGHT_ARRAY_STRIDE_EXT 0x850F
  1819. #define GL_VERTEX_WEIGHT_ARRAY_POINTER_EXT 0x8510
  1820. #endif
  1821. #ifndef GL_NV_light_max_exponent
  1822. #define GL_MAX_SHININESS_NV               0x8504
  1823. #define GL_MAX_SPOT_EXPONENT_NV           0x8505
  1824. #endif
  1825. #ifndef GL_NV_vertex_array_range
  1826. #define GL_VERTEX_ARRAY_RANGE_NV          0x851D
  1827. #define GL_VERTEX_ARRAY_RANGE_LENGTH_NV   0x851E
  1828. #define GL_VERTEX_ARRAY_RANGE_VALID_NV    0x851F
  1829. #define GL_MAX_VERTEX_ARRAY_RANGE_ELEMENT_NV 0x8520
  1830. #define GL_VERTEX_ARRAY_RANGE_POINTER_NV  0x8521
  1831. #endif
  1832. #ifndef GL_NV_register_combiners
  1833. #define GL_REGISTER_COMBINERS_NV          0x8522
  1834. #define GL_VARIABLE_A_NV                  0x8523
  1835. #define GL_VARIABLE_B_NV                  0x8524
  1836. #define GL_VARIABLE_C_NV                  0x8525
  1837. #define GL_VARIABLE_D_NV                  0x8526
  1838. #define GL_VARIABLE_E_NV                  0x8527
  1839. #define GL_VARIABLE_F_NV                  0x8528
  1840. #define GL_VARIABLE_G_NV                  0x8529
  1841. #define GL_CONSTANT_COLOR0_NV             0x852A
  1842. #define GL_CONSTANT_COLOR1_NV             0x852B
  1843. #define GL_PRIMARY_COLOR_NV               0x852C
  1844. #define GL_SECONDARY_COLOR_NV             0x852D
  1845. #define GL_SPARE0_NV                      0x852E
  1846. #define GL_SPARE1_NV                      0x852F
  1847. #define GL_DISCARD_NV                     0x8530
  1848. #define GL_E_TIMES_F_NV                   0x8531
  1849. #define GL_SPARE0_PLUS_SECONDARY_COLOR_NV 0x8532
  1850. #define GL_UNSIGNED_IDENTITY_NV           0x8536
  1851. #define GL_UNSIGNED_INVERT_NV             0x8537
  1852. #define GL_EXPAND_NORMAL_NV               0x8538
  1853. #define GL_EXPAND_NEGATE_NV               0x8539
  1854. #define GL_HALF_BIAS_NORMAL_NV            0x853A
  1855. #define GL_HALF_BIAS_NEGATE_NV            0x853B
  1856. #define GL_SIGNED_IDENTITY_NV             0x853C
  1857. #define GL_SIGNED_NEGATE_NV               0x853D
  1858. #define GL_SCALE_BY_TWO_NV                0x853E
  1859. #define GL_SCALE_BY_FOUR_NV               0x853F
  1860. #define GL_SCALE_BY_ONE_HALF_NV           0x8540
  1861. #define GL_BIAS_BY_NEGATIVE_ONE_HALF_NV   0x8541
  1862. #define GL_COMBINER_INPUT_NV              0x8542
  1863. #define GL_COMBINER_MAPPING_NV            0x8543
  1864. #define GL_COMBINER_COMPONENT_USAGE_NV    0x8544
  1865. #define GL_COMBINER_AB_DOT_PRODUCT_NV     0x8545
  1866. #define GL_COMBINER_CD_DOT_PRODUCT_NV     0x8546
  1867. #define GL_COMBINER_MUX_SUM_NV            0x8547
  1868. #define GL_COMBINER_SCALE_NV              0x8548
  1869. #define GL_COMBINER_BIAS_NV               0x8549
  1870. #define GL_COMBINER_AB_OUTPUT_NV          0x854A
  1871. #define GL_COMBINER_CD_OUTPUT_NV          0x854B
  1872. #define GL_COMBINER_SUM_OUTPUT_NV         0x854C
  1873. #define GL_MAX_GENERAL_COMBINERS_NV       0x854D
  1874. #define GL_NUM_GENERAL_COMBINERS_NV       0x854E
  1875. #define GL_COLOR_SUM_CLAMP_NV             0x854F
  1876. #define GL_COMBINER0_NV                   0x8550
  1877. #define GL_COMBINER1_NV                   0x8551
  1878. #define GL_COMBINER2_NV                   0x8552
  1879. #define GL_COMBINER3_NV                   0x8553
  1880. #define GL_COMBINER4_NV                   0x8554
  1881. #define GL_COMBINER5_NV                   0x8555
  1882. #define GL_COMBINER6_NV                   0x8556
  1883. #define GL_COMBINER7_NV                   0x8557
  1884. /* reuse GL_TEXTURE0_ARB */
  1885. /* reuse GL_TEXTURE1_ARB */
  1886. /* reuse GL_ZERO */
  1887. /* reuse GL_NONE */
  1888. /* reuse GL_FOG */
  1889. #endif
  1890. #ifndef GL_NV_fog_distance
  1891. #define GL_FOG_DISTANCE_MODE_NV           0x855A
  1892. #define GL_EYE_RADIAL_NV                  0x855B
  1893. #define GL_EYE_PLANE_ABSOLUTE_NV          0x855C
  1894. /* reuse GL_EYE_PLANE */
  1895. #endif
  1896. #ifndef GL_NV_texgen_emboss
  1897. #define GL_EMBOSS_LIGHT_NV                0x855D
  1898. #define GL_EMBOSS_CONSTANT_NV             0x855E
  1899. #define GL_EMBOSS_MAP_NV                  0x855F
  1900. #endif
  1901. #ifndef GL_NV_blend_square
  1902. #endif
  1903. #ifndef GL_NV_texture_env_combine4
  1904. #define GL_COMBINE4_NV                    0x8503
  1905. #define GL_SOURCE3_RGB_NV                 0x8583
  1906. #define GL_SOURCE3_ALPHA_NV               0x858B
  1907. #define GL_OPERAND3_RGB_NV                0x8593
  1908. #define GL_OPERAND3_ALPHA_NV              0x859B
  1909. #endif
  1910. #ifndef GL_MESA_resize_buffers
  1911. #endif
  1912. #ifndef GL_MESA_window_pos
  1913. #endif
  1914. #ifndef GL_EXT_texture_compression_s3tc
  1915. #define GL_COMPRESSED_RGB_S3TC_DXT1_EXT   0x83F0
  1916. #define GL_COMPRESSED_RGBA_S3TC_DXT1_EXT  0x83F1
  1917. #define GL_COMPRESSED_RGBA_S3TC_DXT3_EXT  0x83F2
  1918. #define GL_COMPRESSED_RGBA_S3TC_DXT5_EXT  0x83F3
  1919. #endif
  1920. #ifndef GL_IBM_cull_vertex
  1921. #define GL_CULL_VERTEX_IBM                103050
  1922. #endif
  1923. #ifndef GL_IBM_multimode_draw_arrays
  1924. #endif
  1925. #ifndef GL_IBM_vertex_array_lists
  1926. #define GL_VERTEX_ARRAY_LIST_IBM          103070
  1927. #define GL_NORMAL_ARRAY_LIST_IBM          103071
  1928. #define GL_COLOR_ARRAY_LIST_IBM           103072
  1929. #define GL_INDEX_ARRAY_LIST_IBM           103073
  1930. #define GL_TEXTURE_COORD_ARRAY_LIST_IBM   103074
  1931. #define GL_EDGE_FLAG_ARRAY_LIST_IBM       103075
  1932. #define GL_FOG_COORDINATE_ARRAY_LIST_IBM  103076
  1933. #define GL_SECONDARY_COLOR_ARRAY_LIST_IBM 103077
  1934. #define GL_VERTEX_ARRAY_LIST_STRIDE_IBM   103080
  1935. #define GL_NORMAL_ARRAY_LIST_STRIDE_IBM   103081
  1936. #define GL_COLOR_ARRAY_LIST_STRIDE_IBM    103082
  1937. #define GL_INDEX_ARRAY_LIST_STRIDE_IBM    103083
  1938. #define GL_TEXTURE_COORD_ARRAY_LIST_STRIDE_IBM 103084
  1939. #define GL_EDGE_FLAG_ARRAY_LIST_STRIDE_IBM 103085
  1940. #define GL_FOG_COORDINATE_ARRAY_LIST_STRIDE_IBM 103086
  1941. #define GL_SECONDARY_COLOR_ARRAY_LIST_STRIDE_IBM 103087
  1942. #endif
  1943. #ifndef GL_SGIX_subsample
  1944. #define GL_PACK_SUBSAMPLE_RATE_SGIX       0x85A0
  1945. #define GL_UNPACK_SUBSAMPLE_RATE_SGIX     0x85A1
  1946. #define GL_PIXEL_SUBSAMPLE_4444_SGIX      0x85A2
  1947. #define GL_PIXEL_SUBSAMPLE_2424_SGIX      0x85A3
  1948. #define GL_PIXEL_SUBSAMPLE_4242_SGIX      0x85A4
  1949. #endif
  1950. #ifndef GL_SGIX_ycrcb_subsample
  1951. #endif
  1952. #ifndef GL_SGIX_ycrcba
  1953. #define GL_YCRCB_SGIX                     0x8318
  1954. #define GL_YCRCBA_SGIX                    0x8319
  1955. #endif
  1956. #ifndef GL_SGI_depth_pass_instrument
  1957. #define GL_DEPTH_PASS_INSTRUMENT_SGIX     0x8310
  1958. #define GL_DEPTH_PASS_INSTRUMENT_COUNTERS_SGIX 0x8311
  1959. #define GL_DEPTH_PASS_INSTRUMENT_MAX_SGIX 0x8312
  1960. #endif
  1961. #ifndef GL_3DFX_texture_compression_FXT1
  1962. #define GL_COMPRESSED_RGB_FXT1_3DFX       0x86B0
  1963. #define GL_COMPRESSED_RGBA_FXT1_3DFX      0x86B1
  1964. #endif
  1965. #ifndef GL_3DFX_multisample
  1966. #define GL_MULTISAMPLE_3DFX               0x86B2
  1967. #define GL_SAMPLE_BUFFERS_3DFX            0x86B3
  1968. #define GL_SAMPLES_3DFX                   0x86B4
  1969. #define GL_MULTISAMPLE_BIT_3DFX           0x20000000
  1970. #endif
  1971. #ifndef GL_3DFX_tbuffer
  1972. #endif
  1973. #ifndef GL_EXT_multisample
  1974. #define GL_MULTISAMPLE_EXT                0x809D
  1975. #define GL_SAMPLE_ALPHA_TO_MASK_EXT       0x809E
  1976. #define GL_SAMPLE_ALPHA_TO_ONE_EXT        0x809F
  1977. #define GL_SAMPLE_MASK_EXT                0x80A0
  1978. #define GL_1PASS_EXT                      0x80A1
  1979. #define GL_2PASS_0_EXT                    0x80A2
  1980. #define GL_2PASS_1_EXT                    0x80A3
  1981. #define GL_4PASS_0_EXT                    0x80A4
  1982. #define GL_4PASS_1_EXT                    0x80A5
  1983. #define GL_4PASS_2_EXT                    0x80A6
  1984. #define GL_4PASS_3_EXT                    0x80A7
  1985. #define GL_SAMPLE_BUFFERS_EXT             0x80A8
  1986. #define GL_SAMPLES_EXT                    0x80A9
  1987. #define GL_SAMPLE_MASK_VALUE_EXT          0x80AA
  1988. #define GL_SAMPLE_MASK_INVERT_EXT         0x80AB
  1989. #define GL_SAMPLE_PATTERN_EXT             0x80AC