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

1526 lines
68 KiB

  1. /*++ BUILD Version: 0004 // Increment this if a change has global effects
  2. Copyright (c) 1985-96, Microsoft Corporation
  3. Module Name:
  4. gl.h
  5. Abstract:
  6. Procedure declarations, constant definitions and macros for the OpenGL
  7. component.
  8. --*/
  9. #ifndef __gl_h_
  10. #ifndef __GL_H__
  11. #define __gl_h_
  12. #define __GL_H__
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. /*
  17. ** Copyright 1996 Silicon Graphics, Inc.
  18. ** All Rights Reserved.
  19. **
  20. ** This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
  21. ** the contents of this file may not be disclosed to third parties, copied or
  22. ** duplicated in any form, in whole or in part, without the prior written
  23. ** permission of Silicon Graphics, Inc.
  24. **
  25. ** RESTRICTED RIGHTS LEGEND:
  26. ** Use, duplication or disclosure by the Government is subject to restrictions
  27. ** as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
  28. ** and Computer Software clause at DFARS 252.227-7013, and/or in similar or
  29. ** successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
  30. ** rights reserved under the Copyright Laws of the United States.
  31. */
  32. typedef unsigned int GLenum;
  33. typedef unsigned char GLboolean;
  34. typedef unsigned int GLbitfield;
  35. typedef signed char GLbyte;
  36. typedef short GLshort;
  37. typedef int GLint;
  38. typedef int GLsizei;
  39. typedef unsigned char GLubyte;
  40. typedef unsigned short GLushort;
  41. typedef unsigned int GLuint;
  42. typedef float GLfloat;
  43. typedef float GLclampf;
  44. typedef double GLdouble;
  45. typedef double GLclampd;
  46. typedef void GLvoid;
  47. /*************************************************************/
  48. /* Version */
  49. #define GL_VERSION_1_1 1
  50. /* AccumOp */
  51. #define GL_ACCUM 0x0100
  52. #define GL_LOAD 0x0101
  53. #define GL_RETURN 0x0102
  54. #define GL_MULT 0x0103
  55. #define GL_ADD 0x0104
  56. /* AlphaFunction */
  57. #define GL_NEVER 0x0200
  58. #define GL_LESS 0x0201
  59. #define GL_EQUAL 0x0202
  60. #define GL_LEQUAL 0x0203
  61. #define GL_GREATER 0x0204
  62. #define GL_NOTEQUAL 0x0205
  63. #define GL_GEQUAL 0x0206
  64. #define GL_ALWAYS 0x0207
  65. /* AttribMask */
  66. #define GL_CURRENT_BIT 0x00000001
  67. #define GL_POINT_BIT 0x00000002
  68. #define GL_LINE_BIT 0x00000004
  69. #define GL_POLYGON_BIT 0x00000008
  70. #define GL_POLYGON_STIPPLE_BIT 0x00000010
  71. #define GL_PIXEL_MODE_BIT 0x00000020
  72. #define GL_LIGHTING_BIT 0x00000040
  73. #define GL_FOG_BIT 0x00000080
  74. #define GL_DEPTH_BUFFER_BIT 0x00000100
  75. #define GL_ACCUM_BUFFER_BIT 0x00000200
  76. #define GL_STENCIL_BUFFER_BIT 0x00000400
  77. #define GL_VIEWPORT_BIT 0x00000800
  78. #define GL_TRANSFORM_BIT 0x00001000
  79. #define GL_ENABLE_BIT 0x00002000
  80. #define GL_COLOR_BUFFER_BIT 0x00004000
  81. #define GL_HINT_BIT 0x00008000
  82. #define GL_EVAL_BIT 0x00010000
  83. #define GL_LIST_BIT 0x00020000
  84. #define GL_TEXTURE_BIT 0x00040000
  85. #define GL_SCISSOR_BIT 0x00080000
  86. #define GL_ALL_ATTRIB_BITS 0x000fffff
  87. /* BeginMode */
  88. #define GL_POINTS 0x0000
  89. #define GL_LINES 0x0001
  90. #define GL_LINE_LOOP 0x0002
  91. #define GL_LINE_STRIP 0x0003
  92. #define GL_TRIANGLES 0x0004
  93. #define GL_TRIANGLE_STRIP 0x0005
  94. #define GL_TRIANGLE_FAN 0x0006
  95. #define GL_QUADS 0x0007
  96. #define GL_QUAD_STRIP 0x0008
  97. #define GL_POLYGON 0x0009
  98. /* BlendingFactorDest */
  99. #define GL_ZERO 0
  100. #define GL_ONE 1
  101. #define GL_SRC_COLOR 0x0300
  102. #define GL_ONE_MINUS_SRC_COLOR 0x0301
  103. #define GL_SRC_ALPHA 0x0302
  104. #define GL_ONE_MINUS_SRC_ALPHA 0x0303
  105. #define GL_DST_ALPHA 0x0304
  106. #define GL_ONE_MINUS_DST_ALPHA 0x0305
  107. /* BlendingFactorSrc */
  108. /* GL_ZERO */
  109. /* GL_ONE */
  110. #define GL_DST_COLOR 0x0306
  111. #define GL_ONE_MINUS_DST_COLOR 0x0307
  112. #define GL_SRC_ALPHA_SATURATE 0x0308
  113. /* GL_SRC_ALPHA */
  114. /* GL_ONE_MINUS_SRC_ALPHA */
  115. /* GL_DST_ALPHA */
  116. /* GL_ONE_MINUS_DST_ALPHA */
  117. /* Boolean */
  118. #define GL_TRUE 1
  119. #define GL_FALSE 0
  120. /* ClearBufferMask */
  121. /* GL_COLOR_BUFFER_BIT */
  122. /* GL_ACCUM_BUFFER_BIT */
  123. /* GL_STENCIL_BUFFER_BIT */
  124. /* GL_DEPTH_BUFFER_BIT */
  125. /* ClientArrayType */
  126. /* GL_VERTEX_ARRAY */
  127. /* GL_NORMAL_ARRAY */
  128. /* GL_COLOR_ARRAY */
  129. /* GL_INDEX_ARRAY */
  130. /* GL_TEXTURE_COORD_ARRAY */
  131. /* GL_EDGE_FLAG_ARRAY */
  132. /* ClipPlaneName */
  133. #define GL_CLIP_PLANE0 0x3000
  134. #define GL_CLIP_PLANE1 0x3001
  135. #define GL_CLIP_PLANE2 0x3002
  136. #define GL_CLIP_PLANE3 0x3003
  137. #define GL_CLIP_PLANE4 0x3004
  138. #define GL_CLIP_PLANE5 0x3005
  139. /* ColorMaterialFace */
  140. /* GL_FRONT */
  141. /* GL_BACK */
  142. /* GL_FRONT_AND_BACK */
  143. /* ColorMaterialParameter */
  144. /* GL_AMBIENT */
  145. /* GL_DIFFUSE */
  146. /* GL_SPECULAR */
  147. /* GL_EMISSION */
  148. /* GL_AMBIENT_AND_DIFFUSE */
  149. /* ColorPointerType */
  150. /* GL_BYTE */
  151. /* GL_UNSIGNED_BYTE */
  152. /* GL_SHORT */
  153. /* GL_UNSIGNED_SHORT */
  154. /* GL_INT */
  155. /* GL_UNSIGNED_INT */
  156. /* GL_FLOAT */
  157. /* GL_DOUBLE */
  158. /* CullFaceMode */
  159. /* GL_FRONT */
  160. /* GL_BACK */
  161. /* GL_FRONT_AND_BACK */
  162. /* DataType */
  163. #define GL_BYTE 0x1400
  164. #define GL_UNSIGNED_BYTE 0x1401
  165. #define GL_SHORT 0x1402
  166. #define GL_UNSIGNED_SHORT 0x1403
  167. #define GL_INT 0x1404
  168. #define GL_UNSIGNED_INT 0x1405
  169. #define GL_FLOAT 0x1406
  170. #define GL_2_BYTES 0x1407
  171. #define GL_3_BYTES 0x1408
  172. #define GL_4_BYTES 0x1409
  173. #define GL_DOUBLE 0x140A
  174. /* DepthFunction */
  175. /* GL_NEVER */
  176. /* GL_LESS */
  177. /* GL_EQUAL */
  178. /* GL_LEQUAL */
  179. /* GL_GREATER */
  180. /* GL_NOTEQUAL */
  181. /* GL_GEQUAL */
  182. /* GL_ALWAYS */
  183. /* DrawBufferMode */
  184. #define GL_NONE 0
  185. #define GL_FRONT_LEFT 0x0400
  186. #define GL_FRONT_RIGHT 0x0401
  187. #define GL_BACK_LEFT 0x0402
  188. #define GL_BACK_RIGHT 0x0403
  189. #define GL_FRONT 0x0404
  190. #define GL_BACK 0x0405
  191. #define GL_LEFT 0x0406
  192. #define GL_RIGHT 0x0407
  193. #define GL_FRONT_AND_BACK 0x0408
  194. #define GL_AUX0 0x0409
  195. #define GL_AUX1 0x040A
  196. #define GL_AUX2 0x040B
  197. #define GL_AUX3 0x040C
  198. /* Enable */
  199. /* GL_FOG */
  200. /* GL_LIGHTING */
  201. /* GL_TEXTURE_1D */
  202. /* GL_TEXTURE_2D */
  203. /* GL_LINE_STIPPLE */
  204. /* GL_POLYGON_STIPPLE */
  205. /* GL_CULL_FACE */
  206. /* GL_ALPHA_TEST */
  207. /* GL_BLEND */
  208. /* GL_INDEX_LOGIC_OP */
  209. /* GL_COLOR_LOGIC_OP */
  210. /* GL_DITHER */
  211. /* GL_STENCIL_TEST */
  212. /* GL_DEPTH_TEST */
  213. /* GL_CLIP_PLANE0 */
  214. /* GL_CLIP_PLANE1 */
  215. /* GL_CLIP_PLANE2 */
  216. /* GL_CLIP_PLANE3 */
  217. /* GL_CLIP_PLANE4 */
  218. /* GL_CLIP_PLANE5 */
  219. /* GL_LIGHT0 */
  220. /* GL_LIGHT1 */
  221. /* GL_LIGHT2 */
  222. /* GL_LIGHT3 */
  223. /* GL_LIGHT4 */
  224. /* GL_LIGHT5 */
  225. /* GL_LIGHT6 */
  226. /* GL_LIGHT7 */
  227. /* GL_TEXTURE_GEN_S */
  228. /* GL_TEXTURE_GEN_T */
  229. /* GL_TEXTURE_GEN_R */
  230. /* GL_TEXTURE_GEN_Q */
  231. /* GL_MAP1_VERTEX_3 */
  232. /* GL_MAP1_VERTEX_4 */
  233. /* GL_MAP1_COLOR_4 */
  234. /* GL_MAP1_INDEX */
  235. /* GL_MAP1_NORMAL */
  236. /* GL_MAP1_TEXTURE_COORD_1 */
  237. /* GL_MAP1_TEXTURE_COORD_2 */
  238. /* GL_MAP1_TEXTURE_COORD_3 */
  239. /* GL_MAP1_TEXTURE_COORD_4 */
  240. /* GL_MAP2_VERTEX_3 */
  241. /* GL_MAP2_VERTEX_4 */
  242. /* GL_MAP2_COLOR_4 */
  243. /* GL_MAP2_INDEX */
  244. /* GL_MAP2_NORMAL */
  245. /* GL_MAP2_TEXTURE_COORD_1 */
  246. /* GL_MAP2_TEXTURE_COORD_2 */
  247. /* GL_MAP2_TEXTURE_COORD_3 */
  248. /* GL_MAP2_TEXTURE_COORD_4 */
  249. /* GL_POINT_SMOOTH */
  250. /* GL_LINE_SMOOTH */
  251. /* GL_POLYGON_SMOOTH */
  252. /* GL_SCISSOR_TEST */
  253. /* GL_COLOR_MATERIAL */
  254. /* GL_NORMALIZE */
  255. /* GL_AUTO_NORMAL */
  256. /* GL_VERTEX_ARRAY */
  257. /* GL_NORMAL_ARRAY */
  258. /* GL_COLOR_ARRAY */
  259. /* GL_INDEX_ARRAY */
  260. /* GL_TEXTURE_COORD_ARRAY */
  261. /* GL_EDGE_FLAG_ARRAY */
  262. /* GL_POLYGON_OFFSET_POINT */
  263. /* GL_POLYGON_OFFSET_LINE */
  264. /* GL_POLYGON_OFFSET_FILL */
  265. /* ErrorCode */
  266. #define GL_NO_ERROR 0
  267. #define GL_INVALID_ENUM 0x0500
  268. #define GL_INVALID_VALUE 0x0501
  269. #define GL_INVALID_OPERATION 0x0502
  270. #define GL_STACK_OVERFLOW 0x0503
  271. #define GL_STACK_UNDERFLOW 0x0504
  272. #define GL_OUT_OF_MEMORY 0x0505
  273. /* FeedBackMode */
  274. #define GL_2D 0x0600
  275. #define GL_3D 0x0601
  276. #define GL_3D_COLOR 0x0602
  277. #define GL_3D_COLOR_TEXTURE 0x0603
  278. #define GL_4D_COLOR_TEXTURE 0x0604
  279. /* FeedBackToken */
  280. #define GL_PASS_THROUGH_TOKEN 0x0700
  281. #define GL_POINT_TOKEN 0x0701
  282. #define GL_LINE_TOKEN 0x0702
  283. #define GL_POLYGON_TOKEN 0x0703
  284. #define GL_BITMAP_TOKEN 0x0704
  285. #define GL_DRAW_PIXEL_TOKEN 0x0705
  286. #define GL_COPY_PIXEL_TOKEN 0x0706
  287. #define GL_LINE_RESET_TOKEN 0x0707
  288. /* FogMode */
  289. /* GL_LINEAR */
  290. #define GL_EXP 0x0800
  291. #define GL_EXP2 0x0801
  292. /* FogParameter */
  293. /* GL_FOG_COLOR */
  294. /* GL_FOG_DENSITY */
  295. /* GL_FOG_END */
  296. /* GL_FOG_INDEX */
  297. /* GL_FOG_MODE */
  298. /* GL_FOG_START */
  299. /* FrontFaceDirection */
  300. #define GL_CW 0x0900
  301. #define GL_CCW 0x0901
  302. /* GetMapTarget */
  303. #define GL_COEFF 0x0A00
  304. #define GL_ORDER 0x0A01
  305. #define GL_DOMAIN 0x0A02
  306. /* GetPixelMap */
  307. /* GL_PIXEL_MAP_I_TO_I */
  308. /* GL_PIXEL_MAP_S_TO_S */
  309. /* GL_PIXEL_MAP_I_TO_R */
  310. /* GL_PIXEL_MAP_I_TO_G */
  311. /* GL_PIXEL_MAP_I_TO_B */
  312. /* GL_PIXEL_MAP_I_TO_A */
  313. /* GL_PIXEL_MAP_R_TO_R */
  314. /* GL_PIXEL_MAP_G_TO_G */
  315. /* GL_PIXEL_MAP_B_TO_B */
  316. /* GL_PIXEL_MAP_A_TO_A */
  317. /* GetPointerTarget */
  318. /* GL_VERTEX_ARRAY_POINTER */
  319. /* GL_NORMAL_ARRAY_POINTER */
  320. /* GL_COLOR_ARRAY_POINTER */
  321. /* GL_INDEX_ARRAY_POINTER */
  322. /* GL_TEXTURE_COORD_ARRAY_POINTER */
  323. /* GL_EDGE_FLAG_ARRAY_POINTER */
  324. /* GetTarget */
  325. #define GL_CURRENT_COLOR 0x0B00
  326. #define GL_CURRENT_INDEX 0x0B01
  327. #define GL_CURRENT_NORMAL 0x0B02
  328. #define GL_CURRENT_TEXTURE_COORDS 0x0B03
  329. #define GL_CURRENT_RASTER_COLOR 0x0B04
  330. #define GL_CURRENT_RASTER_INDEX 0x0B05
  331. #define GL_CURRENT_RASTER_TEXTURE_COORDS 0x0B06
  332. #define GL_CURRENT_RASTER_POSITION 0x0B07
  333. #define GL_CURRENT_RASTER_POSITION_VALID 0x0B08
  334. #define GL_CURRENT_RASTER_DISTANCE 0x0B09
  335. #define GL_POINT_SMOOTH 0x0B10
  336. #define GL_POINT_SIZE 0x0B11
  337. #define GL_POINT_SIZE_RANGE 0x0B12
  338. #define GL_POINT_SIZE_GRANULARITY 0x0B13
  339. #define GL_LINE_SMOOTH 0x0B20
  340. #define GL_LINE_WIDTH 0x0B21
  341. #define GL_LINE_WIDTH_RANGE 0x0B22
  342. #define GL_LINE_WIDTH_GRANULARITY 0x0B23
  343. #define GL_LINE_STIPPLE 0x0B24
  344. #define GL_LINE_STIPPLE_PATTERN 0x0B25
  345. #define GL_LINE_STIPPLE_REPEAT 0x0B26
  346. #define GL_LIST_MODE 0x0B30
  347. #define GL_MAX_LIST_NESTING 0x0B31
  348. #define GL_LIST_BASE 0x0B32
  349. #define GL_LIST_INDEX 0x0B33
  350. #define GL_POLYGON_MODE 0x0B40
  351. #define GL_POLYGON_SMOOTH 0x0B41
  352. #define GL_POLYGON_STIPPLE 0x0B42
  353. #define GL_EDGE_FLAG 0x0B43
  354. #define GL_CULL_FACE 0x0B44
  355. #define GL_CULL_FACE_MODE 0x0B45
  356. #define GL_FRONT_FACE 0x0B46
  357. #define GL_LIGHTING 0x0B50
  358. #define GL_LIGHT_MODEL_LOCAL_VIEWER 0x0B51
  359. #define GL_LIGHT_MODEL_TWO_SIDE 0x0B52
  360. #define GL_LIGHT_MODEL_AMBIENT 0x0B53
  361. #define GL_SHADE_MODEL 0x0B54
  362. #define GL_COLOR_MATERIAL_FACE 0x0B55
  363. #define GL_COLOR_MATERIAL_PARAMETER 0x0B56
  364. #define GL_COLOR_MATERIAL 0x0B57
  365. #define GL_FOG 0x0B60
  366. #define GL_FOG_INDEX 0x0B61
  367. #define GL_FOG_DENSITY 0x0B62
  368. #define GL_FOG_START 0x0B63
  369. #define GL_FOG_END 0x0B64
  370. #define GL_FOG_MODE 0x0B65
  371. #define GL_FOG_COLOR 0x0B66
  372. #define GL_DEPTH_RANGE 0x0B70
  373. #define GL_DEPTH_TEST 0x0B71
  374. #define GL_DEPTH_WRITEMASK 0x0B72
  375. #define GL_DEPTH_CLEAR_VALUE 0x0B73
  376. #define GL_DEPTH_FUNC 0x0B74
  377. #define GL_ACCUM_CLEAR_VALUE 0x0B80
  378. #define GL_STENCIL_TEST 0x0B90
  379. #define GL_STENCIL_CLEAR_VALUE 0x0B91
  380. #define GL_STENCIL_FUNC 0x0B92
  381. #define GL_STENCIL_VALUE_MASK 0x0B93
  382. #define GL_STENCIL_FAIL 0x0B94
  383. #define GL_STENCIL_PASS_DEPTH_FAIL 0x0B95
  384. #define GL_STENCIL_PASS_DEPTH_PASS 0x0B96
  385. #define GL_STENCIL_REF 0x0B97
  386. #define GL_STENCIL_WRITEMASK 0x0B98
  387. #define GL_MATRIX_MODE 0x0BA0
  388. #define GL_NORMALIZE 0x0BA1
  389. #define GL_VIEWPORT 0x0BA2
  390. #define GL_MODELVIEW_STACK_DEPTH 0x0BA3
  391. #define GL_PROJECTION_STACK_DEPTH 0x0BA4
  392. #define GL_TEXTURE_STACK_DEPTH 0x0BA5
  393. #define GL_MODELVIEW_MATRIX 0x0BA6
  394. #define GL_PROJECTION_MATRIX 0x0BA7
  395. #define GL_TEXTURE_MATRIX 0x0BA8
  396. #define GL_ATTRIB_STACK_DEPTH 0x0BB0
  397. #define GL_CLIENT_ATTRIB_STACK_DEPTH 0x0BB1
  398. #define GL_ALPHA_TEST 0x0BC0
  399. #define GL_ALPHA_TEST_FUNC 0x0BC1
  400. #define GL_ALPHA_TEST_REF 0x0BC2
  401. #define GL_DITHER 0x0BD0
  402. #define GL_BLEND_DST 0x0BE0
  403. #define GL_BLEND_SRC 0x0BE1
  404. #define GL_BLEND 0x0BE2
  405. #define GL_LOGIC_OP_MODE 0x0BF0
  406. #define GL_INDEX_LOGIC_OP 0x0BF1
  407. #define GL_COLOR_LOGIC_OP 0x0BF2
  408. #define GL_AUX_BUFFERS 0x0C00
  409. #define GL_DRAW_BUFFER 0x0C01
  410. #define GL_READ_BUFFER 0x0C02
  411. #define GL_SCISSOR_BOX 0x0C10
  412. #define GL_SCISSOR_TEST 0x0C11
  413. #define GL_INDEX_CLEAR_VALUE 0x0C20
  414. #define GL_INDEX_WRITEMASK 0x0C21
  415. #define GL_COLOR_CLEAR_VALUE 0x0C22
  416. #define GL_COLOR_WRITEMASK 0x0C23
  417. #define GL_INDEX_MODE 0x0C30
  418. #define GL_RGBA_MODE 0x0C31
  419. #define GL_DOUBLEBUFFER 0x0C32
  420. #define GL_STEREO 0x0C33
  421. #define GL_RENDER_MODE 0x0C40
  422. #define GL_PERSPECTIVE_CORRECTION_HINT 0x0C50
  423. #define GL_POINT_SMOOTH_HINT 0x0C51
  424. #define GL_LINE_SMOOTH_HINT 0x0C52
  425. #define GL_POLYGON_SMOOTH_HINT 0x0C53
  426. #define GL_FOG_HINT 0x0C54
  427. #define GL_TEXTURE_GEN_S 0x0C60
  428. #define GL_TEXTURE_GEN_T 0x0C61
  429. #define GL_TEXTURE_GEN_R 0x0C62
  430. #define GL_TEXTURE_GEN_Q 0x0C63
  431. #define GL_PIXEL_MAP_I_TO_I 0x0C70
  432. #define GL_PIXEL_MAP_S_TO_S 0x0C71
  433. #define GL_PIXEL_MAP_I_TO_R 0x0C72
  434. #define GL_PIXEL_MAP_I_TO_G 0x0C73
  435. #define GL_PIXEL_MAP_I_TO_B 0x0C74
  436. #define GL_PIXEL_MAP_I_TO_A 0x0C75
  437. #define GL_PIXEL_MAP_R_TO_R 0x0C76
  438. #define GL_PIXEL_MAP_G_TO_G 0x0C77
  439. #define GL_PIXEL_MAP_B_TO_B 0x0C78
  440. #define GL_PIXEL_MAP_A_TO_A 0x0C79
  441. #define GL_PIXEL_MAP_I_TO_I_SIZE 0x0CB0
  442. #define GL_PIXEL_MAP_S_TO_S_SIZE 0x0CB1
  443. #define GL_PIXEL_MAP_I_TO_R_SIZE 0x0CB2
  444. #define GL_PIXEL_MAP_I_TO_G_SIZE 0x0CB3
  445. #define GL_PIXEL_MAP_I_TO_B_SIZE 0x0CB4
  446. #define GL_PIXEL_MAP_I_TO_A_SIZE 0x0CB5
  447. #define GL_PIXEL_MAP_R_TO_R_SIZE 0x0CB6
  448. #define GL_PIXEL_MAP_G_TO_G_SIZE 0x0CB7
  449. #define GL_PIXEL_MAP_B_TO_B_SIZE 0x0CB8
  450. #define GL_PIXEL_MAP_A_TO_A_SIZE 0x0CB9
  451. #define GL_UNPACK_SWAP_BYTES 0x0CF0
  452. #define GL_UNPACK_LSB_FIRST 0x0CF1
  453. #define GL_UNPACK_ROW_LENGTH 0x0CF2
  454. #define GL_UNPACK_SKIP_ROWS 0x0CF3
  455. #define GL_UNPACK_SKIP_PIXELS 0x0CF4
  456. #define GL_UNPACK_ALIGNMENT 0x0CF5
  457. #define GL_PACK_SWAP_BYTES 0x0D00
  458. #define GL_PACK_LSB_FIRST 0x0D01
  459. #define GL_PACK_ROW_LENGTH 0x0D02
  460. #define GL_PACK_SKIP_ROWS 0x0D03
  461. #define GL_PACK_SKIP_PIXELS 0x0D04
  462. #define GL_PACK_ALIGNMENT 0x0D05
  463. #define GL_MAP_COLOR 0x0D10
  464. #define GL_MAP_STENCIL 0x0D11
  465. #define GL_INDEX_SHIFT 0x0D12
  466. #define GL_INDEX_OFFSET 0x0D13
  467. #define GL_RED_SCALE 0x0D14
  468. #define GL_RED_BIAS 0x0D15
  469. #define GL_ZOOM_X 0x0D16
  470. #define GL_ZOOM_Y 0x0D17
  471. #define GL_GREEN_SCALE 0x0D18
  472. #define GL_GREEN_BIAS 0x0D19
  473. #define GL_BLUE_SCALE 0x0D1A
  474. #define GL_BLUE_BIAS 0x0D1B
  475. #define GL_ALPHA_SCALE 0x0D1C
  476. #define GL_ALPHA_BIAS 0x0D1D
  477. #define GL_DEPTH_SCALE 0x0D1E
  478. #define GL_DEPTH_BIAS 0x0D1F
  479. #define GL_MAX_EVAL_ORDER 0x0D30
  480. #define GL_MAX_LIGHTS 0x0D31
  481. #define GL_MAX_CLIP_PLANES 0x0D32
  482. #define GL_MAX_TEXTURE_SIZE 0x0D33
  483. #define GL_MAX_PIXEL_MAP_TABLE 0x0D34
  484. #define GL_MAX_ATTRIB_STACK_DEPTH 0x0D35
  485. #define GL_MAX_MODELVIEW_STACK_DEPTH 0x0D36
  486. #define GL_MAX_NAME_STACK_DEPTH 0x0D37
  487. #define GL_MAX_PROJECTION_STACK_DEPTH 0x0D38
  488. #define GL_MAX_TEXTURE_STACK_DEPTH 0x0D39
  489. #define GL_MAX_VIEWPORT_DIMS 0x0D3A
  490. #define GL_MAX_CLIENT_ATTRIB_STACK_DEPTH 0x0D3B
  491. #define GL_SUBPIXEL_BITS 0x0D50
  492. #define GL_INDEX_BITS 0x0D51
  493. #define GL_RED_BITS 0x0D52
  494. #define GL_GREEN_BITS 0x0D53
  495. #define GL_BLUE_BITS 0x0D54
  496. #define GL_ALPHA_BITS 0x0D55
  497. #define GL_DEPTH_BITS 0x0D56
  498. #define GL_STENCIL_BITS 0x0D57
  499. #define GL_ACCUM_RED_BITS 0x0D58
  500. #define GL_ACCUM_GREEN_BITS 0x0D59
  501. #define GL_ACCUM_BLUE_BITS 0x0D5A
  502. #define GL_ACCUM_ALPHA_BITS 0x0D5B
  503. #define GL_NAME_STACK_DEPTH 0x0D70
  504. #define GL_AUTO_NORMAL 0x0D80
  505. #define GL_MAP1_COLOR_4 0x0D90
  506. #define GL_MAP1_INDEX 0x0D91
  507. #define GL_MAP1_NORMAL 0x0D92
  508. #define GL_MAP1_TEXTURE_COORD_1 0x0D93
  509. #define GL_MAP1_TEXTURE_COORD_2 0x0D94
  510. #define GL_MAP1_TEXTURE_COORD_3 0x0D95
  511. #define GL_MAP1_TEXTURE_COORD_4 0x0D96
  512. #define GL_MAP1_VERTEX_3 0x0D97
  513. #define GL_MAP1_VERTEX_4 0x0D98
  514. #define GL_MAP2_COLOR_4 0x0DB0
  515. #define GL_MAP2_INDEX 0x0DB1
  516. #define GL_MAP2_NORMAL 0x0DB2
  517. #define GL_MAP2_TEXTURE_COORD_1 0x0DB3
  518. #define GL_MAP2_TEXTURE_COORD_2 0x0DB4
  519. #define GL_MAP2_TEXTURE_COORD_3 0x0DB5
  520. #define GL_MAP2_TEXTURE_COORD_4 0x0DB6
  521. #define GL_MAP2_VERTEX_3 0x0DB7
  522. #define GL_MAP2_VERTEX_4 0x0DB8
  523. #define GL_MAP1_GRID_DOMAIN 0x0DD0
  524. #define GL_MAP1_GRID_SEGMENTS 0x0DD1
  525. #define GL_MAP2_GRID_DOMAIN 0x0DD2
  526. #define GL_MAP2_GRID_SEGMENTS 0x0DD3
  527. #define GL_TEXTURE_1D 0x0DE0
  528. #define GL_TEXTURE_2D 0x0DE1
  529. #define GL_FEEDBACK_BUFFER_POINTER 0x0DF0
  530. #define GL_FEEDBACK_BUFFER_SIZE 0x0DF1
  531. #define GL_FEEDBACK_BUFFER_TYPE 0x0DF2
  532. #define GL_SELECTION_BUFFER_POINTER 0x0DF3
  533. #define GL_SELECTION_BUFFER_SIZE 0x0DF4
  534. /* GL_TEXTURE_BINDING_1D */
  535. /* GL_TEXTURE_BINDING_2D */
  536. /* GL_VERTEX_ARRAY */
  537. /* GL_NORMAL_ARRAY */
  538. /* GL_COLOR_ARRAY */
  539. /* GL_INDEX_ARRAY */
  540. /* GL_TEXTURE_COORD_ARRAY */
  541. /* GL_EDGE_FLAG_ARRAY */
  542. /* GL_VERTEX_ARRAY_SIZE */
  543. /* GL_VERTEX_ARRAY_TYPE */
  544. /* GL_VERTEX_ARRAY_STRIDE */
  545. /* GL_NORMAL_ARRAY_TYPE */
  546. /* GL_NORMAL_ARRAY_STRIDE */
  547. /* GL_COLOR_ARRAY_SIZE */
  548. /* GL_COLOR_ARRAY_TYPE */
  549. /* GL_COLOR_ARRAY_STRIDE */
  550. /* GL_INDEX_ARRAY_TYPE */
  551. /* GL_INDEX_ARRAY_STRIDE */
  552. /* GL_TEXTURE_COORD_ARRAY_SIZE */
  553. /* GL_TEXTURE_COORD_ARRAY_TYPE */
  554. /* GL_TEXTURE_COORD_ARRAY_STRIDE */
  555. /* GL_EDGE_FLAG_ARRAY_STRIDE */
  556. /* GL_POLYGON_OFFSET_FACTOR */
  557. /* GL_POLYGON_OFFSET_UNITS */
  558. /* GetTextureParameter */
  559. /* GL_TEXTURE_MAG_FILTER */
  560. /* GL_TEXTURE_MIN_FILTER */
  561. /* GL_TEXTURE_WRAP_S */
  562. /* GL_TEXTURE_WRAP_T */
  563. #define GL_TEXTURE_WIDTH 0x1000
  564. #define GL_TEXTURE_HEIGHT 0x1001
  565. #define GL_TEXTURE_INTERNAL_FORMAT 0x1003
  566. #define GL_TEXTURE_BORDER_COLOR 0x1004
  567. #define GL_TEXTURE_BORDER 0x1005
  568. /* GL_TEXTURE_RED_SIZE */
  569. /* GL_TEXTURE_GREEN_SIZE */
  570. /* GL_TEXTURE_BLUE_SIZE */
  571. /* GL_TEXTURE_ALPHA_SIZE */
  572. /* GL_TEXTURE_LUMINANCE_SIZE */
  573. /* GL_TEXTURE_INTENSITY_SIZE */
  574. /* GL_TEXTURE_PRIORITY */
  575. /* GL_TEXTURE_RESIDENT */
  576. /* HintMode */
  577. #define GL_DONT_CARE 0x1100
  578. #define GL_FASTEST 0x1101
  579. #define GL_NICEST 0x1102
  580. /* HintTarget */
  581. /* GL_PERSPECTIVE_CORRECTION_HINT */
  582. /* GL_POINT_SMOOTH_HINT */
  583. /* GL_LINE_SMOOTH_HINT */
  584. /* GL_POLYGON_SMOOTH_HINT */
  585. /* GL_FOG_HINT */
  586. /* GL_PHONG_HINT */
  587. /* IndexPointerType */
  588. /* GL_SHORT */
  589. /* GL_INT */
  590. /* GL_FLOAT */
  591. /* GL_DOUBLE */
  592. /* LightModelParameter */
  593. /* GL_LIGHT_MODEL_AMBIENT */
  594. /* GL_LIGHT_MODEL_LOCAL_VIEWER */
  595. /* GL_LIGHT_MODEL_TWO_SIDE */
  596. /* LightName */
  597. #define GL_LIGHT0 0x4000
  598. #define GL_LIGHT1 0x4001
  599. #define GL_LIGHT2 0x4002
  600. #define GL_LIGHT3 0x4003
  601. #define GL_LIGHT4 0x4004
  602. #define GL_LIGHT5 0x4005
  603. #define GL_LIGHT6 0x4006
  604. #define GL_LIGHT7 0x4007
  605. /* LightParameter */
  606. #define GL_AMBIENT 0x1200
  607. #define GL_DIFFUSE 0x1201
  608. #define GL_SPECULAR 0x1202
  609. #define GL_POSITION 0x1203
  610. #define GL_SPOT_DIRECTION 0x1204
  611. #define GL_SPOT_EXPONENT 0x1205
  612. #define GL_SPOT_CUTOFF 0x1206
  613. #define GL_CONSTANT_ATTENUATION 0x1207
  614. #define GL_LINEAR_ATTENUATION 0x1208
  615. #define GL_QUADRATIC_ATTENUATION 0x1209
  616. /* InterleavedArrays */
  617. /* GL_V2F */
  618. /* GL_V3F */
  619. /* GL_C4UB_V2F */
  620. /* GL_C4UB_V3F */
  621. /* GL_C3F_V3F */
  622. /* GL_N3F_V3F */
  623. /* GL_C4F_N3F_V3F */
  624. /* GL_T2F_V3F */
  625. /* GL_T4F_V4F */
  626. /* GL_T2F_C4UB_V3F */
  627. /* GL_T2F_C3F_V3F */
  628. /* GL_T2F_N3F_V3F */
  629. /* GL_T2F_C4F_N3F_V3F */
  630. /* GL_T4F_C4F_N3F_V4F */
  631. /* ListMode */
  632. #define GL_COMPILE 0x1300
  633. #define GL_COMPILE_AND_EXECUTE 0x1301
  634. /* ListNameType */
  635. /* GL_BYTE */
  636. /* GL_UNSIGNED_BYTE */
  637. /* GL_SHORT */
  638. /* GL_UNSIGNED_SHORT */
  639. /* GL_INT */
  640. /* GL_UNSIGNED_INT */
  641. /* GL_FLOAT */
  642. /* GL_2_BYTES */
  643. /* GL_3_BYTES */
  644. /* GL_4_BYTES */
  645. /* LogicOp */
  646. #define GL_CLEAR 0x1500
  647. #define GL_AND 0x1501
  648. #define GL_AND_REVERSE 0x1502
  649. #define GL_COPY 0x1503
  650. #define GL_AND_INVERTED 0x1504
  651. #define GL_NOOP 0x1505
  652. #define GL_XOR 0x1506
  653. #define GL_OR 0x1507
  654. #define GL_NOR 0x1508
  655. #define GL_EQUIV 0x1509
  656. #define GL_INVERT 0x150A
  657. #define GL_OR_REVERSE 0x150B
  658. #define GL_COPY_INVERTED 0x150C
  659. #define GL_OR_INVERTED 0x150D
  660. #define GL_NAND 0x150E
  661. #define GL_SET 0x150F
  662. /* MapTarget */
  663. /* GL_MAP1_COLOR_4 */
  664. /* GL_MAP1_INDEX */
  665. /* GL_MAP1_NORMAL */
  666. /* GL_MAP1_TEXTURE_COORD_1 */
  667. /* GL_MAP1_TEXTURE_COORD_2 */
  668. /* GL_MAP1_TEXTURE_COORD_3 */
  669. /* GL_MAP1_TEXTURE_COORD_4 */
  670. /* GL_MAP1_VERTEX_3 */
  671. /* GL_MAP1_VERTEX_4 */
  672. /* GL_MAP2_COLOR_4 */
  673. /* GL_MAP2_INDEX */
  674. /* GL_MAP2_NORMAL */
  675. /* GL_MAP2_TEXTURE_COORD_1 */
  676. /* GL_MAP2_TEXTURE_COORD_2 */
  677. /* GL_MAP2_TEXTURE_COORD_3 */
  678. /* GL_MAP2_TEXTURE_COORD_4 */
  679. /* GL_MAP2_VERTEX_3 */
  680. /* GL_MAP2_VERTEX_4 */
  681. /* MaterialFace */
  682. /* GL_FRONT */
  683. /* GL_BACK */
  684. /* GL_FRONT_AND_BACK */
  685. /* MaterialParameter */
  686. #define GL_EMISSION 0x1600
  687. #define GL_SHININESS 0x1601
  688. #define GL_AMBIENT_AND_DIFFUSE 0x1602
  689. #define GL_COLOR_INDEXES 0x1603
  690. /* GL_AMBIENT */
  691. /* GL_DIFFUSE */
  692. /* GL_SPECULAR */
  693. /* MatrixMode */
  694. #define GL_MODELVIEW 0x1700
  695. #define GL_PROJECTION 0x1701
  696. #define GL_TEXTURE 0x1702
  697. /* MeshMode1 */
  698. /* GL_POINT */
  699. /* GL_LINE */
  700. /* MeshMode2 */
  701. /* GL_POINT */
  702. /* GL_LINE */
  703. /* GL_FILL */
  704. /* NormalPointerType */
  705. /* GL_BYTE */
  706. /* GL_SHORT */
  707. /* GL_INT */
  708. /* GL_FLOAT */
  709. /* GL_DOUBLE */
  710. /* PixelCopyType */
  711. #define GL_COLOR 0x1800
  712. #define GL_DEPTH 0x1801
  713. #define GL_STENCIL 0x1802
  714. /* PixelFormat */
  715. #define GL_COLOR_INDEX 0x1900
  716. #define GL_STENCIL_INDEX 0x1901
  717. #define GL_DEPTH_COMPONENT 0x1902
  718. #define GL_RED 0x1903
  719. #define GL_GREEN 0x1904
  720. #define GL_BLUE 0x1905
  721. #define GL_ALPHA 0x1906
  722. #define GL_RGB 0x1907
  723. #define GL_RGBA 0x1908
  724. #define GL_LUMINANCE 0x1909
  725. #define GL_LUMINANCE_ALPHA 0x190A
  726. /* PixelMap */
  727. /* GL_PIXEL_MAP_I_TO_I */
  728. /* GL_PIXEL_MAP_S_TO_S */
  729. /* GL_PIXEL_MAP_I_TO_R */
  730. /* GL_PIXEL_MAP_I_TO_G */
  731. /* GL_PIXEL_MAP_I_TO_B */
  732. /* GL_PIXEL_MAP_I_TO_A */
  733. /* GL_PIXEL_MAP_R_TO_R */
  734. /* GL_PIXEL_MAP_G_TO_G */
  735. /* GL_PIXEL_MAP_B_TO_B */
  736. /* GL_PIXEL_MAP_A_TO_A */
  737. /* PixelStore */
  738. /* GL_UNPACK_SWAP_BYTES */
  739. /* GL_UNPACK_LSB_FIRST */
  740. /* GL_UNPACK_ROW_LENGTH */
  741. /* GL_UNPACK_SKIP_ROWS */
  742. /* GL_UNPACK_SKIP_PIXELS */
  743. /* GL_UNPACK_ALIGNMENT */
  744. /* GL_PACK_SWAP_BYTES */
  745. /* GL_PACK_LSB_FIRST */
  746. /* GL_PACK_ROW_LENGTH */
  747. /* GL_PACK_SKIP_ROWS */
  748. /* GL_PACK_SKIP_PIXELS */
  749. /* GL_PACK_ALIGNMENT */
  750. /* PixelTransfer */
  751. /* GL_MAP_COLOR */
  752. /* GL_MAP_STENCIL */
  753. /* GL_INDEX_SHIFT */
  754. /* GL_INDEX_OFFSET */
  755. /* GL_RED_SCALE */
  756. /* GL_RED_BIAS */
  757. /* GL_GREEN_SCALE */
  758. /* GL_GREEN_BIAS */
  759. /* GL_BLUE_SCALE */
  760. /* GL_BLUE_BIAS */
  761. /* GL_ALPHA_SCALE */
  762. /* GL_ALPHA_BIAS */
  763. /* GL_DEPTH_SCALE */
  764. /* GL_DEPTH_BIAS */
  765. /* PixelType */
  766. #define GL_BITMAP 0x1A00
  767. /* GL_BYTE */
  768. /* GL_UNSIGNED_BYTE */
  769. /* GL_SHORT */
  770. /* GL_UNSIGNED_SHORT */
  771. /* GL_INT */
  772. /* GL_UNSIGNED_INT */
  773. /* GL_FLOAT */
  774. /* PolygonMode */
  775. #define GL_POINT 0x1B00
  776. #define GL_LINE 0x1B01
  777. #define GL_FILL 0x1B02
  778. /* ReadBufferMode */
  779. /* GL_FRONT_LEFT */
  780. /* GL_FRONT_RIGHT */
  781. /* GL_BACK_LEFT */
  782. /* GL_BACK_RIGHT */
  783. /* GL_FRONT */
  784. /* GL_BACK */
  785. /* GL_LEFT */
  786. /* GL_RIGHT */
  787. /* GL_AUX0 */
  788. /* GL_AUX1 */
  789. /* GL_AUX2 */
  790. /* GL_AUX3 */
  791. /* RenderingMode */
  792. #define GL_RENDER 0x1C00
  793. #define GL_FEEDBACK 0x1C01
  794. #define GL_SELECT 0x1C02
  795. /* ShadingModel */
  796. #define GL_FLAT 0x1D00
  797. #define GL_SMOOTH 0x1D01
  798. /* StencilFunction */
  799. /* GL_NEVER */
  800. /* GL_LESS */
  801. /* GL_EQUAL */
  802. /* GL_LEQUAL */
  803. /* GL_GREATER */
  804. /* GL_NOTEQUAL */
  805. /* GL_GEQUAL */
  806. /* GL_ALWAYS */
  807. /* StencilOp */
  808. /* GL_ZERO */
  809. #define GL_KEEP 0x1E00
  810. #define GL_REPLACE 0x1E01
  811. #define GL_INCR 0x1E02
  812. #define GL_DECR 0x1E03
  813. /* GL_INVERT */
  814. /* StringName */
  815. #define GL_VENDOR 0x1F00
  816. #define GL_RENDERER 0x1F01
  817. #define GL_VERSION 0x1F02
  818. #define GL_EXTENSIONS 0x1F03
  819. /* TextureCoordName */
  820. #define GL_S 0x2000
  821. #define GL_T 0x2001
  822. #define GL_R 0x2002
  823. #define GL_Q 0x2003
  824. /* TexCoordPointerType */
  825. /* GL_SHORT */
  826. /* GL_INT */
  827. /* GL_FLOAT */
  828. /* GL_DOUBLE */
  829. /* TextureEnvMode */
  830. #define GL_MODULATE 0x2100
  831. #define GL_DECAL 0x2101
  832. /* GL_BLEND */
  833. /* GL_REPLACE */
  834. /* TextureEnvParameter */
  835. #define GL_TEXTURE_ENV_MODE 0x2200
  836. #define GL_TEXTURE_ENV_COLOR 0x2201
  837. /* TextureEnvTarget */
  838. #define GL_TEXTURE_ENV 0x2300
  839. /* TextureGenMode */
  840. #define GL_EYE_LINEAR 0x2400
  841. #define GL_OBJECT_LINEAR 0x2401
  842. #define GL_SPHERE_MAP 0x2402
  843. /* TextureGenParameter */
  844. #define GL_TEXTURE_GEN_MODE 0x2500
  845. #define GL_OBJECT_PLANE 0x2501
  846. #define GL_EYE_PLANE 0x2502
  847. /* TextureMagFilter */
  848. #define GL_NEAREST 0x2600
  849. #define GL_LINEAR 0x2601
  850. /* TextureMinFilter */
  851. /* GL_NEAREST */
  852. /* GL_LINEAR */
  853. #define GL_NEAREST_MIPMAP_NEAREST 0x2700
  854. #define GL_LINEAR_MIPMAP_NEAREST 0x2701
  855. #define GL_NEAREST_MIPMAP_LINEAR 0x2702
  856. #define GL_LINEAR_MIPMAP_LINEAR 0x2703
  857. /* TextureParameterName */
  858. #define GL_TEXTURE_MAG_FILTER 0x2800
  859. #define GL_TEXTURE_MIN_FILTER 0x2801
  860. #define GL_TEXTURE_WRAP_S 0x2802
  861. #define GL_TEXTURE_WRAP_T 0x2803
  862. /* GL_TEXTURE_BORDER_COLOR */
  863. /* GL_TEXTURE_PRIORITY */
  864. /* TextureTarget */
  865. /* GL_TEXTURE_1D */
  866. /* GL_TEXTURE_2D */
  867. /* GL_PROXY_TEXTURE_1D */
  868. /* GL_PROXY_TEXTURE_2D */
  869. /* TextureWrapMode */
  870. #define GL_CLAMP 0x2900
  871. #define GL_REPEAT 0x2901
  872. /* VertexPointerType */
  873. /* GL_SHORT */
  874. /* GL_INT */
  875. /* GL_FLOAT */
  876. /* GL_DOUBLE */
  877. /* ClientAttribMask */
  878. #define GL_CLIENT_PIXEL_STORE_BIT 0x00000001
  879. #define GL_CLIENT_VERTEX_ARRAY_BIT 0x00000002
  880. #define GL_CLIENT_ALL_ATTRIB_BITS 0xffffffff
  881. /* polygon_offset */
  882. #define GL_POLYGON_OFFSET_FACTOR 0x8038
  883. #define GL_POLYGON_OFFSET_UNITS 0x2A00
  884. #define GL_POLYGON_OFFSET_POINT 0x2A01
  885. #define GL_POLYGON_OFFSET_LINE 0x2A02
  886. #define GL_POLYGON_OFFSET_FILL 0x8037
  887. /* texture */
  888. #define GL_ALPHA4 0x803B
  889. #define GL_ALPHA8 0x803C
  890. #define GL_ALPHA12 0x803D
  891. #define GL_ALPHA16 0x803E
  892. #define GL_LUMINANCE4 0x803F
  893. #define GL_LUMINANCE8 0x8040
  894. #define GL_LUMINANCE12 0x8041
  895. #define GL_LUMINANCE16 0x8042
  896. #define GL_LUMINANCE4_ALPHA4 0x8043
  897. #define GL_LUMINANCE6_ALPHA2 0x8044
  898. #define GL_LUMINANCE8_ALPHA8 0x8045
  899. #define GL_LUMINANCE12_ALPHA4 0x8046
  900. #define GL_LUMINANCE12_ALPHA12 0x8047
  901. #define GL_LUMINANCE16_ALPHA16 0x8048
  902. #define GL_INTENSITY 0x8049
  903. #define GL_INTENSITY4 0x804A
  904. #define GL_INTENSITY8 0x804B
  905. #define GL_INTENSITY12 0x804C
  906. #define GL_INTENSITY16 0x804D
  907. #define GL_R3_G3_B2 0x2A10
  908. #define GL_RGB4 0x804F
  909. #define GL_RGB5 0x8050
  910. #define GL_RGB8 0x8051
  911. #define GL_RGB10 0x8052
  912. #define GL_RGB12 0x8053
  913. #define GL_RGB16 0x8054
  914. #define GL_RGBA2 0x8055
  915. #define GL_RGBA4 0x8056
  916. #define GL_RGB5_A1 0x8057
  917. #define GL_RGBA8 0x8058
  918. #define GL_RGB10_A2 0x8059
  919. #define GL_RGBA12 0x805A
  920. #define GL_RGBA16 0x805B
  921. #define GL_TEXTURE_RED_SIZE 0x805C
  922. #define GL_TEXTURE_GREEN_SIZE 0x805D
  923. #define GL_TEXTURE_BLUE_SIZE 0x805E
  924. #define GL_TEXTURE_ALPHA_SIZE 0x805F
  925. #define GL_TEXTURE_LUMINANCE_SIZE 0x8060
  926. #define GL_TEXTURE_INTENSITY_SIZE 0x8061
  927. #define GL_PROXY_TEXTURE_1D 0x8063
  928. #define GL_PROXY_TEXTURE_2D 0x8064
  929. /* texture_object */
  930. #define GL_TEXTURE_PRIORITY 0x8066
  931. #define GL_TEXTURE_RESIDENT 0x8067
  932. #define GL_TEXTURE_BINDING_1D 0x8068
  933. #define GL_TEXTURE_BINDING_2D 0x8069
  934. /* vertex_array */
  935. #define GL_VERTEX_ARRAY 0x8074
  936. #define GL_NORMAL_ARRAY 0x8075
  937. #define GL_COLOR_ARRAY 0x8076
  938. #define GL_INDEX_ARRAY 0x8077
  939. #define GL_TEXTURE_COORD_ARRAY 0x8078
  940. #define GL_EDGE_FLAG_ARRAY 0x8079
  941. #define GL_VERTEX_ARRAY_SIZE 0x807A
  942. #define GL_VERTEX_ARRAY_TYPE 0x807B
  943. #define GL_VERTEX_ARRAY_STRIDE 0x807C
  944. #define GL_NORMAL_ARRAY_TYPE 0x807E
  945. #define GL_NORMAL_ARRAY_STRIDE 0x807F
  946. #define GL_COLOR_ARRAY_SIZE 0x8081
  947. #define GL_COLOR_ARRAY_TYPE 0x8082
  948. #define GL_COLOR_ARRAY_STRIDE 0x8083
  949. #define GL_INDEX_ARRAY_TYPE 0x8085
  950. #define GL_INDEX_ARRAY_STRIDE 0x8086
  951. #define GL_TEXTURE_COORD_ARRAY_SIZE 0x8088
  952. #define GL_TEXTURE_COORD_ARRAY_TYPE 0x8089
  953. #define GL_TEXTURE_COORD_ARRAY_STRIDE 0x808A
  954. #define GL_EDGE_FLAG_ARRAY_STRIDE 0x808C
  955. #define GL_VERTEX_ARRAY_POINTER 0x808E
  956. #define GL_NORMAL_ARRAY_POINTER 0x808F
  957. #define GL_COLOR_ARRAY_POINTER 0x8090
  958. #define GL_INDEX_ARRAY_POINTER 0x8091
  959. #define GL_TEXTURE_COORD_ARRAY_POINTER 0x8092
  960. #define GL_EDGE_FLAG_ARRAY_POINTER 0x8093
  961. #define GL_V2F 0x2A20
  962. #define GL_V3F 0x2A21
  963. #define GL_C4UB_V2F 0x2A22
  964. #define GL_C4UB_V3F 0x2A23
  965. #define GL_C3F_V3F 0x2A24
  966. #define GL_N3F_V3F 0x2A25
  967. #define GL_C4F_N3F_V3F 0x2A26
  968. #define GL_T2F_V3F 0x2A27
  969. #define GL_T4F_V4F 0x2A28
  970. #define GL_T2F_C4UB_V3F 0x2A29
  971. #define GL_T2F_C3F_V3F 0x2A2A
  972. #define GL_T2F_N3F_V3F 0x2A2B
  973. #define GL_T2F_C4F_N3F_V3F 0x2A2C
  974. #define GL_T4F_C4F_N3F_V4F 0x2A2D
  975. /* Extensions */
  976. #define GL_EXT_vertex_array 1
  977. #define GL_EXT_bgra 1
  978. #define GL_EXT_paletted_texture 1
  979. #define GL_WIN_swap_hint 1
  980. #define GL_WIN_draw_range_elements 1
  981. // #define GL_WIN_phong_shading 1
  982. // #define GL_WIN_specular_fog 1
  983. /* EXT_vertex_array */
  984. #define GL_VERTEX_ARRAY_EXT 0x8074
  985. #define GL_NORMAL_ARRAY_EXT 0x8075
  986. #define GL_COLOR_ARRAY_EXT 0x8076
  987. #define GL_INDEX_ARRAY_EXT 0x8077
  988. #define GL_TEXTURE_COORD_ARRAY_EXT 0x8078
  989. #define GL_EDGE_FLAG_ARRAY_EXT 0x8079
  990. #define GL_VERTEX_ARRAY_SIZE_EXT 0x807A
  991. #define GL_VERTEX_ARRAY_TYPE_EXT 0x807B
  992. #define GL_VERTEX_ARRAY_STRIDE_EXT 0x807C
  993. #define GL_VERTEX_ARRAY_COUNT_EXT 0x807D
  994. #define GL_NORMAL_ARRAY_TYPE_EXT 0x807E
  995. #define GL_NORMAL_ARRAY_STRIDE_EXT 0x807F
  996. #define GL_NORMAL_ARRAY_COUNT_EXT 0x8080
  997. #define GL_COLOR_ARRAY_SIZE_EXT 0x8081
  998. #define GL_COLOR_ARRAY_TYPE_EXT 0x8082
  999. #define GL_COLOR_ARRAY_STRIDE_EXT 0x8083
  1000. #define GL_COLOR_ARRAY_COUNT_EXT 0x8084
  1001. #define GL_INDEX_ARRAY_TYPE_EXT 0x8085
  1002. #define GL_INDEX_ARRAY_STRIDE_EXT 0x8086
  1003. #define GL_INDEX_ARRAY_COUNT_EXT 0x8087
  1004. #define GL_TEXTURE_COORD_ARRAY_SIZE_EXT 0x8088
  1005. #define GL_TEXTURE_COORD_ARRAY_TYPE_EXT 0x8089
  1006. #define GL_TEXTURE_COORD_ARRAY_STRIDE_EXT 0x808A
  1007. #define GL_TEXTURE_COORD_ARRAY_COUNT_EXT 0x808B
  1008. #define GL_EDGE_FLAG_ARRAY_STRIDE_EXT 0x808C
  1009. #define GL_EDGE_FLAG_ARRAY_COUNT_EXT 0x808D
  1010. #define GL_VERTEX_ARRAY_POINTER_EXT 0x808E
  1011. #define GL_NORMAL_ARRAY_POINTER_EXT 0x808F
  1012. #define GL_COLOR_ARRAY_POINTER_EXT 0x8090
  1013. #define GL_INDEX_ARRAY_POINTER_EXT 0x8091
  1014. #define GL_TEXTURE_COORD_ARRAY_POINTER_EXT 0x8092
  1015. #define GL_EDGE_FLAG_ARRAY_POINTER_EXT 0x8093
  1016. #define GL_DOUBLE_EXT GL_DOUBLE
  1017. /* EXT_bgra */
  1018. #define GL_BGR_EXT 0x80E0
  1019. #define GL_BGRA_EXT 0x80E1
  1020. /* EXT_paletted_texture */
  1021. /* These must match the GL_COLOR_TABLE_*_SGI enumerants */
  1022. #define GL_COLOR_TABLE_FORMAT_EXT 0x80D8
  1023. #define GL_COLOR_TABLE_WIDTH_EXT 0x80D9
  1024. #define GL_COLOR_TABLE_RED_SIZE_EXT 0x80DA
  1025. #define GL_COLOR_TABLE_GREEN_SIZE_EXT 0x80DB
  1026. #define GL_COLOR_TABLE_BLUE_SIZE_EXT 0x80DC
  1027. #define GL_COLOR_TABLE_ALPHA_SIZE_EXT 0x80DD
  1028. #define GL_COLOR_TABLE_LUMINANCE_SIZE_EXT 0x80DE
  1029. #define GL_COLOR_TABLE_INTENSITY_SIZE_EXT 0x80DF
  1030. #define GL_COLOR_INDEX1_EXT 0x80E2
  1031. #define GL_COLOR_INDEX2_EXT 0x80E3
  1032. #define GL_COLOR_INDEX4_EXT 0x80E4
  1033. #define GL_COLOR_INDEX8_EXT 0x80E5
  1034. #define GL_COLOR_INDEX12_EXT 0x80E6
  1035. #define GL_COLOR_INDEX16_EXT 0x80E7
  1036. /* WIN_draw_range_elements */
  1037. #define GL_MAX_ELEMENTS_VERTICES_WIN 0x80E8
  1038. #define GL_MAX_ELEMENTS_INDICES_WIN 0x80E9
  1039. /* WIN_phong_shading */
  1040. #define GL_PHONG_WIN 0x80EA
  1041. #define GL_PHONG_HINT_WIN 0x80EB
  1042. /* WIN_specular_fog */
  1043. #define GL_FOG_SPECULAR_TEXTURE_WIN 0x80EC
  1044. /* For compatibility with OpenGL v1.0 */
  1045. #define GL_LOGIC_OP GL_INDEX_LOGIC_OP
  1046. #define GL_TEXTURE_COMPONENTS GL_TEXTURE_INTERNAL_FORMAT
  1047. /*************************************************************/
  1048. WINGDIAPI void APIENTRY glAccum (GLenum op, GLfloat value);
  1049. WINGDIAPI void APIENTRY glAlphaFunc (GLenum func, GLclampf ref);
  1050. WINGDIAPI GLboolean APIENTRY glAreTexturesResident (GLsizei n, const GLuint *textures, GLboolean *residences);
  1051. WINGDIAPI void APIENTRY glArrayElement (GLint i);
  1052. WINGDIAPI void APIENTRY glBegin (GLenum mode);
  1053. WINGDIAPI void APIENTRY glBindTexture (GLenum target, GLuint texture);
  1054. WINGDIAPI void APIENTRY glBitmap (GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte *bitmap);
  1055. WINGDIAPI void APIENTRY glBlendFunc (GLenum sfactor, GLenum dfactor);
  1056. WINGDIAPI void APIENTRY glCallList (GLuint list);
  1057. WINGDIAPI void APIENTRY glCallLists (GLsizei n, GLenum type, const GLvoid *lists);
  1058. WINGDIAPI void APIENTRY glClear (GLbitfield mask);
  1059. WINGDIAPI void APIENTRY glClearAccum (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
  1060. WINGDIAPI void APIENTRY glClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
  1061. WINGDIAPI void APIENTRY glClearDepth (GLclampd depth);
  1062. WINGDIAPI void APIENTRY glClearIndex (GLfloat c);
  1063. WINGDIAPI void APIENTRY glClearStencil (GLint s);
  1064. WINGDIAPI void APIENTRY glClipPlane (GLenum plane, const GLdouble *equation);
  1065. WINGDIAPI void APIENTRY glColor3b (GLbyte red, GLbyte green, GLbyte blue);
  1066. WINGDIAPI void APIENTRY glColor3bv (const GLbyte *v);
  1067. WINGDIAPI void APIENTRY glColor3d (GLdouble red, GLdouble green, GLdouble blue);
  1068. WINGDIAPI void APIENTRY glColor3dv (const GLdouble *v);
  1069. WINGDIAPI void APIENTRY glColor3f (GLfloat red, GLfloat green, GLfloat blue);
  1070. WINGDIAPI void APIENTRY glColor3fv (const GLfloat *v);
  1071. WINGDIAPI void APIENTRY glColor3i (GLint red, GLint green, GLint blue);
  1072. WINGDIAPI void APIENTRY glColor3iv (const GLint *v);
  1073. WINGDIAPI void APIENTRY glColor3s (GLshort red, GLshort green, GLshort blue);
  1074. WINGDIAPI void APIENTRY glColor3sv (const GLshort *v);
  1075. WINGDIAPI void APIENTRY glColor3ub (GLubyte red, GLubyte green, GLubyte blue);
  1076. WINGDIAPI void APIENTRY glColor3ubv (const GLubyte *v);
  1077. WINGDIAPI void APIENTRY glColor3ui (GLuint red, GLuint green, GLuint blue);
  1078. WINGDIAPI void APIENTRY glColor3uiv (const GLuint *v);
  1079. WINGDIAPI void APIENTRY glColor3us (GLushort red, GLushort green, GLushort blue);
  1080. WINGDIAPI void APIENTRY glColor3usv (const GLushort *v);
  1081. WINGDIAPI void APIENTRY glColor4b (GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha);
  1082. WINGDIAPI void APIENTRY glColor4bv (const GLbyte *v);
  1083. WINGDIAPI void APIENTRY glColor4d (GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha);
  1084. WINGDIAPI void APIENTRY glColor4dv (const GLdouble *v);
  1085. WINGDIAPI void APIENTRY glColor4f (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
  1086. WINGDIAPI void APIENTRY glColor4fv (const GLfloat *v);
  1087. WINGDIAPI void APIENTRY glColor4i (GLint red, GLint green, GLint blue, GLint alpha);
  1088. WINGDIAPI void APIENTRY glColor4iv (const GLint *v);
  1089. WINGDIAPI void APIENTRY glColor4s (GLshort red, GLshort green, GLshort blue, GLshort alpha);
  1090. WINGDIAPI void APIENTRY glColor4sv (const GLshort *v);
  1091. WINGDIAPI void APIENTRY glColor4ub (GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha);
  1092. WINGDIAPI void APIENTRY glColor4ubv (const GLubyte *v);
  1093. WINGDIAPI void APIENTRY glColor4ui (GLuint red, GLuint green, GLuint blue, GLuint alpha);
  1094. WINGDIAPI void APIENTRY glColor4uiv (const GLuint *v);
  1095. WINGDIAPI void APIENTRY glColor4us (GLushort red, GLushort green, GLushort blue, GLushort alpha);
  1096. WINGDIAPI void APIENTRY glColor4usv (const GLushort *v);
  1097. WINGDIAPI void APIENTRY glColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
  1098. WINGDIAPI void APIENTRY glColorMaterial (GLenum face, GLenum mode);
  1099. WINGDIAPI void APIENTRY glColorPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
  1100. WINGDIAPI void APIENTRY glCopyPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum type);
  1101. WINGDIAPI void APIENTRY glCopyTexImage1D (GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLint border);
  1102. WINGDIAPI void APIENTRY glCopyTexImage2D (GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
  1103. WINGDIAPI void APIENTRY glCopyTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
  1104. WINGDIAPI void APIENTRY glCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
  1105. WINGDIAPI void APIENTRY glCullFace (GLenum mode);
  1106. WINGDIAPI void APIENTRY glDeleteLists (GLuint list, GLsizei range);
  1107. WINGDIAPI void APIENTRY glDeleteTextures (GLsizei n, const GLuint *textures);
  1108. WINGDIAPI void APIENTRY glDepthFunc (GLenum func);
  1109. WINGDIAPI void APIENTRY glDepthMask (GLboolean flag);
  1110. WINGDIAPI void APIENTRY glDepthRange (GLclampd zNear, GLclampd zFar);
  1111. WINGDIAPI void APIENTRY glDisable (GLenum cap);
  1112. WINGDIAPI void APIENTRY glDisableClientState (GLenum array);
  1113. WINGDIAPI void APIENTRY glDrawArrays (GLenum mode, GLint first, GLsizei count);
  1114. WINGDIAPI void APIENTRY glDrawBuffer (GLenum mode);
  1115. WINGDIAPI void APIENTRY glDrawElements (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices);
  1116. WINGDIAPI void APIENTRY glDrawPixels (GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
  1117. WINGDIAPI void APIENTRY glEdgeFlag (GLboolean flag);
  1118. WINGDIAPI void APIENTRY glEdgeFlagPointer (GLsizei stride, const GLvoid *pointer);
  1119. WINGDIAPI void APIENTRY glEdgeFlagv (const GLboolean *flag);
  1120. WINGDIAPI void APIENTRY glEnable (GLenum cap);
  1121. WINGDIAPI void APIENTRY glEnableClientState (GLenum array);
  1122. WINGDIAPI void APIENTRY glEnd (void);
  1123. WINGDIAPI void APIENTRY glEndList (void);
  1124. WINGDIAPI void APIENTRY glEvalCoord1d (GLdouble u);
  1125. WINGDIAPI void APIENTRY glEvalCoord1dv (const GLdouble *u);
  1126. WINGDIAPI void APIENTRY glEvalCoord1f (GLfloat u);
  1127. WINGDIAPI void APIENTRY glEvalCoord1fv (const GLfloat *u);
  1128. WINGDIAPI void APIENTRY glEvalCoord2d (GLdouble u, GLdouble v);
  1129. WINGDIAPI void APIENTRY glEvalCoord2dv (const GLdouble *u);
  1130. WINGDIAPI void APIENTRY glEvalCoord2f (GLfloat u, GLfloat v);
  1131. WINGDIAPI void APIENTRY glEvalCoord2fv (const GLfloat *u);
  1132. WINGDIAPI void APIENTRY glEvalMesh1 (GLenum mode, GLint i1, GLint i2);
  1133. WINGDIAPI void APIENTRY glEvalMesh2 (GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2);
  1134. WINGDIAPI void APIENTRY glEvalPoint1 (GLint i);
  1135. WINGDIAPI void APIENTRY glEvalPoint2 (GLint i, GLint j);
  1136. WINGDIAPI void APIENTRY glFeedbackBuffer (GLsizei size, GLenum type, GLfloat *buffer);
  1137. WINGDIAPI void APIENTRY glFinish (void);
  1138. WINGDIAPI void APIENTRY glFlush (void);
  1139. WINGDIAPI void APIENTRY glFogf (GLenum pname, GLfloat param);
  1140. WINGDIAPI void APIENTRY glFogfv (GLenum pname, const GLfloat *params);
  1141. WINGDIAPI void APIENTRY glFogi (GLenum pname, GLint param);
  1142. WINGDIAPI void APIENTRY glFogiv (GLenum pname, const GLint *params);
  1143. WINGDIAPI void APIENTRY glFrontFace (GLenum mode);
  1144. WINGDIAPI void APIENTRY glFrustum (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
  1145. WINGDIAPI GLuint APIENTRY glGenLists (GLsizei range);
  1146. WINGDIAPI void APIENTRY glGenTextures (GLsizei n, GLuint *textures);
  1147. WINGDIAPI void APIENTRY glGetBooleanv (GLenum pname, GLboolean *params);
  1148. WINGDIAPI void APIENTRY glGetClipPlane (GLenum plane, GLdouble *equation);
  1149. WINGDIAPI void APIENTRY glGetDoublev (GLenum pname, GLdouble *params);
  1150. WINGDIAPI GLenum APIENTRY glGetError (void);
  1151. WINGDIAPI void APIENTRY glGetFloatv (GLenum pname, GLfloat *params);
  1152. WINGDIAPI void APIENTRY glGetIntegerv (GLenum pname, GLint *params);
  1153. WINGDIAPI void APIENTRY glGetLightfv (GLenum light, GLenum pname, GLfloat *params);
  1154. WINGDIAPI void APIENTRY glGetLightiv (GLenum light, GLenum pname, GLint *params);
  1155. WINGDIAPI void APIENTRY glGetMapdv (GLenum target, GLenum query, GLdouble *v);
  1156. WINGDIAPI void APIENTRY glGetMapfv (GLenum target, GLenum query, GLfloat *v);
  1157. WINGDIAPI void APIENTRY glGetMapiv (GLenum target, GLenum query, GLint *v);
  1158. WINGDIAPI void APIENTRY glGetMaterialfv (GLenum face, GLenum pname, GLfloat *params);
  1159. WINGDIAPI void APIENTRY glGetMaterialiv (GLenum face, GLenum pname, GLint *params);
  1160. WINGDIAPI void APIENTRY glGetPixelMapfv (GLenum map, GLfloat *values);
  1161. WINGDIAPI void APIENTRY glGetPixelMapuiv (GLenum map, GLuint *values);
  1162. WINGDIAPI void APIENTRY glGetPixelMapusv (GLenum map, GLushort *values);
  1163. WINGDIAPI void APIENTRY glGetPointerv (GLenum pname, GLvoid* *params);
  1164. WINGDIAPI void APIENTRY glGetPolygonStipple (GLubyte *mask);
  1165. WINGDIAPI const GLubyte * APIENTRY glGetString (GLenum name);
  1166. WINGDIAPI void APIENTRY glGetTexEnvfv (GLenum target, GLenum pname, GLfloat *params);
  1167. WINGDIAPI void APIENTRY glGetTexEnviv (GLenum target, GLenum pname, GLint *params);
  1168. WINGDIAPI void APIENTRY glGetTexGendv (GLenum coord, GLenum pname, GLdouble *params);
  1169. WINGDIAPI void APIENTRY glGetTexGenfv (GLenum coord, GLenum pname, GLfloat *params);
  1170. WINGDIAPI void APIENTRY glGetTexGeniv (GLenum coord, GLenum pname, GLint *params);
  1171. WINGDIAPI void APIENTRY glGetTexImage (GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels);
  1172. WINGDIAPI void APIENTRY glGetTexLevelParameterfv (GLenum target, GLint level, GLenum pname, GLfloat *params);
  1173. WINGDIAPI void APIENTRY glGetTexLevelParameteriv (GLenum target, GLint level, GLenum pname, GLint *params);
  1174. WINGDIAPI void APIENTRY glGetTexParameterfv (GLenum target, GLenum pname, GLfloat *params);
  1175. WINGDIAPI void APIENTRY glGetTexParameteriv (GLenum target, GLenum pname, GLint *params);
  1176. WINGDIAPI void APIENTRY glHint (GLenum target, GLenum mode);
  1177. WINGDIAPI void APIENTRY glIndexMask (GLuint mask);
  1178. WINGDIAPI void APIENTRY glIndexPointer (GLenum type, GLsizei stride, const GLvoid *pointer);
  1179. WINGDIAPI void APIENTRY glIndexd (GLdouble c);
  1180. WINGDIAPI void APIENTRY glIndexdv (const GLdouble *c);
  1181. WINGDIAPI void APIENTRY glIndexf (GLfloat c);
  1182. WINGDIAPI void APIENTRY glIndexfv (const GLfloat *c);
  1183. WINGDIAPI void APIENTRY glIndexi (GLint c);
  1184. WINGDIAPI void APIENTRY glIndexiv (const GLint *c);
  1185. WINGDIAPI void APIENTRY glIndexs (GLshort c);
  1186. WINGDIAPI void APIENTRY glIndexsv (const GLshort *c);
  1187. WINGDIAPI void APIENTRY glIndexub (GLubyte c);
  1188. WINGDIAPI void APIENTRY glIndexubv (const GLubyte *c);
  1189. WINGDIAPI void APIENTRY glInitNames (void);
  1190. WINGDIAPI void APIENTRY glInterleavedArrays (GLenum format, GLsizei stride, const GLvoid *pointer);
  1191. WINGDIAPI GLboolean APIENTRY glIsEnabled (GLenum cap);
  1192. WINGDIAPI GLboolean APIENTRY glIsList (GLuint list);
  1193. WINGDIAPI GLboolean APIENTRY glIsTexture (GLuint texture);
  1194. WINGDIAPI void APIENTRY glLightModelf (GLenum pname, GLfloat param);
  1195. WINGDIAPI void APIENTRY glLightModelfv (GLenum pname, const GLfloat *params);
  1196. WINGDIAPI void APIENTRY glLightModeli (GLenum pname, GLint param);
  1197. WINGDIAPI void APIENTRY glLightModeliv (GLenum pname, const GLint *params);
  1198. WINGDIAPI void APIENTRY glLightf (GLenum light, GLenum pname, GLfloat param);
  1199. WINGDIAPI void APIENTRY glLightfv (GLenum light, GLenum pname, const GLfloat *params);
  1200. WINGDIAPI void APIENTRY glLighti (GLenum light, GLenum pname, GLint param);
  1201. WINGDIAPI void APIENTRY glLightiv (GLenum light, GLenum pname, const GLint *params);
  1202. WINGDIAPI void APIENTRY glLineStipple (GLint factor, GLushort pattern);
  1203. WINGDIAPI void APIENTRY glLineWidth (GLfloat width);
  1204. WINGDIAPI void APIENTRY glListBase (GLuint base);
  1205. WINGDIAPI void APIENTRY glLoadIdentity (void);
  1206. WINGDIAPI void APIENTRY glLoadMatrixd (const GLdouble *m);
  1207. WINGDIAPI void APIENTRY glLoadMatrixf (const GLfloat *m);
  1208. WINGDIAPI void APIENTRY glLoadName (GLuint name);
  1209. WINGDIAPI void APIENTRY glLogicOp (GLenum opcode);
  1210. WINGDIAPI void APIENTRY glMap1d (GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points);
  1211. WINGDIAPI void APIENTRY glMap1f (GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points);
  1212. WINGDIAPI void APIENTRY glMap2d (GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points);
  1213. WINGDIAPI void APIENTRY glMap2f (GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points);
  1214. WINGDIAPI void APIENTRY glMapGrid1d (GLint un, GLdouble u1, GLdouble u2);
  1215. WINGDIAPI void APIENTRY glMapGrid1f (GLint un, GLfloat u1, GLfloat u2);
  1216. WINGDIAPI void APIENTRY glMapGrid2d (GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2);
  1217. WINGDIAPI void APIENTRY glMapGrid2f (GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2);
  1218. WINGDIAPI void APIENTRY glMaterialf (GLenum face, GLenum pname, GLfloat param);
  1219. WINGDIAPI void APIENTRY glMaterialfv (GLenum face, GLenum pname, const GLfloat *params);
  1220. WINGDIAPI void APIENTRY glMateriali (GLenum face, GLenum pname, GLint param);
  1221. WINGDIAPI void APIENTRY glMaterialiv (GLenum face, GLenum pname, const GLint *params);
  1222. WINGDIAPI void APIENTRY glMatrixMode (GLenum mode);
  1223. WINGDIAPI void APIENTRY glMultMatrixd (const GLdouble *m);
  1224. WINGDIAPI void APIENTRY glMultMatrixf (const GLfloat *m);
  1225. WINGDIAPI void APIENTRY glNewList (GLuint list, GLenum mode);
  1226. WINGDIAPI void APIENTRY glNormal3b (GLbyte nx, GLbyte ny, GLbyte nz);
  1227. WINGDIAPI void APIENTRY glNormal3bv (const GLbyte *v);
  1228. WINGDIAPI void APIENTRY glNormal3d (GLdouble nx, GLdouble ny, GLdouble nz);
  1229. WINGDIAPI void APIENTRY glNormal3dv (const GLdouble *v);
  1230. WINGDIAPI void APIENTRY glNormal3f (GLfloat nx, GLfloat ny, GLfloat nz);
  1231. WINGDIAPI void APIENTRY glNormal3fv (const GLfloat *v);
  1232. WINGDIAPI void APIENTRY glNormal3i (GLint nx, GLint ny, GLint nz);
  1233. WINGDIAPI void APIENTRY glNormal3iv (const GLint *v);
  1234. WINGDIAPI void APIENTRY glNormal3s (GLshort nx, GLshort ny, GLshort nz);
  1235. WINGDIAPI void APIENTRY glNormal3sv (const GLshort *v);
  1236. WINGDIAPI void APIENTRY glNormalPointer (GLenum type, GLsizei stride, const GLvoid *pointer);
  1237. WINGDIAPI void APIENTRY glOrtho (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
  1238. WINGDIAPI void APIENTRY glPassThrough (GLfloat token);
  1239. WINGDIAPI void APIENTRY glPixelMapfv (GLenum map, GLsizei mapsize, const GLfloat *values);
  1240. WINGDIAPI void APIENTRY glPixelMapuiv (GLenum map, GLsizei mapsize, const GLuint *values);
  1241. WINGDIAPI void APIENTRY glPixelMapusv (GLenum map, GLsizei mapsize, const GLushort *values);
  1242. WINGDIAPI void APIENTRY glPixelStoref (GLenum pname, GLfloat param);
  1243. WINGDIAPI void APIENTRY glPixelStorei (GLenum pname, GLint param);
  1244. WINGDIAPI void APIENTRY glPixelTransferf (GLenum pname, GLfloat param);
  1245. WINGDIAPI void APIENTRY glPixelTransferi (GLenum pname, GLint param);
  1246. WINGDIAPI void APIENTRY glPixelZoom (GLfloat xfactor, GLfloat yfactor);
  1247. WINGDIAPI void APIENTRY glPointSize (GLfloat size);
  1248. WINGDIAPI void APIENTRY glPolygonMode (GLenum face, GLenum mode);
  1249. WINGDIAPI void APIENTRY glPolygonOffset (GLfloat factor, GLfloat units);
  1250. WINGDIAPI void APIENTRY glPolygonStipple (const GLubyte *mask);
  1251. WINGDIAPI void APIENTRY glPopAttrib (void);
  1252. WINGDIAPI void APIENTRY glPopClientAttrib (void);
  1253. WINGDIAPI void APIENTRY glPopMatrix (void);
  1254. WINGDIAPI void APIENTRY glPopName (void);
  1255. WINGDIAPI void APIENTRY glPrioritizeTextures (GLsizei n, const GLuint *textures, const GLclampf *priorities);
  1256. WINGDIAPI void APIENTRY glPushAttrib (GLbitfield mask);
  1257. WINGDIAPI void APIENTRY glPushClientAttrib (GLbitfield mask);
  1258. WINGDIAPI void APIENTRY glPushMatrix (void);
  1259. WINGDIAPI void APIENTRY glPushName (GLuint name);
  1260. WINGDIAPI void APIENTRY glRasterPos2d (GLdouble x, GLdouble y);
  1261. WINGDIAPI void APIENTRY glRasterPos2dv (const GLdouble *v);
  1262. WINGDIAPI void APIENTRY glRasterPos2f (GLfloat x, GLfloat y);
  1263. WINGDIAPI void APIENTRY glRasterPos2fv (const GLfloat *v);
  1264. WINGDIAPI void APIENTRY glRasterPos2i (GLint x, GLint y);
  1265. WINGDIAPI void APIENTRY glRasterPos2iv (const GLint *v);
  1266. WINGDIAPI void APIENTRY glRasterPos2s (GLshort x, GLshort y);
  1267. WINGDIAPI void APIENTRY glRasterPos2sv (const GLshort *v);
  1268. WINGDIAPI void APIENTRY glRasterPos3d (GLdouble x, GLdouble y, GLdouble z);
  1269. WINGDIAPI void APIENTRY glRasterPos3dv (const GLdouble *v);
  1270. WINGDIAPI void APIENTRY glRasterPos3f (GLfloat x, GLfloat y, GLfloat z);
  1271. WINGDIAPI void APIENTRY glRasterPos3fv (const GLfloat *v);
  1272. WINGDIAPI void APIENTRY glRasterPos3i (GLint x, GLint y, GLint z);
  1273. WINGDIAPI void APIENTRY glRasterPos3iv (const GLint *v);
  1274. WINGDIAPI void APIENTRY glRasterPos3s (GLshort x, GLshort y, GLshort z);
  1275. WINGDIAPI void APIENTRY glRasterPos3sv (const GLshort *v);
  1276. WINGDIAPI void APIENTRY glRasterPos4d (GLdouble x, GLdouble y, GLdouble z, GLdouble w);
  1277. WINGDIAPI void APIENTRY glRasterPos4dv (const GLdouble *v);
  1278. WINGDIAPI void APIENTRY glRasterPos4f (GLfloat x, GLfloat y, GLfloat z, GLfloat w);
  1279. WINGDIAPI void APIENTRY glRasterPos4fv (const GLfloat *v);
  1280. WINGDIAPI void APIENTRY glRasterPos4i (GLint x, GLint y, GLint z, GLint w);
  1281. WINGDIAPI void APIENTRY glRasterPos4iv (const GLint *v);
  1282. WINGDIAPI void APIENTRY glRasterPos4s (GLshort x, GLshort y, GLshort z, GLshort w);
  1283. WINGDIAPI void APIENTRY glRasterPos4sv (const GLshort *v);
  1284. WINGDIAPI void APIENTRY glReadBuffer (GLenum mode);
  1285. WINGDIAPI void APIENTRY glReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels);
  1286. WINGDIAPI void APIENTRY glRectd (GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2);
  1287. WINGDIAPI void APIENTRY glRectdv (const GLdouble *v1, const GLdouble *v2);
  1288. WINGDIAPI void APIENTRY glRectf (GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2);
  1289. WINGDIAPI void APIENTRY glRectfv (const GLfloat *v1, const GLfloat *v2);
  1290. WINGDIAPI void APIENTRY glRecti (GLint x1, GLint y1, GLint x2, GLint y2);
  1291. WINGDIAPI void APIENTRY glRectiv (const GLint *v1, const GLint *v2);
  1292. WINGDIAPI void APIENTRY glRects (GLshort x1, GLshort y1, GLshort x2, GLshort y2);
  1293. WINGDIAPI void APIENTRY glRectsv (const GLshort *v1, const GLshort *v2);
  1294. WINGDIAPI GLint APIENTRY glRenderMode (GLenum mode);
  1295. WINGDIAPI void APIENTRY glRotated (GLdouble angle, GLdouble x, GLdouble y, GLdouble z);
  1296. WINGDIAPI void APIENTRY glRotatef (GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
  1297. WINGDIAPI void APIENTRY glScaled (GLdouble x, GLdouble y, GLdouble z);
  1298. WINGDIAPI void APIENTRY glScalef (GLfloat x, GLfloat y, GLfloat z);
  1299. WINGDIAPI void APIENTRY glScissor (GLint x, GLint y, GLsizei width, GLsizei height);
  1300. WINGDIAPI void APIENTRY glSelectBuffer (GLsizei size, GLuint *buffer);
  1301. WINGDIAPI void APIENTRY glShadeModel (GLenum mode);
  1302. WINGDIAPI void APIENTRY glStencilFunc (GLenum func, GLint ref, GLuint mask);
  1303. WINGDIAPI void APIENTRY glStencilMask (GLuint mask);
  1304. WINGDIAPI void APIENTRY glStencilOp (GLenum fail, GLenum zfail, GLenum zpass);
  1305. WINGDIAPI void APIENTRY glTexCoord1d (GLdouble s);
  1306. WINGDIAPI void APIENTRY glTexCoord1dv (const GLdouble *v);
  1307. WINGDIAPI void APIENTRY glTexCoord1f (GLfloat s);
  1308. WINGDIAPI void APIENTRY glTexCoord1fv (const GLfloat *v);
  1309. WINGDIAPI void APIENTRY glTexCoord1i (GLint s);
  1310. WINGDIAPI void APIENTRY glTexCoord1iv (const GLint *v);
  1311. WINGDIAPI void APIENTRY glTexCoord1s (GLshort s);
  1312. WINGDIAPI void APIENTRY glTexCoord1sv (const GLshort *v);
  1313. WINGDIAPI void APIENTRY glTexCoord2d (GLdouble s, GLdouble t);
  1314. WINGDIAPI void APIENTRY glTexCoord2dv (const GLdouble *v);
  1315. WINGDIAPI void APIENTRY glTexCoord2f (GLfloat s, GLfloat t);
  1316. WINGDIAPI void APIENTRY glTexCoord2fv (const GLfloat *v);
  1317. WINGDIAPI void APIENTRY glTexCoord2i (GLint s, GLint t);
  1318. WINGDIAPI void APIENTRY glTexCoord2iv (const GLint *v);
  1319. WINGDIAPI void APIENTRY glTexCoord2s (GLshort s, GLshort t);
  1320. WINGDIAPI void APIENTRY glTexCoord2sv (const GLshort *v);
  1321. WINGDIAPI void APIENTRY glTexCoord3d (GLdouble s, GLdouble t, GLdouble r);
  1322. WINGDIAPI void APIENTRY glTexCoord3dv (const GLdouble *v);
  1323. WINGDIAPI void APIENTRY glTexCoord3f (GLfloat s, GLfloat t, GLfloat r);
  1324. WINGDIAPI void APIENTRY glTexCoord3fv (const GLfloat *v);
  1325. WINGDIAPI void APIENTRY glTexCoord3i (GLint s, GLint t, GLint r);
  1326. WINGDIAPI void APIENTRY glTexCoord3iv (const GLint *v);
  1327. WINGDIAPI void APIENTRY glTexCoord3s (GLshort s, GLshort t, GLshort r);
  1328. WINGDIAPI void APIENTRY glTexCoord3sv (const GLshort *v);
  1329. WINGDIAPI void APIENTRY glTexCoord4d (GLdouble s, GLdouble t, GLdouble r, GLdouble q);
  1330. WINGDIAPI void APIENTRY glTexCoord4dv (const GLdouble *v);
  1331. WINGDIAPI void APIENTRY glTexCoord4f (GLfloat s, GLfloat t, GLfloat r, GLfloat q);
  1332. WINGDIAPI void APIENTRY glTexCoord4fv (const GLfloat *v);
  1333. WINGDIAPI void APIENTRY glTexCoord4i (GLint s, GLint t, GLint r, GLint q);
  1334. WINGDIAPI void APIENTRY glTexCoord4iv (const GLint *v);
  1335. WINGDIAPI void APIENTRY glTexCoord4s (GLshort s, GLshort t, GLshort r, GLshort q);
  1336. WINGDIAPI void APIENTRY glTexCoord4sv (const GLshort *v);
  1337. WINGDIAPI void APIENTRY glTexCoordPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
  1338. WINGDIAPI void APIENTRY glTexEnvf (GLenum target, GLenum pname, GLfloat param);
  1339. WINGDIAPI void APIENTRY glTexEnvfv (GLenum target, GLenum pname, const GLfloat *params);
  1340. WINGDIAPI void APIENTRY glTexEnvi (GLenum target, GLenum pname, GLint param);
  1341. WINGDIAPI void APIENTRY glTexEnviv (GLenum target, GLenum pname, const GLint *params);
  1342. WINGDIAPI void APIENTRY glTexGend (GLenum coord, GLenum pname, GLdouble param);
  1343. WINGDIAPI void APIENTRY glTexGendv (GLenum coord, GLenum pname, const GLdouble *params);
  1344. WINGDIAPI void APIENTRY glTexGenf (GLenum coord, GLenum pname, GLfloat param);
  1345. WINGDIAPI void APIENTRY glTexGenfv (GLenum coord, GLenum pname, const GLfloat *params);
  1346. WINGDIAPI void APIENTRY glTexGeni (GLenum coord, GLenum pname, GLint param);
  1347. WINGDIAPI void APIENTRY glTexGeniv (GLenum coord, GLenum pname, const GLint *params);
  1348. WINGDIAPI void APIENTRY glTexImage1D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
  1349. WINGDIAPI void APIENTRY glTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
  1350. WINGDIAPI void APIENTRY glTexParameterf (GLenum target, GLenum pname, GLfloat param);
  1351. WINGDIAPI void APIENTRY glTexParameterfv (GLenum target, GLenum pname, const GLfloat *params);
  1352. WINGDIAPI void APIENTRY glTexParameteri (GLenum target, GLenum pname, GLint param);
  1353. WINGDIAPI void APIENTRY glTexParameteriv (GLenum target, GLenum pname, const GLint *params);
  1354. WINGDIAPI void APIENTRY glTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels);
  1355. WINGDIAPI void APIENTRY glTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
  1356. WINGDIAPI void APIENTRY glTranslated (GLdouble x, GLdouble y, GLdouble z);
  1357. WINGDIAPI void APIENTRY glTranslatef (GLfloat x, GLfloat y, GLfloat z);
  1358. WINGDIAPI void APIENTRY glVertex2d (GLdouble x, GLdouble y);
  1359. WINGDIAPI void APIENTRY glVertex2dv (const GLdouble *v);
  1360. WINGDIAPI void APIENTRY glVertex2f (GLfloat x, GLfloat y);
  1361. WINGDIAPI void APIENTRY glVertex2fv (const GLfloat *v);
  1362. WINGDIAPI void APIENTRY glVertex2i (GLint x, GLint y);
  1363. WINGDIAPI void APIENTRY glVertex2iv (const GLint *v);
  1364. WINGDIAPI void APIENTRY glVertex2s (GLshort x, GLshort y);
  1365. WINGDIAPI void APIENTRY glVertex2sv (const GLshort *v);
  1366. WINGDIAPI void APIENTRY glVertex3d (GLdouble x, GLdouble y, GLdouble z);
  1367. WINGDIAPI void APIENTRY glVertex3dv (const GLdouble *v);
  1368. WINGDIAPI void APIENTRY glVertex3f (GLfloat x, GLfloat y, GLfloat z);
  1369. WINGDIAPI void APIENTRY glVertex3fv (const GLfloat *v);
  1370. WINGDIAPI void APIENTRY glVertex3i (GLint x, GLint y, GLint z);
  1371. WINGDIAPI void APIENTRY glVertex3iv (const GLint *v);
  1372. WINGDIAPI void APIENTRY glVertex3s (GLshort x, GLshort y, GLshort z);
  1373. WINGDIAPI void APIENTRY glVertex3sv (const GLshort *v);
  1374. WINGDIAPI void APIENTRY glVertex4d (GLdouble x, GLdouble y, GLdouble z, GLdouble w);
  1375. WINGDIAPI void APIENTRY glVertex4dv (const GLdouble *v);
  1376. WINGDIAPI void APIENTRY glVertex4f (GLfloat x, GLfloat y, GLfloat z, GLfloat w);
  1377. WINGDIAPI void APIENTRY glVertex4fv (const GLfloat *v);
  1378. WINGDIAPI void APIENTRY glVertex4i (GLint x, GLint y, GLint z, GLint w);
  1379. WINGDIAPI void APIENTRY glVertex4iv (const GLint *v);
  1380. WINGDIAPI void APIENTRY glVertex4s (GLshort x, GLshort y, GLshort z, GLshort w);
  1381. WINGDIAPI void APIENTRY glVertex4sv (const GLshort *v);
  1382. WINGDIAPI void APIENTRY glVertexPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
  1383. WINGDIAPI void APIENTRY glViewport (GLint x, GLint y, GLsizei width, GLsizei height);
  1384. /* EXT_vertex_array */
  1385. typedef void (APIENTRY * PFNGLARRAYELEMENTEXTPROC) (GLint i);
  1386. typedef void (APIENTRY * PFNGLDRAWARRAYSEXTPROC) (GLenum mode, GLint first, GLsizei count);
  1387. typedef void (APIENTRY * PFNGLVERTEXPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer);
  1388. typedef void (APIENTRY * PFNGLNORMALPOINTEREXTPROC) (GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer);
  1389. typedef void (APIENTRY * PFNGLCOLORPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer);
  1390. typedef void (APIENTRY * PFNGLINDEXPOINTEREXTPROC) (GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer);
  1391. typedef void (APIENTRY * PFNGLTEXCOORDPOINTEREXTPROC) (GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer);
  1392. typedef void (APIENTRY * PFNGLEDGEFLAGPOINTEREXTPROC) (GLsizei stride, GLsizei count, const GLboolean *pointer);
  1393. typedef void (APIENTRY * PFNGLGETPOINTERVEXTPROC) (GLenum pname, GLvoid* *params);
  1394. typedef void (APIENTRY * PFNGLARRAYELEMENTARRAYEXTPROC)(GLenum mode, GLsizei count, const GLvoid* pi);
  1395. /* WIN_draw_range_elements */
  1396. typedef void (APIENTRY * PFNGLDRAWRANGEELEMENTSWINPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices);
  1397. /* WIN_swap_hint */
  1398. typedef void (APIENTRY * PFNGLADDSWAPHINTRECTWINPROC) (GLint x, GLint y, GLsizei width, GLsizei height);
  1399. /* EXT_paletted_texture */
  1400. typedef void (APIENTRY * PFNGLCOLORTABLEEXTPROC)
  1401. (GLenum target, GLenum internalFormat, GLsizei width, GLenum format,
  1402. GLenum type, const GLvoid *data);
  1403. typedef void (APIENTRY * PFNGLCOLORSUBTABLEEXTPROC)
  1404. (GLenum target, GLsizei start, GLsizei count, GLenum format,
  1405. GLenum type, const GLvoid *data);
  1406. typedef void (APIENTRY * PFNGLGETCOLORTABLEEXTPROC)
  1407. (GLenum target, GLenum format, GLenum type, GLvoid *data);
  1408. typedef void (APIENTRY * PFNGLGETCOLORTABLEPARAMETERIVEXTPROC)
  1409. (GLenum target, GLenum pname, GLint *params);
  1410. typedef void (APIENTRY * PFNGLGETCOLORTABLEPARAMETERFVEXTPROC)
  1411. (GLenum target, GLenum pname, GLfloat *params);
  1412. #ifdef __cplusplus
  1413. }
  1414. #endif
  1415. #endif /* __GL_H__ */
  1416. #endif /* __gl_h_ */