AndroidGL2ES.h 56 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440
  1. //-----------------------------------------------------------------------------
  2. // Copyright (c) 2013 GarageGames, LLC
  3. //
  4. // Permission is hereby granted, free of charge, to any person obtaining a copy
  5. // of this software and associated documentation files (the "Software"), to
  6. // deal in the Software without restriction, including without limitation the
  7. // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
  8. // sell copies of the Software, and to permit persons to whom the Software is
  9. // furnished to do so, subject to the following conditions:
  10. //
  11. // The above copyright notice and this permission notice shall be included in
  12. // all copies or substantial portions of the Software.
  13. //
  14. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  15. // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  16. // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  17. // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  18. // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  19. // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
  20. // IN THE SOFTWARE.
  21. //-----------------------------------------------------------------------------
  22. //
  23. // AndroidGL2ES.h
  24. // TGE
  25. //
  26. // Created by Puap Puap on 7/31/08.
  27. // Copyright 2008 Pick Up And Play. All rights reserved.
  28. //
  29. #ifndef _GL2ES_H_
  30. #define _GL2ES_H_
  31. #include "platform/types.h"
  32. #include <GLES/gl.h>
  33. extern "C"
  34. {
  35. void AndroidGLPushMatrix();
  36. void AndroidGLPopMatrix();
  37. void AndroidGLMatrixMode( GLenum mode );
  38. }
  39. // help out the shallow matrix stacks...
  40. #define glPushMatrix AndroidGLPushMatrix
  41. #define glPopMatrix AndroidGLPopMatrix
  42. #define glMatrixMode AndroidGLMatrixMode
  43. class ColorI;
  44. // defines that need functional workarounds
  45. //
  46. //typedef unsigned int GLenum;
  47. //typedef unsigned char GLboolean;
  48. //typedef unsigned int GLbitfield;
  49. //typedef signed char GLbyte;
  50. //typedef short GLshort;
  51. //typedef int GLint;
  52. //typedef int GLsizei;
  53. //typedef unsigned char GLubyte;
  54. //typedef unsigned short GLushort;
  55. //typedef unsigned int GLuint;
  56. //typedef float GLfloat;
  57. //typedef float GLclampf;
  58. //typedef double GLdouble;
  59. //typedef double GLclampd;
  60. //typedef void GLvoid;
  61. //typedef int GLfixed;
  62. //typedef int GLclampx;
  63. //
  64. ///* AccumOp */
  65. //#define GL_ACCUM 0x0100
  66. //#define GL_LOAD 0x0101
  67. //#define GL_RETURN 0x0102
  68. //#define GL_MULT 0x0103
  69. //#define GL_ADD 0x0104
  70. //
  71. ///* AlphaFunction */
  72. //#define GL_NEVER 0x0200
  73. //#define GL_LESS 0x0201
  74. //#define GL_EQUAL 0x0202
  75. //#define GL_LEQUAL 0x0203
  76. //#define GL_GREATER 0x0204
  77. //#define GL_NOTEQUAL 0x0205
  78. //#define GL_GEQUAL 0x0206
  79. //#define GL_ALWAYS 0x0207
  80. //
  81. ///* AttribMask */
  82. //#define GL_CURRENT_BIT 0x00000001
  83. //#define GL_POINT_BIT 0x00000002
  84. //#define GL_LINE_BIT 0x00000004
  85. //#define GL_POLYGON_BIT 0x00000008
  86. //#define GL_POLYGON_STIPPLE_BIT 0x00000010
  87. //#define GL_PIXEL_MODE_BIT 0x00000020
  88. //#define GL_LIGHTING_BIT 0x00000040
  89. //#define GL_FOG_BIT 0x00000080
  90. //#define GL_DEPTH_BUFFER_BIT 0x00000100
  91. //#define GL_ACCUM_BUFFER_BIT 0x00000200
  92. //#define GL_STENCIL_BUFFER_BIT 0x00000400
  93. //#define GL_VIEWPORT_BIT 0x00000800
  94. //#define GL_TRANSFORM_BIT 0x00001000
  95. //#define GL_ENABLE_BIT 0x00002000
  96. //#define GL_COLOR_BUFFER_BIT 0x00004000
  97. //#define GL_HINT_BIT 0x00008000
  98. //#define GL_EVAL_BIT 0x00010000
  99. //#define GL_LIST_BIT 0x00020000
  100. //#define GL_TEXTURE_BIT 0x00040000
  101. //#define GL_SCISSOR_BIT 0x00080000
  102. //#define GL_ALL_ATTRIB_BITS 0x000fffff
  103. //
  104. ///* BeginMode */
  105. //#define GL_POINTS 0x0000
  106. //#define GL_LINES 0x0001
  107. //#define GL_LINE_LOOP 0x0002
  108. //#define GL_LINE_STRIP 0x0003
  109. //#define GL_TRIANGLES 0x0004
  110. //#define GL_TRIANGLE_STRIP 0x0005
  111. //#define GL_TRIANGLE_FAN 0x0006
  112. #define GL_QUADS 0x0007
  113. #define GL_QUAD_STRIP 0x0008
  114. #define GL_POLYGON 0x0009
  115. //
  116. ///* BlendingFactorDest */
  117. //#define GL_ZERO 0
  118. //#define GL_ONE 1
  119. //#define GL_SRC_COLOR 0x0300
  120. //#define GL_ONE_MINUS_SRC_COLOR 0x0301
  121. //#define GL_SRC_ALPHA 0x0302
  122. //#define GL_ONE_MINUS_SRC_ALPHA 0x0303
  123. //#define GL_DST_ALPHA 0x0304
  124. //#define GL_ONE_MINUS_DST_ALPHA 0x0305
  125. //
  126. ///* BlendingFactorSrc */
  127. ///* GL_ZERO */
  128. ///* GL_ONE */
  129. //#define GL_DST_COLOR 0x0306
  130. //#define GL_ONE_MINUS_DST_COLOR 0x0307
  131. //#define GL_SRC_ALPHA_SATURATE 0x0308
  132. ///* GL_SRC_ALPHA */
  133. ///* GL_ONE_MINUS_SRC_ALPHA */
  134. ///* GL_DST_ALPHA */
  135. ///* GL_ONE_MINUS_DST_ALPHA */
  136. //
  137. ///* Boolean */
  138. //#define GL_TRUE 1
  139. //#define GL_FALSE 0
  140. //
  141. ///* ClearBufferMask */
  142. ///* GL_COLOR_BUFFER_BIT */
  143. ///* GL_ACCUM_BUFFER_BIT */
  144. ///* GL_STENCIL_BUFFER_BIT */
  145. ///* GL_DEPTH_BUFFER_BIT */
  146. //
  147. ///* ClientArrayType */
  148. ///* GL_VERTEX_ARRAY */
  149. ///* GL_NORMAL_ARRAY */
  150. ///* GL_COLOR_ARRAY */
  151. ///* GL_INDEX_ARRAY */
  152. ///* GL_TEXTURE_COORD_ARRAY */
  153. ///* GL_EDGE_FLAG_ARRAY */
  154. //
  155. ///* ClipPlaneName */
  156. //#define GL_CLIP_PLANE0 0x3000
  157. //#define GL_CLIP_PLANE1 0x3001
  158. //#define GL_CLIP_PLANE2 0x3002
  159. //#define GL_CLIP_PLANE3 0x3003
  160. //#define GL_CLIP_PLANE4 0x3004
  161. //#define GL_CLIP_PLANE5 0x3005
  162. //
  163. ///* ColorMaterialFace */
  164. ///* GL_FRONT */
  165. ///* GL_BACK */
  166. ///* GL_FRONT_AND_BACK */
  167. //
  168. ///* ColorMaterialParameter */
  169. ///* GL_AMBIENT */
  170. ///* GL_DIFFUSE */
  171. ///* GL_SPECULAR */
  172. ///* GL_EMISSION */
  173. ///* GL_AMBIENT_AND_DIFFUSE */
  174. //
  175. ///* ColorPointerType */
  176. ///* GL_BYTE */
  177. ///* GL_UNSIGNED_BYTE */
  178. ///* GL_SHORT */
  179. ///* GL_UNSIGNED_SHORT */
  180. ///* GL_INT */
  181. ///* GL_UNSIGNED_INT */
  182. ///* GL_FLOAT */
  183. ///* GL_DOUBLE */
  184. //
  185. ///* CullFaceMode */
  186. ///* GL_FRONT */
  187. ///* GL_BACK */
  188. ///* GL_FRONT_AND_BACK */
  189. //
  190. ///* DataType */
  191. //#define GL_BYTE 0x1400
  192. //#define GL_UNSIGNED_BYTE 0x1401
  193. //#define GL_SHORT 0x1402
  194. //#define GL_UNSIGNED_SHORT 0x1403
  195. //#define GL_INT 0x1404
  196. #define GL_UNSIGNED_INT 0x1405
  197. //#define GL_FLOAT 0x1406
  198. //#define GL_2_BYTES 0x1407
  199. //#define GL_3_BYTES 0x1408
  200. //#define GL_4_BYTES 0x1409
  201. //#define GL_DOUBLE 0x140A
  202. //#define GL_FIXED 0x140C
  203. //
  204. ///* DepthFunction */
  205. ///* GL_NEVER */
  206. ///* GL_LESS */
  207. ///* GL_EQUAL */
  208. ///* GL_LEQUAL */
  209. ///* GL_GREATER */
  210. ///* GL_NOTEQUAL */
  211. ///* GL_GEQUAL */
  212. ///* GL_ALWAYS */
  213. //
  214. ///* DrawBufferMode */
  215. //#define GL_NONE 0
  216. //#define GL_FRONT_LEFT 0x0400
  217. //#define GL_FRONT_RIGHT 0x0401
  218. //#define GL_BACK_LEFT 0x0402
  219. //#define GL_BACK_RIGHT 0x0403
  220. //#define GL_FRONT 0x0404
  221. //#define GL_BACK 0x0405
  222. //#define GL_LEFT 0x0406
  223. //#define GL_RIGHT 0x0407
  224. //#define GL_FRONT_AND_BACK 0x0408
  225. //#define GL_AUX0 0x0409
  226. //#define GL_AUX1 0x040A
  227. //#define GL_AUX2 0x040B
  228. //#define GL_AUX3 0x040C
  229. //
  230. ///* Enable */
  231. ///* GL_FOG */
  232. ///* GL_LIGHTING */
  233. ///* GL_TEXTURE_1D */
  234. ///* GL_TEXTURE_2D */
  235. ///* GL_LINE_STIPPLE */
  236. ///* GL_POLYGON_STIPPLE */
  237. ///* GL_CULL_FACE */
  238. ///* GL_ALPHA_TEST */
  239. ///* GL_BLEND */
  240. ///* GL_INDEX_LOGIC_OP */
  241. ///* GL_COLOR_LOGIC_OP */
  242. ///* GL_DITHER */
  243. ///* GL_STENCIL_TEST */
  244. ///* GL_DEPTH_TEST */
  245. ///* GL_CLIP_PLANE0 */
  246. ///* GL_CLIP_PLANE1 */
  247. ///* GL_CLIP_PLANE2 */
  248. ///* GL_CLIP_PLANE3 */
  249. ///* GL_CLIP_PLANE4 */
  250. ///* GL_CLIP_PLANE5 */
  251. ///* GL_LIGHT0 */
  252. ///* GL_LIGHT1 */
  253. ///* GL_LIGHT2 */
  254. ///* GL_LIGHT3 */
  255. ///* GL_LIGHT4 */
  256. ///* GL_LIGHT5 */
  257. ///* GL_LIGHT6 */
  258. ///* GL_LIGHT7 */
  259. ///* GL_TEXTURE_GEN_S */
  260. ///* GL_TEXTURE_GEN_T */
  261. ///* GL_TEXTURE_GEN_R */
  262. ///* GL_TEXTURE_GEN_Q */
  263. ///* GL_MAP1_VERTEX_3 */
  264. ///* GL_MAP1_VERTEX_4 */
  265. ///* GL_MAP1_COLOR_4 */
  266. ///* GL_MAP1_INDEX */
  267. ///* GL_MAP1_NORMAL */
  268. ///* GL_MAP1_TEXTURE_COORD_1 */
  269. ///* GL_MAP1_TEXTURE_COORD_2 */
  270. ///* GL_MAP1_TEXTURE_COORD_3 */
  271. ///* GL_MAP1_TEXTURE_COORD_4 */
  272. ///* GL_MAP2_VERTEX_3 */
  273. ///* GL_MAP2_VERTEX_4 */
  274. ///* GL_MAP2_COLOR_4 */
  275. ///* GL_MAP2_INDEX */
  276. ///* GL_MAP2_NORMAL */
  277. ///* GL_MAP2_TEXTURE_COORD_1 */
  278. ///* GL_MAP2_TEXTURE_COORD_2 */
  279. ///* GL_MAP2_TEXTURE_COORD_3 */
  280. ///* GL_MAP2_TEXTURE_COORD_4 */
  281. ///* GL_POINT_SMOOTH */
  282. ///* GL_LINE_SMOOTH */
  283. ///* GL_POLYGON_SMOOTH */
  284. ///* GL_SCISSOR_TEST */
  285. ///* GL_COLOR_MATERIAL */
  286. ///* GL_NORMALIZE */
  287. ///* GL_AUTO_NORMAL */
  288. ///* GL_VERTEX_ARRAY */
  289. ///* GL_NORMAL_ARRAY */
  290. ///* GL_COLOR_ARRAY */
  291. ///* GL_INDEX_ARRAY */
  292. ///* GL_TEXTURE_COORD_ARRAY */
  293. ///* GL_EDGE_FLAG_ARRAY */
  294. ///* GL_POLYGON_OFFSET_POINT */
  295. ///* GL_POLYGON_OFFSET_LINE */
  296. ///* GL_POLYGON_OFFSET_FILL */
  297. //
  298. ///* ErrorCode */
  299. //#define GL_NO_ERROR 0
  300. //#define GL_INVALID_ENUM 0x0500
  301. //#define GL_INVALID_VALUE 0x0501
  302. //#define GL_INVALID_OPERATION 0x0502
  303. //#define GL_STACK_OVERFLOW 0x0503
  304. //#define GL_STACK_UNDERFLOW 0x0504
  305. //#define GL_OUT_OF_MEMORY 0x0505
  306. //
  307. ///* FeedBackMode */
  308. //#define GL_2D 0x0600
  309. //#define GL_3D 0x0601
  310. //#define GL_3D_COLOR 0x0602
  311. //#define GL_3D_COLOR_TEXTURE 0x0603
  312. //#define GL_4D_COLOR_TEXTURE 0x0604
  313. //
  314. ///* FeedBackToken */
  315. //#define GL_PASS_THROUGH_TOKEN 0x0700
  316. //#define GL_POINT_TOKEN 0x0701
  317. //#define GL_LINE_TOKEN 0x0702
  318. //#define GL_POLYGON_TOKEN 0x0703
  319. //#define GL_BITMAP_TOKEN 0x0704
  320. //#define GL_DRAW_PIXEL_TOKEN 0x0705
  321. //#define GL_COPY_PIXEL_TOKEN 0x0706
  322. //#define GL_LINE_RESET_TOKEN 0x0707
  323. //
  324. ///* FogMode */
  325. ///* GL_LINEAR */
  326. //#define GL_EXP 0x0800
  327. //#define GL_EXP2 0x0801
  328. //
  329. //
  330. ///* FogParameter */
  331. ///* GL_FOG_COLOR */
  332. ///* GL_FOG_DENSITY */
  333. ///* GL_FOG_END */
  334. ///* GL_FOG_INDEX */
  335. ///* GL_FOG_MODE */
  336. ///* GL_FOG_START */
  337. //
  338. #define GL_FOG_COORDINATE_SOURCE_EXT 0x8450
  339. #define GL_FOG_COORDINATE_EXT 0x8451
  340. #define GL_FRAGMENT_DEPTH_EXT 0x8452
  341. //#define GL_CURRENT_FOG_COORDINATE_EXT 0x8453
  342. //#define GL_FOG_COORDINATE_ARRAY_TYPE_EXT 0x8454
  343. //#define GL_FOG_COORDINATE_ARRAY_STRIDE_EXT 0x8455
  344. //#define GL_FOG_COORDINATE_ARRAY_POINTER_EXT 0x8456
  345. #define GL_FOG_COORDINATE_ARRAY_EXT 0x8457
  346. //
  347. ///* FrontFaceDirection */
  348. //#define GL_CW 0x0900
  349. //#define GL_CCW 0x0901
  350. //
  351. ///* GetMapTarget */
  352. //#define GL_COEFF 0x0A00
  353. //#define GL_ORDER 0x0A01
  354. //#define GL_DOMAIN 0x0A02
  355. //
  356. ///* GetPixelMap */
  357. ///* GL_PIXEL_MAP_I_TO_I */
  358. ///* GL_PIXEL_MAP_S_TO_S */
  359. ///* GL_PIXEL_MAP_I_TO_R */
  360. ///* GL_PIXEL_MAP_I_TO_G */
  361. ///* GL_PIXEL_MAP_I_TO_B */
  362. ///* GL_PIXEL_MAP_I_TO_A */
  363. ///* GL_PIXEL_MAP_R_TO_R */
  364. ///* GL_PIXEL_MAP_G_TO_G */
  365. ///* GL_PIXEL_MAP_B_TO_B */
  366. ///* GL_PIXEL_MAP_A_TO_A */
  367. //
  368. ///* GetPointerTarget */
  369. ///* GL_VERTEX_ARRAY_POINTER */
  370. ///* GL_NORMAL_ARRAY_POINTER */
  371. ///* GL_COLOR_ARRAY_POINTER */
  372. ///* GL_INDEX_ARRAY_POINTER */
  373. ///* GL_TEXTURE_COORD_ARRAY_POINTER */
  374. ///* GL_EDGE_FLAG_ARRAY_POINTER */
  375. //
  376. ///* GetTarget */
  377. //#define GL_CURRENT_COLOR 0x0B00
  378. //#define GL_CURRENT_INDEX 0x0B01
  379. //#define GL_CURRENT_NORMAL 0x0B02
  380. //#define GL_CURRENT_TEXTURE_COORDS 0x0B03
  381. //#define GL_CURRENT_RASTER_COLOR 0x0B04
  382. //#define GL_CURRENT_RASTER_INDEX 0x0B05
  383. //#define GL_CURRENT_RASTER_TEXTURE_COORDS 0x0B06
  384. //#define GL_CURRENT_RASTER_POSITION 0x0B07
  385. //#define GL_CURRENT_RASTER_POSITION_VALID 0x0B08
  386. //#define GL_CURRENT_RASTER_DISTANCE 0x0B09
  387. //#define GL_POINT_SMOOTH 0x0B10
  388. //#define GL_POINT_SIZE 0x0B11
  389. //#define GL_POINT_SIZE_RANGE 0x0B12
  390. //#define GL_POINT_SIZE_GRANULARITY 0x0B13
  391. //#define GL_LINE_SMOOTH 0x0B20
  392. //#define GL_LINE_WIDTH 0x0B21
  393. //#define GL_LINE_WIDTH_RANGE 0x0B22
  394. //#define GL_LINE_WIDTH_GRANULARITY 0x0B23
  395. //#define GL_LINE_STIPPLE 0x0B24
  396. //#define GL_LINE_STIPPLE_PATTERN 0x0B25
  397. //#define GL_LINE_STIPPLE_REPEAT 0x0B26
  398. //#define GL_LIST_MODE 0x0B30
  399. //#define GL_MAX_LIST_NESTING 0x0B31
  400. //#define GL_LIST_BASE 0x0B32
  401. //#define GL_LIST_INDEX 0x0B33
  402. #define GL_POLYGON_MODE 0x0B40
  403. //#define GL_POLYGON_SMOOTH 0x0B41
  404. //#define GL_POLYGON_STIPPLE 0x0B42
  405. //#define GL_EDGE_FLAG 0x0B43
  406. //#define GL_CULL_FACE 0x0B44
  407. //#define GL_CULL_FACE_MODE 0x0B45
  408. //#define GL_FRONT_FACE 0x0B46
  409. //#define GL_LIGHTING 0x0B50
  410. //#define GL_LIGHT_MODEL_LOCAL_VIEWER 0x0B51
  411. //#define GL_LIGHT_MODEL_TWO_SIDE 0x0B52
  412. //#define GL_LIGHT_MODEL_AMBIENT 0x0B53
  413. //#define GL_SHADE_MODEL 0x0B54
  414. //#define GL_COLOR_MATERIAL_FACE 0x0B55
  415. //#define GL_COLOR_MATERIAL_PARAMETER 0x0B56
  416. //#define GL_COLOR_MATERIAL 0x0B57
  417. //#define GL_FOG 0x0B60
  418. //#define GL_FOG_INDEX 0x0B61
  419. //#define GL_FOG_DENSITY 0x0B62
  420. //#define GL_FOG_START 0x0B63
  421. //#define GL_FOG_END 0x0B64
  422. //#define GL_FOG_MODE 0x0B65
  423. //#define GL_FOG_COLOR 0x0B66
  424. //#define GL_DEPTH_RANGE 0x0B70
  425. //#define GL_DEPTH_TEST 0x0B71
  426. //#define GL_DEPTH_WRITEMASK 0x0B72
  427. //#define GL_DEPTH_CLEAR_VALUE 0x0B73
  428. //#define GL_DEPTH_FUNC 0x0B74
  429. //#define GL_ACCUM_CLEAR_VALUE 0x0B80
  430. //#define GL_STENCIL_TEST 0x0B90
  431. //#define GL_STENCIL_CLEAR_VALUE 0x0B91
  432. //#define GL_STENCIL_FUNC 0x0B92
  433. //#define GL_STENCIL_VALUE_MASK 0x0B93
  434. //#define GL_STENCIL_FAIL 0x0B94
  435. //#define GL_STENCIL_PASS_DEPTH_FAIL 0x0B95
  436. //#define GL_STENCIL_PASS_DEPTH_PASS 0x0B96
  437. //#define GL_STENCIL_REF 0x0B97
  438. //#define GL_STENCIL_WRITEMASK 0x0B98
  439. //#define GL_MATRIX_MODE 0x0BA0
  440. //#define GL_NORMALIZE 0x0BA1
  441. //#define GL_VIEWPORT 0x0BA2
  442. //#define GL_MODELVIEW_STACK_DEPTH 0x0BA3
  443. //#define GL_PROJECTION_STACK_DEPTH 0x0BA4
  444. //#define GL_TEXTURE_STACK_DEPTH 0x0BA5
  445. //#define GL_MODELVIEW_MATRIX 0x0BA6
  446. //#define GL_PROJECTION_MATRIX 0x0BA7
  447. //#define GL_TEXTURE_MATRIX 0x0BA8
  448. //#define GL_ATTRIB_STACK_DEPTH 0x0BB0
  449. //#define GL_CLIENT_ATTRIB_STACK_DEPTH 0x0BB1
  450. //#define GL_ALPHA_TEST 0x0BC0
  451. //#define GL_ALPHA_TEST_FUNC 0x0BC1
  452. //#define GL_ALPHA_TEST_REF 0x0BC2
  453. //#define GL_DITHER 0x0BD0
  454. //#define GL_BLEND_DST 0x0BE0
  455. //#define GL_BLEND_SRC 0x0BE1
  456. //#define GL_BLEND 0x0BE2
  457. //#define GL_LOGIC_OP_MODE 0x0BF0
  458. //#define GL_INDEX_LOGIC_OP 0x0BF1
  459. //#define GL_COLOR_LOGIC_OP 0x0BF2
  460. //#define GL_AUX_BUFFERS 0x0C00
  461. //#define GL_DRAW_BUFFER 0x0C01
  462. //#define GL_READ_BUFFER 0x0C02
  463. //#define GL_SCISSOR_BOX 0x0C10
  464. //#define GL_SCISSOR_TEST 0x0C11
  465. //#define GL_INDEX_CLEAR_VALUE 0x0C20
  466. //#define GL_INDEX_WRITEMASK 0x0C21
  467. //#define GL_COLOR_CLEAR_VALUE 0x0C22
  468. //#define GL_COLOR_WRITEMASK 0x0C23
  469. //#define GL_INDEX_MODE 0x0C30
  470. //#define GL_RGBA_MODE 0x0C31
  471. //#define GL_DOUBLEBUFFER 0x0C32
  472. //#define GL_STEREO 0x0C33
  473. //#define GL_RENDER_MODE 0x0C40
  474. //#define GL_PERSPECTIVE_CORRECTION_HINT 0x0C50
  475. //#define GL_POINT_SMOOTH_HINT 0x0C51
  476. //#define GL_LINE_SMOOTH_HINT 0x0C52
  477. //#define GL_POLYGON_SMOOTH_HINT 0x0C53
  478. //#define GL_FOG_HINT 0x0C54
  479. #define GL_TEXTURE_GEN_S 0x0C60
  480. #define GL_TEXTURE_GEN_T 0x0C61
  481. //#define GL_TEXTURE_GEN_R 0x0C62
  482. //#define GL_TEXTURE_GEN_Q 0x0C63
  483. //#define GL_PIXEL_MAP_I_TO_I 0x0C70
  484. //#define GL_PIXEL_MAP_S_TO_S 0x0C71
  485. //#define GL_PIXEL_MAP_I_TO_R 0x0C72
  486. //#define GL_PIXEL_MAP_I_TO_G 0x0C73
  487. //#define GL_PIXEL_MAP_I_TO_B 0x0C74
  488. //#define GL_PIXEL_MAP_I_TO_A 0x0C75
  489. //#define GL_PIXEL_MAP_R_TO_R 0x0C76
  490. //#define GL_PIXEL_MAP_G_TO_G 0x0C77
  491. //#define GL_PIXEL_MAP_B_TO_B 0x0C78
  492. //#define GL_PIXEL_MAP_A_TO_A 0x0C79
  493. //#define GL_PIXEL_MAP_I_TO_I_SIZE 0x0CB0
  494. //#define GL_PIXEL_MAP_S_TO_S_SIZE 0x0CB1
  495. //#define GL_PIXEL_MAP_I_TO_R_SIZE 0x0CB2
  496. //#define GL_PIXEL_MAP_I_TO_G_SIZE 0x0CB3
  497. //#define GL_PIXEL_MAP_I_TO_B_SIZE 0x0CB4
  498. //#define GL_PIXEL_MAP_I_TO_A_SIZE 0x0CB5
  499. //#define GL_PIXEL_MAP_R_TO_R_SIZE 0x0CB6
  500. //#define GL_PIXEL_MAP_G_TO_G_SIZE 0x0CB7
  501. //#define GL_PIXEL_MAP_B_TO_B_SIZE 0x0CB8
  502. //#define GL_PIXEL_MAP_A_TO_A_SIZE 0x0CB9
  503. //#define GL_UNPACK_SWAP_BYTES 0x0CF0
  504. //#define GL_UNPACK_LSB_FIRST 0x0CF1
  505. //#define GL_UNPACK_ROW_LENGTH 0x0CF2
  506. //#define GL_UNPACK_SKIP_ROWS 0x0CF3
  507. //#define GL_UNPACK_SKIP_PIXELS 0x0CF4
  508. //#define GL_UNPACK_ALIGNMENT 0x0CF5
  509. //#define GL_PACK_SWAP_BYTES 0x0D00
  510. //#define GL_PACK_LSB_FIRST 0x0D01
  511. //#define GL_PACK_ROW_LENGTH 0x0D02
  512. //#define GL_PACK_SKIP_ROWS 0x0D03
  513. //#define GL_PACK_SKIP_PIXELS 0x0D04
  514. //#define GL_PACK_ALIGNMENT 0x0D05
  515. //#define GL_MAP_COLOR 0x0D10
  516. //#define GL_MAP_STENCIL 0x0D11
  517. //#define GL_INDEX_SHIFT 0x0D12
  518. //#define GL_INDEX_OFFSET 0x0D13
  519. //#define GL_RED_SCALE 0x0D14
  520. //#define GL_RED_BIAS 0x0D15
  521. //#define GL_ZOOM_X 0x0D16
  522. //#define GL_ZOOM_Y 0x0D17
  523. //#define GL_GREEN_SCALE 0x0D18
  524. //#define GL_GREEN_BIAS 0x0D19
  525. //#define GL_BLUE_SCALE 0x0D1A
  526. //#define GL_BLUE_BIAS 0x0D1B
  527. //#define GL_ALPHA_SCALE 0x0D1C
  528. //#define GL_ALPHA_BIAS 0x0D1D
  529. //#define GL_DEPTH_SCALE 0x0D1E
  530. //#define GL_DEPTH_BIAS 0x0D1F
  531. //#define GL_MAX_EVAL_ORDER 0x0D30
  532. //#define GL_MAX_LIGHTS 0x0D31
  533. //#define GL_MAX_CLIP_PLANES 0x0D32
  534. //#define GL_MAX_TEXTURE_SIZE 0x0D33
  535. //#define GL_MAX_PIXEL_MAP_TABLE 0x0D34
  536. //#define GL_MAX_ATTRIB_STACK_DEPTH 0x0D35
  537. //#define GL_MAX_MODELVIEW_STACK_DEPTH 0x0D36
  538. //#define GL_MAX_NAME_STACK_DEPTH 0x0D37
  539. //#define GL_MAX_PROJECTION_STACK_DEPTH 0x0D38
  540. //#define GL_MAX_TEXTURE_STACK_DEPTH 0x0D39
  541. //#define GL_MAX_VIEWPORT_DIMS 0x0D3A
  542. //#define GL_MAX_CLIENT_ATTRIB_STACK_DEPTH 0x0D3B
  543. //#define GL_SUBPIXEL_BITS 0x0D50
  544. //#define GL_INDEX_BITS 0x0D51
  545. //#define GL_RED_BITS 0x0D52
  546. //#define GL_GREEN_BITS 0x0D53
  547. //#define GL_BLUE_BITS 0x0D54
  548. //#define GL_ALPHA_BITS 0x0D55
  549. //#define GL_DEPTH_BITS 0x0D56
  550. //#define GL_STENCIL_BITS 0x0D57
  551. //#define GL_ACCUM_RED_BITS 0x0D58
  552. //#define GL_ACCUM_GREEN_BITS 0x0D59
  553. //#define GL_ACCUM_BLUE_BITS 0x0D5A
  554. //#define GL_ACCUM_ALPHA_BITS 0x0D5B
  555. //#define GL_NAME_STACK_DEPTH 0x0D70
  556. //#define GL_AUTO_NORMAL 0x0D80
  557. //#define GL_MAP1_COLOR_4 0x0D90
  558. //#define GL_MAP1_INDEX 0x0D91
  559. //#define GL_MAP1_NORMAL 0x0D92
  560. //#define GL_MAP1_TEXTURE_COORD_1 0x0D93
  561. //#define GL_MAP1_TEXTURE_COORD_2 0x0D94
  562. //#define GL_MAP1_TEXTURE_COORD_3 0x0D95
  563. //#define GL_MAP1_TEXTURE_COORD_4 0x0D96
  564. //#define GL_MAP1_VERTEX_3 0x0D97
  565. //#define GL_MAP1_VERTEX_4 0x0D98
  566. //#define GL_MAP2_COLOR_4 0x0DB0
  567. //#define GL_MAP2_INDEX 0x0DB1
  568. //#define GL_MAP2_NORMAL 0x0DB2
  569. //#define GL_MAP2_TEXTURE_COORD_1 0x0DB3
  570. //#define GL_MAP2_TEXTURE_COORD_2 0x0DB4
  571. //#define GL_MAP2_TEXTURE_COORD_3 0x0DB5
  572. //#define GL_MAP2_TEXTURE_COORD_4 0x0DB6
  573. //#define GL_MAP2_VERTEX_3 0x0DB7
  574. //#define GL_MAP2_VERTEX_4 0x0DB8
  575. //#define GL_MAP1_GRID_DOMAIN 0x0DD0
  576. //#define GL_MAP1_GRID_SEGMENTS 0x0DD1
  577. //#define GL_MAP2_GRID_DOMAIN 0x0DD2
  578. //#define GL_MAP2_GRID_SEGMENTS 0x0DD3
  579. //#define GL_TEXTURE_1D 0x0DE0
  580. //#define GL_TEXTURE_2D 0x0DE1
  581. //#define GL_FEEDBACK_BUFFER_POINTER 0x0DF0
  582. //#define GL_FEEDBACK_BUFFER_SIZE 0x0DF1
  583. //#define GL_FEEDBACK_BUFFER_TYPE 0x0DF2
  584. //#define GL_SELECTION_BUFFER_POINTER 0x0DF3
  585. //#define GL_SELECTION_BUFFER_SIZE 0x0DF4
  586. ///* GL_TEXTURE_BINDING_1D */
  587. ///* GL_TEXTURE_BINDING_2D */
  588. ///* GL_VERTEX_ARRAY */
  589. ///* GL_NORMAL_ARRAY */
  590. ///* GL_COLOR_ARRAY */
  591. ///* GL_INDEX_ARRAY */
  592. ///* GL_TEXTURE_COORD_ARRAY */
  593. ///* GL_EDGE_FLAG_ARRAY */
  594. ///* GL_VERTEX_ARRAY_SIZE */
  595. ///* GL_VERTEX_ARRAY_TYPE */
  596. ///* GL_VERTEX_ARRAY_STRIDE */
  597. ///* GL_NORMAL_ARRAY_TYPE */
  598. ///* GL_NORMAL_ARRAY_STRIDE */
  599. ///* GL_COLOR_ARRAY_SIZE */
  600. ///* GL_COLOR_ARRAY_TYPE */
  601. ///* GL_COLOR_ARRAY_STRIDE */
  602. ///* GL_INDEX_ARRAY_TYPE */
  603. ///* GL_INDEX_ARRAY_STRIDE */
  604. ///* GL_TEXTURE_COORD_ARRAY_SIZE */
  605. ///* GL_TEXTURE_COORD_ARRAY_TYPE */
  606. ///* GL_TEXTURE_COORD_ARRAY_STRIDE */
  607. ///* GL_EDGE_FLAG_ARRAY_STRIDE */
  608. ///* GL_POLYGON_OFFSET_FACTOR */
  609. ///* GL_POLYGON_OFFSET_UNITS */
  610. //
  611. ///* GetTextureParameter */
  612. ///* GL_TEXTURE_MAG_FILTER */
  613. ///* GL_TEXTURE_MIN_FILTER */
  614. ///* GL_TEXTURE_WRAP_S */
  615. ///* GL_TEXTURE_WRAP_T */
  616. //#define GL_TEXTURE_WIDTH 0x1000
  617. //#define GL_TEXTURE_HEIGHT 0x1001
  618. //#define GL_TEXTURE_INTERNAL_FORMAT 0x1003
  619. #define GL_TEXTURE_BORDER_COLOR 0x1004
  620. //#define GL_TEXTURE_BORDER 0x1005
  621. ///* GL_TEXTURE_RED_SIZE */
  622. ///* GL_TEXTURE_GREEN_SIZE */
  623. ///* GL_TEXTURE_BLUE_SIZE */
  624. ///* GL_TEXTURE_ALPHA_SIZE */
  625. ///* GL_TEXTURE_LUMINANCE_SIZE */
  626. ///* GL_TEXTURE_INTENSITY_SIZE */
  627. ///* GL_TEXTURE_PRIORITY */
  628. ///* GL_TEXTURE_RESIDENT */
  629. //
  630. ///* HintMode */
  631. //#define GL_DONT_CARE 0x1100
  632. //#define GL_FASTEST 0x1101
  633. //#define GL_NICEST 0x1102
  634. //
  635. ///* HintTarget */
  636. ///* GL_PERSPECTIVE_CORRECTION_HINT */
  637. ///* GL_POINT_SMOOTH_HINT */
  638. ///* GL_LINE_SMOOTH_HINT */
  639. ///* GL_POLYGON_SMOOTH_HINT */
  640. ///* GL_FOG_HINT */
  641. ///* GL_PHONG_HINT */
  642. //
  643. ///* IndexPointerType */
  644. ///* GL_SHORT */
  645. ///* GL_INT */
  646. ///* GL_FLOAT */
  647. ///* GL_DOUBLE */
  648. //
  649. ///* LightModelParameter */
  650. ///* GL_LIGHT_MODEL_AMBIENT */
  651. ///* GL_LIGHT_MODEL_LOCAL_VIEWER */
  652. ///* GL_LIGHT_MODEL_TWO_SIDE */
  653. //
  654. ///* LightName */
  655. //#define GL_LIGHT0 0x4000
  656. //#define GL_LIGHT1 0x4001
  657. //#define GL_LIGHT2 0x4002
  658. //#define GL_LIGHT3 0x4003
  659. //#define GL_LIGHT4 0x4004
  660. //#define GL_LIGHT5 0x4005
  661. //#define GL_LIGHT6 0x4006
  662. //#define GL_LIGHT7 0x4007
  663. //
  664. ///* LightParameter */
  665. //#define GL_AMBIENT 0x1200
  666. //#define GL_DIFFUSE 0x1201
  667. //#define GL_SPECULAR 0x1202
  668. //#define GL_POSITION 0x1203
  669. //#define GL_SPOT_DIRECTION 0x1204
  670. //#define GL_SPOT_EXPONENT 0x1205
  671. //#define GL_SPOT_CUTOFF 0x1206
  672. //#define GL_CONSTANT_ATTENUATION 0x1207
  673. //#define GL_LINEAR_ATTENUATION 0x1208
  674. //#define GL_QUADRATIC_ATTENUATION 0x1209
  675. //
  676. ///* InterleavedArrays */
  677. ///* GL_V2F */
  678. ///* GL_V3F */
  679. ///* GL_C4UB_V2F */
  680. ///* GL_C4UB_V3F */
  681. ///* GL_C3F_V3F */
  682. ///* GL_N3F_V3F */
  683. ///* GL_C4F_N3F_V3F */
  684. ///* GL_T2F_V3F */
  685. ///* GL_T4F_V4F */
  686. ///* GL_T2F_C4UB_V3F */
  687. ///* GL_T2F_C3F_V3F */
  688. ///* GL_T2F_N3F_V3F */
  689. ///* GL_T2F_C4F_N3F_V3F */
  690. ///* GL_T4F_C4F_N3F_V4F */
  691. //
  692. ///* ListMode */
  693. //#define GL_COMPILE 0x1300
  694. //#define GL_COMPILE_AND_EXECUTE 0x1301
  695. //
  696. ///* ListNameType */
  697. ///* GL_BYTE */
  698. ///* GL_UNSIGNED_BYTE */
  699. ///* GL_SHORT */
  700. ///* GL_UNSIGNED_SHORT */
  701. ///* GL_INT */
  702. ///* GL_UNSIGNED_INT */
  703. ///* GL_FLOAT */
  704. ///* GL_2_BYTES */
  705. ///* GL_3_BYTES */
  706. ///* GL_4_BYTES */
  707. //
  708. ///* LogicOp */
  709. //#define GL_CLEAR 0x1500
  710. //#define GL_AND 0x1501
  711. //#define GL_AND_REVERSE 0x1502
  712. //#define GL_COPY 0x1503
  713. //#define GL_AND_INVERTED 0x1504
  714. //#define GL_NOOP 0x1505
  715. //#define GL_XOR 0x1506
  716. //#define GL_OR 0x1507
  717. //#define GL_NOR 0x1508
  718. //#define GL_EQUIV 0x1509
  719. //#define GL_INVERT 0x150A
  720. //#define GL_OR_REVERSE 0x150B
  721. //#define GL_COPY_INVERTED 0x150C
  722. //#define GL_OR_INVERTED 0x150D
  723. //#define GL_NAND 0x150E
  724. //#define GL_SET 0x150F
  725. //
  726. ///* MapTarget */
  727. ///* GL_MAP1_COLOR_4 */
  728. ///* GL_MAP1_INDEX */
  729. ///* GL_MAP1_NORMAL */
  730. ///* GL_MAP1_TEXTURE_COORD_1 */
  731. ///* GL_MAP1_TEXTURE_COORD_2 */
  732. ///* GL_MAP1_TEXTURE_COORD_3 */
  733. ///* GL_MAP1_TEXTURE_COORD_4 */
  734. ///* GL_MAP1_VERTEX_3 */
  735. ///* GL_MAP1_VERTEX_4 */
  736. ///* GL_MAP2_COLOR_4 */
  737. ///* GL_MAP2_INDEX */
  738. ///* GL_MAP2_NORMAL */
  739. ///* GL_MAP2_TEXTURE_COORD_1 */
  740. ///* GL_MAP2_TEXTURE_COORD_2 */
  741. ///* GL_MAP2_TEXTURE_COORD_3 */
  742. ///* GL_MAP2_TEXTURE_COORD_4 */
  743. ///* GL_MAP2_VERTEX_3 */
  744. ///* GL_MAP2_VERTEX_4 */
  745. //
  746. ///* MaterialFace */
  747. ///* GL_FRONT */
  748. ///* GL_BACK */
  749. ///* GL_FRONT_AND_BACK */
  750. //
  751. ///* MaterialParameter */
  752. //#define GL_EMISSION 0x1600
  753. //#define GL_SHININESS 0x1601
  754. //#define GL_AMBIENT_AND_DIFFUSE 0x1602
  755. //#define GL_COLOR_INDEXES 0x1603
  756. ///* GL_AMBIENT */
  757. ///* GL_DIFFUSE */
  758. ///* GL_SPECULAR */
  759. //
  760. ///* MatrixMode */
  761. //#define GL_MODELVIEW 0x1700
  762. //#define GL_PROJECTION 0x1701
  763. //#define GL_TEXTURE 0x1702
  764. //
  765. ///* MeshMode1 */
  766. ///* GL_POINT */
  767. ///* GL_LINE */
  768. //
  769. ///* MeshMode2 */
  770. ///* GL_POINT */
  771. ///* GL_LINE */
  772. ///* GL_FILL */
  773. //
  774. ///* NormalPointerType */
  775. ///* GL_BYTE */
  776. ///* GL_SHORT */
  777. ///* GL_INT */
  778. ///* GL_FLOAT */
  779. ///* GL_DOUBLE */
  780. //
  781. ///* PixelCopyType */
  782. //#define GL_COLOR 0x1800
  783. //#define GL_DEPTH 0x1801
  784. //#define GL_STENCIL 0x1802
  785. //
  786. ///* PixelFormat */
  787. #define GL_COLOR_INDEX 0x1900
  788. //#define GL_STENCIL_INDEX 0x1901
  789. //#define GL_DEPTH_COMPONENT 0x1902
  790. //#define GL_RED 0x1903
  791. //#define GL_GREEN 0x1904
  792. //#define GL_BLUE 0x1905
  793. //#define GL_ALPHA 0x1906
  794. //#define GL_RGB 0x1907
  795. //#define GL_RGBA 0x1908
  796. //#define GL_LUMINANCE 0x1909
  797. //#define GL_LUMINANCE_ALPHA 0x190A
  798. //#define GL_BGR 0x80E0
  799. //#define GL_BGRA 0x80E1
  800. //
  801. ///* PixelMap */
  802. ///* GL_PIXEL_MAP_I_TO_I */
  803. ///* GL_PIXEL_MAP_S_TO_S */
  804. ///* GL_PIXEL_MAP_I_TO_R */
  805. ///* GL_PIXEL_MAP_I_TO_G */
  806. ///* GL_PIXEL_MAP_I_TO_B */
  807. ///* GL_PIXEL_MAP_I_TO_A */
  808. ///* GL_PIXEL_MAP_R_TO_R */
  809. ///* GL_PIXEL_MAP_G_TO_G */
  810. ///* GL_PIXEL_MAP_B_TO_B */
  811. ///* GL_PIXEL_MAP_A_TO_A */
  812. //
  813. ///* PixelStore */
  814. ///* GL_UNPACK_SWAP_BYTES */
  815. ///* GL_UNPACK_LSB_FIRST */
  816. ///* GL_UNPACK_ROW_LENGTH */
  817. ///* GL_UNPACK_SKIP_ROWS */
  818. ///* GL_UNPACK_SKIP_PIXELS */
  819. ///* GL_UNPACK_ALIGNMENT */
  820. ///* GL_PACK_SWAP_BYTES */
  821. ///* GL_PACK_LSB_FIRST */
  822. ///* GL_PACK_ROW_LENGTH */
  823. ///* GL_PACK_SKIP_ROWS */
  824. ///* GL_PACK_SKIP_PIXELS */
  825. ///* GL_PACK_ALIGNMENT */
  826. //
  827. ///* PixelTransfer */
  828. ///* GL_MAP_COLOR */
  829. ///* GL_MAP_STENCIL */
  830. ///* GL_INDEX_SHIFT */
  831. ///* GL_INDEX_OFFSET */
  832. ///* GL_RED_SCALE */
  833. ///* GL_RED_BIAS */
  834. ///* GL_GREEN_SCALE */
  835. ///* GL_GREEN_BIAS */
  836. ///* GL_BLUE_SCALE */
  837. ///* GL_BLUE_BIAS */
  838. ///* GL_ALPHA_SCALE */
  839. ///* GL_ALPHA_BIAS */
  840. ///* GL_DEPTH_SCALE */
  841. ///* GL_DEPTH_BIAS */
  842. //
  843. ///* PixelType */
  844. //#define GL_BITMAP 0x1A00
  845. ///* GL_BYTE */
  846. ///* GL_UNSIGNED_BYTE */
  847. ///* GL_SHORT */
  848. ///* GL_UNSIGNED_SHORT */
  849. ///* GL_INT */
  850. ///* GL_UNSIGNED_INT */
  851. ///* GL_FLOAT */
  852. //
  853. ///* PolygonMode */
  854. //#define GL_POINT 0x1B00
  855. #define GL_LINE 0x1B01
  856. #define GL_FILL 0x1B02
  857. //
  858. ///* ReadBufferMode */
  859. ///* GL_FRONT_LEFT */
  860. ///* GL_FRONT_RIGHT */
  861. ///* GL_BACK_LEFT */
  862. ///* GL_BACK_RIGHT */
  863. ///* GL_FRONT */
  864. ///* GL_BACK */
  865. ///* GL_LEFT */
  866. ///* GL_RIGHT */
  867. ///* GL_AUX0 */
  868. ///* GL_AUX1 */
  869. ///* GL_AUX2 */
  870. ///* GL_AUX3 */
  871. //
  872. ///* RenderingMode */
  873. //#define GL_RENDER 0x1C00
  874. //#define GL_FEEDBACK 0x1C01
  875. //#define GL_SELECT 0x1C02
  876. //
  877. ///* ShadingModel */
  878. //#define GL_FLAT 0x1D00
  879. //#define GL_SMOOTH 0x1D01
  880. //
  881. //
  882. ///* StencilFunction */
  883. ///* GL_NEVER */
  884. ///* GL_LESS */
  885. ///* GL_EQUAL */
  886. ///* GL_LEQUAL */
  887. ///* GL_GREATER */
  888. ///* GL_NOTEQUAL */
  889. ///* GL_GEQUAL */
  890. ///* GL_ALWAYS */
  891. //
  892. ///* StencilOp */
  893. ///* GL_ZERO */
  894. //#define GL_KEEP 0x1E00
  895. //#define GL_REPLACE 0x1E01
  896. //#define GL_INCR 0x1E02
  897. //#define GL_DECR 0x1E03
  898. ///* GL_INVERT */
  899. //
  900. ///* StringName */
  901. //#define GL_VENDOR 0x1F00
  902. //#define GL_RENDERER 0x1F01
  903. //#define GL_VERSION 0x1F02
  904. //#define GL_EXTENSIONS 0x1F03
  905. //
  906. ///* TextureCoordName */
  907. #define GL_S 0x2000
  908. #define GL_T 0x2001
  909. //#define GL_R 0x2002
  910. //#define GL_Q 0x2003
  911. //
  912. ///* TexCoordPointerType */
  913. ///* GL_SHORT */
  914. ///* GL_INT */
  915. ///* GL_FLOAT */
  916. ///* GL_DOUBLE */
  917. //
  918. ///* TextureEnvMode */
  919. //#define GL_MODULATE 0x2100
  920. //#define GL_DECAL 0x2101
  921. ///* GL_BLEND */
  922. ///* GL_REPLACE */
  923. //
  924. ///* TextureEnvParameter */
  925. //#define GL_TEXTURE_ENV_MODE 0x2200
  926. //#define GL_TEXTURE_ENV_COLOR 0x2201
  927. //
  928. ///* TextureEnvTarget */
  929. //#define GL_TEXTURE_ENV 0x2300
  930. //
  931. ///* TextureGenMode */
  932. //#define GL_EYE_LINEAR 0x2400
  933. #define GL_OBJECT_LINEAR 0x2401
  934. #define GL_SPHERE_MAP 0x2402
  935. //
  936. ///* TextureGenParameter */
  937. #define GL_TEXTURE_GEN_MODE 0x2500
  938. #define GL_OBJECT_PLANE 0x2501
  939. //#define GL_EYE_PLANE 0x2502
  940. //
  941. ///* TextureMagFilter */
  942. //#define GL_NEAREST 0x2600
  943. //#define GL_LINEAR 0x2601
  944. //
  945. ///* TextureMinFilter */
  946. ///* GL_NEAREST */
  947. ///* GL_LINEAR */
  948. //#define GL_NEAREST_MIPMAP_NEAREST 0x2700
  949. //#define GL_LINEAR_MIPMAP_NEAREST 0x2701
  950. //#define GL_NEAREST_MIPMAP_LINEAR 0x2702
  951. //#define GL_LINEAR_MIPMAP_LINEAR 0x2703
  952. //
  953. ///* TextureParameterName */
  954. //#define GL_TEXTURE_MAG_FILTER 0x2800
  955. //#define GL_TEXTURE_MIN_FILTER 0x2801
  956. //#define GL_TEXTURE_WRAP_S 0x2802
  957. //#define GL_TEXTURE_WRAP_T 0x2803
  958. ///* GL_TEXTURE_BORDER_COLOR */
  959. ///* GL_TEXTURE_PRIORITY */
  960. //
  961. ///* TextureTarget */
  962. ///* GL_TEXTURE_1D */
  963. ///* GL_TEXTURE_2D */
  964. ///* GL_PROXY_TEXTURE_1D */
  965. ///* GL_PROXY_TEXTURE_2D */
  966. //
  967. ///* TextureWrapMode */
  968. #define GL_CLAMP 0x2900
  969. //#define GL_REPEAT 0x2901
  970. //
  971. //#define GL_TEXTURE0 0x84C0
  972. //#define GL_TEXTURE1 0x84C1
  973. //#define GL_TEXTURE2 0x84C2
  974. //#define GL_TEXTURE3 0x84C3
  975. //#define GL_TEXTURE4 0x84C4
  976. //#define GL_TEXTURE5 0x84C5
  977. //#define GL_TEXTURE6 0x84C6
  978. //#define GL_TEXTURE7 0x84C7
  979. //#define GL_TEXTURE8 0x84C8
  980. //#define GL_TEXTURE9 0x84C9
  981. //#define GL_TEXTURE10 0x84CA
  982. //#define GL_TEXTURE11 0x84CB
  983. //#define GL_TEXTURE12 0x84CC
  984. //#define GL_TEXTURE13 0x84CD
  985. //#define GL_TEXTURE14 0x84CE
  986. //#define GL_TEXTURE15 0x84CF
  987. //#define GL_TEXTURE16 0x84D0
  988. //#define GL_TEXTURE17 0x84D1
  989. //#define GL_TEXTURE18 0x84D2
  990. //#define GL_TEXTURE19 0x84D3
  991. //#define GL_TEXTURE20 0x84D4
  992. //#define GL_TEXTURE21 0x84D5
  993. //#define GL_TEXTURE22 0x84D6
  994. //#define GL_TEXTURE23 0x84D7
  995. //#define GL_TEXTURE24 0x84D8
  996. //#define GL_TEXTURE25 0x84D9
  997. //#define GL_TEXTURE26 0x84DA
  998. //#define GL_TEXTURE27 0x84DB
  999. //#define GL_TEXTURE28 0x84DC
  1000. //#define GL_TEXTURE29 0x84DD
  1001. //#define GL_TEXTURE30 0x84DE
  1002. //#define GL_TEXTURE31 0x84DF
  1003. //#define GL_ACTIVE_TEXTURE 0x84E0
  1004. //#define GL_CLIENT_ACTIVE_TEXTURE 0x84E1
  1005. //#define GL_MAX_TEXTURE_UNITS 0x84E2
  1006. //#define GL_TRANSPOSE_MODELVIEW_MATRIX 0x84E3
  1007. //#define GL_TRANSPOSE_PROJECTION_MATRIX 0x84E4
  1008. //#define GL_TRANSPOSE_TEXTURE_MATRIX 0x84E5
  1009. //#define GL_TRANSPOSE_COLOR_MATRIX 0x84E6
  1010. //#define GL_MULTISAMPLE 0x809D
  1011. //#define GL_SAMPLE_ALPHA_TO_COVERAGE 0x809E
  1012. //#define GL_SAMPLE_ALPHA_TO_ONE 0x809F
  1013. //#define GL_SAMPLE_COVERAGE 0x80A0
  1014. //#define GL_SAMPLE_BUFFERS 0x80A8
  1015. //#define GL_SAMPLES 0x80A9
  1016. //#define GL_SAMPLE_COVERAGE_VALUE 0x80AA
  1017. //#define GL_SAMPLE_COVERAGE_INVERT 0x80AB
  1018. //#define GL_MULTISAMPLE_BIT 0x20000000
  1019. //#define GL_NORMAL_MAP 0x8511
  1020. //#define GL_REFLECTION_MAP 0x8512
  1021. //#define GL_TEXTURE_CUBE_MAP 0x8513
  1022. //#define GL_TEXTURE_BINDING_CUBE_MAP 0x8514
  1023. //#define GL_TEXTURE_CUBE_MAP_POSITIVE_X 0x8515
  1024. //#define GL_TEXTURE_CUBE_MAP_NEGATIVE_X 0x8516
  1025. //#define GL_TEXTURE_CUBE_MAP_POSITIVE_Y 0x8517
  1026. //#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y 0x8518
  1027. //#define GL_TEXTURE_CUBE_MAP_POSITIVE_Z 0x8519
  1028. //#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z 0x851A
  1029. //#define GL_PROXY_TEXTURE_CUBE_MAP 0x851B
  1030. //#define GL_MAX_CUBE_MAP_TEXTURE_SIZE 0x851C
  1031. //#define GL_COMPRESSED_ALPHA 0x84E9
  1032. //#define GL_COMPRESSED_LUMINANCE 0x84EA
  1033. //#define GL_COMPRESSED_LUMINANCE_ALPHA 0x84EB
  1034. //#define GL_COMPRESSED_INTENSITY 0x84EC
  1035. //#define GL_COMPRESSED_RGB 0x84ED
  1036. //#define GL_COMPRESSED_RGBA 0x84EE
  1037. //#define GL_TEXTURE_COMPRESSION_HINT 0x84EF
  1038. //#define GL_TEXTURE_COMPRESSED_IMAGE_SIZE 0x86A0
  1039. //#define GL_TEXTURE_COMPRESSED 0x86A1
  1040. //#define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2
  1041. //#define GL_COMPRESSED_TEXTURE_FORMATS 0x86A3
  1042. //#define GL_CLAMP_TO_BORDER 0x812D
  1043. //#define GL_COMBINE 0x8570
  1044. //#define GL_COMBINE_RGB 0x8571
  1045. //#define GL_COMBINE_ALPHA 0x8572
  1046. #define GL_SOURCE0_RGB 0x8580
  1047. #define GL_SOURCE1_RGB 0x8581
  1048. #define GL_SOURCE2_RGB 0x8582
  1049. #define GL_SOURCE0_ALPHA 0x8588
  1050. #define GL_SOURCE1_ALPHA 0x8589
  1051. #define GL_SOURCE2_ALPHA 0x858A
  1052. //#define GL_OPERAND0_RGB 0x8590
  1053. //#define GL_OPERAND1_RGB 0x8591
  1054. //#define GL_OPERAND2_RGB 0x8592
  1055. //#define GL_OPERAND0_ALPHA 0x8598
  1056. //#define GL_OPERAND1_ALPHA 0x8599
  1057. //#define GL_OPERAND2_ALPHA 0x859A
  1058. //#define GL_RGB_SCALE 0x8573
  1059. //#define GL_ADD_SIGNED 0x8574
  1060. //#define GL_INTERPOLATE 0x8575
  1061. //#define GL_SUBTRACT 0x84E7
  1062. //#define GL_CONSTANT 0x8576
  1063. //#define GL_PRIMARY_COLOR 0x8577
  1064. //#define GL_PREVIOUS 0x8578
  1065. //#define GL_DOT3_RGB 0x86AE
  1066. //#define GL_DOT3_RGBA 0x86AF
  1067. //
  1068. ///* VertexPointerType */
  1069. ///* GL_SHORT */
  1070. ///* GL_INT */
  1071. ///* GL_FLOAT */
  1072. ///* GL_DOUBLE */
  1073. //
  1074. ///* ClientAttribMask */
  1075. //#define GL_CLIENT_PIXEL_STORE_BIT 0x00000001
  1076. //#define GL_CLIENT_VERTEX_ARRAY_BIT 0x00000002
  1077. //#define GL_CLIENT_ALL_ATTRIB_BITS 0xffffffff
  1078. //
  1079. ///* polygon_offset */
  1080. //#define GL_POLYGON_OFFSET_FACTOR 0x8038
  1081. //#define GL_POLYGON_OFFSET_UNITS 0x2A00
  1082. //#define GL_POLYGON_OFFSET_POINT 0x2A01
  1083. //#define GL_POLYGON_OFFSET_LINE 0x2A02
  1084. //#define GL_POLYGON_OFFSET_FILL 0x8037
  1085. //
  1086. ///* texture */
  1087. //#define GL_ALPHA4 0x803B
  1088. //#define GL_ALPHA8 0x803C
  1089. //#define GL_ALPHA12 0x803D
  1090. //#define GL_ALPHA16 0x803E
  1091. //#define GL_LUMINANCE4 0x803F
  1092. //#define GL_LUMINANCE8 0x8040
  1093. //#define GL_LUMINANCE12 0x8041
  1094. //#define GL_LUMINANCE16 0x8042
  1095. //#define GL_LUMINANCE4_ALPHA4 0x8043
  1096. //#define GL_LUMINANCE6_ALPHA2 0x8044
  1097. //#define GL_LUMINANCE8_ALPHA8 0x8045
  1098. //#define GL_LUMINANCE12_ALPHA4 0x8046
  1099. //#define GL_LUMINANCE12_ALPHA12 0x8047
  1100. //#define GL_LUMINANCE16_ALPHA16 0x8048
  1101. #define GL_INTENSITY 0x8049
  1102. //#define GL_INTENSITY4 0x804A
  1103. //#define GL_INTENSITY8 0x804B
  1104. //#define GL_INTENSITY12 0x804C
  1105. //#define GL_INTENSITY16 0x804D
  1106. //#define GL_R3_G3_B2 0x2A10
  1107. //#define GL_RGB4 0x804F
  1108. #define GL_RGB5 0x8050
  1109. #define GL_RGB8 0x8051
  1110. //#define GL_RGB10 0x8052
  1111. //#define GL_RGB12 0x8053
  1112. //#define GL_RGB16 0x8054
  1113. //#define GL_RGBA2 0x8055
  1114. #define GL_RGBA4 0x8056
  1115. #define GL_RGB5_A1 0x8057
  1116. #define GL_RGBA8 0x8058
  1117. //#define GL_RGB10_A2 0x8059
  1118. //#define GL_RGBA12 0x805A
  1119. //#define GL_RGBA16 0x805B
  1120. //#define GL_TEXTURE_RED_SIZE 0x805C
  1121. //#define GL_TEXTURE_GREEN_SIZE 0x805D
  1122. //#define GL_TEXTURE_BLUE_SIZE 0x805E
  1123. //#define GL_TEXTURE_ALPHA_SIZE 0x805F
  1124. //#define GL_TEXTURE_LUMINANCE_SIZE 0x8060
  1125. //#define GL_TEXTURE_INTENSITY_SIZE 0x8061
  1126. //#define GL_PROXY_TEXTURE_1D 0x8063
  1127. //#define GL_PROXY_TEXTURE_2D 0x8064
  1128. //
  1129. ///* texture_object */
  1130. //#define GL_TEXTURE_PRIORITY 0x8066
  1131. //#define GL_TEXTURE_RESIDENT 0x8067
  1132. //#define GL_TEXTURE_BINDING_1D 0x8068
  1133. //#define GL_TEXTURE_BINDING_2D 0x8069
  1134. //
  1135. ///* vertex_array */
  1136. //#define GL_VERTEX_ARRAY 0x8074
  1137. //#define GL_NORMAL_ARRAY 0x8075
  1138. //#define GL_COLOR_ARRAY 0x8076
  1139. //#define GL_INDEX_ARRAY 0x8077
  1140. //#define GL_TEXTURE_COORD_ARRAY 0x8078
  1141. //#define GL_EDGE_FLAG_ARRAY 0x8079
  1142. //#define GL_VERTEX_ARRAY_SIZE 0x807A
  1143. //#define GL_VERTEX_ARRAY_TYPE 0x807B
  1144. //#define GL_VERTEX_ARRAY_STRIDE 0x807C
  1145. //#define GL_NORMAL_ARRAY_TYPE 0x807E
  1146. //#define GL_NORMAL_ARRAY_STRIDE 0x807F
  1147. //#define GL_COLOR_ARRAY_SIZE 0x8081
  1148. //#define GL_COLOR_ARRAY_TYPE 0x8082
  1149. //#define GL_COLOR_ARRAY_STRIDE 0x8083
  1150. //#define GL_INDEX_ARRAY_TYPE 0x8085
  1151. //#define GL_INDEX_ARRAY_STRIDE 0x8086
  1152. //#define GL_TEXTURE_COORD_ARRAY_SIZE 0x8088
  1153. //#define GL_TEXTURE_COORD_ARRAY_TYPE 0x8089
  1154. //#define GL_TEXTURE_COORD_ARRAY_STRIDE 0x808A
  1155. //#define GL_EDGE_FLAG_ARRAY_STRIDE 0x808C
  1156. //#define GL_VERTEX_ARRAY_POINTER 0x808E
  1157. //#define GL_NORMAL_ARRAY_POINTER 0x808F
  1158. //#define GL_COLOR_ARRAY_POINTER 0x8090
  1159. //#define GL_INDEX_ARRAY_POINTER 0x8091
  1160. //#define GL_TEXTURE_COORD_ARRAY_POINTER 0x8092
  1161. //#define GL_EDGE_FLAG_ARRAY_POINTER 0x8093
  1162. //#define GL_V2F 0x2A20
  1163. //#define GL_V3F 0x2A21
  1164. //#define GL_C4UB_V2F 0x2A22
  1165. //#define GL_C4UB_V3F 0x2A23
  1166. //#define GL_C3F_V3F 0x2A24
  1167. //#define GL_N3F_V3F 0x2A25
  1168. //#define GL_C4F_N3F_V3F 0x2A26
  1169. //#define GL_T2F_V3F 0x2A27
  1170. //#define GL_T4F_V4F 0x2A28
  1171. //#define GL_T2F_C4UB_V3F 0x2A29
  1172. //#define GL_T2F_C3F_V3F 0x2A2A
  1173. //#define GL_T2F_N3F_V3F 0x2A2B
  1174. //#define GL_T2F_C4F_N3F_V3F 0x2A2C
  1175. //#define GL_T4F_C4F_N3F_V4F 0x2A2D
  1176. //
  1177. ///* Extensions */
  1178. //#define GL_EXT_vertex_array 1
  1179. //#define GL_EXT_bgra 1
  1180. //#define GL_EXT_paletted_texture 1
  1181. //#define GL_WIN_swap_hint 1
  1182. //#define GL_WIN_draw_range_elements 1
  1183. //// #define GL_WIN_phong_shading 1
  1184. //// #define GL_WIN_specular_fog 1
  1185. //
  1186. ///* EXT_vertex_array */
  1187. //#define GL_VERTEX_ARRAY_EXT 0x8074
  1188. //#define GL_NORMAL_ARRAY_EXT 0x8075
  1189. //#define GL_COLOR_ARRAY_EXT 0x8076
  1190. //#define GL_INDEX_ARRAY_EXT 0x8077
  1191. //#define GL_TEXTURE_COORD_ARRAY_EXT 0x8078
  1192. //#define GL_EDGE_FLAG_ARRAY_EXT 0x8079
  1193. //#define GL_VERTEX_ARRAY_SIZE_EXT 0x807A
  1194. //#define GL_VERTEX_ARRAY_TYPE_EXT 0x807B
  1195. //#define GL_VERTEX_ARRAY_STRIDE_EXT 0x807C
  1196. //#define GL_VERTEX_ARRAY_COUNT_EXT 0x807D
  1197. //#define GL_NORMAL_ARRAY_TYPE_EXT 0x807E
  1198. //#define GL_NORMAL_ARRAY_STRIDE_EXT 0x807F
  1199. //#define GL_NORMAL_ARRAY_COUNT_EXT 0x8080
  1200. //#define GL_COLOR_ARRAY_SIZE_EXT 0x8081
  1201. //#define GL_COLOR_ARRAY_TYPE_EXT 0x8082
  1202. //#define GL_COLOR_ARRAY_STRIDE_EXT 0x8083
  1203. //#define GL_COLOR_ARRAY_COUNT_EXT 0x8084
  1204. //#define GL_INDEX_ARRAY_TYPE_EXT 0x8085
  1205. //#define GL_INDEX_ARRAY_STRIDE_EXT 0x8086
  1206. //#define GL_INDEX_ARRAY_COUNT_EXT 0x8087
  1207. //#define GL_TEXTURE_COORD_ARRAY_SIZE_EXT 0x8088
  1208. //#define GL_TEXTURE_COORD_ARRAY_TYPE_EXT 0x8089
  1209. //#define GL_TEXTURE_COORD_ARRAY_STRIDE_EXT 0x808A
  1210. //#define GL_TEXTURE_COORD_ARRAY_COUNT_EXT 0x808B
  1211. //#define GL_EDGE_FLAG_ARRAY_STRIDE_EXT 0x808C
  1212. //#define GL_EDGE_FLAG_ARRAY_COUNT_EXT 0x808D
  1213. //#define GL_VERTEX_ARRAY_POINTER_EXT 0x808E
  1214. //#define GL_NORMAL_ARRAY_POINTER_EXT 0x808F
  1215. //#define GL_COLOR_ARRAY_POINTER_EXT 0x8090
  1216. //#define GL_INDEX_ARRAY_POINTER_EXT 0x8091
  1217. //#define GL_TEXTURE_COORD_ARRAY_POINTER_EXT 0x8092
  1218. //#define GL_EDGE_FLAG_ARRAY_POINTER_EXT 0x8093
  1219. //#define GL_DOUBLE_EXT GL_DOUBLE
  1220. //
  1221. ///* EXT_bgra */
  1222. //#define GL_BGR_EXT 0x80E0
  1223. #define GL_BGRA_EXT 0x80E1
  1224. //
  1225. ///* Extensions */
  1226. //#define GL_EXT_abgr 1
  1227. //#define GL_EXT_blend_color 1
  1228. //#define GL_EXT_blend_minmax 1
  1229. //#define GL_EXT_blend_subtract 1
  1230. //
  1231. ///* EXT_abgr */
  1232. //#define GL_ABGR_EXT 0x8000
  1233. //
  1234. ///* EXT_blend_color */
  1235. #define GL_CONSTANT_COLOR_EXT 0x8001
  1236. //#define GL_ONE_MINUS_CONSTANT_COLOR_EXT 0x8002
  1237. //#define GL_CONSTANT_ALPHA_EXT 0x8003
  1238. //#define GL_ONE_MINUS_CONSTANT_ALPHA_EXT 0x8004
  1239. #define GL_BLEND_COLOR_EXT 0x8005
  1240. //
  1241. ///* EXT_blend_minmax */
  1242. #define GL_FUNC_ADD_EXT 0x8006
  1243. //#define GL_MIN_EXT 0x8007
  1244. //#define GL_MAX_EXT 0x8008
  1245. //#define GL_BLEND_EQUATION_EXT 0x8009
  1246. //
  1247. ///* EXT_blend_subtract */
  1248. //#define GL_FUNC_SUBTRACT_EXT 0x800A
  1249. //#define GL_FUNC_REVERSE_SUBTRACT_EXT 0x800B
  1250. //
  1251. ///* EXT_paletted_texture */
  1252. //
  1253. ///* These must match the GL_COLOR_TABLE_*_SGI enumerants */
  1254. //#define GL_COLOR_TABLE_FORMAT_EXT 0x80D8
  1255. //#define GL_COLOR_TABLE_WIDTH_EXT 0x80D9
  1256. //#define GL_COLOR_TABLE_RED_SIZE_EXT 0x80DA
  1257. //#define GL_COLOR_TABLE_GREEN_SIZE_EXT 0x80DB
  1258. //#define GL_COLOR_TABLE_BLUE_SIZE_EXT 0x80DC
  1259. //#define GL_COLOR_TABLE_ALPHA_SIZE_EXT 0x80DD
  1260. //#define GL_COLOR_TABLE_LUMINANCE_SIZE_EXT 0x80DE
  1261. //#define GL_COLOR_TABLE_INTENSITY_SIZE_EXT 0x80DF
  1262. //
  1263. //#define GL_COLOR_INDEX1_EXT 0x80E2
  1264. //#define GL_COLOR_INDEX2_EXT 0x80E3
  1265. //#define GL_COLOR_INDEX4_EXT 0x80E4
  1266. #define GL_COLOR_INDEX8_EXT 0x80E5
  1267. //#define GL_COLOR_INDEX12_EXT 0x80E6
  1268. //#define GL_COLOR_INDEX16_EXT 0x80E7
  1269. //
  1270. ///* WIN_draw_range_elements */
  1271. //#define GL_MAX_ELEMENTS_VERTICES_WIN 0x80E8
  1272. //#define GL_MAX_ELEMENTS_INDICES_WIN 0x80E9
  1273. //
  1274. ///* WIN_phong_shading */
  1275. //#define GL_PHONG_WIN 0x80EA
  1276. //#define GL_PHONG_HINT_WIN 0x80EB
  1277. //
  1278. ///* WIN_specular_fog */
  1279. //#define GL_FOG_SPECULAR_TEXTURE_WIN 0x80EC
  1280. //
  1281. ///* For compatibility with OpenGL v1.0 */
  1282. //#define GL_LOGIC_OP GL_INDEX_LOGIC_OP
  1283. //#define GL_TEXTURE_COMPONENTS GL_TEXTURE_INTERNAL_FORMAT
  1284. //
  1285. //// Pi
  1286. //#ifndef M_PI
  1287. //#define M_PI 3.1415926f
  1288. //#endif
  1289. //
  1290. //#ifndef EGL_FALSE
  1291. //#define EGL_FALSE 0
  1292. //#endif
  1293. //
  1294. //#ifndef EGL_TRUE
  1295. //#define EGL_TRUE 1
  1296. //#endif
  1297. //
  1298. //#define EGL_DRAW 0x3059
  1299. //#define EGL_READ 0x305A
  1300. //
  1301. //typedef void * EGLDisplay;
  1302. //typedef void * EGLConfig;
  1303. //typedef void * EGLSurface;
  1304. //typedef void * EGLContext;
  1305. //
  1306. //typedef int EGLBoolean;
  1307. //typedef unsigned int EGLint;
  1308. //
  1309. //
  1310. //#define EGL_DEFAULT_DISPLAY ((NativeDisplayType)0)
  1311. //#define EGL_NO_CONTEXT ((EGLContext)0)
  1312. //#define EGL_NO_DISPLAY ((EGLDisplay)0)
  1313. //#define EGL_NO_SURFACE ((EGLSurface)0)
  1314. //
  1315. //typedef void* NativeDisplayType;
  1316. //typedef void* NativeWindowType;
  1317. //typedef void* NativePixmapType;
  1318. #define GL_TEXTURE0_ARB 0x84C0
  1319. #define GL_TEXTURE1_ARB 0x84C1
  1320. #define GL_TEXTURE2_ARB 0x84C2
  1321. #define GL_TEXTURE3_ARB 0x84C3
  1322. //#define GL_TEXTURE4_ARB 0x84C4
  1323. //#define GL_TEXTURE5_ARB 0x84C5
  1324. //#define GL_TEXTURE6_ARB 0x84C6
  1325. //#define GL_TEXTURE7_ARB 0x84C7
  1326. //#define GL_TEXTURE8_ARB 0x84C8
  1327. //#define GL_TEXTURE9_ARB 0x84C9
  1328. //#define GL_TEXTURE10_ARB 0x84CA
  1329. //#define GL_TEXTURE11_ARB 0x84CB
  1330. //#define GL_TEXTURE12_ARB 0x84CC
  1331. //#define GL_TEXTURE13_ARB 0x84CD
  1332. //#define GL_TEXTURE14_ARB 0x84CE
  1333. //#define GL_TEXTURE15_ARB 0x84CF
  1334. //#define GL_TEXTURE16_ARB 0x84D0
  1335. //#define GL_TEXTURE17_ARB 0x84D1
  1336. //#define GL_TEXTURE18_ARB 0x84D2
  1337. //#define GL_TEXTURE19_ARB 0x84D3
  1338. //#define GL_TEXTURE20_ARB 0x84D4
  1339. //#define GL_TEXTURE21_ARB 0x84D5
  1340. //#define GL_TEXTURE22_ARB 0x84D6
  1341. //#define GL_TEXTURE23_ARB 0x84D7
  1342. //#define GL_TEXTURE24_ARB 0x84D8
  1343. //#define GL_TEXTURE25_ARB 0x84D9
  1344. //#define GL_TEXTURE26_ARB 0x84DA
  1345. //#define GL_TEXTURE27_ARB 0x84DB
  1346. //#define GL_TEXTURE28_ARB 0x84DC
  1347. //#define GL_TEXTURE29_ARB 0x84DD
  1348. //#define GL_TEXTURE30_ARB 0x84DE
  1349. //#define GL_TEXTURE31_ARB 0x84DF
  1350. //#define GL_ACTIVE_TEXTURE_ARB 0x84E0
  1351. //#define GL_CLIENT_ACTIVE_TEXTURE_ARB 0x84E1
  1352. #define GL_MAX_TEXTURE_UNITS_ARB 0x84E2
  1353. //
  1354. //#define GL_COMPRESSED_ALPHA_ARB 0x84E9
  1355. //#define GL_COMPRESSED_LUMINANCE_ARB 0x84EA
  1356. //#define GL_COMPRESSED_LUMINANCE_ALPHA_ARB 0x84EB
  1357. //#define GL_COMPRESSED_INTENSITY_ARB 0x84EC
  1358. #define GL_COMPRESSED_RGB_ARB 0x84ED
  1359. #define GL_COMPRESSED_RGBA_ARB 0x84EE
  1360. #define GL_TEXTURE_COMPRESSION_HINT_ARB 0x84EF
  1361. //#define GL_TEXTURE_COMPRESSED_IMAGE_SIZE_ARB 0x86A0
  1362. //#define GL_TEXTURE_COMPRESSED_ARB 0x86A1
  1363. //#define GL_NUM_COMPRESSED_TEXTURE_FORMATS_ARB 0x86A2
  1364. //#define GL_COMPRESSED_TEXTURE_FORMATS_ARB 0x86A3
  1365. #ifndef GL_UNSIGNED_SHORT_1_5_5_5_REV
  1366. #define GL_UNSIGNED_SHORT_1_5_5_5_REV 0x8366
  1367. #endif
  1368. //
  1369. // ------------------------------------------------------------------------------------------------------
  1370. // Only function prototypes that were actually used in TGE are
  1371. // listed here
  1372. // ------------------------------------------------------------------------------------------------------
  1373. // straightforward conversions
  1374. #define glColor3f(r,g,b) glColor4f(r,g,b,1)
  1375. #define GLdouble F64
  1376. #define glOrtho( left, right, bottom, top, near, far ) glOrthof( left, right, bottom, top, near, far )
  1377. #define glFrustum( left, right, bottom, top, near, far ) glFrustumf( left, right, bottom, top, near, far )
  1378. #define glDepthRange( near, far ) glDepthRangef( near, far )
  1379. // functions that need workarounds
  1380. void glBegin( GLint );
  1381. void glEnd();
  1382. void glTexCoord2f( GLfloat, GLfloat );
  1383. void glActiveTextureARB( GLint );
  1384. void glMultiTexCoord2fARB( GLint, GLfloat, GLfloat);
  1385. void glPushAttrib( GLint );
  1386. void glPopAttrib();
  1387. void glReadBuffer( GLint );
  1388. void glVertex3f( GLfloat, GLfloat, GLfloat );
  1389. void glVertex2f( GLfloat, GLfloat );
  1390. void glVertex2i( GLint, GLint );
  1391. void glClientActiveTextureARB( GLint );
  1392. void glVertex3fv( const F32 * );
  1393. void glVertex2fv( const F32 * );
  1394. void glNormal3fv( const F32 * );
  1395. void glColor3fv( const F32 * );
  1396. void glColor4fv( const F32 * );
  1397. void glColor3i( GLint, GLint, GLint );
  1398. void glColor3ubv( const GLubyte *v );
  1399. void glColor4ubv( const GLubyte *v );
  1400. void glRecti( GLint, GLint, GLint, GLint );
  1401. void glGetDoublev( GLint, GLdouble * );
  1402. void glPolygonMode( GLint, GLint );
  1403. void glLockArraysEXT( GLint, GLint );
  1404. void glUnlockArraysEXT();
  1405. void glColor3ub( GLint, GLint, GLint );
  1406. void glFogi( GLint, GLint );
  1407. // PUAP -Mat see comment in mm file
  1408. //void glDrawBuffer( GLint );
  1409. void glColorTableEXT( GLint, GLint, GLint, GLint, GLint, const ColorI * );
  1410. void glBlendColorEXT( GLfloat, GLfloat, GLfloat, GLfloat );
  1411. void glBlendEquationEXT( GLint );
  1412. void glArrayElement( GLint );
  1413. void glFogCoordPointerEXT(GLenum, GLsizei, void *);
  1414. void glTexGeni( GLenum coord, GLenum pname, GLint param );
  1415. void glTexGenfv( GLenum coord, GLenum pname, const GLfloat *params );
  1416. void glClipPlane( GLuint plane, GLdouble * equation );
  1417. GLboolean glAreTexturesResident( GLsizei, const GLuint *, GLboolean*);
  1418. void gluOrtho2D( GLfloat, GLfloat, GLfloat, GLfloat );
  1419. GLint gluProject( GLdouble winx, GLdouble winy, GLdouble winz, const F64 *model, const F64 * proj, const GLint * vp, F64 * x, F64 * y, F64 * z );
  1420. GLint gluUnProject( GLdouble winx, GLdouble winy, GLdouble winz, const F64 *model, const F64 * proj, const GLint * vp, F64 * x, F64 * y, F64 * z );
  1421. #endif //_GL2ES_H_