gl.h 78 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470
  1. /*
  2. * Mesa 3-D graphics library
  3. * Version: 4.0
  4. *
  5. * Copyright (C) 1999-2001 Brian Paul All Rights Reserved.
  6. *
  7. * Permission is hereby granted, free of charge, to any person obtaining a
  8. * copy of this software and associated documentation files (the "Software"),
  9. * to deal in the Software without restriction, including without limitation
  10. * the rights to use, copy, modify, merge, publish, distribute, sublicense,
  11. * and/or sell copies of the Software, and to permit persons to whom the
  12. * Software is furnished to do so, subject to the following conditions:
  13. *
  14. * The above copyright notice and this permission notice shall be included
  15. * in all copies or substantial portions of the Software.
  16. *
  17. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  18. * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  19. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
  20. * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  21. * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  22. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  23. */
  24. /************************************************************************
  25. * 2002-Apr-22, José Fonseca:
  26. * Removed non Win32 system-specific stuff
  27. *
  28. * 2002-Apr-17, Marcus Geelnard:
  29. * For win32, OpenGL 1.2 & 1.3 definitions are not made in this file
  30. * anymore, since under Windows those are regarded as extensions, and
  31. * are better defined in glext.h (especially the function prototypes may
  32. * conflict with extension function pointers). A few "cosmetical"
  33. * changes were also made to this file.
  34. *
  35. * 2002-Apr-15, Marcus Geelnard:
  36. * Modified this file to better fit a wider range of compilers, removed
  37. * Mesa specific stuff, and removed extension definitions (this file now
  38. * relies on GL/glext.h). Hopefully this file should now function as a
  39. * generic OpenGL gl.h include file for most compilers and environments.
  40. * Changed GLAPIENTRY to APIENTRY (to be consistent with GL/glext.h).
  41. ************************************************************************/
  42. #ifndef __gl_h_
  43. #define __gl_h_
  44. /************************************************************************
  45. * Begin system-specific stuff.
  46. */
  47. /* __WIN32__ */
  48. #if !defined(__WIN32__) && (defined(_WIN32) || defined(WIN32) || defined(__CYGWIN__))
  49. # define __WIN32__
  50. #endif
  51. /* GLAPI, part 1 (use WINGDIAPI, if defined) */
  52. #if defined(__WIN32__) && defined(WINGDIAPI)
  53. # define GLAPI WINGDIAPI
  54. #endif
  55. /* GLAPI, part 2 */
  56. #if !defined(GLAPI)
  57. # if defined(_MSC_VER) /* Microsoft Visual C++ */
  58. # define GLAPI __declspec(dllimport)
  59. # elif defined(__LCC__) && defined(__WIN32__) /* LCC-Win32 */
  60. # define GLAPI __stdcall
  61. # else /* Others (e.g. MinGW, Cygwin, non-win32) */
  62. # define GLAPI extern
  63. # endif
  64. #endif
  65. /* APIENTRY */
  66. #if !defined(APIENTRY)
  67. # if defined(__WIN32__)
  68. # define APIENTRY __stdcall
  69. # else
  70. # define APIENTRY
  71. # endif
  72. #endif
  73. /*
  74. * End system-specific stuff.
  75. ************************************************************************/
  76. #ifdef __cplusplus
  77. extern "C" {
  78. #endif
  79. #define GL_VERSION_1_1 1
  80. #if !defined(__WIN32__)
  81. #define GL_VERSION_1_2 1
  82. #define GL_VERSION_1_3 1
  83. #define GL_ARB_imaging 1
  84. #endif
  85. /*
  86. *
  87. * Datatypes
  88. *
  89. */
  90. #ifdef CENTERLINE_CLPP
  91. #define signed
  92. #endif
  93. typedef unsigned int GLenum;
  94. typedef unsigned char GLboolean;
  95. typedef unsigned int GLbitfield;
  96. typedef void GLvoid;
  97. typedef signed char GLbyte; /* 1-byte signed */
  98. typedef short GLshort; /* 2-byte signed */
  99. typedef int GLint; /* 4-byte signed */
  100. typedef unsigned char GLubyte; /* 1-byte unsigned */
  101. typedef unsigned short GLushort; /* 2-byte unsigned */
  102. typedef unsigned int GLuint; /* 4-byte unsigned */
  103. typedef int GLsizei; /* 4-byte signed */
  104. typedef float GLfloat; /* single precision float */
  105. typedef float GLclampf; /* single precision float in [0,1] */
  106. typedef double GLdouble; /* double precision float */
  107. typedef double GLclampd; /* double precision float in [0,1] */
  108. /************************************************************************
  109. *
  110. * Constants
  111. *
  112. ************************************************************************/
  113. /* Boolean values */
  114. #define GL_FALSE 0x0
  115. #define GL_TRUE 0x1
  116. /* Data types */
  117. #define GL_BYTE 0x1400
  118. #define GL_UNSIGNED_BYTE 0x1401
  119. #define GL_SHORT 0x1402
  120. #define GL_UNSIGNED_SHORT 0x1403
  121. #define GL_INT 0x1404
  122. #define GL_UNSIGNED_INT 0x1405
  123. #define GL_FLOAT 0x1406
  124. #define GL_DOUBLE 0x140A
  125. #define GL_2_BYTES 0x1407
  126. #define GL_3_BYTES 0x1408
  127. #define GL_4_BYTES 0x1409
  128. /* Primitives */
  129. #define GL_POINTS 0x0000
  130. #define GL_LINES 0x0001
  131. #define GL_LINE_LOOP 0x0002
  132. #define GL_LINE_STRIP 0x0003
  133. #define GL_TRIANGLES 0x0004
  134. #define GL_TRIANGLE_STRIP 0x0005
  135. #define GL_TRIANGLE_FAN 0x0006
  136. #define GL_QUADS 0x0007
  137. #define GL_QUAD_STRIP 0x0008
  138. #define GL_POLYGON 0x0009
  139. /* Vertex Arrays */
  140. #define GL_VERTEX_ARRAY 0x8074
  141. #define GL_NORMAL_ARRAY 0x8075
  142. #define GL_COLOR_ARRAY 0x8076
  143. #define GL_INDEX_ARRAY 0x8077
  144. #define GL_TEXTURE_COORD_ARRAY 0x8078
  145. #define GL_EDGE_FLAG_ARRAY 0x8079
  146. #define GL_VERTEX_ARRAY_SIZE 0x807A
  147. #define GL_VERTEX_ARRAY_TYPE 0x807B
  148. #define GL_VERTEX_ARRAY_STRIDE 0x807C
  149. #define GL_NORMAL_ARRAY_TYPE 0x807E
  150. #define GL_NORMAL_ARRAY_STRIDE 0x807F
  151. #define GL_COLOR_ARRAY_SIZE 0x8081
  152. #define GL_COLOR_ARRAY_TYPE 0x8082
  153. #define GL_COLOR_ARRAY_STRIDE 0x8083
  154. #define GL_INDEX_ARRAY_TYPE 0x8085
  155. #define GL_INDEX_ARRAY_STRIDE 0x8086
  156. #define GL_TEXTURE_COORD_ARRAY_SIZE 0x8088
  157. #define GL_TEXTURE_COORD_ARRAY_TYPE 0x8089
  158. #define GL_TEXTURE_COORD_ARRAY_STRIDE 0x808A
  159. #define GL_EDGE_FLAG_ARRAY_STRIDE 0x808C
  160. #define GL_VERTEX_ARRAY_POINTER 0x808E
  161. #define GL_NORMAL_ARRAY_POINTER 0x808F
  162. #define GL_COLOR_ARRAY_POINTER 0x8090
  163. #define GL_INDEX_ARRAY_POINTER 0x8091
  164. #define GL_TEXTURE_COORD_ARRAY_POINTER 0x8092
  165. #define GL_EDGE_FLAG_ARRAY_POINTER 0x8093
  166. #define GL_V2F 0x2A20
  167. #define GL_V3F 0x2A21
  168. #define GL_C4UB_V2F 0x2A22
  169. #define GL_C4UB_V3F 0x2A23
  170. #define GL_C3F_V3F 0x2A24
  171. #define GL_N3F_V3F 0x2A25
  172. #define GL_C4F_N3F_V3F 0x2A26
  173. #define GL_T2F_V3F 0x2A27
  174. #define GL_T4F_V4F 0x2A28
  175. #define GL_T2F_C4UB_V3F 0x2A29
  176. #define GL_T2F_C3F_V3F 0x2A2A
  177. #define GL_T2F_N3F_V3F 0x2A2B
  178. #define GL_T2F_C4F_N3F_V3F 0x2A2C
  179. #define GL_T4F_C4F_N3F_V4F 0x2A2D
  180. /* Matrix Mode */
  181. #define GL_MATRIX_MODE 0x0BA0
  182. #define GL_MODELVIEW 0x1700
  183. #define GL_PROJECTION 0x1701
  184. #define GL_TEXTURE 0x1702
  185. /* Points */
  186. #define GL_POINT_SMOOTH 0x0B10
  187. #define GL_POINT_SIZE 0x0B11
  188. #define GL_POINT_SIZE_GRANULARITY 0x0B13
  189. #define GL_POINT_SIZE_RANGE 0x0B12
  190. /* Lines */
  191. #define GL_LINE_SMOOTH 0x0B20
  192. #define GL_LINE_STIPPLE 0x0B24
  193. #define GL_LINE_STIPPLE_PATTERN 0x0B25
  194. #define GL_LINE_STIPPLE_REPEAT 0x0B26
  195. #define GL_LINE_WIDTH 0x0B21
  196. #define GL_LINE_WIDTH_GRANULARITY 0x0B23
  197. #define GL_LINE_WIDTH_RANGE 0x0B22
  198. /* Polygons */
  199. #define GL_POINT 0x1B00
  200. #define GL_LINE 0x1B01
  201. #define GL_FILL 0x1B02
  202. #define GL_CW 0x0900
  203. #define GL_CCW 0x0901
  204. #define GL_FRONT 0x0404
  205. #define GL_BACK 0x0405
  206. #define GL_POLYGON_MODE 0x0B40
  207. #define GL_POLYGON_SMOOTH 0x0B41
  208. #define GL_POLYGON_STIPPLE 0x0B42
  209. #define GL_EDGE_FLAG 0x0B43
  210. #define GL_CULL_FACE 0x0B44
  211. #define GL_CULL_FACE_MODE 0x0B45
  212. #define GL_FRONT_FACE 0x0B46
  213. #define GL_POLYGON_OFFSET_FACTOR 0x8038
  214. #define GL_POLYGON_OFFSET_UNITS 0x2A00
  215. #define GL_POLYGON_OFFSET_POINT 0x2A01
  216. #define GL_POLYGON_OFFSET_LINE 0x2A02
  217. #define GL_POLYGON_OFFSET_FILL 0x8037
  218. /* Display Lists */
  219. #define GL_COMPILE 0x1300
  220. #define GL_COMPILE_AND_EXECUTE 0x1301
  221. #define GL_LIST_BASE 0x0B32
  222. #define GL_LIST_INDEX 0x0B33
  223. #define GL_LIST_MODE 0x0B30
  224. /* Depth buffer */
  225. #define GL_NEVER 0x0200
  226. #define GL_LESS 0x0201
  227. #define GL_EQUAL 0x0202
  228. #define GL_LEQUAL 0x0203
  229. #define GL_GREATER 0x0204
  230. #define GL_NOTEQUAL 0x0205
  231. #define GL_GEQUAL 0x0206
  232. #define GL_ALWAYS 0x0207
  233. #define GL_DEPTH_TEST 0x0B71
  234. #define GL_DEPTH_BITS 0x0D56
  235. #define GL_DEPTH_CLEAR_VALUE 0x0B73
  236. #define GL_DEPTH_FUNC 0x0B74
  237. #define GL_DEPTH_RANGE 0x0B70
  238. #define GL_DEPTH_WRITEMASK 0x0B72
  239. #define GL_DEPTH_COMPONENT 0x1902
  240. /* Lighting */
  241. #define GL_LIGHTING 0x0B50
  242. #define GL_LIGHT0 0x4000
  243. #define GL_LIGHT1 0x4001
  244. #define GL_LIGHT2 0x4002
  245. #define GL_LIGHT3 0x4003
  246. #define GL_LIGHT4 0x4004
  247. #define GL_LIGHT5 0x4005
  248. #define GL_LIGHT6 0x4006
  249. #define GL_LIGHT7 0x4007
  250. #define GL_SPOT_EXPONENT 0x1205
  251. #define GL_SPOT_CUTOFF 0x1206
  252. #define GL_CONSTANT_ATTENUATION 0x1207
  253. #define GL_LINEAR_ATTENUATION 0x1208
  254. #define GL_QUADRATIC_ATTENUATION 0x1209
  255. #define GL_AMBIENT 0x1200
  256. #define GL_DIFFUSE 0x1201
  257. #define GL_SPECULAR 0x1202
  258. #define GL_SHININESS 0x1601
  259. #define GL_EMISSION 0x1600
  260. #define GL_POSITION 0x1203
  261. #define GL_SPOT_DIRECTION 0x1204
  262. #define GL_AMBIENT_AND_DIFFUSE 0x1602
  263. #define GL_COLOR_INDEXES 0x1603
  264. #define GL_LIGHT_MODEL_TWO_SIDE 0x0B52
  265. #define GL_LIGHT_MODEL_LOCAL_VIEWER 0x0B51
  266. #define GL_LIGHT_MODEL_AMBIENT 0x0B53
  267. #define GL_FRONT_AND_BACK 0x0408
  268. #define GL_SHADE_MODEL 0x0B54
  269. #define GL_FLAT 0x1D00
  270. #define GL_SMOOTH 0x1D01
  271. #define GL_COLOR_MATERIAL 0x0B57
  272. #define GL_COLOR_MATERIAL_FACE 0x0B55
  273. #define GL_COLOR_MATERIAL_PARAMETER 0x0B56
  274. #define GL_NORMALIZE 0x0BA1
  275. /* User clipping planes */
  276. #define GL_CLIP_PLANE0 0x3000
  277. #define GL_CLIP_PLANE1 0x3001
  278. #define GL_CLIP_PLANE2 0x3002
  279. #define GL_CLIP_PLANE3 0x3003
  280. #define GL_CLIP_PLANE4 0x3004
  281. #define GL_CLIP_PLANE5 0x3005
  282. /* Accumulation buffer */
  283. #define GL_ACCUM_RED_BITS 0x0D58
  284. #define GL_ACCUM_GREEN_BITS 0x0D59
  285. #define GL_ACCUM_BLUE_BITS 0x0D5A
  286. #define GL_ACCUM_ALPHA_BITS 0x0D5B
  287. #define GL_ACCUM_CLEAR_VALUE 0x0B80
  288. #define GL_ACCUM 0x0100
  289. #define GL_ADD 0x0104
  290. #define GL_LOAD 0x0101
  291. #define GL_MULT 0x0103
  292. #define GL_RETURN 0x0102
  293. /* Alpha testing */
  294. #define GL_ALPHA_TEST 0x0BC0
  295. #define GL_ALPHA_TEST_REF 0x0BC2
  296. #define GL_ALPHA_TEST_FUNC 0x0BC1
  297. /* Blending */
  298. #define GL_BLEND 0x0BE2
  299. #define GL_BLEND_SRC 0x0BE1
  300. #define GL_BLEND_DST 0x0BE0
  301. #define GL_ZERO 0x0
  302. #define GL_ONE 0x1
  303. #define GL_SRC_COLOR 0x0300
  304. #define GL_ONE_MINUS_SRC_COLOR 0x0301
  305. #define GL_SRC_ALPHA 0x0302
  306. #define GL_ONE_MINUS_SRC_ALPHA 0x0303
  307. #define GL_DST_ALPHA 0x0304
  308. #define GL_ONE_MINUS_DST_ALPHA 0x0305
  309. #define GL_DST_COLOR 0x0306
  310. #define GL_ONE_MINUS_DST_COLOR 0x0307
  311. #define GL_SRC_ALPHA_SATURATE 0x0308
  312. #define GL_CONSTANT_COLOR 0x8001
  313. #define GL_ONE_MINUS_CONSTANT_COLOR 0x8002
  314. #define GL_CONSTANT_ALPHA 0x8003
  315. #define GL_ONE_MINUS_CONSTANT_ALPHA 0x8004
  316. /* Render Mode */
  317. #define GL_FEEDBACK 0x1C01
  318. #define GL_RENDER 0x1C00
  319. #define GL_SELECT 0x1C02
  320. /* Feedback */
  321. #define GL_2D 0x0600
  322. #define GL_3D 0x0601
  323. #define GL_3D_COLOR 0x0602
  324. #define GL_3D_COLOR_TEXTURE 0x0603
  325. #define GL_4D_COLOR_TEXTURE 0x0604
  326. #define GL_POINT_TOKEN 0x0701
  327. #define GL_LINE_TOKEN 0x0702
  328. #define GL_LINE_RESET_TOKEN 0x0707
  329. #define GL_POLYGON_TOKEN 0x0703
  330. #define GL_BITMAP_TOKEN 0x0704
  331. #define GL_DRAW_PIXEL_TOKEN 0x0705
  332. #define GL_COPY_PIXEL_TOKEN 0x0706
  333. #define GL_PASS_THROUGH_TOKEN 0x0700
  334. #define GL_FEEDBACK_BUFFER_POINTER 0x0DF0
  335. #define GL_FEEDBACK_BUFFER_SIZE 0x0DF1
  336. #define GL_FEEDBACK_BUFFER_TYPE 0x0DF2
  337. /* Selection */
  338. #define GL_SELECTION_BUFFER_POINTER 0x0DF3
  339. #define GL_SELECTION_BUFFER_SIZE 0x0DF4
  340. /* Fog */
  341. #define GL_FOG 0x0B60
  342. #define GL_FOG_MODE 0x0B65
  343. #define GL_FOG_DENSITY 0x0B62
  344. #define GL_FOG_COLOR 0x0B66
  345. #define GL_FOG_INDEX 0x0B61
  346. #define GL_FOG_START 0x0B63
  347. #define GL_FOG_END 0x0B64
  348. #define GL_LINEAR 0x2601
  349. #define GL_EXP 0x0800
  350. #define GL_EXP2 0x0801
  351. /* Logic Ops */
  352. #define GL_LOGIC_OP 0x0BF1
  353. #define GL_INDEX_LOGIC_OP 0x0BF1
  354. #define GL_COLOR_LOGIC_OP 0x0BF2
  355. #define GL_LOGIC_OP_MODE 0x0BF0
  356. #define GL_CLEAR 0x1500
  357. #define GL_SET 0x150F
  358. #define GL_COPY 0x1503
  359. #define GL_COPY_INVERTED 0x150C
  360. #define GL_NOOP 0x1505
  361. #define GL_INVERT 0x150A
  362. #define GL_AND 0x1501
  363. #define GL_NAND 0x150E
  364. #define GL_OR 0x1507
  365. #define GL_NOR 0x1508
  366. #define GL_XOR 0x1506
  367. #define GL_EQUIV 0x1509
  368. #define GL_AND_REVERSE 0x1502
  369. #define GL_AND_INVERTED 0x1504
  370. #define GL_OR_REVERSE 0x150B
  371. #define GL_OR_INVERTED 0x150D
  372. /* Stencil */
  373. #define GL_STENCIL_TEST 0x0B90
  374. #define GL_STENCIL_WRITEMASK 0x0B98
  375. #define GL_STENCIL_BITS 0x0D57
  376. #define GL_STENCIL_FUNC 0x0B92
  377. #define GL_STENCIL_VALUE_MASK 0x0B93
  378. #define GL_STENCIL_REF 0x0B97
  379. #define GL_STENCIL_FAIL 0x0B94
  380. #define GL_STENCIL_PASS_DEPTH_PASS 0x0B96
  381. #define GL_STENCIL_PASS_DEPTH_FAIL 0x0B95
  382. #define GL_STENCIL_CLEAR_VALUE 0x0B91
  383. #define GL_STENCIL_INDEX 0x1901
  384. #define GL_KEEP 0x1E00
  385. #define GL_REPLACE 0x1E01
  386. #define GL_INCR 0x1E02
  387. #define GL_DECR 0x1E03
  388. /* Buffers, Pixel Drawing/Reading */
  389. #define GL_NONE 0x0
  390. #define GL_LEFT 0x0406
  391. #define GL_RIGHT 0x0407
  392. /*GL_FRONT 0x0404 */
  393. /*GL_BACK 0x0405 */
  394. /*GL_FRONT_AND_BACK 0x0408 */
  395. #define GL_FRONT_LEFT 0x0400
  396. #define GL_FRONT_RIGHT 0x0401
  397. #define GL_BACK_LEFT 0x0402
  398. #define GL_BACK_RIGHT 0x0403
  399. #define GL_AUX0 0x0409
  400. #define GL_AUX1 0x040A
  401. #define GL_AUX2 0x040B
  402. #define GL_AUX3 0x040C
  403. #define GL_COLOR_INDEX 0x1900
  404. #define GL_RED 0x1903
  405. #define GL_GREEN 0x1904
  406. #define GL_BLUE 0x1905
  407. #define GL_ALPHA 0x1906
  408. #define GL_LUMINANCE 0x1909
  409. #define GL_LUMINANCE_ALPHA 0x190A
  410. #define GL_ALPHA_BITS 0x0D55
  411. #define GL_RED_BITS 0x0D52
  412. #define GL_GREEN_BITS 0x0D53
  413. #define GL_BLUE_BITS 0x0D54
  414. #define GL_INDEX_BITS 0x0D51
  415. #define GL_SUBPIXEL_BITS 0x0D50
  416. #define GL_AUX_BUFFERS 0x0C00
  417. #define GL_READ_BUFFER 0x0C02
  418. #define GL_DRAW_BUFFER 0x0C01
  419. #define GL_DOUBLEBUFFER 0x0C32
  420. #define GL_STEREO 0x0C33
  421. #define GL_BITMAP 0x1A00
  422. #define GL_COLOR 0x1800
  423. #define GL_DEPTH 0x1801
  424. #define GL_STENCIL 0x1802
  425. #define GL_DITHER 0x0BD0
  426. #define GL_RGB 0x1907
  427. #define GL_RGBA 0x1908
  428. /* Implementation limits */
  429. #define GL_MAX_LIST_NESTING 0x0B31
  430. #define GL_MAX_ATTRIB_STACK_DEPTH 0x0D35
  431. #define GL_MAX_MODELVIEW_STACK_DEPTH 0x0D36
  432. #define GL_MAX_NAME_STACK_DEPTH 0x0D37
  433. #define GL_MAX_PROJECTION_STACK_DEPTH 0x0D38
  434. #define GL_MAX_TEXTURE_STACK_DEPTH 0x0D39
  435. #define GL_MAX_EVAL_ORDER 0x0D30
  436. #define GL_MAX_LIGHTS 0x0D31
  437. #define GL_MAX_CLIP_PLANES 0x0D32
  438. #define GL_MAX_TEXTURE_SIZE 0x0D33
  439. #define GL_MAX_PIXEL_MAP_TABLE 0x0D34
  440. #define GL_MAX_VIEWPORT_DIMS 0x0D3A
  441. #define GL_MAX_CLIENT_ATTRIB_STACK_DEPTH 0x0D3B
  442. /* Gets */
  443. #define GL_ATTRIB_STACK_DEPTH 0x0BB0
  444. #define GL_CLIENT_ATTRIB_STACK_DEPTH 0x0BB1
  445. #define GL_COLOR_CLEAR_VALUE 0x0C22
  446. #define GL_COLOR_WRITEMASK 0x0C23
  447. #define GL_CURRENT_INDEX 0x0B01
  448. #define GL_CURRENT_COLOR 0x0B00
  449. #define GL_CURRENT_NORMAL 0x0B02
  450. #define GL_CURRENT_RASTER_COLOR 0x0B04
  451. #define GL_CURRENT_RASTER_DISTANCE 0x0B09
  452. #define GL_CURRENT_RASTER_INDEX 0x0B05
  453. #define GL_CURRENT_RASTER_POSITION 0x0B07
  454. #define GL_CURRENT_RASTER_TEXTURE_COORDS 0x0B06
  455. #define GL_CURRENT_RASTER_POSITION_VALID 0x0B08
  456. #define GL_CURRENT_TEXTURE_COORDS 0x0B03
  457. #define GL_INDEX_CLEAR_VALUE 0x0C20
  458. #define GL_INDEX_MODE 0x0C30
  459. #define GL_INDEX_WRITEMASK 0x0C21
  460. #define GL_MODELVIEW_MATRIX 0x0BA6
  461. #define GL_MODELVIEW_STACK_DEPTH 0x0BA3
  462. #define GL_NAME_STACK_DEPTH 0x0D70
  463. #define GL_PROJECTION_MATRIX 0x0BA7
  464. #define GL_PROJECTION_STACK_DEPTH 0x0BA4
  465. #define GL_RENDER_MODE 0x0C40
  466. #define GL_RGBA_MODE 0x0C31
  467. #define GL_TEXTURE_MATRIX 0x0BA8
  468. #define GL_TEXTURE_STACK_DEPTH 0x0BA5
  469. #define GL_VIEWPORT 0x0BA2
  470. /* Evaluators */
  471. #define GL_AUTO_NORMAL 0x0D80
  472. #define GL_MAP1_COLOR_4 0x0D90
  473. #define GL_MAP1_GRID_DOMAIN 0x0DD0
  474. #define GL_MAP1_GRID_SEGMENTS 0x0DD1
  475. #define GL_MAP1_INDEX 0x0D91
  476. #define GL_MAP1_NORMAL 0x0D92
  477. #define GL_MAP1_TEXTURE_COORD_1 0x0D93
  478. #define GL_MAP1_TEXTURE_COORD_2 0x0D94
  479. #define GL_MAP1_TEXTURE_COORD_3 0x0D95
  480. #define GL_MAP1_TEXTURE_COORD_4 0x0D96
  481. #define GL_MAP1_VERTEX_3 0x0D97
  482. #define GL_MAP1_VERTEX_4 0x0D98
  483. #define GL_MAP2_COLOR_4 0x0DB0
  484. #define GL_MAP2_GRID_DOMAIN 0x0DD2
  485. #define GL_MAP2_GRID_SEGMENTS 0x0DD3
  486. #define GL_MAP2_INDEX 0x0DB1
  487. #define GL_MAP2_NORMAL 0x0DB2
  488. #define GL_MAP2_TEXTURE_COORD_1 0x0DB3
  489. #define GL_MAP2_TEXTURE_COORD_2 0x0DB4
  490. #define GL_MAP2_TEXTURE_COORD_3 0x0DB5
  491. #define GL_MAP2_TEXTURE_COORD_4 0x0DB6
  492. #define GL_MAP2_VERTEX_3 0x0DB7
  493. #define GL_MAP2_VERTEX_4 0x0DB8
  494. #define GL_COEFF 0x0A00
  495. #define GL_DOMAIN 0x0A02
  496. #define GL_ORDER 0x0A01
  497. /* Hints */
  498. #define GL_FOG_HINT 0x0C54
  499. #define GL_LINE_SMOOTH_HINT 0x0C52
  500. #define GL_PERSPECTIVE_CORRECTION_HINT 0x0C50
  501. #define GL_POINT_SMOOTH_HINT 0x0C51
  502. #define GL_POLYGON_SMOOTH_HINT 0x0C53
  503. #define GL_DONT_CARE 0x1100
  504. #define GL_FASTEST 0x1101
  505. #define GL_NICEST 0x1102
  506. /* Scissor box */
  507. #define GL_SCISSOR_TEST 0x0C11
  508. #define GL_SCISSOR_BOX 0x0C10
  509. /* Pixel Mode / Transfer */
  510. #define GL_MAP_COLOR 0x0D10
  511. #define GL_MAP_STENCIL 0x0D11
  512. #define GL_INDEX_SHIFT 0x0D12
  513. #define GL_INDEX_OFFSET 0x0D13
  514. #define GL_RED_SCALE 0x0D14
  515. #define GL_RED_BIAS 0x0D15
  516. #define GL_GREEN_SCALE 0x0D18
  517. #define GL_GREEN_BIAS 0x0D19
  518. #define GL_BLUE_SCALE 0x0D1A
  519. #define GL_BLUE_BIAS 0x0D1B
  520. #define GL_ALPHA_SCALE 0x0D1C
  521. #define GL_ALPHA_BIAS 0x0D1D
  522. #define GL_DEPTH_SCALE 0x0D1E
  523. #define GL_DEPTH_BIAS 0x0D1F
  524. #define GL_PIXEL_MAP_S_TO_S_SIZE 0x0CB1
  525. #define GL_PIXEL_MAP_I_TO_I_SIZE 0x0CB0
  526. #define GL_PIXEL_MAP_I_TO_R_SIZE 0x0CB2
  527. #define GL_PIXEL_MAP_I_TO_G_SIZE 0x0CB3
  528. #define GL_PIXEL_MAP_I_TO_B_SIZE 0x0CB4
  529. #define GL_PIXEL_MAP_I_TO_A_SIZE 0x0CB5
  530. #define GL_PIXEL_MAP_R_TO_R_SIZE 0x0CB6
  531. #define GL_PIXEL_MAP_G_TO_G_SIZE 0x0CB7
  532. #define GL_PIXEL_MAP_B_TO_B_SIZE 0x0CB8
  533. #define GL_PIXEL_MAP_A_TO_A_SIZE 0x0CB9
  534. #define GL_PIXEL_MAP_S_TO_S 0x0C71
  535. #define GL_PIXEL_MAP_I_TO_I 0x0C70
  536. #define GL_PIXEL_MAP_I_TO_R 0x0C72
  537. #define GL_PIXEL_MAP_I_TO_G 0x0C73
  538. #define GL_PIXEL_MAP_I_TO_B 0x0C74
  539. #define GL_PIXEL_MAP_I_TO_A 0x0C75
  540. #define GL_PIXEL_MAP_R_TO_R 0x0C76
  541. #define GL_PIXEL_MAP_G_TO_G 0x0C77
  542. #define GL_PIXEL_MAP_B_TO_B 0x0C78
  543. #define GL_PIXEL_MAP_A_TO_A 0x0C79
  544. #define GL_PACK_ALIGNMENT 0x0D05
  545. #define GL_PACK_LSB_FIRST 0x0D01
  546. #define GL_PACK_ROW_LENGTH 0x0D02
  547. #define GL_PACK_SKIP_PIXELS 0x0D04
  548. #define GL_PACK_SKIP_ROWS 0x0D03
  549. #define GL_PACK_SWAP_BYTES 0x0D00
  550. #define GL_UNPACK_ALIGNMENT 0x0CF5
  551. #define GL_UNPACK_LSB_FIRST 0x0CF1
  552. #define GL_UNPACK_ROW_LENGTH 0x0CF2
  553. #define GL_UNPACK_SKIP_PIXELS 0x0CF4
  554. #define GL_UNPACK_SKIP_ROWS 0x0CF3
  555. #define GL_UNPACK_SWAP_BYTES 0x0CF0
  556. #define GL_ZOOM_X 0x0D16
  557. #define GL_ZOOM_Y 0x0D17
  558. /* Texture mapping */
  559. #define GL_TEXTURE_ENV 0x2300
  560. #define GL_TEXTURE_ENV_MODE 0x2200
  561. #define GL_TEXTURE_1D 0x0DE0
  562. #define GL_TEXTURE_2D 0x0DE1
  563. #define GL_TEXTURE_WRAP_S 0x2802
  564. #define GL_TEXTURE_WRAP_T 0x2803
  565. #define GL_TEXTURE_MAG_FILTER 0x2800
  566. #define GL_TEXTURE_MIN_FILTER 0x2801
  567. #define GL_TEXTURE_ENV_COLOR 0x2201
  568. #define GL_TEXTURE_GEN_S 0x0C60
  569. #define GL_TEXTURE_GEN_T 0x0C61
  570. #define GL_TEXTURE_GEN_MODE 0x2500
  571. #define GL_TEXTURE_BORDER_COLOR 0x1004
  572. #define GL_TEXTURE_WIDTH 0x1000
  573. #define GL_TEXTURE_HEIGHT 0x1001
  574. #define GL_TEXTURE_BORDER 0x1005
  575. #define GL_TEXTURE_COMPONENTS 0x1003
  576. #define GL_TEXTURE_RED_SIZE 0x805C
  577. #define GL_TEXTURE_GREEN_SIZE 0x805D
  578. #define GL_TEXTURE_BLUE_SIZE 0x805E
  579. #define GL_TEXTURE_ALPHA_SIZE 0x805F
  580. #define GL_TEXTURE_LUMINANCE_SIZE 0x8060
  581. #define GL_TEXTURE_INTENSITY_SIZE 0x8061
  582. #define GL_NEAREST_MIPMAP_NEAREST 0x2700
  583. #define GL_NEAREST_MIPMAP_LINEAR 0x2702
  584. #define GL_LINEAR_MIPMAP_NEAREST 0x2701
  585. #define GL_LINEAR_MIPMAP_LINEAR 0x2703
  586. #define GL_OBJECT_LINEAR 0x2401
  587. #define GL_OBJECT_PLANE 0x2501
  588. #define GL_EYE_LINEAR 0x2400
  589. #define GL_EYE_PLANE 0x2502
  590. #define GL_SPHERE_MAP 0x2402
  591. #define GL_DECAL 0x2101
  592. #define GL_MODULATE 0x2100
  593. #define GL_NEAREST 0x2600
  594. #define GL_REPEAT 0x2901
  595. #define GL_CLAMP 0x2900
  596. #define GL_S 0x2000
  597. #define GL_T 0x2001
  598. #define GL_R 0x2002
  599. #define GL_Q 0x2003
  600. #define GL_TEXTURE_GEN_R 0x0C62
  601. #define GL_TEXTURE_GEN_Q 0x0C63
  602. /* Utility */
  603. #define GL_VENDOR 0x1F00
  604. #define GL_RENDERER 0x1F01
  605. #define GL_VERSION 0x1F02
  606. #define GL_EXTENSIONS 0x1F03
  607. /* Errors */
  608. #define GL_NO_ERROR 0x0
  609. #define GL_INVALID_VALUE 0x0501
  610. #define GL_INVALID_ENUM 0x0500
  611. #define GL_INVALID_OPERATION 0x0502
  612. #define GL_STACK_OVERFLOW 0x0503
  613. #define GL_STACK_UNDERFLOW 0x0504
  614. #define GL_OUT_OF_MEMORY 0x0505
  615. /* glPush/PopAttrib bits */
  616. #define GL_CURRENT_BIT 0x00000001
  617. #define GL_POINT_BIT 0x00000002
  618. #define GL_LINE_BIT 0x00000004
  619. #define GL_POLYGON_BIT 0x00000008
  620. #define GL_POLYGON_STIPPLE_BIT 0x00000010
  621. #define GL_PIXEL_MODE_BIT 0x00000020
  622. #define GL_LIGHTING_BIT 0x00000040
  623. #define GL_FOG_BIT 0x00000080
  624. #define GL_DEPTH_BUFFER_BIT 0x00000100
  625. #define GL_ACCUM_BUFFER_BIT 0x00000200
  626. #define GL_STENCIL_BUFFER_BIT 0x00000400
  627. #define GL_VIEWPORT_BIT 0x00000800
  628. #define GL_TRANSFORM_BIT 0x00001000
  629. #define GL_ENABLE_BIT 0x00002000
  630. #define GL_COLOR_BUFFER_BIT 0x00004000
  631. #define GL_HINT_BIT 0x00008000
  632. #define GL_EVAL_BIT 0x00010000
  633. #define GL_LIST_BIT 0x00020000
  634. #define GL_TEXTURE_BIT 0x00040000
  635. #define GL_SCISSOR_BIT 0x00080000
  636. #define GL_ALL_ATTRIB_BITS 0x000FFFFF
  637. /* OpenGL 1.1 */
  638. #define GL_PROXY_TEXTURE_1D 0x8063
  639. #define GL_PROXY_TEXTURE_2D 0x8064
  640. #define GL_TEXTURE_PRIORITY 0x8066
  641. #define GL_TEXTURE_RESIDENT 0x8067
  642. #define GL_TEXTURE_BINDING_1D 0x8068
  643. #define GL_TEXTURE_BINDING_2D 0x8069
  644. #define GL_TEXTURE_INTERNAL_FORMAT 0x1003
  645. #define GL_ALPHA4 0x803B
  646. #define GL_ALPHA8 0x803C
  647. #define GL_ALPHA12 0x803D
  648. #define GL_ALPHA16 0x803E
  649. #define GL_LUMINANCE4 0x803F
  650. #define GL_LUMINANCE8 0x8040
  651. #define GL_LUMINANCE12 0x8041
  652. #define GL_LUMINANCE16 0x8042
  653. #define GL_LUMINANCE4_ALPHA4 0x8043
  654. #define GL_LUMINANCE6_ALPHA2 0x8044
  655. #define GL_LUMINANCE8_ALPHA8 0x8045
  656. #define GL_LUMINANCE12_ALPHA4 0x8046
  657. #define GL_LUMINANCE12_ALPHA12 0x8047
  658. #define GL_LUMINANCE16_ALPHA16 0x8048
  659. #define GL_INTENSITY 0x8049
  660. #define GL_INTENSITY4 0x804A
  661. #define GL_INTENSITY8 0x804B
  662. #define GL_INTENSITY12 0x804C
  663. #define GL_INTENSITY16 0x804D
  664. #define GL_R3_G3_B2 0x2A10
  665. #define GL_RGB4 0x804F
  666. #define GL_RGB5 0x8050
  667. #define GL_RGB8 0x8051
  668. #define GL_RGB10 0x8052
  669. #define GL_RGB12 0x8053
  670. #define GL_RGB16 0x8054
  671. #define GL_RGBA2 0x8055
  672. #define GL_RGBA4 0x8056
  673. #define GL_RGB5_A1 0x8057
  674. #define GL_RGBA8 0x8058
  675. #define GL_RGB10_A2 0x8059
  676. #define GL_RGBA12 0x805A
  677. #define GL_RGBA16 0x805B
  678. #define GL_CLIENT_PIXEL_STORE_BIT 0x00000001
  679. #define GL_CLIENT_VERTEX_ARRAY_BIT 0x00000002
  680. #define GL_ALL_CLIENT_ATTRIB_BITS 0xFFFFFFFF
  681. #define GL_CLIENT_ALL_ATTRIB_BITS 0xFFFFFFFF
  682. /* Under Windows, we do not define OpenGL 1.2 & 1.3 functionality, since
  683. it is treated as extensions (defined in glext.h) */
  684. #if !defined(__WIN32__)
  685. /* OpenGL 1.2 */
  686. #define GL_RESCALE_NORMAL 0x803A
  687. #define GL_CLAMP_TO_EDGE 0x812F
  688. #define GL_MAX_ELEMENTS_VERTICES 0x80E8
  689. #define GL_MAX_ELEMENTS_INDICES 0x80E9
  690. #define GL_BGR 0x80E0
  691. #define GL_BGRA 0x80E1
  692. #define GL_UNSIGNED_BYTE_3_3_2 0x8032
  693. #define GL_UNSIGNED_BYTE_2_3_3_REV 0x8362
  694. #define GL_UNSIGNED_SHORT_5_6_5 0x8363
  695. #define GL_UNSIGNED_SHORT_5_6_5_REV 0x8364
  696. #define GL_UNSIGNED_SHORT_4_4_4_4 0x8033
  697. #define GL_UNSIGNED_SHORT_4_4_4_4_REV 0x8365
  698. #define GL_UNSIGNED_SHORT_5_5_5_1 0x8034
  699. #define GL_UNSIGNED_SHORT_1_5_5_5_REV 0x8366
  700. #define GL_UNSIGNED_INT_8_8_8_8 0x8035
  701. #define GL_UNSIGNED_INT_8_8_8_8_REV 0x8367
  702. #define GL_UNSIGNED_INT_10_10_10_2 0x8036
  703. #define GL_UNSIGNED_INT_2_10_10_10_REV 0x8368
  704. #define GL_LIGHT_MODEL_COLOR_CONTROL 0x81F8
  705. #define GL_SINGLE_COLOR 0x81F9
  706. #define GL_SEPARATE_SPECULAR_COLOR 0x81FA
  707. #define GL_TEXTURE_MIN_LOD 0x813A
  708. #define GL_TEXTURE_MAX_LOD 0x813B
  709. #define GL_TEXTURE_BASE_LEVEL 0x813C
  710. #define GL_TEXTURE_MAX_LEVEL 0x813D
  711. #define GL_SMOOTH_POINT_SIZE_RANGE 0x0B12
  712. #define GL_SMOOTH_POINT_SIZE_GRANULARITY 0x0B13
  713. #define GL_SMOOTH_LINE_WIDTH_RANGE 0x0B22
  714. #define GL_SMOOTH_LINE_WIDTH_GRANULARITY 0x0B23
  715. #define GL_ALIASED_POINT_SIZE_RANGE 0x846D
  716. #define GL_ALIASED_LINE_WIDTH_RANGE 0x846E
  717. #define GL_PACK_SKIP_IMAGES 0x806B
  718. #define GL_PACK_IMAGE_HEIGHT 0x806C
  719. #define GL_UNPACK_SKIP_IMAGES 0x806D
  720. #define GL_UNPACK_IMAGE_HEIGHT 0x806E
  721. #define GL_TEXTURE_3D 0x806F
  722. #define GL_PROXY_TEXTURE_3D 0x8070
  723. #define GL_TEXTURE_DEPTH 0x8071
  724. #define GL_TEXTURE_WRAP_R 0x8072
  725. #define GL_MAX_3D_TEXTURE_SIZE 0x8073
  726. #define GL_TEXTURE_BINDING_3D 0x806A
  727. /* OpenGL 1.2 imaging subset */
  728. /* GL_EXT_color_table */
  729. #define GL_COLOR_TABLE 0x80D0
  730. #define GL_POST_CONVOLUTION_COLOR_TABLE 0x80D1
  731. #define GL_POST_COLOR_MATRIX_COLOR_TABLE 0x80D2
  732. #define GL_PROXY_COLOR_TABLE 0x80D3
  733. #define GL_PROXY_POST_CONVOLUTION_COLOR_TABLE 0x80D4
  734. #define GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE 0x80D5
  735. #define GL_COLOR_TABLE_SCALE 0x80D6
  736. #define GL_COLOR_TABLE_BIAS 0x80D7
  737. #define GL_COLOR_TABLE_FORMAT 0x80D8
  738. #define GL_COLOR_TABLE_WIDTH 0x80D9
  739. #define GL_COLOR_TABLE_RED_SIZE 0x80DA
  740. #define GL_COLOR_TABLE_GREEN_SIZE 0x80DB
  741. #define GL_COLOR_TABLE_BLUE_SIZE 0x80DC
  742. #define GL_COLOR_TABLE_ALPHA_SIZE 0x80DD
  743. #define GL_COLOR_TABLE_LUMINANCE_SIZE 0x80DE
  744. #define GL_COLOR_TABLE_INTENSITY_SIZE 0x80DF
  745. /* GL_EXT_convolution and GL_HP_convolution_border_modes */
  746. #define GL_CONVOLUTION_1D 0x8010
  747. #define GL_CONVOLUTION_2D 0x8011
  748. #define GL_SEPARABLE_2D 0x8012
  749. #define GL_CONVOLUTION_BORDER_MODE 0x8013
  750. #define GL_CONVOLUTION_FILTER_SCALE 0x8014
  751. #define GL_CONVOLUTION_FILTER_BIAS 0x8015
  752. #define GL_REDUCE 0x8016
  753. #define GL_CONVOLUTION_FORMAT 0x8017
  754. #define GL_CONVOLUTION_WIDTH 0x8018
  755. #define GL_CONVOLUTION_HEIGHT 0x8019
  756. #define GL_MAX_CONVOLUTION_WIDTH 0x801A
  757. #define GL_MAX_CONVOLUTION_HEIGHT 0x801B
  758. #define GL_POST_CONVOLUTION_RED_SCALE 0x801C
  759. #define GL_POST_CONVOLUTION_GREEN_SCALE 0x801D
  760. #define GL_POST_CONVOLUTION_BLUE_SCALE 0x801E
  761. #define GL_POST_CONVOLUTION_ALPHA_SCALE 0x801F
  762. #define GL_POST_CONVOLUTION_RED_BIAS 0x8020
  763. #define GL_POST_CONVOLUTION_GREEN_BIAS 0x8021
  764. #define GL_POST_CONVOLUTION_BLUE_BIAS 0x8022
  765. #define GL_POST_CONVOLUTION_ALPHA_BIAS 0x8023
  766. #define GL_CONSTANT_BORDER 0x8151
  767. #define GL_REPLICATE_BORDER 0x8153
  768. #define GL_CONVOLUTION_BORDER_COLOR 0x8154
  769. /* GL_SGI_color_matrix */
  770. #define GL_COLOR_MATRIX 0x80B1
  771. #define GL_COLOR_MATRIX_STACK_DEPTH 0x80B2
  772. #define GL_MAX_COLOR_MATRIX_STACK_DEPTH 0x80B3
  773. #define GL_POST_COLOR_MATRIX_RED_SCALE 0x80B4
  774. #define GL_POST_COLOR_MATRIX_GREEN_SCALE 0x80B5
  775. #define GL_POST_COLOR_MATRIX_BLUE_SCALE 0x80B6
  776. #define GL_POST_COLOR_MATRIX_ALPHA_SCALE 0x80B7
  777. #define GL_POST_COLOR_MATRIX_RED_BIAS 0x80B8
  778. #define GL_POST_COLOR_MATRIX_GREEN_BIAS 0x80B9
  779. #define GL_POST_COLOR_MATRIX_BLUE_BIAS 0x80BA
  780. #define GL_POST_COLOR_MATRIX_ALPHA_BIAS 0x80BB
  781. /* GL_EXT_histogram */
  782. #define GL_HISTOGRAM 0x8024
  783. #define GL_PROXY_HISTOGRAM 0x8025
  784. #define GL_HISTOGRAM_WIDTH 0x8026
  785. #define GL_HISTOGRAM_FORMAT 0x8027
  786. #define GL_HISTOGRAM_RED_SIZE 0x8028
  787. #define GL_HISTOGRAM_GREEN_SIZE 0x8029
  788. #define GL_HISTOGRAM_BLUE_SIZE 0x802A
  789. #define GL_HISTOGRAM_ALPHA_SIZE 0x802B
  790. #define GL_HISTOGRAM_LUMINANCE_SIZE 0x802C
  791. #define GL_HISTOGRAM_SINK 0x802D
  792. #define GL_MINMAX 0x802E
  793. #define GL_MINMAX_FORMAT 0x802F
  794. #define GL_MINMAX_SINK 0x8030
  795. #define GL_TABLE_TOO_LARGE 0x8031
  796. /* GL_EXT_blend_color, GL_EXT_blend_minmax */
  797. #define GL_BLEND_EQUATION 0x8009
  798. #define GL_MIN 0x8007
  799. #define GL_MAX 0x8008
  800. #define GL_FUNC_ADD 0x8006
  801. #define GL_FUNC_SUBTRACT 0x800A
  802. #define GL_FUNC_REVERSE_SUBTRACT 0x800B
  803. #define GL_BLEND_COLOR 0x8005
  804. /* OpenGL 1.3 */
  805. /* multitexture */
  806. #define GL_TEXTURE0 0x84C0
  807. #define GL_TEXTURE1 0x84C1
  808. #define GL_TEXTURE2 0x84C2
  809. #define GL_TEXTURE3 0x84C3
  810. #define GL_TEXTURE4 0x84C4
  811. #define GL_TEXTURE5 0x84C5
  812. #define GL_TEXTURE6 0x84C6
  813. #define GL_TEXTURE7 0x84C7
  814. #define GL_TEXTURE8 0x84C8
  815. #define GL_TEXTURE9 0x84C9
  816. #define GL_TEXTURE10 0x84CA
  817. #define GL_TEXTURE11 0x84CB
  818. #define GL_TEXTURE12 0x84CC
  819. #define GL_TEXTURE13 0x84CD
  820. #define GL_TEXTURE14 0x84CE
  821. #define GL_TEXTURE15 0x84CF
  822. #define GL_TEXTURE16 0x84D0
  823. #define GL_TEXTURE17 0x84D1
  824. #define GL_TEXTURE18 0x84D2
  825. #define GL_TEXTURE19 0x84D3
  826. #define GL_TEXTURE20 0x84D4
  827. #define GL_TEXTURE21 0x84D5
  828. #define GL_TEXTURE22 0x84D6
  829. #define GL_TEXTURE23 0x84D7
  830. #define GL_TEXTURE24 0x84D8
  831. #define GL_TEXTURE25 0x84D9
  832. #define GL_TEXTURE26 0x84DA
  833. #define GL_TEXTURE27 0x84DB
  834. #define GL_TEXTURE28 0x84DC
  835. #define GL_TEXTURE29 0x84DD
  836. #define GL_TEXTURE30 0x84DE
  837. #define GL_TEXTURE31 0x84DF
  838. #define GL_ACTIVE_TEXTURE 0x84E0
  839. #define GL_CLIENT_ACTIVE_TEXTURE 0x84E1
  840. #define GL_MAX_TEXTURE_UNITS 0x84E2
  841. /* texture_cube_map */
  842. #define GL_NORMAL_MAP 0x8511
  843. #define GL_REFLECTION_MAP 0x8512
  844. #define GL_TEXTURE_CUBE_MAP 0x8513
  845. #define GL_TEXTURE_BINDING_CUBE_MAP 0x8514
  846. #define GL_TEXTURE_CUBE_MAP_POSITIVE_X 0x8515
  847. #define GL_TEXTURE_CUBE_MAP_NEGATIVE_X 0x8516
  848. #define GL_TEXTURE_CUBE_MAP_POSITIVE_Y 0x8517
  849. #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y 0x8518
  850. #define GL_TEXTURE_CUBE_MAP_POSITIVE_Z 0x8519
  851. #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z 0x851A
  852. #define GL_PROXY_TEXTURE_CUBE_MAP 0x851B
  853. #define GL_MAX_CUBE_MAP_TEXTURE_SIZE 0x851C
  854. /* texture_compression */
  855. #define GL_COMPRESSED_ALPHA 0x84E9
  856. #define GL_COMPRESSED_LUMINANCE 0x84EA
  857. #define GL_COMPRESSED_LUMINANCE_ALPHA 0x84EB
  858. #define GL_COMPRESSED_INTENSITY 0x84EC
  859. #define GL_COMPRESSED_RGB 0x84ED
  860. #define GL_COMPRESSED_RGBA 0x84EE
  861. #define GL_TEXTURE_COMPRESSION_HINT 0x84EF
  862. #define GL_TEXTURE_COMPRESSED_IMAGE_SIZE 0x86A0
  863. #define GL_TEXTURE_COMPRESSED 0x86A1
  864. #define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2
  865. #define GL_COMPRESSED_TEXTURE_FORMATS 0x86A3
  866. /* multisample */
  867. #define GL_MULTISAMPLE 0x809D
  868. #define GL_SAMPLE_ALPHA_TO_COVERAGE 0x809E
  869. #define GL_SAMPLE_ALPHA_TO_ONE 0x809F
  870. #define GL_SAMPLE_COVERAGE 0x80A0
  871. #define GL_SAMPLE_BUFFERS 0x80A8
  872. #define GL_SAMPLES 0x80A9
  873. #define GL_SAMPLE_COVERAGE_VALUE 0x80AA
  874. #define GL_SAMPLE_COVERAGE_INVERT 0x80AB
  875. #define GL_MULTISAMPLE_BIT 0x20000000
  876. /* transpose_matrix */
  877. #define GL_TRANSPOSE_MODELVIEW_MATRIX 0x84E3
  878. #define GL_TRANSPOSE_PROJECTION_MATRIX 0x84E4
  879. #define GL_TRANSPOSE_TEXTURE_MATRIX 0x84E5
  880. #define GL_TRANSPOSE_COLOR_MATRIX 0x84E6
  881. /* texture_env_combine */
  882. #define GL_COMBINE 0x8570
  883. #define GL_COMBINE_RGB 0x8571
  884. #define GL_COMBINE_ALPHA 0x8572
  885. #define GL_SOURCE0_RGB 0x8580
  886. #define GL_SOURCE1_RGB 0x8581
  887. #define GL_SOURCE2_RGB 0x8582
  888. #define GL_SOURCE0_ALPHA 0x8588
  889. #define GL_SOURCE1_ALPHA 0x8589
  890. #define GL_SOURCE2_ALPHA 0x858A
  891. #define GL_OPERAND0_RGB 0x8590
  892. #define GL_OPERAND1_RGB 0x8591
  893. #define GL_OPERAND2_RGB 0x8592
  894. #define GL_OPERAND0_ALPHA 0x8598
  895. #define GL_OPERAND1_ALPHA 0x8599
  896. #define GL_OPERAND2_ALPHA 0x859A
  897. #define GL_RGB_SCALE 0x8573
  898. #define GL_ADD_SIGNED 0x8574
  899. #define GL_INTERPOLATE 0x8575
  900. #define GL_SUBTRACT 0x84E7
  901. #define GL_CONSTANT 0x8576
  902. #define GL_PRIMARY_COLOR 0x8577
  903. #define GL_PREVIOUS 0x8578
  904. /* texture_env_dot3 */
  905. #define GL_DOT3_RGB 0x86AE
  906. #define GL_DOT3_RGBA 0x86AF
  907. /* texture_border_clamp */
  908. #define GL_CLAMP_TO_BORDER 0x812D
  909. #endif /* __WIN32__ */
  910. /************************************************************************
  911. *
  912. * Function prototypes
  913. *
  914. ************************************************************************/
  915. /* Miscellaneous */
  916. GLAPI void APIENTRY glClearIndex( GLfloat c );
  917. GLAPI void APIENTRY glClearColor( GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha );
  918. GLAPI void APIENTRY glClear( GLbitfield mask );
  919. GLAPI void APIENTRY glIndexMask( GLuint mask );
  920. GLAPI void APIENTRY glColorMask( GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha );
  921. GLAPI void APIENTRY glAlphaFunc( GLenum func, GLclampf ref );
  922. GLAPI void APIENTRY glBlendFunc( GLenum sfactor, GLenum dfactor );
  923. GLAPI void APIENTRY glLogicOp( GLenum opcode );
  924. GLAPI void APIENTRY glCullFace( GLenum mode );
  925. GLAPI void APIENTRY glFrontFace( GLenum mode );
  926. GLAPI void APIENTRY glPointSize( GLfloat size );
  927. GLAPI void APIENTRY glLineWidth( GLfloat width );
  928. GLAPI void APIENTRY glLineStipple( GLint factor, GLushort pattern );
  929. GLAPI void APIENTRY glPolygonMode( GLenum face, GLenum mode );
  930. GLAPI void APIENTRY glPolygonOffset( GLfloat factor, GLfloat units );
  931. GLAPI void APIENTRY glPolygonStipple( const GLubyte *mask );
  932. GLAPI void APIENTRY glGetPolygonStipple( GLubyte *mask );
  933. GLAPI void APIENTRY glEdgeFlag( GLboolean flag );
  934. GLAPI void APIENTRY glEdgeFlagv( const GLboolean *flag );
  935. GLAPI void APIENTRY glScissor( GLint x, GLint y, GLsizei width, GLsizei height);
  936. GLAPI void APIENTRY glClipPlane( GLenum plane, const GLdouble *equation );
  937. GLAPI void APIENTRY glGetClipPlane( GLenum plane, GLdouble *equation );
  938. GLAPI void APIENTRY glDrawBuffer( GLenum mode );
  939. GLAPI void APIENTRY glReadBuffer( GLenum mode );
  940. GLAPI void APIENTRY glEnable( GLenum cap );
  941. GLAPI void APIENTRY glDisable( GLenum cap );
  942. GLAPI GLboolean APIENTRY glIsEnabled( GLenum cap );
  943. GLAPI void APIENTRY glEnableClientState( GLenum cap ); /* 1.1 */
  944. GLAPI void APIENTRY glDisableClientState( GLenum cap ); /* 1.1 */
  945. GLAPI void APIENTRY glGetBooleanv( GLenum pname, GLboolean *params );
  946. GLAPI void APIENTRY glGetDoublev( GLenum pname, GLdouble *params );
  947. GLAPI void APIENTRY glGetFloatv( GLenum pname, GLfloat *params );
  948. GLAPI void APIENTRY glGetIntegerv( GLenum pname, GLint *params );
  949. GLAPI void APIENTRY glPushAttrib( GLbitfield mask );
  950. GLAPI void APIENTRY glPopAttrib( void );
  951. GLAPI void APIENTRY glPushClientAttrib( GLbitfield mask ); /* 1.1 */
  952. GLAPI void APIENTRY glPopClientAttrib( void ); /* 1.1 */
  953. GLAPI GLint APIENTRY glRenderMode( GLenum mode );
  954. GLAPI GLenum APIENTRY glGetError( void );
  955. GLAPI const GLubyte* APIENTRY glGetString( GLenum name );
  956. GLAPI void APIENTRY glFinish( void );
  957. GLAPI void APIENTRY glFlush( void );
  958. GLAPI void APIENTRY glHint( GLenum target, GLenum mode );
  959. /* Depth Buffer */
  960. GLAPI void APIENTRY glClearDepth( GLclampd depth );
  961. GLAPI void APIENTRY glDepthFunc( GLenum func );
  962. GLAPI void APIENTRY glDepthMask( GLboolean flag );
  963. GLAPI void APIENTRY glDepthRange( GLclampd near_val, GLclampd far_val );
  964. /* Accumulation Buffer */
  965. GLAPI void APIENTRY glClearAccum( GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha );
  966. GLAPI void APIENTRY glAccum( GLenum op, GLfloat value );
  967. /* Transformation */
  968. GLAPI void APIENTRY glMatrixMode( GLenum mode );
  969. GLAPI void APIENTRY glOrtho( GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble near_val, GLdouble far_val );
  970. GLAPI void APIENTRY glFrustum( GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble near_val, GLdouble far_val );
  971. GLAPI void APIENTRY glViewport( GLint x, GLint y, GLsizei width, GLsizei height );
  972. GLAPI void APIENTRY glPushMatrix( void );
  973. GLAPI void APIENTRY glPopMatrix( void );
  974. GLAPI void APIENTRY glLoadIdentity( void );
  975. GLAPI void APIENTRY glLoadMatrixd( const GLdouble *m );
  976. GLAPI void APIENTRY glLoadMatrixf( const GLfloat *m );
  977. GLAPI void APIENTRY glMultMatrixd( const GLdouble *m );
  978. GLAPI void APIENTRY glMultMatrixf( const GLfloat *m );
  979. GLAPI void APIENTRY glRotated( GLdouble angle, GLdouble x, GLdouble y, GLdouble z );
  980. GLAPI void APIENTRY glRotatef( GLfloat angle, GLfloat x, GLfloat y, GLfloat z );
  981. GLAPI void APIENTRY glScaled( GLdouble x, GLdouble y, GLdouble z );
  982. GLAPI void APIENTRY glScalef( GLfloat x, GLfloat y, GLfloat z );
  983. GLAPI void APIENTRY glTranslated( GLdouble x, GLdouble y, GLdouble z );
  984. GLAPI void APIENTRY glTranslatef( GLfloat x, GLfloat y, GLfloat z );
  985. /* Display Lists */
  986. GLAPI GLboolean APIENTRY glIsList( GLuint list );
  987. GLAPI void APIENTRY glDeleteLists( GLuint list, GLsizei range );
  988. GLAPI GLuint APIENTRY glGenLists( GLsizei range );
  989. GLAPI void APIENTRY glNewList( GLuint list, GLenum mode );
  990. GLAPI void APIENTRY glEndList( void );
  991. GLAPI void APIENTRY glCallList( GLuint list );
  992. GLAPI void APIENTRY glCallLists( GLsizei n, GLenum type, const GLvoid *lists );
  993. GLAPI void APIENTRY glListBase( GLuint base );
  994. /* Drawing Functions */
  995. GLAPI void APIENTRY glBegin( GLenum mode );
  996. GLAPI void APIENTRY glEnd( void );
  997. GLAPI void APIENTRY glVertex2d( GLdouble x, GLdouble y );
  998. GLAPI void APIENTRY glVertex2f( GLfloat x, GLfloat y );
  999. GLAPI void APIENTRY glVertex2i( GLint x, GLint y );
  1000. GLAPI void APIENTRY glVertex2s( GLshort x, GLshort y );
  1001. GLAPI void APIENTRY glVertex3d( GLdouble x, GLdouble y, GLdouble z );
  1002. GLAPI void APIENTRY glVertex3f( GLfloat x, GLfloat y, GLfloat z );
  1003. GLAPI void APIENTRY glVertex3i( GLint x, GLint y, GLint z );
  1004. GLAPI void APIENTRY glVertex3s( GLshort x, GLshort y, GLshort z );
  1005. GLAPI void APIENTRY glVertex4d( GLdouble x, GLdouble y, GLdouble z, GLdouble w );
  1006. GLAPI void APIENTRY glVertex4f( GLfloat x, GLfloat y, GLfloat z, GLfloat w );
  1007. GLAPI void APIENTRY glVertex4i( GLint x, GLint y, GLint z, GLint w );
  1008. GLAPI void APIENTRY glVertex4s( GLshort x, GLshort y, GLshort z, GLshort w );
  1009. GLAPI void APIENTRY glVertex2dv( const GLdouble *v );
  1010. GLAPI void APIENTRY glVertex2fv( const GLfloat *v );
  1011. GLAPI void APIENTRY glVertex2iv( const GLint *v );
  1012. GLAPI void APIENTRY glVertex2sv( const GLshort *v );
  1013. GLAPI void APIENTRY glVertex3dv( const GLdouble *v );
  1014. GLAPI void APIENTRY glVertex3fv( const GLfloat *v );
  1015. GLAPI void APIENTRY glVertex3iv( const GLint *v );
  1016. GLAPI void APIENTRY glVertex3sv( const GLshort *v );
  1017. GLAPI void APIENTRY glVertex4dv( const GLdouble *v );
  1018. GLAPI void APIENTRY glVertex4fv( const GLfloat *v );
  1019. GLAPI void APIENTRY glVertex4iv( const GLint *v );
  1020. GLAPI void APIENTRY glVertex4sv( const GLshort *v );
  1021. GLAPI void APIENTRY glNormal3b( GLbyte nx, GLbyte ny, GLbyte nz );
  1022. GLAPI void APIENTRY glNormal3d( GLdouble nx, GLdouble ny, GLdouble nz );
  1023. GLAPI void APIENTRY glNormal3f( GLfloat nx, GLfloat ny, GLfloat nz );
  1024. GLAPI void APIENTRY glNormal3i( GLint nx, GLint ny, GLint nz );
  1025. GLAPI void APIENTRY glNormal3s( GLshort nx, GLshort ny, GLshort nz );
  1026. GLAPI void APIENTRY glNormal3bv( const GLbyte *v );
  1027. GLAPI void APIENTRY glNormal3dv( const GLdouble *v );
  1028. GLAPI void APIENTRY glNormal3fv( const GLfloat *v );
  1029. GLAPI void APIENTRY glNormal3iv( const GLint *v );
  1030. GLAPI void APIENTRY glNormal3sv( const GLshort *v );
  1031. GLAPI void APIENTRY glIndexd( GLdouble c );
  1032. GLAPI void APIENTRY glIndexf( GLfloat c );
  1033. GLAPI void APIENTRY glIndexi( GLint c );
  1034. GLAPI void APIENTRY glIndexs( GLshort c );
  1035. GLAPI void APIENTRY glIndexub( GLubyte c ); /* 1.1 */
  1036. GLAPI void APIENTRY glIndexdv( const GLdouble *c );
  1037. GLAPI void APIENTRY glIndexfv( const GLfloat *c );
  1038. GLAPI void APIENTRY glIndexiv( const GLint *c );
  1039. GLAPI void APIENTRY glIndexsv( const GLshort *c );
  1040. GLAPI void APIENTRY glIndexubv( const GLubyte *c ); /* 1.1 */
  1041. GLAPI void APIENTRY glColor3b( GLbyte red, GLbyte green, GLbyte blue );
  1042. GLAPI void APIENTRY glColor3d( GLdouble red, GLdouble green, GLdouble blue );
  1043. GLAPI void APIENTRY glColor3f( GLfloat red, GLfloat green, GLfloat blue );
  1044. GLAPI void APIENTRY glColor3i( GLint red, GLint green, GLint blue );
  1045. GLAPI void APIENTRY glColor3s( GLshort red, GLshort green, GLshort blue );
  1046. GLAPI void APIENTRY glColor3ub( GLubyte red, GLubyte green, GLubyte blue );
  1047. GLAPI void APIENTRY glColor3ui( GLuint red, GLuint green, GLuint blue );
  1048. GLAPI void APIENTRY glColor3us( GLushort red, GLushort green, GLushort blue );
  1049. GLAPI void APIENTRY glColor4b( GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha );
  1050. GLAPI void APIENTRY glColor4d( GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha );
  1051. GLAPI void APIENTRY glColor4f( GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha );
  1052. GLAPI void APIENTRY glColor4i( GLint red, GLint green, GLint blue, GLint alpha );
  1053. GLAPI void APIENTRY glColor4s( GLshort red, GLshort green, GLshort blue, GLshort alpha );
  1054. GLAPI void APIENTRY glColor4ub( GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha );
  1055. GLAPI void APIENTRY glColor4ui( GLuint red, GLuint green, GLuint blue, GLuint alpha );
  1056. GLAPI void APIENTRY glColor4us( GLushort red, GLushort green, GLushort blue, GLushort alpha );
  1057. GLAPI void APIENTRY glColor3bv( const GLbyte *v );
  1058. GLAPI void APIENTRY glColor3dv( const GLdouble *v );
  1059. GLAPI void APIENTRY glColor3fv( const GLfloat *v );
  1060. GLAPI void APIENTRY glColor3iv( const GLint *v );
  1061. GLAPI void APIENTRY glColor3sv( const GLshort *v );
  1062. GLAPI void APIENTRY glColor3ubv( const GLubyte *v );
  1063. GLAPI void APIENTRY glColor3uiv( const GLuint *v );
  1064. GLAPI void APIENTRY glColor3usv( const GLushort *v );
  1065. GLAPI void APIENTRY glColor4bv( const GLbyte *v );
  1066. GLAPI void APIENTRY glColor4dv( const GLdouble *v );
  1067. GLAPI void APIENTRY glColor4fv( const GLfloat *v );
  1068. GLAPI void APIENTRY glColor4iv( const GLint *v );
  1069. GLAPI void APIENTRY glColor4sv( const GLshort *v );
  1070. GLAPI void APIENTRY glColor4ubv( const GLubyte *v );
  1071. GLAPI void APIENTRY glColor4uiv( const GLuint *v );
  1072. GLAPI void APIENTRY glColor4usv( const GLushort *v );
  1073. GLAPI void APIENTRY glTexCoord1d( GLdouble s );
  1074. GLAPI void APIENTRY glTexCoord1f( GLfloat s );
  1075. GLAPI void APIENTRY glTexCoord1i( GLint s );
  1076. GLAPI void APIENTRY glTexCoord1s( GLshort s );
  1077. GLAPI void APIENTRY glTexCoord2d( GLdouble s, GLdouble t );
  1078. GLAPI void APIENTRY glTexCoord2f( GLfloat s, GLfloat t );
  1079. GLAPI void APIENTRY glTexCoord2i( GLint s, GLint t );
  1080. GLAPI void APIENTRY glTexCoord2s( GLshort s, GLshort t );
  1081. GLAPI void APIENTRY glTexCoord3d( GLdouble s, GLdouble t, GLdouble r );
  1082. GLAPI void APIENTRY glTexCoord3f( GLfloat s, GLfloat t, GLfloat r );
  1083. GLAPI void APIENTRY glTexCoord3i( GLint s, GLint t, GLint r );
  1084. GLAPI void APIENTRY glTexCoord3s( GLshort s, GLshort t, GLshort r );
  1085. GLAPI void APIENTRY glTexCoord4d( GLdouble s, GLdouble t, GLdouble r, GLdouble q );
  1086. GLAPI void APIENTRY glTexCoord4f( GLfloat s, GLfloat t, GLfloat r, GLfloat q );
  1087. GLAPI void APIENTRY glTexCoord4i( GLint s, GLint t, GLint r, GLint q );
  1088. GLAPI void APIENTRY glTexCoord4s( GLshort s, GLshort t, GLshort r, GLshort q );
  1089. GLAPI void APIENTRY glTexCoord1dv( const GLdouble *v );
  1090. GLAPI void APIENTRY glTexCoord1fv( const GLfloat *v );
  1091. GLAPI void APIENTRY glTexCoord1iv( const GLint *v );
  1092. GLAPI void APIENTRY glTexCoord1sv( const GLshort *v );
  1093. GLAPI void APIENTRY glTexCoord2dv( const GLdouble *v );
  1094. GLAPI void APIENTRY glTexCoord2fv( const GLfloat *v );
  1095. GLAPI void APIENTRY glTexCoord2iv( const GLint *v );
  1096. GLAPI void APIENTRY glTexCoord2sv( const GLshort *v );
  1097. GLAPI void APIENTRY glTexCoord3dv( const GLdouble *v );
  1098. GLAPI void APIENTRY glTexCoord3fv( const GLfloat *v );
  1099. GLAPI void APIENTRY glTexCoord3iv( const GLint *v );
  1100. GLAPI void APIENTRY glTexCoord3sv( const GLshort *v );
  1101. GLAPI void APIENTRY glTexCoord4dv( const GLdouble *v );
  1102. GLAPI void APIENTRY glTexCoord4fv( const GLfloat *v );
  1103. GLAPI void APIENTRY glTexCoord4iv( const GLint *v );
  1104. GLAPI void APIENTRY glTexCoord4sv( const GLshort *v );
  1105. GLAPI void APIENTRY glRasterPos2d( GLdouble x, GLdouble y );
  1106. GLAPI void APIENTRY glRasterPos2f( GLfloat x, GLfloat y );
  1107. GLAPI void APIENTRY glRasterPos2i( GLint x, GLint y );
  1108. GLAPI void APIENTRY glRasterPos2s( GLshort x, GLshort y );
  1109. GLAPI void APIENTRY glRasterPos3d( GLdouble x, GLdouble y, GLdouble z );
  1110. GLAPI void APIENTRY glRasterPos3f( GLfloat x, GLfloat y, GLfloat z );
  1111. GLAPI void APIENTRY glRasterPos3i( GLint x, GLint y, GLint z );
  1112. GLAPI void APIENTRY glRasterPos3s( GLshort x, GLshort y, GLshort z );
  1113. GLAPI void APIENTRY glRasterPos4d( GLdouble x, GLdouble y, GLdouble z, GLdouble w );
  1114. GLAPI void APIENTRY glRasterPos4f( GLfloat x, GLfloat y, GLfloat z, GLfloat w );
  1115. GLAPI void APIENTRY glRasterPos4i( GLint x, GLint y, GLint z, GLint w );
  1116. GLAPI void APIENTRY glRasterPos4s( GLshort x, GLshort y, GLshort z, GLshort w );
  1117. GLAPI void APIENTRY glRasterPos2dv( const GLdouble *v );
  1118. GLAPI void APIENTRY glRasterPos2fv( const GLfloat *v );
  1119. GLAPI void APIENTRY glRasterPos2iv( const GLint *v );
  1120. GLAPI void APIENTRY glRasterPos2sv( const GLshort *v );
  1121. GLAPI void APIENTRY glRasterPos3dv( const GLdouble *v );
  1122. GLAPI void APIENTRY glRasterPos3fv( const GLfloat *v );
  1123. GLAPI void APIENTRY glRasterPos3iv( const GLint *v );
  1124. GLAPI void APIENTRY glRasterPos3sv( const GLshort *v );
  1125. GLAPI void APIENTRY glRasterPos4dv( const GLdouble *v );
  1126. GLAPI void APIENTRY glRasterPos4fv( const GLfloat *v );
  1127. GLAPI void APIENTRY glRasterPos4iv( const GLint *v );
  1128. GLAPI void APIENTRY glRasterPos4sv( const GLshort *v );
  1129. GLAPI void APIENTRY glRectd( GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2 );
  1130. GLAPI void APIENTRY glRectf( GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2 );
  1131. GLAPI void APIENTRY glRecti( GLint x1, GLint y1, GLint x2, GLint y2 );
  1132. GLAPI void APIENTRY glRects( GLshort x1, GLshort y1, GLshort x2, GLshort y2 );
  1133. GLAPI void APIENTRY glRectdv( const GLdouble *v1, const GLdouble *v2 );
  1134. GLAPI void APIENTRY glRectfv( const GLfloat *v1, const GLfloat *v2 );
  1135. GLAPI void APIENTRY glRectiv( const GLint *v1, const GLint *v2 );
  1136. GLAPI void APIENTRY glRectsv( const GLshort *v1, const GLshort *v2 );
  1137. /* Lighting */
  1138. GLAPI void APIENTRY glShadeModel( GLenum mode );
  1139. GLAPI void APIENTRY glLightf( GLenum light, GLenum pname, GLfloat param );
  1140. GLAPI void APIENTRY glLighti( GLenum light, GLenum pname, GLint param );
  1141. GLAPI void APIENTRY glLightfv( GLenum light, GLenum pname, const GLfloat *params );
  1142. GLAPI void APIENTRY glLightiv( GLenum light, GLenum pname, const GLint *params );
  1143. GLAPI void APIENTRY glGetLightfv( GLenum light, GLenum pname, GLfloat *params );
  1144. GLAPI void APIENTRY glGetLightiv( GLenum light, GLenum pname, GLint *params );
  1145. GLAPI void APIENTRY glLightModelf( GLenum pname, GLfloat param );
  1146. GLAPI void APIENTRY glLightModeli( GLenum pname, GLint param );
  1147. GLAPI void APIENTRY glLightModelfv( GLenum pname, const GLfloat *params );
  1148. GLAPI void APIENTRY glLightModeliv( GLenum pname, const GLint *params );
  1149. GLAPI void APIENTRY glMaterialf( GLenum face, GLenum pname, GLfloat param );
  1150. GLAPI void APIENTRY glMateriali( GLenum face, GLenum pname, GLint param );
  1151. GLAPI void APIENTRY glMaterialfv( GLenum face, GLenum pname, const GLfloat *params );
  1152. GLAPI void APIENTRY glMaterialiv( GLenum face, GLenum pname, const GLint *params );
  1153. GLAPI void APIENTRY glGetMaterialfv( GLenum face, GLenum pname, GLfloat *params );
  1154. GLAPI void APIENTRY glGetMaterialiv( GLenum face, GLenum pname, GLint *params );
  1155. GLAPI void APIENTRY glColorMaterial( GLenum face, GLenum mode );
  1156. /* Raster functions */
  1157. GLAPI void APIENTRY glPixelZoom( GLfloat xfactor, GLfloat yfactor );
  1158. GLAPI void APIENTRY glPixelStoref( GLenum pname, GLfloat param );
  1159. GLAPI void APIENTRY glPixelStorei( GLenum pname, GLint param );
  1160. GLAPI void APIENTRY glPixelTransferf( GLenum pname, GLfloat param );
  1161. GLAPI void APIENTRY glPixelTransferi( GLenum pname, GLint param );
  1162. GLAPI void APIENTRY glPixelMapfv( GLenum map, GLint mapsize, const GLfloat *values );
  1163. GLAPI void APIENTRY glPixelMapuiv( GLenum map, GLint mapsize, const GLuint *values );
  1164. GLAPI void APIENTRY glPixelMapusv( GLenum map, GLint mapsize, const GLushort *values );
  1165. GLAPI void APIENTRY glGetPixelMapfv( GLenum map, GLfloat *values );
  1166. GLAPI void APIENTRY glGetPixelMapuiv( GLenum map, GLuint *values );
  1167. GLAPI void APIENTRY glGetPixelMapusv( GLenum map, GLushort *values );
  1168. GLAPI void APIENTRY glBitmap( GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte *bitmap );
  1169. GLAPI void APIENTRY glReadPixels( GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels );
  1170. GLAPI void APIENTRY glDrawPixels( GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels );
  1171. GLAPI void APIENTRY glCopyPixels( GLint x, GLint y, GLsizei width, GLsizei height, GLenum type );
  1172. /* Stenciling */
  1173. GLAPI void APIENTRY glStencilFunc( GLenum func, GLint ref, GLuint mask );
  1174. GLAPI void APIENTRY glStencilMask( GLuint mask );
  1175. GLAPI void APIENTRY glStencilOp( GLenum fail, GLenum zfail, GLenum zpass );
  1176. GLAPI void APIENTRY glClearStencil( GLint s );
  1177. /* Texture mapping */
  1178. GLAPI void APIENTRY glTexGend( GLenum coord, GLenum pname, GLdouble param );
  1179. GLAPI void APIENTRY glTexGenf( GLenum coord, GLenum pname, GLfloat param );
  1180. GLAPI void APIENTRY glTexGeni( GLenum coord, GLenum pname, GLint param );
  1181. GLAPI void APIENTRY glTexGendv( GLenum coord, GLenum pname, const GLdouble *params );
  1182. GLAPI void APIENTRY glTexGenfv( GLenum coord, GLenum pname, const GLfloat *params );
  1183. GLAPI void APIENTRY glTexGeniv( GLenum coord, GLenum pname, const GLint *params );
  1184. GLAPI void APIENTRY glGetTexGendv( GLenum coord, GLenum pname, GLdouble *params );
  1185. GLAPI void APIENTRY glGetTexGenfv( GLenum coord, GLenum pname, GLfloat *params );
  1186. GLAPI void APIENTRY glGetTexGeniv( GLenum coord, GLenum pname, GLint *params );
  1187. GLAPI void APIENTRY glTexEnvf( GLenum target, GLenum pname, GLfloat param );
  1188. GLAPI void APIENTRY glTexEnvi( GLenum target, GLenum pname, GLint param );
  1189. GLAPI void APIENTRY glTexEnvfv( GLenum target, GLenum pname, const GLfloat *params );
  1190. GLAPI void APIENTRY glTexEnviv( GLenum target, GLenum pname, const GLint *params );
  1191. GLAPI void APIENTRY glGetTexEnvfv( GLenum target, GLenum pname, GLfloat *params );
  1192. GLAPI void APIENTRY glGetTexEnviv( GLenum target, GLenum pname, GLint *params );
  1193. GLAPI void APIENTRY glTexParameterf( GLenum target, GLenum pname, GLfloat param );
  1194. GLAPI void APIENTRY glTexParameteri( GLenum target, GLenum pname, GLint param );
  1195. GLAPI void APIENTRY glTexParameterfv( GLenum target, GLenum pname, const GLfloat *params );
  1196. GLAPI void APIENTRY glTexParameteriv( GLenum target, GLenum pname, const GLint *params );
  1197. GLAPI void APIENTRY glGetTexParameterfv( GLenum target, GLenum pname, GLfloat *params);
  1198. GLAPI void APIENTRY glGetTexParameteriv( GLenum target, GLenum pname, GLint *params );
  1199. GLAPI void APIENTRY glGetTexLevelParameterfv( GLenum target, GLint level, GLenum pname, GLfloat *params );
  1200. GLAPI void APIENTRY glGetTexLevelParameteriv( GLenum target, GLint level, GLenum pname, GLint *params );
  1201. GLAPI void APIENTRY glTexImage1D( GLenum target, GLint level, GLint internalFormat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels );
  1202. GLAPI void APIENTRY glTexImage2D( GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels );
  1203. GLAPI void APIENTRY glGetTexImage( GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels );
  1204. /* Evaluators */
  1205. GLAPI void APIENTRY glMap1d( GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points );
  1206. GLAPI void APIENTRY glMap1f( GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points );
  1207. GLAPI void APIENTRY glMap2d( GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points );
  1208. GLAPI void APIENTRY glMap2f( GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points );
  1209. GLAPI void APIENTRY glGetMapdv( GLenum target, GLenum query, GLdouble *v );
  1210. GLAPI void APIENTRY glGetMapfv( GLenum target, GLenum query, GLfloat *v );
  1211. GLAPI void APIENTRY glGetMapiv( GLenum target, GLenum query, GLint *v );
  1212. GLAPI void APIENTRY glEvalCoord1d( GLdouble u );
  1213. GLAPI void APIENTRY glEvalCoord1f( GLfloat u );
  1214. GLAPI void APIENTRY glEvalCoord1dv( const GLdouble *u );
  1215. GLAPI void APIENTRY glEvalCoord1fv( const GLfloat *u );
  1216. GLAPI void APIENTRY glEvalCoord2d( GLdouble u, GLdouble v );
  1217. GLAPI void APIENTRY glEvalCoord2f( GLfloat u, GLfloat v );
  1218. GLAPI void APIENTRY glEvalCoord2dv( const GLdouble *u );
  1219. GLAPI void APIENTRY glEvalCoord2fv( const GLfloat *u );
  1220. GLAPI void APIENTRY glMapGrid1d( GLint un, GLdouble u1, GLdouble u2 );
  1221. GLAPI void APIENTRY glMapGrid1f( GLint un, GLfloat u1, GLfloat u2 );
  1222. GLAPI void APIENTRY glMapGrid2d( GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2 );
  1223. GLAPI void APIENTRY glMapGrid2f( GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2 );
  1224. GLAPI void APIENTRY glEvalPoint1( GLint i );
  1225. GLAPI void APIENTRY glEvalPoint2( GLint i, GLint j );
  1226. GLAPI void APIENTRY glEvalMesh1( GLenum mode, GLint i1, GLint i2 );
  1227. GLAPI void APIENTRY glEvalMesh2( GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2 );
  1228. /* Fog */
  1229. GLAPI void APIENTRY glFogf( GLenum pname, GLfloat param );
  1230. GLAPI void APIENTRY glFogi( GLenum pname, GLint param );
  1231. GLAPI void APIENTRY glFogfv( GLenum pname, const GLfloat *params );
  1232. GLAPI void APIENTRY glFogiv( GLenum pname, const GLint *params );
  1233. /* Selection and Feedback */
  1234. GLAPI void APIENTRY glFeedbackBuffer( GLsizei size, GLenum type, GLfloat *buffer );
  1235. GLAPI void APIENTRY glPassThrough( GLfloat token );
  1236. GLAPI void APIENTRY glSelectBuffer( GLsizei size, GLuint *buffer );
  1237. GLAPI void APIENTRY glInitNames( void );
  1238. GLAPI void APIENTRY glLoadName( GLuint name );
  1239. GLAPI void APIENTRY glPushName( GLuint name );
  1240. GLAPI void APIENTRY glPopName( void );
  1241. /* 1.1 functions */
  1242. /* texture objects */
  1243. GLAPI void APIENTRY glGenTextures( GLsizei n, GLuint *textures );
  1244. GLAPI void APIENTRY glDeleteTextures( GLsizei n, const GLuint *textures);
  1245. GLAPI void APIENTRY glBindTexture( GLenum target, GLuint texture );
  1246. GLAPI void APIENTRY glPrioritizeTextures( GLsizei n, const GLuint *textures, const GLclampf *priorities );
  1247. GLAPI GLboolean APIENTRY glAreTexturesResident( GLsizei n, const GLuint *textures, GLboolean *residences );
  1248. GLAPI GLboolean APIENTRY glIsTexture( GLuint texture );
  1249. /* texture mapping */
  1250. GLAPI void APIENTRY glTexSubImage1D( GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels );
  1251. GLAPI void APIENTRY glTexSubImage2D( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels );
  1252. GLAPI void APIENTRY glCopyTexImage1D( GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border );
  1253. GLAPI void APIENTRY glCopyTexImage2D( GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border );
  1254. GLAPI void APIENTRY glCopyTexSubImage1D( GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width );
  1255. GLAPI void APIENTRY glCopyTexSubImage2D( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height );
  1256. /* vertex arrays */
  1257. GLAPI void APIENTRY glVertexPointer( GLint size, GLenum type, GLsizei stride, const GLvoid *ptr );
  1258. GLAPI void APIENTRY glNormalPointer( GLenum type, GLsizei stride, const GLvoid *ptr );
  1259. GLAPI void APIENTRY glColorPointer( GLint size, GLenum type, GLsizei stride, const GLvoid *ptr );
  1260. GLAPI void APIENTRY glIndexPointer( GLenum type, GLsizei stride, const GLvoid *ptr );
  1261. GLAPI void APIENTRY glTexCoordPointer( GLint size, GLenum type, GLsizei stride, const GLvoid *ptr );
  1262. GLAPI void APIENTRY glEdgeFlagPointer( GLsizei stride, const GLvoid *ptr );
  1263. GLAPI void APIENTRY glGetPointerv( GLenum pname, GLvoid **params );
  1264. GLAPI void APIENTRY glArrayElement( GLint i );
  1265. GLAPI void APIENTRY glDrawArrays( GLenum mode, GLint first, GLsizei count );
  1266. GLAPI void APIENTRY glDrawElements( GLenum mode, GLsizei count, GLenum type, const GLvoid *indices );
  1267. GLAPI void APIENTRY glInterleavedArrays( GLenum format, GLsizei stride, const GLvoid *pointer );
  1268. /* Under Windows, we do not define OpenGL 1.2 & 1.3 functionality, since
  1269. it is treated as extensions (defined in glext.h) */
  1270. #if !defined(__WIN32__)
  1271. /* 1.2 functions */
  1272. GLAPI void APIENTRY glDrawRangeElements( GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices );
  1273. GLAPI void APIENTRY glTexImage3D( GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels );
  1274. GLAPI void APIENTRY glTexSubImage3D( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels);
  1275. GLAPI void APIENTRY glCopyTexSubImage3D( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height );
  1276. /* 1.2 imaging extension functions */
  1277. GLAPI void APIENTRY glColorTable( GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *table );
  1278. GLAPI void APIENTRY glColorSubTable( GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid *data );
  1279. GLAPI void APIENTRY glColorTableParameteriv(GLenum target, GLenum pname, const GLint *params);
  1280. GLAPI void APIENTRY glColorTableParameterfv(GLenum target, GLenum pname, const GLfloat *params);
  1281. GLAPI void APIENTRY glCopyColorSubTable( GLenum target, GLsizei start, GLint x, GLint y, GLsizei width );
  1282. GLAPI void APIENTRY glCopyColorTable( GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width );
  1283. GLAPI void APIENTRY glGetColorTable( GLenum target, GLenum format, GLenum type, GLvoid *table );
  1284. GLAPI void APIENTRY glGetColorTableParameterfv( GLenum target, GLenum pname, GLfloat *params );
  1285. GLAPI void APIENTRY glGetColorTableParameteriv( GLenum target, GLenum pname, GLint *params );
  1286. GLAPI void APIENTRY glBlendEquation( GLenum mode );
  1287. GLAPI void APIENTRY glBlendColor( GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha );
  1288. GLAPI void APIENTRY glHistogram( GLenum target, GLsizei width, GLenum internalformat, GLboolean sink );
  1289. GLAPI void APIENTRY glResetHistogram( GLenum target );
  1290. GLAPI void APIENTRY glGetHistogram( GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values );
  1291. GLAPI void APIENTRY glGetHistogramParameterfv( GLenum target, GLenum pname, GLfloat *params );
  1292. GLAPI void APIENTRY glGetHistogramParameteriv( GLenum target, GLenum pname, GLint *params );
  1293. GLAPI void APIENTRY glMinmax( GLenum target, GLenum internalformat, GLboolean sink );
  1294. GLAPI void APIENTRY glResetMinmax( GLenum target );
  1295. GLAPI void APIENTRY glGetMinmax( GLenum target, GLboolean reset, GLenum format, GLenum types, GLvoid *values );
  1296. GLAPI void APIENTRY glGetMinmaxParameterfv( GLenum target, GLenum pname, GLfloat *params );
  1297. GLAPI void APIENTRY glGetMinmaxParameteriv( GLenum target, GLenum pname, GLint *params );
  1298. GLAPI void APIENTRY glConvolutionFilter1D( GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *image );
  1299. GLAPI void APIENTRY glConvolutionFilter2D( GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *image );
  1300. GLAPI void APIENTRY glConvolutionParameterf( GLenum target, GLenum pname, GLfloat params );
  1301. GLAPI void APIENTRY glConvolutionParameterfv( GLenum target, GLenum pname, const GLfloat *params );
  1302. GLAPI void APIENTRY glConvolutionParameteri( GLenum target, GLenum pname, GLint params );
  1303. GLAPI void APIENTRY glConvolutionParameteriv( GLenum target, GLenum pname, const GLint *params );
  1304. GLAPI void APIENTRY glCopyConvolutionFilter1D( GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width );
  1305. GLAPI void APIENTRY glCopyConvolutionFilter2D( GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height);
  1306. GLAPI void APIENTRY glGetConvolutionFilter( GLenum target, GLenum format, GLenum type, GLvoid *image );
  1307. GLAPI void APIENTRY glGetConvolutionParameterfv( GLenum target, GLenum pname, GLfloat *params );
  1308. GLAPI void APIENTRY glGetConvolutionParameteriv( GLenum target, GLenum pname, GLint *params );
  1309. GLAPI void APIENTRY glSeparableFilter2D( GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *row, const GLvoid *column );
  1310. GLAPI void APIENTRY glGetSeparableFilter( GLenum target, GLenum format, GLenum type, GLvoid *row, GLvoid *column, GLvoid *span );
  1311. /* 1.3 functions */
  1312. GLAPI void APIENTRY glActiveTexture( GLenum texture );
  1313. GLAPI void APIENTRY glClientActiveTexture( GLenum texture );
  1314. GLAPI void APIENTRY glCompressedTexImage1D( GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data );
  1315. GLAPI void APIENTRY glCompressedTexImage2D( GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data );
  1316. GLAPI void APIENTRY glCompressedTexImage3D( GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data );
  1317. GLAPI void APIENTRY glCompressedTexSubImage1D( GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data );
  1318. GLAPI void APIENTRY glCompressedTexSubImage2D( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data );
  1319. GLAPI void APIENTRY glCompressedTexSubImage3D( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *data );
  1320. GLAPI void APIENTRY glGetCompressedTexImage( GLenum target, GLint lod, GLvoid *img );
  1321. GLAPI void APIENTRY glMultiTexCoord1d( GLenum target, GLdouble s );
  1322. GLAPI void APIENTRY glMultiTexCoord1dv( GLenum target, const GLdouble *v );
  1323. GLAPI void APIENTRY glMultiTexCoord1f( GLenum target, GLfloat s );
  1324. GLAPI void APIENTRY glMultiTexCoord1fv( GLenum target, const GLfloat *v );
  1325. GLAPI void APIENTRY glMultiTexCoord1i( GLenum target, GLint s );
  1326. GLAPI void APIENTRY glMultiTexCoord1iv( GLenum target, const GLint *v );
  1327. GLAPI void APIENTRY glMultiTexCoord1s( GLenum target, GLshort s );
  1328. GLAPI void APIENTRY glMultiTexCoord1sv( GLenum target, const GLshort *v );
  1329. GLAPI void APIENTRY glMultiTexCoord2d( GLenum target, GLdouble s, GLdouble t );
  1330. GLAPI void APIENTRY glMultiTexCoord2dv( GLenum target, const GLdouble *v );
  1331. GLAPI void APIENTRY glMultiTexCoord2f( GLenum target, GLfloat s, GLfloat t );
  1332. GLAPI void APIENTRY glMultiTexCoord2fv( GLenum target, const GLfloat *v );
  1333. GLAPI void APIENTRY glMultiTexCoord2i( GLenum target, GLint s, GLint t );
  1334. GLAPI void APIENTRY glMultiTexCoord2iv( GLenum target, const GLint *v );
  1335. GLAPI void APIENTRY glMultiTexCoord2s( GLenum target, GLshort s, GLshort t );
  1336. GLAPI void APIENTRY glMultiTexCoord2sv( GLenum target, const GLshort *v );
  1337. GLAPI void APIENTRY glMultiTexCoord3d( GLenum target, GLdouble s, GLdouble t, GLdouble r );
  1338. GLAPI void APIENTRY glMultiTexCoord3dv( GLenum target, const GLdouble *v );
  1339. GLAPI void APIENTRY glMultiTexCoord3f( GLenum target, GLfloat s, GLfloat t, GLfloat r );
  1340. GLAPI void APIENTRY glMultiTexCoord3fv( GLenum target, const GLfloat *v );
  1341. GLAPI void APIENTRY glMultiTexCoord3i( GLenum target, GLint s, GLint t, GLint r );
  1342. GLAPI void APIENTRY glMultiTexCoord3iv( GLenum target, const GLint *v );
  1343. GLAPI void APIENTRY glMultiTexCoord3s( GLenum target, GLshort s, GLshort t, GLshort r );
  1344. GLAPI void APIENTRY glMultiTexCoord3sv( GLenum target, const GLshort *v );
  1345. GLAPI void APIENTRY glMultiTexCoord4d( GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q );
  1346. GLAPI void APIENTRY glMultiTexCoord4dv( GLenum target, const GLdouble *v );
  1347. GLAPI void APIENTRY glMultiTexCoord4f( GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q );
  1348. GLAPI void APIENTRY glMultiTexCoord4fv( GLenum target, const GLfloat *v );
  1349. GLAPI void APIENTRY glMultiTexCoord4i( GLenum target, GLint s, GLint t, GLint r, GLint q );
  1350. GLAPI void APIENTRY glMultiTexCoord4iv( GLenum target, const GLint *v );
  1351. GLAPI void APIENTRY glMultiTexCoord4s( GLenum target, GLshort s, GLshort t, GLshort r, GLshort q );
  1352. GLAPI void APIENTRY glMultiTexCoord4sv( GLenum target, const GLshort *v );
  1353. GLAPI void APIENTRY glLoadTransposeMatrixd( const GLdouble m[16] );
  1354. GLAPI void APIENTRY glLoadTransposeMatrixf( const GLfloat m[16] );
  1355. GLAPI void APIENTRY glMultTransposeMatrixd( const GLdouble m[16] );
  1356. GLAPI void APIENTRY glMultTransposeMatrixf( const GLfloat m[16] );
  1357. GLAPI void APIENTRY glSampleCoverage( GLclampf value, GLboolean invert );
  1358. GLAPI void APIENTRY glSamplePass( GLenum pass );
  1359. #endif /* __WIN32__ */
  1360. /* Include external definitions of OpenGL extensions */
  1361. /* Removed, see this bug report for reference:
  1362. * http://sourceforge.net/tracker/index.php?func=detail&aid=610178&group_id=2435&atid=102435
  1363. *
  1364. * #include <GL/glext.h>
  1365. */
  1366. /************************************************************************
  1367. * Begin system-specific stuff
  1368. */
  1369. /*
  1370. * End system-specific stuff
  1371. ************************************************************************/
  1372. #ifdef __cplusplus
  1373. }
  1374. #endif
  1375. #endif /* __gl_h_ */