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

gl.h 76KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258
  1. /* $Id: gl.h,v 1.44 2000/07/13 17:45:13 brianp Exp $ */
  2. /*
  3. * Mesa 3-D graphics library
  4. * Version: 3.3
  5. *
  6. * Copyright (C) 1999-2000 Brian Paul All Rights Reserved.
  7. *
  8. * Permission is hereby granted, free of charge, to any person obtaining a
  9. * copy of this software and associated documentation files (the "Software"),
  10. * to deal in the Software without restriction, including without limitation
  11. * the rights to use, copy, modify, merge, publish, distribute, sublicense,
  12. * and/or sell copies of the Software, and to permit persons to whom the
  13. * Software is furnished to do so, subject to the following conditions:
  14. *
  15. * The above copyright notice and this permission notice shall be included
  16. * in all copies or substantial portions of the Software.
  17. *
  18. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  19. * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  20. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
  21. * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  22. * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  23. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  24. */
  25. #ifndef __gl_h_
  26. #define __gl_h_
  27. #if defined(USE_MGL_NAMESPACE)
  28. #include "gl_mangle.h"
  29. #endif
  30. /**********************************************************************
  31. * Begin system-specific stuff.
  32. */
  33. #if defined(__BEOS__)
  34. #include <stdlib.h> /* to get some BeOS-isms */
  35. #endif
  36. #if !defined(OPENSTEP) && (defined(NeXT) || defined(NeXT_PDO))
  37. #define OPENSTEP
  38. #endif
  39. #if defined(_WIN32) && !defined(__WIN32__)
  40. #define __WIN32__
  41. #endif
  42. #if !defined(OPENSTEP) && (defined(__WIN32__) || defined(__CYGWIN__))
  43. # if defined(_MSC_VER) && defined(BUILD_GL32) /* tag specify we're building mesa as a DLL */
  44. # define GLAPI __declspec(dllexport)
  45. # elif defined(_MSC_VER) && defined(_DLL) /* tag specifying we're building for DLL runtime support */
  46. # define GLAPI __declspec(dllimport)
  47. # else /* for use with static link lib build of Win32 edition only */
  48. # define GLAPI extern
  49. # endif /* _STATIC_MESA support */
  50. # define GLAPIENTRY __stdcall
  51. #else
  52. /* non-Windows compilation */
  53. # define GLAPI extern
  54. # define GLAPIENTRY
  55. #endif /* WIN32 / CYGWIN bracket */
  56. #if defined(_WIN32) && !defined(_WINGDI_) && !defined(_GNU_H_WINDOWS32_DEFINES) && !defined(OPENSTEP)
  57. #include <gl/mesa_wgl.h>
  58. #endif
  59. #if defined(macintosh) && PRAGMA_IMPORT_SUPPORTED
  60. #pragma import on
  61. #endif
  62. /*
  63. * End system-specific stuff.
  64. **********************************************************************/
  65. #ifdef __cplusplus
  66. extern "C" {
  67. #endif
  68. #define GL_VERSION_1_1 1
  69. #define GL_VERSION_1_2 1
  70. /*
  71. *
  72. * Datatypes
  73. *
  74. */
  75. #ifdef CENTERLINE_CLPP
  76. #define signed
  77. #endif
  78. typedef unsigned int GLenum;
  79. typedef unsigned char GLboolean;
  80. typedef unsigned int GLbitfield;
  81. typedef void GLvoid;
  82. typedef signed char GLbyte; /* 1-byte signed */
  83. typedef short GLshort; /* 2-byte signed */
  84. typedef int GLint; /* 4-byte signed */
  85. typedef unsigned char GLubyte; /* 1-byte unsigned */
  86. typedef unsigned short GLushort; /* 2-byte unsigned */
  87. typedef unsigned int GLuint; /* 4-byte unsigned */
  88. typedef int GLsizei; /* 4-byte signed */
  89. typedef float GLfloat; /* single precision float */
  90. typedef float GLclampf; /* single precision float in [0,1] */
  91. typedef double GLdouble; /* double precision float */
  92. typedef double GLclampd; /* double precision float in [0,1] */
  93. /*
  94. *
  95. * Constants
  96. *
  97. */
  98. /* Boolean values */
  99. #define GL_FALSE 0x0
  100. #define GL_TRUE 0x1
  101. /* Data types */
  102. #define GL_BYTE 0x1400
  103. #define GL_UNSIGNED_BYTE 0x1401
  104. #define GL_SHORT 0x1402
  105. #define GL_UNSIGNED_SHORT 0x1403
  106. #define GL_INT 0x1404
  107. #define GL_UNSIGNED_INT 0x1405
  108. #define GL_FLOAT 0x1406
  109. #define GL_DOUBLE 0x140A
  110. #define GL_2_BYTES 0x1407
  111. #define GL_3_BYTES 0x1408
  112. #define GL_4_BYTES 0x1409
  113. /* Primitives */
  114. #define GL_POINTS 0x0000
  115. #define GL_LINES 0x0001
  116. #define GL_LINE_LOOP 0x0002
  117. #define GL_LINE_STRIP 0x0003
  118. #define GL_TRIANGLES 0x0004
  119. #define GL_TRIANGLE_STRIP 0x0005
  120. #define GL_TRIANGLE_FAN 0x0006
  121. #define GL_QUADS 0x0007
  122. #define GL_QUAD_STRIP 0x0008
  123. #define GL_POLYGON 0x0009
  124. /* Vertex Arrays */
  125. #define GL_VERTEX_ARRAY 0x8074
  126. #define GL_NORMAL_ARRAY 0x8075
  127. #define GL_COLOR_ARRAY 0x8076
  128. #define GL_INDEX_ARRAY 0x8077
  129. #define GL_TEXTURE_COORD_ARRAY 0x8078
  130. #define GL_EDGE_FLAG_ARRAY 0x8079
  131. #define GL_VERTEX_ARRAY_SIZE 0x807A
  132. #define GL_VERTEX_ARRAY_TYPE 0x807B
  133. #define GL_VERTEX_ARRAY_STRIDE 0x807C
  134. #define GL_NORMAL_ARRAY_TYPE 0x807E
  135. #define GL_NORMAL_ARRAY_STRIDE 0x807F
  136. #define GL_COLOR_ARRAY_SIZE 0x8081
  137. #define GL_COLOR_ARRAY_TYPE 0x8082
  138. #define GL_COLOR_ARRAY_STRIDE 0x8083
  139. #define GL_INDEX_ARRAY_TYPE 0x8085
  140. #define GL_INDEX_ARRAY_STRIDE 0x8086
  141. #define GL_TEXTURE_COORD_ARRAY_SIZE 0x8088
  142. #define GL_TEXTURE_COORD_ARRAY_TYPE 0x8089
  143. #define GL_TEXTURE_COORD_ARRAY_STRIDE 0x808A
  144. #define GL_EDGE_FLAG_ARRAY_STRIDE 0x808C
  145. #define GL_VERTEX_ARRAY_POINTER 0x808E
  146. #define GL_NORMAL_ARRAY_POINTER 0x808F
  147. #define GL_COLOR_ARRAY_POINTER 0x8090
  148. #define GL_INDEX_ARRAY_POINTER 0x8091
  149. #define GL_TEXTURE_COORD_ARRAY_POINTER 0x8092
  150. #define GL_EDGE_FLAG_ARRAY_POINTER 0x8093
  151. #define GL_V2F 0x2A20
  152. #define GL_V3F 0x2A21
  153. #define GL_C4UB_V2F 0x2A22
  154. #define GL_C4UB_V3F 0x2A23
  155. #define GL_C3F_V3F 0x2A24
  156. #define GL_N3F_V3F 0x2A25
  157. #define GL_C4F_N3F_V3F 0x2A26
  158. #define GL_T2F_V3F 0x2A27
  159. #define GL_T4F_V4F 0x2A28
  160. #define GL_T2F_C4UB_V3F 0x2A29
  161. #define GL_T2F_C3F_V3F 0x2A2A
  162. #define GL_T2F_N3F_V3F 0x2A2B
  163. #define GL_T2F_C4F_N3F_V3F 0x2A2C
  164. #define GL_T4F_C4F_N3F_V4F 0x2A2D
  165. /* Matrix Mode */
  166. #define GL_MATRIX_MODE 0x0BA0
  167. #define GL_MODELVIEW 0x1700
  168. #define GL_PROJECTION 0x1701
  169. #define GL_TEXTURE 0x1702
  170. /* Points */
  171. #define GL_POINT_SMOOTH 0x0B10
  172. #define GL_POINT_SIZE 0x0B11
  173. #define GL_POINT_SIZE_GRANULARITY 0x0B13
  174. #define GL_POINT_SIZE_RANGE 0x0B12
  175. /* Lines */
  176. #define GL_LINE_SMOOTH 0x0B20
  177. #define GL_LINE_STIPPLE 0x0B24
  178. #define GL_LINE_STIPPLE_PATTERN 0x0B25
  179. #define GL_LINE_STIPPLE_REPEAT 0x0B26
  180. #define GL_LINE_WIDTH 0x0B21
  181. #define GL_LINE_WIDTH_GRANULARITY 0x0B23
  182. #define GL_LINE_WIDTH_RANGE 0x0B22
  183. /* Polygons */
  184. #define GL_POINT 0x1B00
  185. #define GL_LINE 0x1B01
  186. #define GL_FILL 0x1B02
  187. #define GL_CW 0x0900
  188. #define GL_CCW 0x0901
  189. #define GL_FRONT 0x0404
  190. #define GL_BACK 0x0405
  191. #define GL_POLYGON_MODE 0x0B40
  192. #define GL_POLYGON_SMOOTH 0x0B41
  193. #define GL_POLYGON_STIPPLE 0x0B42
  194. #define GL_EDGE_FLAG 0x0B43
  195. #define GL_CULL_FACE 0x0B44
  196. #define GL_CULL_FACE_MODE 0x0B45
  197. #define GL_FRONT_FACE 0x0B46
  198. #define GL_POLYGON_OFFSET_FACTOR 0x8038
  199. #define GL_POLYGON_OFFSET_UNITS 0x2A00
  200. #define GL_POLYGON_OFFSET_POINT 0x2A01
  201. #define GL_POLYGON_OFFSET_LINE 0x2A02
  202. #define GL_POLYGON_OFFSET_FILL 0x8037
  203. /* Display Lists */
  204. #define GL_COMPILE 0x1300
  205. #define GL_COMPILE_AND_EXECUTE 0x1301
  206. #define GL_LIST_BASE 0x0B32
  207. #define GL_LIST_INDEX 0x0B33
  208. #define GL_LIST_MODE 0x0B30
  209. /* Depth buffer */
  210. #define GL_NEVER 0x0200
  211. #define GL_LESS 0x0201
  212. #define GL_EQUAL 0x0202
  213. #define GL_LEQUAL 0x0203
  214. #define GL_GREATER 0x0204
  215. #define GL_NOTEQUAL 0x0205
  216. #define GL_GEQUAL 0x0206
  217. #define GL_ALWAYS 0x0207
  218. #define GL_DEPTH_TEST 0x0B71
  219. #define GL_DEPTH_BITS 0x0D56
  220. #define GL_DEPTH_CLEAR_VALUE 0x0B73
  221. #define GL_DEPTH_FUNC 0x0B74
  222. #define GL_DEPTH_RANGE 0x0B70
  223. #define GL_DEPTH_WRITEMASK 0x0B72
  224. #define GL_DEPTH_COMPONENT 0x1902
  225. /* Lighting */
  226. #define GL_LIGHTING 0x0B50
  227. #define GL_LIGHT0 0x4000
  228. #define GL_LIGHT1 0x4001
  229. #define GL_LIGHT2 0x4002
  230. #define GL_LIGHT3 0x4003
  231. #define GL_LIGHT4 0x4004
  232. #define GL_LIGHT5 0x4005
  233. #define GL_LIGHT6 0x4006
  234. #define GL_LIGHT7 0x4007
  235. #define GL_SPOT_EXPONENT 0x1205
  236. #define GL_SPOT_CUTOFF 0x1206
  237. #define GL_CONSTANT_ATTENUATION 0x1207
  238. #define GL_LINEAR_ATTENUATION 0x1208
  239. #define GL_QUADRATIC_ATTENUATION 0x1209
  240. #define GL_AMBIENT 0x1200
  241. #define GL_DIFFUSE 0x1201
  242. #define GL_SPECULAR 0x1202
  243. #define GL_SHININESS 0x1601
  244. #define GL_EMISSION 0x1600
  245. #define GL_POSITION 0x1203
  246. #define GL_SPOT_DIRECTION 0x1204
  247. #define GL_AMBIENT_AND_DIFFUSE 0x1602
  248. #define GL_COLOR_INDEXES 0x1603
  249. #define GL_LIGHT_MODEL_TWO_SIDE 0x0B52
  250. #define GL_LIGHT_MODEL_LOCAL_VIEWER 0x0B51
  251. #define GL_LIGHT_MODEL_AMBIENT 0x0B53
  252. #define GL_FRONT_AND_BACK 0x0408
  253. #define GL_SHADE_MODEL 0x0B54
  254. #define GL_FLAT 0x1D00
  255. #define GL_SMOOTH 0x1D01
  256. #define GL_COLOR_MATERIAL 0x0B57
  257. #define GL_COLOR_MATERIAL_FACE 0x0B55
  258. #define GL_COLOR_MATERIAL_PARAMETER 0x0B56
  259. #define GL_NORMALIZE 0x0BA1
  260. /* User clipping planes */
  261. #define GL_CLIP_PLANE0 0x3000
  262. #define GL_CLIP_PLANE1 0x3001
  263. #define GL_CLIP_PLANE2 0x3002
  264. #define GL_CLIP_PLANE3 0x3003
  265. #define GL_CLIP_PLANE4 0x3004
  266. #define GL_CLIP_PLANE5 0x3005
  267. /* Accumulation buffer */
  268. #define GL_ACCUM_RED_BITS 0x0D58
  269. #define GL_ACCUM_GREEN_BITS 0x0D59
  270. #define GL_ACCUM_BLUE_BITS 0x0D5A
  271. #define GL_ACCUM_ALPHA_BITS 0x0D5B
  272. #define GL_ACCUM_CLEAR_VALUE 0x0B80
  273. #define GL_ACCUM 0x0100
  274. #define GL_ADD 0x0104
  275. #define GL_LOAD 0x0101
  276. #define GL_MULT 0x0103
  277. #define GL_RETURN 0x0102
  278. /* Alpha testing */
  279. #define GL_ALPHA_TEST 0x0BC0
  280. #define GL_ALPHA_TEST_REF 0x0BC2
  281. #define GL_ALPHA_TEST_FUNC 0x0BC1
  282. /* Blending */
  283. #define GL_BLEND 0x0BE2
  284. #define GL_BLEND_SRC 0x0BE1
  285. #define GL_BLEND_DST 0x0BE0
  286. #define GL_ZERO 0x0
  287. #define GL_ONE 0x1
  288. #define GL_SRC_COLOR 0x0300
  289. #define GL_ONE_MINUS_SRC_COLOR 0x0301
  290. #define GL_DST_COLOR 0x0306
  291. #define GL_ONE_MINUS_DST_COLOR 0x0307
  292. #define GL_SRC_ALPHA 0x0302
  293. #define GL_ONE_MINUS_SRC_ALPHA 0x0303
  294. #define GL_DST_ALPHA 0x0304
  295. #define GL_ONE_MINUS_DST_ALPHA 0x0305
  296. #define GL_SRC_ALPHA_SATURATE 0x0308
  297. #define GL_CONSTANT_COLOR 0x8001
  298. #define GL_ONE_MINUS_CONSTANT_COLOR 0x8002
  299. #define GL_CONSTANT_ALPHA 0x8003
  300. #define GL_ONE_MINUS_CONSTANT_ALPHA 0x8004
  301. /* Render Mode */
  302. #define GL_FEEDBACK 0x1C01
  303. #define GL_RENDER 0x1C00
  304. #define GL_SELECT 0x1C02
  305. /* Feedback */
  306. #define GL_2D 0x0600
  307. #define GL_3D 0x0601
  308. #define GL_3D_COLOR 0x0602
  309. #define GL_3D_COLOR_TEXTURE 0x0603
  310. #define GL_4D_COLOR_TEXTURE 0x0604
  311. #define GL_POINT_TOKEN 0x0701
  312. #define GL_LINE_TOKEN 0x0702
  313. #define GL_LINE_RESET_TOKEN 0x0707
  314. #define GL_POLYGON_TOKEN 0x0703
  315. #define GL_BITMAP_TOKEN 0x0704
  316. #define GL_DRAW_PIXEL_TOKEN 0x0705
  317. #define GL_COPY_PIXEL_TOKEN 0x0706
  318. #define GL_PASS_THROUGH_TOKEN 0x0700
  319. #define GL_FEEDBACK_BUFFER_POINTER 0x0DF0
  320. #define GL_FEEDBACK_BUFFER_SIZE 0x0DF1
  321. #define GL_FEEDBACK_BUFFER_TYPE 0x0DF2
  322. /* Selection */
  323. #define GL_SELECTION_BUFFER_POINTER 0x0DF3
  324. #define GL_SELECTION_BUFFER_SIZE 0x0DF4
  325. /* Fog */
  326. #define GL_FOG 0x0B60
  327. #define GL_FOG_MODE 0x0B65
  328. #define GL_FOG_DENSITY 0x0B62
  329. #define GL_FOG_COLOR 0x0B66
  330. #define GL_FOG_INDEX 0x0B61
  331. #define GL_FOG_START 0x0B63
  332. #define GL_FOG_END 0x0B64
  333. #define GL_LINEAR 0x2601
  334. #define GL_EXP 0x0800
  335. #define GL_EXP2 0x0801
  336. /* Logic Ops */
  337. #define GL_LOGIC_OP 0x0BF1
  338. #define GL_INDEX_LOGIC_OP 0x0BF1
  339. #define GL_COLOR_LOGIC_OP 0x0BF2
  340. #define GL_LOGIC_OP_MODE 0x0BF0
  341. #define GL_CLEAR 0x1500
  342. #define GL_SET 0x150F
  343. #define GL_COPY 0x1503
  344. #define GL_COPY_INVERTED 0x150C
  345. #define GL_NOOP 0x1505
  346. #define GL_INVERT 0x150A
  347. #define GL_AND 0x1501
  348. #define GL_NAND 0x150E
  349. #define GL_OR 0x1507
  350. #define GL_NOR 0x1508
  351. #define GL_XOR 0x1506
  352. #define GL_EQUIV 0x1509
  353. #define GL_AND_REVERSE 0x1502
  354. #define GL_AND_INVERTED 0x1504
  355. #define GL_OR_REVERSE 0x150B
  356. #define GL_OR_INVERTED 0x150D
  357. /* Stencil */
  358. #define GL_STENCIL_TEST 0x0B90
  359. #define GL_STENCIL_WRITEMASK 0x0B98
  360. #define GL_STENCIL_BITS 0x0D57
  361. #define GL_STENCIL_FUNC 0x0B92
  362. #define GL_STENCIL_VALUE_MASK 0x0B93
  363. #define GL_STENCIL_REF 0x0B97
  364. #define GL_STENCIL_FAIL 0x0B94
  365. #define GL_STENCIL_PASS_DEPTH_PASS 0x0B96
  366. #define GL_STENCIL_PASS_DEPTH_FAIL 0x0B95
  367. #define GL_STENCIL_CLEAR_VALUE 0x0B91
  368. #define GL_STENCIL_INDEX 0x1901
  369. #define GL_KEEP 0x1E00
  370. #define GL_REPLACE 0x1E01
  371. #define GL_INCR 0x1E02
  372. #define GL_DECR 0x1E03
  373. /* Buffers, Pixel Drawing/Reading */
  374. #define GL_NONE 0x0
  375. #define GL_LEFT 0x0406
  376. #define GL_RIGHT 0x0407
  377. /*GL_FRONT 0x0404 */
  378. /*GL_BACK 0x0405 */
  379. /*GL_FRONT_AND_BACK 0x0408 */
  380. #define GL_FRONT_LEFT 0x0400
  381. #define GL_FRONT_RIGHT 0x0401
  382. #define GL_BACK_LEFT 0x0402
  383. #define GL_BACK_RIGHT 0x0403
  384. #define GL_AUX0 0x0409
  385. #define GL_AUX1 0x040A
  386. #define GL_AUX2 0x040B
  387. #define GL_AUX3 0x040C
  388. #define GL_COLOR_INDEX 0x1900
  389. #define GL_RED 0x1903
  390. #define GL_GREEN 0x1904
  391. #define GL_BLUE 0x1905
  392. #define GL_ALPHA 0x1906
  393. #define GL_LUMINANCE 0x1909
  394. #define GL_LUMINANCE_ALPHA 0x190A
  395. #define GL_ALPHA_BITS 0x0D55
  396. #define GL_RED_BITS 0x0D52
  397. #define GL_GREEN_BITS 0x0D53
  398. #define GL_BLUE_BITS 0x0D54
  399. #define GL_INDEX_BITS 0x0D51
  400. #define GL_SUBPIXEL_BITS 0x0D50
  401. #define GL_AUX_BUFFERS 0x0C00
  402. #define GL_READ_BUFFER 0x0C02
  403. #define GL_DRAW_BUFFER 0x0C01
  404. #define GL_DOUBLEBUFFER 0x0C32
  405. #define GL_STEREO 0x0C33
  406. #define GL_BITMAP 0x1A00
  407. #define GL_COLOR 0x1800
  408. #define GL_DEPTH 0x1801
  409. #define GL_STENCIL 0x1802
  410. #define GL_DITHER 0x0BD0
  411. #define GL_RGB 0x1907
  412. #define GL_RGBA 0x1908
  413. /* Implementation limits */
  414. #define GL_MAX_LIST_NESTING 0x0B31
  415. #define GL_MAX_ATTRIB_STACK_DEPTH 0x0D35
  416. #define GL_MAX_MODELVIEW_STACK_DEPTH 0x0D36
  417. #define GL_MAX_NAME_STACK_DEPTH 0x0D37
  418. #define GL_MAX_PROJECTION_STACK_DEPTH 0x0D38
  419. #define GL_MAX_TEXTURE_STACK_DEPTH 0x0D39
  420. #define GL_MAX_EVAL_ORDER 0x0D30
  421. #define GL_MAX_LIGHTS 0x0D31
  422. #define GL_MAX_CLIP_PLANES 0x0D32
  423. #define GL_MAX_TEXTURE_SIZE 0x0D33
  424. #define GL_MAX_PIXEL_MAP_TABLE 0x0D34
  425. #define GL_MAX_VIEWPORT_DIMS 0x0D3A
  426. #define GL_MAX_CLIENT_ATTRIB_STACK_DEPTH 0x0D3B
  427. /* Gets */
  428. #define GL_ATTRIB_STACK_DEPTH 0x0BB0
  429. #define GL_CLIENT_ATTRIB_STACK_DEPTH 0x0BB1
  430. #define GL_COLOR_CLEAR_VALUE 0x0C22
  431. #define GL_COLOR_WRITEMASK 0x0C23
  432. #define GL_CURRENT_INDEX 0x0B01
  433. #define GL_CURRENT_COLOR 0x0B00
  434. #define GL_CURRENT_NORMAL 0x0B02
  435. #define GL_CURRENT_RASTER_COLOR 0x0B04
  436. #define GL_CURRENT_RASTER_DISTANCE 0x0B09
  437. #define GL_CURRENT_RASTER_INDEX 0x0B05
  438. #define GL_CURRENT_RASTER_POSITION 0x0B07
  439. #define GL_CURRENT_RASTER_TEXTURE_COORDS 0x0B06
  440. #define GL_CURRENT_RASTER_POSITION_VALID 0x0B08
  441. #define GL_CURRENT_TEXTURE_COORDS 0x0B03
  442. #define GL_INDEX_CLEAR_VALUE 0x0C20
  443. #define GL_INDEX_MODE 0x0C30
  444. #define GL_INDEX_WRITEMASK 0x0C21
  445. #define GL_MODELVIEW_MATRIX 0x0BA6
  446. #define GL_MODELVIEW_STACK_DEPTH 0x0BA3
  447. #define GL_NAME_STACK_DEPTH 0x0D70
  448. #define GL_PROJECTION_MATRIX 0x0BA7
  449. #define GL_PROJECTION_STACK_DEPTH 0x0BA4
  450. #define GL_RENDER_MODE 0x0C40
  451. #define GL_RGBA_MODE 0x0C31
  452. #define GL_TEXTURE_MATRIX 0x0BA8
  453. #define GL_TEXTURE_STACK_DEPTH 0x0BA5
  454. #define GL_VIEWPORT 0x0BA2
  455. /* Evaluators */
  456. #define GL_AUTO_NORMAL 0x0D80
  457. #define GL_MAP1_COLOR_4 0x0D90
  458. #define GL_MAP1_GRID_DOMAIN 0x0DD0
  459. #define GL_MAP1_GRID_SEGMENTS 0x0DD1
  460. #define GL_MAP1_INDEX 0x0D91
  461. #define GL_MAP1_NORMAL 0x0D92
  462. #define GL_MAP1_TEXTURE_COORD_1 0x0D93
  463. #define GL_MAP1_TEXTURE_COORD_2 0x0D94
  464. #define GL_MAP1_TEXTURE_COORD_3 0x0D95
  465. #define GL_MAP1_TEXTURE_COORD_4 0x0D96
  466. #define GL_MAP1_VERTEX_3 0x0D97
  467. #define GL_MAP1_VERTEX_4 0x0D98
  468. #define GL_MAP2_COLOR_4 0x0DB0
  469. #define GL_MAP2_GRID_DOMAIN 0x0DD2
  470. #define GL_MAP2_GRID_SEGMENTS 0x0DD3
  471. #define GL_MAP2_INDEX 0x0DB1
  472. #define GL_MAP2_NORMAL 0x0DB2
  473. #define GL_MAP2_TEXTURE_COORD_1 0x0DB3
  474. #define GL_MAP2_TEXTURE_COORD_2 0x0DB4
  475. #define GL_MAP2_TEXTURE_COORD_3 0x0DB5
  476. #define GL_MAP2_TEXTURE_COORD_4 0x0DB6
  477. #define GL_MAP2_VERTEX_3 0x0DB7
  478. #define GL_MAP2_VERTEX_4 0x0DB8
  479. #define GL_COEFF 0x0A00
  480. #define GL_DOMAIN 0x0A02
  481. #define GL_ORDER 0x0A01
  482. /* Hints */
  483. #define GL_FOG_HINT 0x0C54
  484. #define GL_LINE_SMOOTH_HINT 0x0C52
  485. #define GL_PERSPECTIVE_CORRECTION_HINT 0x0C50
  486. #define GL_POINT_SMOOTH_HINT 0x0C51
  487. #define GL_POLYGON_SMOOTH_HINT 0x0C53
  488. #define GL_DONT_CARE 0x1100
  489. #define GL_FASTEST 0x1101
  490. #define GL_NICEST 0x1102
  491. /* Scissor box */
  492. #define GL_SCISSOR_TEST 0x0C11
  493. #define GL_SCISSOR_BOX 0x0C10
  494. /* Pixel Mode / Transfer */
  495. #define GL_MAP_COLOR 0x0D10
  496. #define GL_MAP_STENCIL 0x0D11
  497. #define GL_INDEX_SHIFT 0x0D12
  498. #define GL_INDEX_OFFSET 0x0D13
  499. #define GL_RED_SCALE 0x0D14
  500. #define GL_RED_BIAS 0x0D15
  501. #define GL_GREEN_SCALE 0x0D18
  502. #define GL_GREEN_BIAS 0x0D19
  503. #define GL_BLUE_SCALE 0x0D1A
  504. #define GL_BLUE_BIAS 0x0D1B
  505. #define GL_ALPHA_SCALE 0x0D1C
  506. #define GL_ALPHA_BIAS 0x0D1D
  507. #define GL_DEPTH_SCALE 0x0D1E
  508. #define GL_DEPTH_BIAS 0x0D1F
  509. #define GL_PIXEL_MAP_S_TO_S_SIZE 0x0CB1
  510. #define GL_PIXEL_MAP_I_TO_I_SIZE 0x0CB0
  511. #define GL_PIXEL_MAP_I_TO_R_SIZE 0x0CB2
  512. #define GL_PIXEL_MAP_I_TO_G_SIZE 0x0CB3
  513. #define GL_PIXEL_MAP_I_TO_B_SIZE 0x0CB4
  514. #define GL_PIXEL_MAP_I_TO_A_SIZE 0x0CB5
  515. #define GL_PIXEL_MAP_R_TO_R_SIZE 0x0CB6
  516. #define GL_PIXEL_MAP_G_TO_G_SIZE 0x0CB7
  517. #define GL_PIXEL_MAP_B_TO_B_SIZE 0x0CB8
  518. #define GL_PIXEL_MAP_A_TO_A_SIZE 0x0CB9
  519. #define GL_PIXEL_MAP_S_TO_S 0x0C71
  520. #define GL_PIXEL_MAP_I_TO_I 0x0C70
  521. #define GL_PIXEL_MAP_I_TO_R 0x0C72
  522. #define GL_PIXEL_MAP_I_TO_G 0x0C73
  523. #define GL_PIXEL_MAP_I_TO_B 0x0C74
  524. #define GL_PIXEL_MAP_I_TO_A 0x0C75
  525. #define GL_PIXEL_MAP_R_TO_R 0x0C76
  526. #define GL_PIXEL_MAP_G_TO_G 0x0C77
  527. #define GL_PIXEL_MAP_B_TO_B 0x0C78
  528. #define GL_PIXEL_MAP_A_TO_A 0x0C79
  529. #define GL_PACK_ALIGNMENT 0x0D05
  530. #define GL_PACK_LSB_FIRST 0x0D01
  531. #define GL_PACK_ROW_LENGTH 0x0D02
  532. #define GL_PACK_SKIP_PIXELS 0x0D04
  533. #define GL_PACK_SKIP_ROWS 0x0D03
  534. #define GL_PACK_SWAP_BYTES 0x0D00
  535. #define GL_UNPACK_ALIGNMENT 0x0CF5
  536. #define GL_UNPACK_LSB_FIRST 0x0CF1
  537. #define GL_UNPACK_ROW_LENGTH 0x0CF2
  538. #define GL_UNPACK_SKIP_PIXELS 0x0CF4
  539. #define GL_UNPACK_SKIP_ROWS 0x0CF3
  540. #define GL_UNPACK_SWAP_BYTES 0x0CF0
  541. #define GL_ZOOM_X 0x0D16
  542. #define GL_ZOOM_Y 0x0D17
  543. /* Texture mapping */
  544. #define GL_TEXTURE_ENV 0x2300
  545. #define GL_TEXTURE_ENV_MODE 0x2200
  546. #define GL_TEXTURE_1D 0x0DE0
  547. #define GL_TEXTURE_2D 0x0DE1
  548. #define GL_TEXTURE_WRAP_S 0x2802
  549. #define GL_TEXTURE_WRAP_T 0x2803
  550. #define GL_TEXTURE_MAG_FILTER 0x2800
  551. #define GL_TEXTURE_MIN_FILTER 0x2801
  552. #define GL_TEXTURE_ENV_COLOR 0x2201
  553. #define GL_TEXTURE_GEN_S 0x0C60
  554. #define GL_TEXTURE_GEN_T 0x0C61
  555. #define GL_TEXTURE_GEN_MODE 0x2500
  556. #define GL_TEXTURE_BORDER_COLOR 0x1004
  557. #define GL_TEXTURE_WIDTH 0x1000
  558. #define GL_TEXTURE_HEIGHT 0x1001
  559. #define GL_TEXTURE_BORDER 0x1005
  560. #define GL_TEXTURE_COMPONENTS 0x1003
  561. #define GL_TEXTURE_RED_SIZE 0x805C
  562. #define GL_TEXTURE_GREEN_SIZE 0x805D
  563. #define GL_TEXTURE_BLUE_SIZE 0x805E
  564. #define GL_TEXTURE_ALPHA_SIZE 0x805F
  565. #define GL_TEXTURE_LUMINANCE_SIZE 0x8060
  566. #define GL_TEXTURE_INTENSITY_SIZE 0x8061
  567. #define GL_NEAREST_MIPMAP_NEAREST 0x2700
  568. #define GL_NEAREST_MIPMAP_LINEAR 0x2702
  569. #define GL_LINEAR_MIPMAP_NEAREST 0x2701
  570. #define GL_LINEAR_MIPMAP_LINEAR 0x2703
  571. #define GL_OBJECT_LINEAR 0x2401
  572. #define GL_OBJECT_PLANE 0x2501
  573. #define GL_EYE_LINEAR 0x2400
  574. #define GL_EYE_PLANE 0x2502
  575. #define GL_SPHERE_MAP 0x2402
  576. #define GL_DECAL 0x2101
  577. #define GL_MODULATE 0x2100
  578. #define GL_NEAREST 0x2600
  579. #define GL_REPEAT 0x2901
  580. #define GL_CLAMP 0x2900
  581. #define GL_S 0x2000
  582. #define GL_T 0x2001
  583. #define GL_R 0x2002
  584. #define GL_Q 0x2003
  585. #define GL_TEXTURE_GEN_R 0x0C62
  586. #define GL_TEXTURE_GEN_Q 0x0C63
  587. /* GL 1.1 texturing */
  588. #define GL_PROXY_TEXTURE_1D 0x8063
  589. #define GL_PROXY_TEXTURE_2D 0x8064
  590. #define GL_TEXTURE_PRIORITY 0x8066
  591. #define GL_TEXTURE_RESIDENT 0x8067
  592. #define GL_TEXTURE_BINDING_1D 0x8068
  593. #define GL_TEXTURE_BINDING_2D 0x8069
  594. #define GL_TEXTURE_INTERNAL_FORMAT 0x1003
  595. /* GL 1.2 texturing */
  596. #define GL_PACK_SKIP_IMAGES 0x806B
  597. #define GL_PACK_IMAGE_HEIGHT 0x806C
  598. #define GL_UNPACK_SKIP_IMAGES 0x806D
  599. #define GL_UNPACK_IMAGE_HEIGHT 0x806E
  600. #define GL_TEXTURE_3D 0x806F
  601. #define GL_PROXY_TEXTURE_3D 0x8070
  602. #define GL_TEXTURE_DEPTH 0x8071
  603. #define GL_TEXTURE_WRAP_R 0x8072
  604. #define GL_MAX_3D_TEXTURE_SIZE 0x8073
  605. #define GL_TEXTURE_BINDING_3D 0x806A
  606. /* Internal texture formats (GL 1.1) */
  607. #define GL_ALPHA4 0x803B
  608. #define GL_ALPHA8 0x803C
  609. #define GL_ALPHA12 0x803D
  610. #define GL_ALPHA16 0x803E
  611. #define GL_LUMINANCE4 0x803F
  612. #define GL_LUMINANCE8 0x8040
  613. #define GL_LUMINANCE12 0x8041
  614. #define GL_LUMINANCE16 0x8042
  615. #define GL_LUMINANCE4_ALPHA4 0x8043
  616. #define GL_LUMINANCE6_ALPHA2 0x8044
  617. #define GL_LUMINANCE8_ALPHA8 0x8045
  618. #define GL_LUMINANCE12_ALPHA4 0x8046
  619. #define GL_LUMINANCE12_ALPHA12 0x8047
  620. #define GL_LUMINANCE16_ALPHA16 0x8048
  621. #define GL_INTENSITY 0x8049
  622. #define GL_INTENSITY4 0x804A
  623. #define GL_INTENSITY8 0x804B
  624. #define GL_INTENSITY12 0x804C
  625. #define GL_INTENSITY16 0x804D
  626. #define GL_R3_G3_B2 0x2A10
  627. #define GL_RGB4 0x804F
  628. #define GL_RGB5 0x8050
  629. #define GL_RGB8 0x8051
  630. #define GL_RGB10 0x8052
  631. #define GL_RGB12 0x8053
  632. #define GL_RGB16 0x8054
  633. #define GL_RGBA2 0x8055
  634. #define GL_RGBA4 0x8056
  635. #define GL_RGB5_A1 0x8057
  636. #define GL_RGBA8 0x8058
  637. #define GL_RGB10_A2 0x8059
  638. #define GL_RGBA12 0x805A
  639. #define GL_RGBA16 0x805B
  640. /* Utility */
  641. #define GL_VENDOR 0x1F00
  642. #define GL_RENDERER 0x1F01
  643. #define GL_VERSION 0x1F02
  644. #define GL_EXTENSIONS 0x1F03
  645. /* Errors */
  646. #define GL_NO_ERROR 0x0
  647. #define GL_INVALID_VALUE 0x0501
  648. #define GL_INVALID_ENUM 0x0500
  649. #define GL_INVALID_OPERATION 0x0502
  650. #define GL_STACK_OVERFLOW 0x0503
  651. #define GL_STACK_UNDERFLOW 0x0504
  652. #define GL_OUT_OF_MEMORY 0x0505
  653. /* OpenGL 1.2 */
  654. #define GL_RESCALE_NORMAL 0x803A
  655. #define GL_CLAMP_TO_EDGE 0x812F
  656. #define GL_MAX_ELEMENTS_VERTICES 0x80E8
  657. #define GL_MAX_ELEMENTS_INDICES 0x80E9
  658. #define GL_BGR 0x80E0
  659. #define GL_BGRA 0x80E1
  660. #define GL_UNSIGNED_BYTE_3_3_2 0x8032
  661. #define GL_UNSIGNED_BYTE_2_3_3_REV 0x8362
  662. #define GL_UNSIGNED_SHORT_5_6_5 0x8363
  663. #define GL_UNSIGNED_SHORT_5_6_5_REV 0x8364
  664. #define GL_UNSIGNED_SHORT_4_4_4_4 0x8033
  665. #define GL_UNSIGNED_SHORT_4_4_4_4_REV 0x8365
  666. #define GL_UNSIGNED_SHORT_5_5_5_1 0x8034
  667. #define GL_UNSIGNED_SHORT_1_5_5_5_REV 0x8366
  668. #define GL_UNSIGNED_INT_8_8_8_8 0x8035
  669. #define GL_UNSIGNED_INT_8_8_8_8_REV 0x8367
  670. #define GL_UNSIGNED_INT_10_10_10_2 0x8036
  671. #define GL_UNSIGNED_INT_2_10_10_10_REV 0x8368
  672. #define GL_LIGHT_MODEL_COLOR_CONTROL 0x81F8
  673. #define GL_SINGLE_COLOR 0x81F9
  674. #define GL_SEPARATE_SPECULAR_COLOR 0x81FA
  675. #define GL_TEXTURE_MIN_LOD 0x813A
  676. #define GL_TEXTURE_MAX_LOD 0x813B
  677. #define GL_TEXTURE_BASE_LEVEL 0x813C
  678. #define GL_TEXTURE_MAX_LEVEL 0x813D
  679. #define GL_SMOOTH_POINT_SIZE_RANGE 0x0B12
  680. #define GL_SMOOTH_POINT_SIZE_GRANULARITY 0x0B13
  681. #define GL_SMOOTH_LINE_WIDTH_RANGE 0x0B22
  682. #define GL_SMOOTH_LINE_WIDTH_GRANULARITY 0x0B23
  683. #define GL_ALIASED_POINT_SIZE_RANGE 0x846D
  684. #define GL_ALIASED_LINE_WIDTH_RANGE 0x846E
  685. /*
  686. * OpenGL 1.2 imaging subset (NOT IMPLEMENTED BY MESA)
  687. */
  688. /* GL_EXT_color_table */
  689. #define GL_COLOR_TABLE 0x80D0
  690. #define GL_POST_CONVOLUTION_COLOR_TABLE 0x80D1
  691. #define GL_POST_COLOR_MATRIX_COLOR_TABLE 0x80D2
  692. #define GL_PROXY_COLOR_TABLE 0x80D3
  693. #define GL_PROXY_POST_CONVOLUTION_COLOR_TABLE 0x80D4
  694. #define GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE 0x80D5
  695. #define GL_COLOR_TABLE_SCALE 0x80D6
  696. #define GL_COLOR_TABLE_BIAS 0x80D7
  697. #define GL_COLOR_TABLE_FORMAT 0x80D8
  698. #define GL_COLOR_TABLE_WIDTH 0x80D9
  699. #define GL_COLOR_TABLE_RED_SIZE 0x80DA
  700. #define GL_COLOR_TABLE_GREEN_SIZE 0x80DB
  701. #define GL_COLOR_TABLE_BLUE_SIZE 0x80DC
  702. #define GL_COLOR_TABLE_ALPHA_SIZE 0x80DD
  703. #define GL_COLOR_TABLE_LUMINANCE_SIZE 0x80DE
  704. #define GL_COLOR_TABLE_INTENSITY_SIZE 0x80DF
  705. /* GL_EXT_convolution and GL_HP_convolution_border_modes */
  706. #define GL_CONVOLUTION_1D 0x8010
  707. #define GL_CONVOLUTION_2D 0x8011
  708. #define GL_SEPARABLE_2D 0x8012
  709. #define GL_CONVOLUTION_BORDER_MODE 0x8013
  710. #define GL_CONVOLUTION_FILTER_SCALE 0x8014
  711. #define GL_CONVOLUTION_FILTER_BIAS 0x8015
  712. #define GL_REDUCE 0x8016
  713. #define GL_CONVOLUTION_FORMAT 0x8017
  714. #define GL_CONVOLUTION_WIDTH 0x8018
  715. #define GL_CONVOLUTION_HEIGHT 0x8019
  716. #define GL_MAX_CONVOLUTION_WIDTH 0x801A
  717. #define GL_MAX_CONVOLUTION_HEIGHT 0x801B
  718. #define GL_POST_CONVOLUTION_RED_SCALE 0x801C
  719. #define GL_POST_CONVOLUTION_GREEN_SCALE 0x801D
  720. #define GL_POST_CONVOLUTION_BLUE_SCALE 0x801E
  721. #define GL_POST_CONVOLUTION_ALPHA_SCALE 0x801F
  722. #define GL_POST_CONVOLUTION_RED_BIAS 0x8020
  723. #define GL_POST_CONVOLUTION_GREEN_BIAS 0x8021
  724. #define GL_POST_CONVOLUTION_BLUE_BIAS 0x8022
  725. #define GL_POST_CONVOLUTION_ALPHA_BIAS 0x8023
  726. #define GL_CONSTANT_BORDER 0x8151
  727. #define GL_REPLICATE_BORDER 0x8153
  728. #define GL_CONVOLUTION_BORDER_COLOR 0x8154
  729. /* GL_SGI_color_matrix */
  730. #define GL_COLOR_MATRIX 0x80B1
  731. #define GL_COLOR_MATRIX_STACK_DEPTH 0x80B2
  732. #define GL_MAX_COLOR_MATRIX_STACK_DEPTH 0x80B3
  733. #define GL_POST_COLOR_MATRIX_RED_SCALE 0x80B4
  734. #define GL_POST_COLOR_MATRIX_GREEN_SCALE 0x80B5
  735. #define GL_POST_COLOR_MATRIX_BLUE_SCALE 0x80B6
  736. #define GL_POST_COLOR_MATRIX_ALPHA_SCALE 0x80B7
  737. #define GL_POST_COLOR_MATRIX_RED_BIAS 0x80B8
  738. #define GL_POST_COLOR_MATRIX_GREEN_BIAS 0x80B9
  739. #define GL_POST_COLOR_MATRIX_BLUE_BIAS 0x80BA
  740. #define GL_POST_COLOR_MATRIX_ALPHA_BIAS 0x80BB
  741. /* GL_EXT_histogram */
  742. #define GL_HISTOGRAM 0x8024
  743. #define GL_PROXY_HISTOGRAM 0x8025
  744. #define GL_HISTOGRAM_WIDTH 0x8026
  745. #define GL_HISTOGRAM_FORMAT 0x8027
  746. #define GL_HISTOGRAM_RED_SIZE 0x8028
  747. #define GL_HISTOGRAM_GREEN_SIZE 0x8029
  748. #define GL_HISTOGRAM_BLUE_SIZE 0x802A
  749. #define GL_HISTOGRAM_ALPHA_SIZE 0x802B
  750. #define GL_HISTOGRAM_LUMINANCE_SIZE 0x802C
  751. #define GL_HISTOGRAM_SINK 0x802D
  752. #define GL_MINMAX 0x802E
  753. #define GL_MINMAX_FORMAT 0x802F
  754. #define GL_MINMAX_SINK 0x8030
  755. #define GL_TABLE_TOO_LARGE 0x8031
  756. /* GL_EXT_blend_color, GL_EXT_blend_minmax */
  757. #define GL_BLEND_EQUATION 0x8009
  758. #define GL_MIN 0x8007
  759. #define GL_MAX 0x8008
  760. #define GL_FUNC_ADD 0x8006
  761. #define GL_FUNC_SUBTRACT 0x800A
  762. #define GL_FUNC_REVERSE_SUBTRACT 0x800B
  763. #define GL_BLEND_COLOR 0x8005
  764. /* glPush/PopAttrib bits */
  765. #define GL_CURRENT_BIT 0x00000001
  766. #define GL_POINT_BIT 0x00000002
  767. #define GL_LINE_BIT 0x00000004
  768. #define GL_POLYGON_BIT 0x00000008
  769. #define GL_POLYGON_STIPPLE_BIT 0x00000010
  770. #define GL_PIXEL_MODE_BIT 0x00000020
  771. #define GL_LIGHTING_BIT 0x00000040
  772. #define GL_FOG_BIT 0x00000080
  773. #define GL_DEPTH_BUFFER_BIT 0x00000100
  774. #define GL_ACCUM_BUFFER_BIT 0x00000200
  775. #define GL_STENCIL_BUFFER_BIT 0x00000400
  776. #define GL_VIEWPORT_BIT 0x00000800
  777. #define GL_TRANSFORM_BIT 0x00001000
  778. #define GL_ENABLE_BIT 0x00002000
  779. #define GL_COLOR_BUFFER_BIT 0x00004000
  780. #define GL_HINT_BIT 0x00008000
  781. #define GL_EVAL_BIT 0x00010000
  782. #define GL_LIST_BIT 0x00020000
  783. #define GL_TEXTURE_BIT 0x00040000
  784. #define GL_SCISSOR_BIT 0x00080000
  785. #define GL_ALL_ATTRIB_BITS 0x000FFFFF
  786. #define GL_CLIENT_PIXEL_STORE_BIT 0x00000001
  787. #define GL_CLIENT_VERTEX_ARRAY_BIT 0x00000002
  788. #define GL_ALL_CLIENT_ATTRIB_BITS 0xFFFFFFFF
  789. #if defined(__BEOS__) || defined(__QUICKDRAW__)
  790. #pragma export on
  791. #endif
  792. /*
  793. * Miscellaneous
  794. */
  795. GLAPI void GLAPIENTRY glClearIndex( GLfloat c );
  796. GLAPI void GLAPIENTRY glClearColor( GLclampf red,
  797. GLclampf green,
  798. GLclampf blue,
  799. GLclampf alpha );
  800. GLAPI void GLAPIENTRY glClear( GLbitfield mask );
  801. GLAPI void GLAPIENTRY glIndexMask( GLuint mask );
  802. GLAPI void GLAPIENTRY glColorMask( GLboolean red, GLboolean green,
  803. GLboolean blue, GLboolean alpha );
  804. GLAPI void GLAPIENTRY glAlphaFunc( GLenum func, GLclampf ref );
  805. GLAPI void GLAPIENTRY glBlendFunc( GLenum sfactor, GLenum dfactor );
  806. GLAPI void GLAPIENTRY glLogicOp( GLenum opcode );
  807. GLAPI void GLAPIENTRY glCullFace( GLenum mode );
  808. GLAPI void GLAPIENTRY glFrontFace( GLenum mode );
  809. GLAPI void GLAPIENTRY glPointSize( GLfloat size );
  810. GLAPI void GLAPIENTRY glLineWidth( GLfloat width );
  811. GLAPI void GLAPIENTRY glLineStipple( GLint factor, GLushort pattern );
  812. GLAPI void GLAPIENTRY glPolygonMode( GLenum face, GLenum mode );
  813. GLAPI void GLAPIENTRY glPolygonOffset( GLfloat factor, GLfloat units );
  814. GLAPI void GLAPIENTRY glPolygonStipple( const GLubyte *mask );
  815. GLAPI void GLAPIENTRY glGetPolygonStipple( GLubyte *mask );
  816. GLAPI void GLAPIENTRY glEdgeFlag( GLboolean flag );
  817. GLAPI void GLAPIENTRY glEdgeFlagv( const GLboolean *flag );
  818. GLAPI void GLAPIENTRY glScissor( GLint x, GLint y,
  819. GLsizei width, GLsizei height);
  820. GLAPI void GLAPIENTRY glClipPlane( GLenum plane, const GLdouble *equation );
  821. GLAPI void GLAPIENTRY glGetClipPlane( GLenum plane, GLdouble *equation );
  822. GLAPI void GLAPIENTRY glDrawBuffer( GLenum mode );
  823. GLAPI void GLAPIENTRY glReadBuffer( GLenum mode );
  824. GLAPI void GLAPIENTRY glEnable( GLenum cap );
  825. GLAPI void GLAPIENTRY glDisable( GLenum cap );
  826. GLAPI GLboolean GLAPIENTRY glIsEnabled( GLenum cap );
  827. GLAPI void GLAPIENTRY glEnableClientState( GLenum cap ); /* 1.1 */
  828. GLAPI void GLAPIENTRY glDisableClientState( GLenum cap ); /* 1.1 */
  829. GLAPI void GLAPIENTRY glGetBooleanv( GLenum pname, GLboolean *params );
  830. GLAPI void GLAPIENTRY glGetDoublev( GLenum pname, GLdouble *params );
  831. GLAPI void GLAPIENTRY glGetFloatv( GLenum pname, GLfloat *params );
  832. GLAPI void GLAPIENTRY glGetIntegerv( GLenum pname, GLint *params );
  833. GLAPI void GLAPIENTRY glPushAttrib( GLbitfield mask );
  834. GLAPI void GLAPIENTRY glPopAttrib( void );
  835. GLAPI void GLAPIENTRY glPushClientAttrib( GLbitfield mask ); /* 1.1 */
  836. GLAPI void GLAPIENTRY glPopClientAttrib( void ); /* 1.1 */
  837. GLAPI GLint GLAPIENTRY glRenderMode( GLenum mode );
  838. GLAPI GLenum GLAPIENTRY glGetError( void );
  839. GLAPI const GLubyte* GLAPIENTRY glGetString( GLenum name );
  840. GLAPI void GLAPIENTRY glFinish( void );
  841. GLAPI void GLAPIENTRY glFlush( void );
  842. GLAPI void GLAPIENTRY glHint( GLenum target, GLenum mode );
  843. /*
  844. * Depth Buffer
  845. */
  846. GLAPI void GLAPIENTRY glClearDepth( GLclampd depth );
  847. GLAPI void GLAPIENTRY glDepthFunc( GLenum func );
  848. GLAPI void GLAPIENTRY glDepthMask( GLboolean flag );
  849. GLAPI void GLAPIENTRY glDepthRange( GLclampd near_val, GLclampd far_val );
  850. /*
  851. * Accumulation Buffer
  852. */
  853. GLAPI void GLAPIENTRY glClearAccum( GLfloat red, GLfloat green,
  854. GLfloat blue, GLfloat alpha );
  855. GLAPI void GLAPIENTRY glAccum( GLenum op, GLfloat value );
  856. /*
  857. * Transformation
  858. */
  859. GLAPI void GLAPIENTRY glMatrixMode( GLenum mode );
  860. GLAPI void GLAPIENTRY glOrtho( GLdouble left, GLdouble right,
  861. GLdouble bottom, GLdouble top,
  862. GLdouble near_val, GLdouble far_val );
  863. GLAPI void GLAPIENTRY glFrustum( GLdouble left, GLdouble right,
  864. GLdouble bottom, GLdouble top,
  865. GLdouble near_val, GLdouble far_val );
  866. GLAPI void GLAPIENTRY glViewport( GLint x, GLint y,
  867. GLsizei width, GLsizei height );
  868. GLAPI void GLAPIENTRY glPushMatrix( void );
  869. GLAPI void GLAPIENTRY glPopMatrix( void );
  870. GLAPI void GLAPIENTRY glLoadIdentity( void );
  871. GLAPI void GLAPIENTRY glLoadMatrixd( const GLdouble *m );
  872. GLAPI void GLAPIENTRY glLoadMatrixf( const GLfloat *m );
  873. GLAPI void GLAPIENTRY glMultMatrixd( const GLdouble *m );
  874. GLAPI void GLAPIENTRY glMultMatrixf( const GLfloat *m );
  875. GLAPI void GLAPIENTRY glRotated( GLdouble angle,
  876. GLdouble x, GLdouble y, GLdouble z );
  877. GLAPI void GLAPIENTRY glRotatef( GLfloat angle,
  878. GLfloat x, GLfloat y, GLfloat z );
  879. GLAPI void GLAPIENTRY glScaled( GLdouble x, GLdouble y, GLdouble z );
  880. GLAPI void GLAPIENTRY glScalef( GLfloat x, GLfloat y, GLfloat z );
  881. GLAPI void GLAPIENTRY glTranslated( GLdouble x, GLdouble y, GLdouble z );
  882. GLAPI void GLAPIENTRY glTranslatef( GLfloat x, GLfloat y, GLfloat z );
  883. /*
  884. * Display Lists
  885. */
  886. GLAPI GLboolean GLAPIENTRY glIsList( GLuint list );
  887. GLAPI void GLAPIENTRY glDeleteLists( GLuint list, GLsizei range );
  888. GLAPI GLuint GLAPIENTRY glGenLists( GLsizei range );
  889. GLAPI void GLAPIENTRY glNewList( GLuint list, GLenum mode );
  890. GLAPI void GLAPIENTRY glEndList( void );
  891. GLAPI void GLAPIENTRY glCallList( GLuint list );
  892. GLAPI void GLAPIENTRY glCallLists( GLsizei n, GLenum type,
  893. const GLvoid *lists );
  894. GLAPI void GLAPIENTRY glListBase( GLuint base );
  895. /*
  896. * Drawing Functions
  897. */
  898. GLAPI void GLAPIENTRY glBegin( GLenum mode );
  899. GLAPI void GLAPIENTRY glEnd( void );
  900. GLAPI void GLAPIENTRY glVertex2d( GLdouble x, GLdouble y );
  901. GLAPI void GLAPIENTRY glVertex2f( GLfloat x, GLfloat y );
  902. GLAPI void GLAPIENTRY glVertex2i( GLint x, GLint y );
  903. GLAPI void GLAPIENTRY glVertex2s( GLshort x, GLshort y );
  904. GLAPI void GLAPIENTRY glVertex3d( GLdouble x, GLdouble y, GLdouble z );
  905. GLAPI void GLAPIENTRY glVertex3f( GLfloat x, GLfloat y, GLfloat z );
  906. GLAPI void GLAPIENTRY glVertex3i( GLint x, GLint y, GLint z );
  907. GLAPI void GLAPIENTRY glVertex3s( GLshort x, GLshort y, GLshort z );
  908. GLAPI void GLAPIENTRY glVertex4d( GLdouble x, GLdouble y, GLdouble z, GLdouble w );
  909. GLAPI void GLAPIENTRY glVertex4f( GLfloat x, GLfloat y, GLfloat z, GLfloat w );
  910. GLAPI void GLAPIENTRY glVertex4i( GLint x, GLint y, GLint z, GLint w );
  911. GLAPI void GLAPIENTRY glVertex4s( GLshort x, GLshort y, GLshort z, GLshort w );
  912. GLAPI void GLAPIENTRY glVertex2dv( const GLdouble *v );
  913. GLAPI void GLAPIENTRY glVertex2fv( const GLfloat *v );
  914. GLAPI void GLAPIENTRY glVertex2iv( const GLint *v );
  915. GLAPI void GLAPIENTRY glVertex2sv( const GLshort *v );
  916. GLAPI void GLAPIENTRY glVertex3dv( const GLdouble *v );
  917. GLAPI void GLAPIENTRY glVertex3fv( const GLfloat *v );
  918. GLAPI void GLAPIENTRY glVertex3iv( const GLint *v );
  919. GLAPI void GLAPIENTRY glVertex3sv( const GLshort *v );
  920. GLAPI void GLAPIENTRY glVertex4dv( const GLdouble *v );
  921. GLAPI void GLAPIENTRY glVertex4fv( const GLfloat *v );
  922. GLAPI void GLAPIENTRY glVertex4iv( const GLint *v );
  923. GLAPI void GLAPIENTRY glVertex4sv( const GLshort *v );
  924. GLAPI void GLAPIENTRY glNormal3b( GLbyte nx, GLbyte ny, GLbyte nz );
  925. GLAPI void GLAPIENTRY glNormal3d( GLdouble nx, GLdouble ny, GLdouble nz );
  926. GLAPI void GLAPIENTRY glNormal3f( GLfloat nx, GLfloat ny, GLfloat nz );
  927. GLAPI void GLAPIENTRY glNormal3i( GLint nx, GLint ny, GLint nz );
  928. GLAPI void GLAPIENTRY glNormal3s( GLshort nx, GLshort ny, GLshort nz );
  929. GLAPI void GLAPIENTRY glNormal3bv( const GLbyte *v );
  930. GLAPI void GLAPIENTRY glNormal3dv( const GLdouble *v );
  931. GLAPI void GLAPIENTRY glNormal3fv( const GLfloat *v );
  932. GLAPI void GLAPIENTRY glNormal3iv( const GLint *v );
  933. GLAPI void GLAPIENTRY glNormal3sv( const GLshort *v );
  934. GLAPI void GLAPIENTRY glIndexd( GLdouble c );
  935. GLAPI void GLAPIENTRY glIndexf( GLfloat c );
  936. GLAPI void GLAPIENTRY glIndexi( GLint c );
  937. GLAPI void GLAPIENTRY glIndexs( GLshort c );
  938. GLAPI void GLAPIENTRY glIndexub( GLubyte c ); /* 1.1 */
  939. GLAPI void GLAPIENTRY glIndexdv( const GLdouble *c );
  940. GLAPI void GLAPIENTRY glIndexfv( const GLfloat *c );
  941. GLAPI void GLAPIENTRY glIndexiv( const GLint *c );
  942. GLAPI void GLAPIENTRY glIndexsv( const GLshort *c );
  943. GLAPI void GLAPIENTRY glIndexubv( const GLubyte *c ); /* 1.1 */
  944. GLAPI void GLAPIENTRY glColor3b( GLbyte red, GLbyte green, GLbyte blue );
  945. GLAPI void GLAPIENTRY glColor3d( GLdouble red, GLdouble green, GLdouble blue );
  946. GLAPI void GLAPIENTRY glColor3f( GLfloat red, GLfloat green, GLfloat blue );
  947. GLAPI void GLAPIENTRY glColor3i( GLint red, GLint green, GLint blue );
  948. GLAPI void GLAPIENTRY glColor3s( GLshort red, GLshort green, GLshort blue );
  949. GLAPI void GLAPIENTRY glColor3ub( GLubyte red, GLubyte green, GLubyte blue );
  950. GLAPI void GLAPIENTRY glColor3ui( GLuint red, GLuint green, GLuint blue );
  951. GLAPI void GLAPIENTRY glColor3us( GLushort red, GLushort green, GLushort blue );
  952. GLAPI void GLAPIENTRY glColor4b( GLbyte red, GLbyte green,
  953. GLbyte blue, GLbyte alpha );
  954. GLAPI void GLAPIENTRY glColor4d( GLdouble red, GLdouble green,
  955. GLdouble blue, GLdouble alpha );
  956. GLAPI void GLAPIENTRY glColor4f( GLfloat red, GLfloat green,
  957. GLfloat blue, GLfloat alpha );
  958. GLAPI void GLAPIENTRY glColor4i( GLint red, GLint green,
  959. GLint blue, GLint alpha );
  960. GLAPI void GLAPIENTRY glColor4s( GLshort red, GLshort green,
  961. GLshort blue, GLshort alpha );
  962. GLAPI void GLAPIENTRY glColor4ub( GLubyte red, GLubyte green,
  963. GLubyte blue, GLubyte alpha );
  964. GLAPI void GLAPIENTRY glColor4ui( GLuint red, GLuint green,
  965. GLuint blue, GLuint alpha );
  966. GLAPI void GLAPIENTRY glColor4us( GLushort red, GLushort green,
  967. GLushort blue, GLushort alpha );
  968. GLAPI void GLAPIENTRY glColor3bv( const GLbyte *v );
  969. GLAPI void GLAPIENTRY glColor3dv( const GLdouble *v );
  970. GLAPI void GLAPIENTRY glColor3fv( const GLfloat *v );
  971. GLAPI void GLAPIENTRY glColor3iv( const GLint *v );
  972. GLAPI void GLAPIENTRY glColor3sv( const GLshort *v );
  973. GLAPI void GLAPIENTRY glColor3ubv( const GLubyte *v );
  974. GLAPI void GLAPIENTRY glColor3uiv( const GLuint *v );
  975. GLAPI void GLAPIENTRY glColor3usv( const GLushort *v );
  976. GLAPI void GLAPIENTRY glColor4bv( const GLbyte *v );
  977. GLAPI void GLAPIENTRY glColor4dv( const GLdouble *v );
  978. GLAPI void GLAPIENTRY glColor4fv( const GLfloat *v );
  979. GLAPI void GLAPIENTRY glColor4iv( const GLint *v );
  980. GLAPI void GLAPIENTRY glColor4sv( const GLshort *v );
  981. GLAPI void GLAPIENTRY glColor4ubv( const GLubyte *v );
  982. GLAPI void GLAPIENTRY glColor4uiv( const GLuint *v );
  983. GLAPI void GLAPIENTRY glColor4usv( const GLushort *v );
  984. GLAPI void GLAPIENTRY glTexCoord1d( GLdouble s );
  985. GLAPI void GLAPIENTRY glTexCoord1f( GLfloat s );
  986. GLAPI void GLAPIENTRY glTexCoord1i( GLint s );
  987. GLAPI void GLAPIENTRY glTexCoord1s( GLshort s );
  988. GLAPI void GLAPIENTRY glTexCoord2d( GLdouble s, GLdouble t );
  989. GLAPI void GLAPIENTRY glTexCoord2f( GLfloat s, GLfloat t );
  990. GLAPI void GLAPIENTRY glTexCoord2i( GLint s, GLint t );
  991. GLAPI void GLAPIENTRY glTexCoord2s( GLshort s, GLshort t );
  992. GLAPI void GLAPIENTRY glTexCoord3d( GLdouble s, GLdouble t, GLdouble r );
  993. GLAPI void GLAPIENTRY glTexCoord3f( GLfloat s, GLfloat t, GLfloat r );
  994. GLAPI void GLAPIENTRY glTexCoord3i( GLint s, GLint t, GLint r );
  995. GLAPI void GLAPIENTRY glTexCoord3s( GLshort s, GLshort t, GLshort r );
  996. GLAPI void GLAPIENTRY glTexCoord4d( GLdouble s, GLdouble t, GLdouble r, GLdouble q );
  997. GLAPI void GLAPIENTRY glTexCoord4f( GLfloat s, GLfloat t, GLfloat r, GLfloat q );
  998. GLAPI void GLAPIENTRY glTexCoord4i( GLint s, GLint t, GLint r, GLint q );
  999. GLAPI void GLAPIENTRY glTexCoord4s( GLshort s, GLshort t, GLshort r, GLshort q );
  1000. GLAPI void GLAPIENTRY glTexCoord1dv( const GLdouble *v );
  1001. GLAPI void GLAPIENTRY glTexCoord1fv( const GLfloat *v );
  1002. GLAPI void GLAPIENTRY glTexCoord1iv( const GLint *v );
  1003. GLAPI void GLAPIENTRY glTexCoord1sv( const GLshort *v );
  1004. GLAPI void GLAPIENTRY glTexCoord2dv( const GLdouble *v );
  1005. GLAPI void GLAPIENTRY glTexCoord2fv( const GLfloat *v );
  1006. GLAPI void GLAPIENTRY glTexCoord2iv( const GLint *v );
  1007. GLAPI void GLAPIENTRY glTexCoord2sv( const GLshort *v );
  1008. GLAPI void GLAPIENTRY glTexCoord3dv( const GLdouble *v );
  1009. GLAPI void GLAPIENTRY glTexCoord3fv( const GLfloat *v );
  1010. GLAPI void GLAPIENTRY glTexCoord3iv( const GLint *v );
  1011. GLAPI void GLAPIENTRY glTexCoord3sv( const GLshort *v );
  1012. GLAPI void GLAPIENTRY glTexCoord4dv( const GLdouble *v );
  1013. GLAPI void GLAPIENTRY glTexCoord4fv( const GLfloat *v );
  1014. GLAPI void GLAPIENTRY glTexCoord4iv( const GLint *v );
  1015. GLAPI void GLAPIENTRY glTexCoord4sv( const GLshort *v );
  1016. GLAPI void GLAPIENTRY glRasterPos2d( GLdouble x, GLdouble y );
  1017. GLAPI void GLAPIENTRY glRasterPos2f( GLfloat x, GLfloat y );
  1018. GLAPI void GLAPIENTRY glRasterPos2i( GLint x, GLint y );
  1019. GLAPI void GLAPIENTRY glRasterPos2s( GLshort x, GLshort y );
  1020. GLAPI void GLAPIENTRY glRasterPos3d( GLdouble x, GLdouble y, GLdouble z );
  1021. GLAPI void GLAPIENTRY glRasterPos3f( GLfloat x, GLfloat y, GLfloat z );
  1022. GLAPI void GLAPIENTRY glRasterPos3i( GLint x, GLint y, GLint z );
  1023. GLAPI void GLAPIENTRY glRasterPos3s( GLshort x, GLshort y, GLshort z );
  1024. GLAPI void GLAPIENTRY glRasterPos4d( GLdouble x, GLdouble y, GLdouble z, GLdouble w );
  1025. GLAPI void GLAPIENTRY glRasterPos4f( GLfloat x, GLfloat y, GLfloat z, GLfloat w );
  1026. GLAPI void GLAPIENTRY glRasterPos4i( GLint x, GLint y, GLint z, GLint w );
  1027. GLAPI void GLAPIENTRY glRasterPos4s( GLshort x, GLshort y, GLshort z, GLshort w );
  1028. GLAPI void GLAPIENTRY glRasterPos2dv( const GLdouble *v );
  1029. GLAPI void GLAPIENTRY glRasterPos2fv( const GLfloat *v );
  1030. GLAPI void GLAPIENTRY glRasterPos2iv( const GLint *v );
  1031. GLAPI void GLAPIENTRY glRasterPos2sv( const GLshort *v );
  1032. GLAPI void GLAPIENTRY glRasterPos3dv( const GLdouble *v );
  1033. GLAPI void GLAPIENTRY glRasterPos3fv( const GLfloat *v );
  1034. GLAPI void GLAPIENTRY glRasterPos3iv( const GLint *v );
  1035. GLAPI void GLAPIENTRY glRasterPos3sv( const GLshort *v );
  1036. GLAPI void GLAPIENTRY glRasterPos4dv( const GLdouble *v );
  1037. GLAPI void GLAPIENTRY glRasterPos4fv( const GLfloat *v );
  1038. GLAPI void GLAPIENTRY glRasterPos4iv( const GLint *v );
  1039. GLAPI void GLAPIENTRY glRasterPos4sv( const GLshort *v );
  1040. GLAPI void GLAPIENTRY glRectd( GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2 );
  1041. GLAPI void GLAPIENTRY glRectf( GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2 );
  1042. GLAPI void GLAPIENTRY glRecti( GLint x1, GLint y1, GLint x2, GLint y2 );
  1043. GLAPI void GLAPIENTRY glRects( GLshort x1, GLshort y1, GLshort x2, GLshort y2 );
  1044. GLAPI void GLAPIENTRY glRectdv( const GLdouble *v1, const GLdouble *v2 );
  1045. GLAPI void GLAPIENTRY glRectfv( const GLfloat *v1, const GLfloat *v2 );
  1046. GLAPI void GLAPIENTRY glRectiv( const GLint *v1, const GLint *v2 );
  1047. GLAPI void GLAPIENTRY glRectsv( const GLshort *v1, const GLshort *v2 );
  1048. /*
  1049. * Vertex Arrays (1.1)
  1050. */
  1051. GLAPI void GLAPIENTRY glVertexPointer( GLint size, GLenum type,
  1052. GLsizei stride, const GLvoid *ptr );
  1053. GLAPI void GLAPIENTRY glNormalPointer( GLenum type, GLsizei stride,
  1054. const GLvoid *ptr );
  1055. GLAPI void GLAPIENTRY glColorPointer( GLint size, GLenum type,
  1056. GLsizei stride, const GLvoid *ptr );
  1057. GLAPI void GLAPIENTRY glIndexPointer( GLenum type, GLsizei stride,
  1058. const GLvoid *ptr );
  1059. GLAPI void GLAPIENTRY glTexCoordPointer( GLint size, GLenum type,
  1060. GLsizei stride, const GLvoid *ptr );
  1061. GLAPI void GLAPIENTRY glEdgeFlagPointer( GLsizei stride, const GLvoid *ptr );
  1062. GLAPI void GLAPIENTRY glGetPointerv( GLenum pname, void **params );
  1063. GLAPI void GLAPIENTRY glArrayElement( GLint i );
  1064. GLAPI void GLAPIENTRY glDrawArrays( GLenum mode, GLint first, GLsizei count );
  1065. GLAPI void GLAPIENTRY glDrawElements( GLenum mode, GLsizei count,
  1066. GLenum type, const GLvoid *indices );
  1067. GLAPI void GLAPIENTRY glInterleavedArrays( GLenum format, GLsizei stride,
  1068. const GLvoid *pointer );
  1069. /*
  1070. * Lighting
  1071. */
  1072. GLAPI void GLAPIENTRY glShadeModel( GLenum mode );
  1073. GLAPI void GLAPIENTRY glLightf( GLenum light, GLenum pname, GLfloat param );
  1074. GLAPI void GLAPIENTRY glLighti( GLenum light, GLenum pname, GLint param );
  1075. GLAPI void GLAPIENTRY glLightfv( GLenum light, GLenum pname,
  1076. const GLfloat *params );
  1077. GLAPI void GLAPIENTRY glLightiv( GLenum light, GLenum pname,
  1078. const GLint *params );
  1079. GLAPI void GLAPIENTRY glGetLightfv( GLenum light, GLenum pname,
  1080. GLfloat *params );
  1081. GLAPI void GLAPIENTRY glGetLightiv( GLenum light, GLenum pname,
  1082. GLint *params );
  1083. GLAPI void GLAPIENTRY glLightModelf( GLenum pname, GLfloat param );
  1084. GLAPI void GLAPIENTRY glLightModeli( GLenum pname, GLint param );
  1085. GLAPI void GLAPIENTRY glLightModelfv( GLenum pname, const GLfloat *params );
  1086. GLAPI void GLAPIENTRY glLightModeliv( GLenum pname, const GLint *params );
  1087. GLAPI void GLAPIENTRY glMaterialf( GLenum face, GLenum pname, GLfloat param );
  1088. GLAPI void GLAPIENTRY glMateriali( GLenum face, GLenum pname, GLint param );
  1089. GLAPI void GLAPIENTRY glMaterialfv( GLenum face, GLenum pname, const GLfloat *params );
  1090. GLAPI void GLAPIENTRY glMaterialiv( GLenum face, GLenum pname, const GLint *params );
  1091. GLAPI void GLAPIENTRY glGetMaterialfv( GLenum face, GLenum pname, GLfloat *params );
  1092. GLAPI void GLAPIENTRY glGetMaterialiv( GLenum face, GLenum pname, GLint *params );
  1093. GLAPI void GLAPIENTRY glColorMaterial( GLenum face, GLenum mode );
  1094. /*
  1095. * Raster functions
  1096. */
  1097. GLAPI void GLAPIENTRY glPixelZoom( GLfloat xfactor, GLfloat yfactor );
  1098. GLAPI void GLAPIENTRY glPixelStoref( GLenum pname, GLfloat param );
  1099. GLAPI void GLAPIENTRY glPixelStorei( GLenum pname, GLint param );
  1100. GLAPI void GLAPIENTRY glPixelTransferf( GLenum pname, GLfloat param );
  1101. GLAPI void GLAPIENTRY glPixelTransferi( GLenum pname, GLint param );
  1102. GLAPI void GLAPIENTRY glPixelMapfv( GLenum map, GLint mapsize,
  1103. const GLfloat *values );
  1104. GLAPI void GLAPIENTRY glPixelMapuiv( GLenum map, GLint mapsize,
  1105. const GLuint *values );
  1106. GLAPI void GLAPIENTRY glPixelMapusv( GLenum map, GLint mapsize,
  1107. const GLushort *values );
  1108. GLAPI void GLAPIENTRY glGetPixelMapfv( GLenum map, GLfloat *values );
  1109. GLAPI void GLAPIENTRY glGetPixelMapuiv( GLenum map, GLuint *values );
  1110. GLAPI void GLAPIENTRY glGetPixelMapusv( GLenum map, GLushort *values );
  1111. GLAPI void GLAPIENTRY glBitmap( GLsizei width, GLsizei height,
  1112. GLfloat xorig, GLfloat yorig,
  1113. GLfloat xmove, GLfloat ymove,
  1114. const GLubyte *bitmap );
  1115. GLAPI void GLAPIENTRY glReadPixels( GLint x, GLint y,
  1116. GLsizei width, GLsizei height,
  1117. GLenum format, GLenum type,
  1118. GLvoid *pixels );
  1119. GLAPI void GLAPIENTRY glDrawPixels( GLsizei width, GLsizei height,
  1120. GLenum format, GLenum type,
  1121. const GLvoid *pixels );
  1122. GLAPI void GLAPIENTRY glCopyPixels( GLint x, GLint y,
  1123. GLsizei width, GLsizei height,
  1124. GLenum type );
  1125. /*
  1126. * Stenciling
  1127. */
  1128. GLAPI void GLAPIENTRY glStencilFunc( GLenum func, GLint ref, GLuint mask );
  1129. GLAPI void GLAPIENTRY glStencilMask( GLuint mask );
  1130. GLAPI void GLAPIENTRY glStencilOp( GLenum fail, GLenum zfail, GLenum zpass );
  1131. GLAPI void GLAPIENTRY glClearStencil( GLint s );
  1132. /*
  1133. * Texture mapping
  1134. */
  1135. GLAPI void GLAPIENTRY glTexGend( GLenum coord, GLenum pname, GLdouble param );
  1136. GLAPI void GLAPIENTRY glTexGenf( GLenum coord, GLenum pname, GLfloat param );
  1137. GLAPI void GLAPIENTRY glTexGeni( GLenum coord, GLenum pname, GLint param );
  1138. GLAPI void GLAPIENTRY glTexGendv( GLenum coord, GLenum pname, const GLdouble *params );
  1139. GLAPI void GLAPIENTRY glTexGenfv( GLenum coord, GLenum pname, const GLfloat *params );
  1140. GLAPI void GLAPIENTRY glTexGeniv( GLenum coord, GLenum pname, const GLint *params );
  1141. GLAPI void GLAPIENTRY glGetTexGendv( GLenum coord, GLenum pname, GLdouble *params );
  1142. GLAPI void GLAPIENTRY glGetTexGenfv( GLenum coord, GLenum pname, GLfloat *params );
  1143. GLAPI void GLAPIENTRY glGetTexGeniv( GLenum coord, GLenum pname, GLint *params );
  1144. GLAPI void GLAPIENTRY glTexEnvf( GLenum target, GLenum pname, GLfloat param );
  1145. GLAPI void GLAPIENTRY glTexEnvi( GLenum target, GLenum pname, GLint param );
  1146. GLAPI void GLAPIENTRY glTexEnvfv( GLenum target, GLenum pname, const GLfloat *params );
  1147. GLAPI void GLAPIENTRY glTexEnviv( GLenum target, GLenum pname, const GLint *params );
  1148. GLAPI void GLAPIENTRY glGetTexEnvfv( GLenum target, GLenum pname, GLfloat *params );
  1149. GLAPI void GLAPIENTRY glGetTexEnviv( GLenum target, GLenum pname, GLint *params );
  1150. GLAPI void GLAPIENTRY glTexParameterf( GLenum target, GLenum pname, GLfloat param );
  1151. GLAPI void GLAPIENTRY glTexParameteri( GLenum target, GLenum pname, GLint param );
  1152. GLAPI void GLAPIENTRY glTexParameterfv( GLenum target, GLenum pname,
  1153. const GLfloat *params );
  1154. GLAPI void GLAPIENTRY glTexParameteriv( GLenum target, GLenum pname,
  1155. const GLint *params );
  1156. GLAPI void GLAPIENTRY glGetTexParameterfv( GLenum target,
  1157. GLenum pname, GLfloat *params);
  1158. GLAPI void GLAPIENTRY glGetTexParameteriv( GLenum target,
  1159. GLenum pname, GLint *params );
  1160. GLAPI void GLAPIENTRY glGetTexLevelParameterfv( GLenum target, GLint level,
  1161. GLenum pname, GLfloat *params );
  1162. GLAPI void GLAPIENTRY glGetTexLevelParameteriv( GLenum target, GLint level,
  1163. GLenum pname, GLint *params );
  1164. GLAPI void GLAPIENTRY glTexImage1D( GLenum target, GLint level,
  1165. GLint internalFormat,
  1166. GLsizei width, GLint border,
  1167. GLenum format, GLenum type,
  1168. const GLvoid *pixels );
  1169. GLAPI void GLAPIENTRY glTexImage2D( GLenum target, GLint level,
  1170. GLint internalFormat,
  1171. GLsizei width, GLsizei height,
  1172. GLint border, GLenum format, GLenum type,
  1173. const GLvoid *pixels );
  1174. GLAPI void GLAPIENTRY glGetTexImage( GLenum target, GLint level,
  1175. GLenum format, GLenum type,
  1176. GLvoid *pixels );
  1177. /* 1.1 functions */
  1178. GLAPI void GLAPIENTRY glGenTextures( GLsizei n, GLuint *textures );
  1179. GLAPI void GLAPIENTRY glDeleteTextures( GLsizei n, const GLuint *textures);
  1180. GLAPI void GLAPIENTRY glBindTexture( GLenum target, GLuint texture );
  1181. GLAPI void GLAPIENTRY glPrioritizeTextures( GLsizei n,
  1182. const GLuint *textures,
  1183. const GLclampf *priorities );
  1184. GLAPI GLboolean GLAPIENTRY glAreTexturesResident( GLsizei n,
  1185. const GLuint *textures,
  1186. GLboolean *residences );
  1187. GLAPI GLboolean GLAPIENTRY glIsTexture( GLuint texture );
  1188. GLAPI void GLAPIENTRY glTexSubImage1D( GLenum target, GLint level,
  1189. GLint xoffset,
  1190. GLsizei width, GLenum format,
  1191. GLenum type, const GLvoid *pixels );
  1192. GLAPI void GLAPIENTRY glTexSubImage2D( GLenum target, GLint level,
  1193. GLint xoffset, GLint yoffset,
  1194. GLsizei width, GLsizei height,
  1195. GLenum format, GLenum type,
  1196. const GLvoid *pixels );
  1197. GLAPI void GLAPIENTRY glCopyTexImage1D( GLenum target, GLint level,
  1198. GLenum internalformat,
  1199. GLint x, GLint y,
  1200. GLsizei width, GLint border );
  1201. GLAPI void GLAPIENTRY glCopyTexImage2D( GLenum target, GLint level,
  1202. GLenum internalformat,
  1203. GLint x, GLint y,
  1204. GLsizei width, GLsizei height,
  1205. GLint border );
  1206. GLAPI void GLAPIENTRY glCopyTexSubImage1D( GLenum target, GLint level,
  1207. GLint xoffset, GLint x, GLint y,
  1208. GLsizei width );
  1209. GLAPI void GLAPIENTRY glCopyTexSubImage2D( GLenum target, GLint level,
  1210. GLint xoffset, GLint yoffset,
  1211. GLint x, GLint y,
  1212. GLsizei width, GLsizei height );
  1213. /*
  1214. * Evaluators
  1215. */
  1216. GLAPI void GLAPIENTRY glMap1d( GLenum target, GLdouble u1, GLdouble u2,
  1217. GLint stride,
  1218. GLint order, const GLdouble *points );
  1219. GLAPI void GLAPIENTRY glMap1f( GLenum target, GLfloat u1, GLfloat u2,
  1220. GLint stride,
  1221. GLint order, const GLfloat *points );
  1222. GLAPI void GLAPIENTRY glMap2d( GLenum target,
  1223. GLdouble u1, GLdouble u2, GLint ustride, GLint uorder,
  1224. GLdouble v1, GLdouble v2, GLint vstride, GLint vorder,
  1225. const GLdouble *points );
  1226. GLAPI void GLAPIENTRY glMap2f( GLenum target,
  1227. GLfloat u1, GLfloat u2, GLint ustride, GLint uorder,
  1228. GLfloat v1, GLfloat v2, GLint vstride, GLint vorder,
  1229. const GLfloat *points );
  1230. GLAPI void GLAPIENTRY glGetMapdv( GLenum target, GLenum query, GLdouble *v );
  1231. GLAPI void GLAPIENTRY glGetMapfv( GLenum target, GLenum query, GLfloat *v );
  1232. GLAPI void GLAPIENTRY glGetMapiv( GLenum target, GLenum query, GLint *v );
  1233. GLAPI void GLAPIENTRY glEvalCoord1d( GLdouble u );
  1234. GLAPI void GLAPIENTRY glEvalCoord1f( GLfloat u );
  1235. GLAPI void GLAPIENTRY glEvalCoord1dv( const GLdouble *u );
  1236. GLAPI void GLAPIENTRY glEvalCoord1fv( const GLfloat *u );
  1237. GLAPI void GLAPIENTRY glEvalCoord2d( GLdouble u, GLdouble v );
  1238. GLAPI void GLAPIENTRY glEvalCoord2f( GLfloat u, GLfloat v );
  1239. GLAPI void GLAPIENTRY glEvalCoord2dv( const GLdouble *u );
  1240. GLAPI void GLAPIENTRY glEvalCoord2fv( const GLfloat *u );
  1241. GLAPI void GLAPIENTRY glMapGrid1d( GLint un, GLdouble u1, GLdouble u2 );
  1242. GLAPI void GLAPIENTRY glMapGrid1f( GLint un, GLfloat u1, GLfloat u2 );
  1243. GLAPI void GLAPIENTRY glMapGrid2d( GLint un, GLdouble u1, GLdouble u2,
  1244. GLint vn, GLdouble v1, GLdouble v2 );
  1245. GLAPI void GLAPIENTRY glMapGrid2f( GLint un, GLfloat u1, GLfloat u2,
  1246. GLint vn, GLfloat v1, GLfloat v2 );
  1247. GLAPI void GLAPIENTRY glEvalPoint1( GLint i );
  1248. GLAPI void GLAPIENTRY glEvalPoint2( GLint i, GLint j );
  1249. GLAPI void GLAPIENTRY glEvalMesh1( GLenum mode, GLint i1, GLint i2 );
  1250. GLAPI void GLAPIENTRY glEvalMesh2( GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2 );
  1251. /*
  1252. * Fog
  1253. */
  1254. GLAPI void GLAPIENTRY glFogf( GLenum pname, GLfloat param );
  1255. GLAPI void GLAPIENTRY glFogi( GLenum pname, GLint param );
  1256. GLAPI void GLAPIENTRY glFogfv( GLenum pname, const GLfloat *params );
  1257. GLAPI void GLAPIENTRY glFogiv( GLenum pname, const GLint *params );
  1258. /*
  1259. * Selection and Feedback
  1260. */
  1261. GLAPI void GLAPIENTRY glFeedbackBuffer( GLsizei size, GLenum type, GLfloat *buffer );
  1262. GLAPI void GLAPIENTRY glPassThrough( GLfloat token );
  1263. GLAPI void GLAPIENTRY glSelectBuffer( GLsizei size, GLuint *buffer );
  1264. GLAPI void GLAPIENTRY glInitNames( void );
  1265. GLAPI void GLAPIENTRY glLoadName( GLuint name );
  1266. GLAPI void GLAPIENTRY glPushName( GLuint name );
  1267. GLAPI void GLAPIENTRY glPopName( void );
  1268. /* 1.2 functions */
  1269. GLAPI void GLAPIENTRY glDrawRangeElements( GLenum mode, GLuint start,
  1270. GLuint end, GLsizei count, GLenum type, const GLvoid *indices );
  1271. GLAPI void GLAPIENTRY glTexImage3D( GLenum target, GLint level,
  1272. GLint internalFormat,
  1273. GLsizei width, GLsizei height,
  1274. GLsizei depth, GLint border,
  1275. GLenum format, GLenum type,
  1276. const GLvoid *pixels );
  1277. GLAPI void GLAPIENTRY glTexSubImage3D( GLenum target, GLint level,
  1278. GLint xoffset, GLint yoffset,
  1279. GLint zoffset, GLsizei width,
  1280. GLsizei height, GLsizei depth,
  1281. GLenum format,
  1282. GLenum type, const GLvoid *pixels);
  1283. GLAPI void GLAPIENTRY glCopyTexSubImage3D( GLenum target, GLint level,
  1284. GLint xoffset, GLint yoffset,
  1285. GLint zoffset, GLint x,
  1286. GLint y, GLsizei width,
  1287. GLsizei height );
  1288. /* 1.2 imaging extension functions */
  1289. GLAPI void GLAPIENTRY glColorTable( GLenum target, GLenum internalformat,
  1290. GLsizei width, GLenum format,
  1291. GLenum type, const GLvoid *table );
  1292. GLAPI void GLAPIENTRY glColorSubTable( GLenum target,
  1293. GLsizei start, GLsizei count,
  1294. GLenum format, GLenum type,
  1295. const GLvoid *data );
  1296. GLAPI void GLAPIENTRY glColorTableParameteriv(GLenum target, GLenum pname,
  1297. const GLint *params);
  1298. GLAPI void GLAPIENTRY glColorTableParameterfv(GLenum target, GLenum pname,
  1299. const GLfloat *params);
  1300. GLAPI void GLAPIENTRY glCopyColorSubTable( GLenum target, GLsizei start,
  1301. GLint x, GLint y, GLsizei width );
  1302. GLAPI void GLAPIENTRY glCopyColorTable( GLenum target, GLenum internalformat,
  1303. GLint x, GLint y, GLsizei width );
  1304. GLAPI void GLAPIENTRY glGetColorTable( GLenum target, GLenum format,
  1305. GLenum type, GLvoid *table );
  1306. GLAPI void GLAPIENTRY glGetColorTableParameterfv( GLenum target, GLenum pname,
  1307. GLfloat *params );
  1308. GLAPI void GLAPIENTRY glGetColorTableParameteriv( GLenum target, GLenum pname,
  1309. GLint *params );
  1310. GLAPI void GLAPIENTRY glBlendEquation( GLenum mode );
  1311. GLAPI void GLAPIENTRY glBlendColor( GLclampf red, GLclampf green,
  1312. GLclampf blue, GLclampf alpha );
  1313. GLAPI void GLAPIENTRY glHistogram( GLenum target, GLsizei width,
  1314. GLenum internalformat, GLboolean sink );
  1315. GLAPI void GLAPIENTRY glResetHistogram( GLenum target );
  1316. GLAPI void GLAPIENTRY glGetHistogram( GLenum target, GLboolean reset,
  1317. GLenum format, GLenum type,
  1318. GLvoid *values );
  1319. GLAPI void GLAPIENTRY glGetHistogramParameterfv( GLenum target, GLenum pname,
  1320. GLfloat *params );
  1321. GLAPI void GLAPIENTRY glGetHistogramParameteriv( GLenum target, GLenum pname,
  1322. GLint *params );
  1323. GLAPI void GLAPIENTRY glMinmax( GLenum target, GLenum internalformat,
  1324. GLboolean sink );
  1325. GLAPI void GLAPIENTRY glResetMinmax( GLenum target );
  1326. GLAPI void GLAPIENTRY glGetMinmax( GLenum target, GLboolean reset,
  1327. GLenum format, GLenum types,
  1328. GLvoid *values );
  1329. GLAPI void GLAPIENTRY glGetMinmaxParameterfv( GLenum target, GLenum pname,
  1330. GLfloat *params );
  1331. GLAPI void GLAPIENTRY glGetMinmaxParameteriv( GLenum target, GLenum pname,
  1332. GLint *params );
  1333. GLAPI void GLAPIENTRY glConvolutionFilter1D( GLenum target,
  1334. GLenum internalformat, GLsizei width, GLenum format, GLenum type,
  1335. const GLvoid *image );
  1336. GLAPI void GLAPIENTRY glConvolutionFilter2D( GLenum target,
  1337. GLenum internalformat, GLsizei width, GLsizei height, GLenum format,
  1338. GLenum type, const GLvoid *image );
  1339. GLAPI void GLAPIENTRY glConvolutionParameterf( GLenum target, GLenum pname,
  1340. GLfloat params );
  1341. GLAPI void GLAPIENTRY glConvolutionParameterfv( GLenum target, GLenum pname,
  1342. const GLfloat *params );
  1343. GLAPI void GLAPIENTRY glConvolutionParameteri( GLenum target, GLenum pname,
  1344. GLint params );
  1345. GLAPI void GLAPIENTRY glConvolutionParameteriv( GLenum target, GLenum pname,
  1346. const GLint *params );
  1347. GLAPI void GLAPIENTRY glCopyConvolutionFilter1D( GLenum target,
  1348. GLenum internalformat, GLint x, GLint y, GLsizei width );
  1349. GLAPI void GLAPIENTRY glCopyConvolutionFilter2D( GLenum target,
  1350. GLenum internalformat, GLint x, GLint y, GLsizei width,
  1351. GLsizei height);
  1352. GLAPI void GLAPIENTRY glGetConvolutionFilter( GLenum target, GLenum format,
  1353. GLenum type, GLvoid *image );
  1354. GLAPI void GLAPIENTRY glGetConvolutionParameterfv( GLenum target, GLenum pname,
  1355. GLfloat *params );
  1356. GLAPI void GLAPIENTRY glGetConvolutionParameteriv( GLenum target, GLenum pname,
  1357. GLint *params );
  1358. GLAPI void GLAPIENTRY glSeparableFilter2D( GLenum target,
  1359. GLenum internalformat, GLsizei width, GLsizei height, GLenum format,
  1360. GLenum type, const GLvoid *row, const GLvoid *column );
  1361. GLAPI void GLAPIENTRY glGetSeparableFilter( GLenum target, GLenum format,
  1362. GLenum type, GLvoid *row, GLvoid *column, GLvoid *span );
  1363. /*
  1364. * GL_ARB_multitexture (ARB extension 1 and OpenGL 1.2.1)
  1365. */
  1366. #ifndef GL_ARB_multitexture
  1367. #define GL_ARB_multitexture 1
  1368. #define GL_TEXTURE0_ARB 0x84C0
  1369. #define GL_TEXTURE1_ARB 0x84C1
  1370. #define GL_TEXTURE2_ARB 0x84C2
  1371. #define GL_TEXTURE3_ARB 0x84C3
  1372. #define GL_TEXTURE4_ARB 0x84C4
  1373. #define GL_TEXTURE5_ARB 0x84C5
  1374. #define GL_TEXTURE6_ARB 0x84C6
  1375. #define GL_TEXTURE7_ARB 0x84C7
  1376. #define GL_TEXTURE8_ARB 0x84C8
  1377. #define GL_TEXTURE9_ARB 0x84C9
  1378. #define GL_TEXTURE10_ARB 0x84CA
  1379. #define GL_TEXTURE11_ARB 0x84CB
  1380. #define GL_TEXTURE12_ARB 0x84CC
  1381. #define GL_TEXTURE13_ARB 0x84CD
  1382. #define GL_TEXTURE14_ARB 0x84CE
  1383. #define GL_TEXTURE15_ARB 0x84CF
  1384. #define GL_TEXTURE16_ARB 0x84D0
  1385. #define GL_TEXTURE17_ARB 0x84D1
  1386. #define GL_TEXTURE18_ARB 0x84D2
  1387. #define GL_TEXTURE19_ARB 0x84D3
  1388. #define GL_TEXTURE20_ARB 0x84D4
  1389. #define GL_TEXTURE21_ARB 0x84D5
  1390. #define GL_TEXTURE22_ARB 0x84D6
  1391. #define GL_TEXTURE23_ARB 0x84D7
  1392. #define GL_TEXTURE24_ARB 0x84D8
  1393. #define GL_TEXTURE25_ARB 0x84D9
  1394. #define GL_TEXTURE26_ARB 0x84DA
  1395. #define GL_TEXTURE27_ARB 0x84DB
  1396. #define GL_TEXTURE28_ARB 0x84DC
  1397. #define GL_TEXTURE29_ARB 0x84DD
  1398. #define GL_TEXTURE30_ARB 0x84DE
  1399. #define GL_TEXTURE31_ARB 0x84DF
  1400. #define GL_ACTIVE_TEXTURE_ARB 0x84E0
  1401. #define GL_CLIENT_ACTIVE_TEXTURE_ARB 0x84E1
  1402. #define GL_MAX_TEXTURE_UNITS_ARB 0x84E2
  1403. GLAPI void GLAPIENTRY glActiveTextureARB(GLenum texture);
  1404. GLAPI void GLAPIENTRY glClientActiveTextureARB(GLenum texture);
  1405. GLAPI void GLAPIENTRY glMultiTexCoord1dARB(GLenum target, GLdouble s);
  1406. GLAPI void GLAPIENTRY glMultiTexCoord1dvARB(GLenum target, const GLdouble *v);
  1407. GLAPI void GLAPIENTRY glMultiTexCoord1fARB(GLenum target, GLfloat s);
  1408. GLAPI void GLAPIENTRY glMultiTexCoord1fvARB(GLenum target, const GLfloat *v);
  1409. GLAPI void GLAPIENTRY glMultiTexCoord1iARB(GLenum target, GLint s);
  1410. GLAPI void GLAPIENTRY glMultiTexCoord1ivARB(GLenum target, const GLint *v);
  1411. GLAPI void GLAPIENTRY glMultiTexCoord1sARB(GLenum target, GLshort s);
  1412. GLAPI void GLAPIENTRY glMultiTexCoord1svARB(GLenum target, const GLshort *v);
  1413. GLAPI void GLAPIENTRY glMultiTexCoord2dARB(GLenum target, GLdouble s, GLdouble t);
  1414. GLAPI void GLAPIENTRY glMultiTexCoord2dvARB(GLenum target, const GLdouble *v);
  1415. GLAPI void GLAPIENTRY glMultiTexCoord2fARB(GLenum target, GLfloat s, GLfloat t);
  1416. GLAPI void GLAPIENTRY glMultiTexCoord2fvARB(GLenum target, const GLfloat *v);
  1417. GLAPI void GLAPIENTRY glMultiTexCoord2iARB(GLenum target, GLint s, GLint t);
  1418. GLAPI void GLAPIENTRY glMultiTexCoord2ivARB(GLenum target, const GLint *v);
  1419. GLAPI void GLAPIENTRY glMultiTexCoord2sARB(GLenum target, GLshort s, GLshort t);
  1420. GLAPI void GLAPIENTRY glMultiTexCoord2svARB(GLenum target, const GLshort *v);
  1421. GLAPI void GLAPIENTRY glMultiTexCoord3dARB(GLenum target, GLdouble s, GLdouble t, GLdouble r);
  1422. GLAPI void GLAPIENTRY glMultiTexCoord3dvARB(GLenum target, const GLdouble *v);
  1423. GLAPI void GLAPIENTRY glMultiTexCoord3fARB(GLenum target, GLfloat s, GLfloat t, GLfloat r);
  1424. GLAPI void GLAPIENTRY glMultiTexCoord3fvARB(GLenum target, const GLfloat *v);
  1425. GLAPI void GLAPIENTRY glMultiTexCoord3iARB(GLenum target, GLint s, GLint t, GLint r);
  1426. GLAPI void GLAPIENTRY glMultiTexCoord3ivARB(GLenum target, const GLint *v);
  1427. GLAPI void GLAPIENTRY glMultiTexCoord3sARB(GLenum target, GLshort s, GLshort t, GLshort r);
  1428. GLAPI void GLAPIENTRY glMultiTexCoord3svARB(GLenum target, const GLshort *v);
  1429. GLAPI void GLAPIENTRY glMultiTexCoord4dARB(GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
  1430. GLAPI void GLAPIENTRY glMultiTexCoord4dvARB(GLenum target, const GLdouble *v);
  1431. GLAPI void GLAPIENTRY glMultiTexCoord4fARB(GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
  1432. GLAPI void GLAPIENTRY glMultiTexCoord4fvARB(GLenum target, const GLfloat *v);
  1433. GLAPI void GLAPIENTRY glMultiTexCoord4iARB(GLenum target, GLint s, GLint t, GLint r, GLint q);
  1434. GLAPI void GLAPIENTRY glMultiTexCoord4ivARB(GLenum target, const GLint *v);
  1435. GLAPI void GLAPIENTRY glMultiTexCoord4sARB(GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
  1436. GLAPI void GLAPIENTRY glMultiTexCoord4svARB(GLenum target, const GLshort *v);
  1437. #endif /* GL_ARB_multitexture */
  1438. #if defined(GL_GLEXT_LEGACY)
  1439. /*
  1440. * 1. GL_EXT_abgr
  1441. */
  1442. #ifndef GL_EXT_abgr
  1443. #define GL_EXT_abgr 1
  1444. #define GL_ABGR_EXT 0x8000
  1445. #endif /* GL_EXT_abgr */
  1446. /*
  1447. * 2. GL_EXT_blend_color
  1448. */
  1449. #ifndef GL_EXT_blend_color
  1450. #define GL_EXT_blend_color 1
  1451. #define GL_CONSTANT_COLOR_EXT 0x8001
  1452. #define GL_ONE_MINUS_CONSTANT_COLOR_EXT 0x8002
  1453. #define GL_CONSTANT_ALPHA_EXT 0x8003
  1454. #define GL_ONE_MINUS_CONSTANT_ALPHA_EXT 0x8004
  1455. #define GL_BLEND_COLOR_EXT 0x8005
  1456. GLAPI void GLAPIENTRY glBlendColorEXT( GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha );
  1457. #endif /* GL_EXT_blend_color */
  1458. /*
  1459. * 3. GL_EXT_polygon_offset
  1460. */
  1461. #ifndef GL_EXT_polygon_offset
  1462. #define GL_EXT_polygon_offset 1
  1463. #define GL_POLYGON_OFFSET_EXT 0x8037
  1464. #define GL_POLYGON_OFFSET_FACTOR_EXT 0x8038
  1465. #define GL_POLYGON_OFFSET_BIAS_EXT 0x8039
  1466. GLAPI void GLAPIENTRY glPolygonOffsetEXT( GLfloat factor, GLfloat bias );
  1467. #endif /* GL_EXT_polygon_offset */
  1468. /*
  1469. * 6. GL_EXT_texture3D
  1470. */
  1471. #ifndef GL_EXT_texture3D
  1472. #define GL_EXT_texture3D 1
  1473. #define GL_PACK_SKIP_IMAGES_EXT 0x806B
  1474. #define GL_PACK_IMAGE_HEIGHT_EXT 0x806C
  1475. #define GL_UNPACK_SKIP_IMAGES_EXT 0x806D
  1476. #define GL_UNPACK_IMAGE_HEIGHT_EXT 0x806E
  1477. #define GL_TEXTURE_3D_EXT 0x806F
  1478. #define GL_PROXY_TEXTURE_3D_EXT 0x8070
  1479. #define GL_TEXTURE_DEPTH_EXT 0x8071
  1480. #define GL_TEXTURE_WRAP_R_EXT 0x8072
  1481. #define GL_MAX_3D_TEXTURE_SIZE_EXT 0x8073
  1482. #define GL_TEXTURE_3D_BINDING_EXT 0x806A
  1483. GLAPI void GLAPIENTRY glTexImage3DEXT( GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels );
  1484. GLAPI void GLAPIENTRY glTexSubImage3DEXT( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels);
  1485. GLAPI void GLAPIENTRY glCopyTexSubImage3DEXT( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height );
  1486. #endif /* GL_EXT_texture3D */
  1487. /*
  1488. * 20. GL_EXT_texture_object
  1489. */
  1490. #ifndef GL_EXT_texture_object
  1491. #define GL_EXT_texture_object 1
  1492. #define GL_TEXTURE_PRIORITY_EXT 0x8066
  1493. #define GL_TEXTURE_RESIDENT_EXT 0x8067
  1494. #define GL_TEXTURE_1D_BINDING_EXT 0x8068
  1495. #define GL_TEXTURE_2D_BINDING_EXT 0x8069
  1496. GLAPI void GLAPIENTRY glGenTexturesEXT( GLsizei n, GLuint *textures );
  1497. GLAPI void GLAPIENTRY glDeleteTexturesEXT( GLsizei n, const GLuint *textures);
  1498. GLAPI void GLAPIENTRY glBindTextureEXT( GLenum target, GLuint texture );
  1499. GLAPI void GLAPIENTRY glPrioritizeTexturesEXT( GLsizei n, const GLuint *textures, const GLclampf *priorities );
  1500. GLAPI GLboolean GLAPIENTRY glAreTexturesResidentEXT( GLsizei n, const GLuint *textures, GLboolean *residences );
  1501. GLAPI GLboolean GLAPIENTRY glIsTextureEXT( GLuint texture );
  1502. #endif /* GL_EXT_texture_object */
  1503. /*
  1504. * 27. GL_EXT_rescale_normal
  1505. */
  1506. #ifndef GL_EXT_rescale_normal
  1507. #define GL_EXT_rescale_normal 1
  1508. #define GL_RESCALE_NORMAL_EXT 0x803A
  1509. #endif /* GL_EXT_rescale_normal */
  1510. /*
  1511. * 30. GL_EXT_vertex_array
  1512. */
  1513. #ifndef GL_EXT_vertex_array
  1514. #define GL_EXT_vertex_array 1
  1515. #define GL_VERTEX_ARRAY_EXT 0x8074
  1516. #define GL_NORMAL_ARRAY_EXT 0x8075
  1517. #define GL_COLOR_ARRAY_EXT 0x8076
  1518. #define GL_INDEX_ARRAY_EXT 0x8077
  1519. #define GL_TEXTURE_COORD_ARRAY_EXT 0x8078
  1520. #define GL_EDGE_FLAG_ARRAY_EXT 0x8079
  1521. #define GL_VERTEX_ARRAY_SIZE_EXT 0x807A
  1522. #define GL_VERTEX_ARRAY_TYPE_EXT 0x807B
  1523. #define GL_VERTEX_ARRAY_STRIDE_EXT 0x807C
  1524. #define GL_VERTEX_ARRAY_COUNT_EXT 0x807D
  1525. #define GL_NORMAL_ARRAY_TYPE_EXT 0x807E
  1526. #define GL_NORMAL_ARRAY_STRIDE_EXT 0x807F
  1527. #define GL_NORMAL_ARRAY_COUNT_EXT 0x8080
  1528. #define GL_COLOR_ARRAY_SIZE_EXT 0x8081
  1529. #define GL_COLOR_ARRAY_TYPE_EXT 0x8082
  1530. #define GL_COLOR_ARRAY_STRIDE_EXT 0x8083
  1531. #define GL_COLOR_ARRAY_COUNT_EXT 0x8084
  1532. #define GL_INDEX_ARRAY_TYPE_EXT 0x8085
  1533. #define GL_INDEX_ARRAY_STRIDE_EXT 0x8086
  1534. #define GL_INDEX_ARRAY_COUNT_EXT 0x8087
  1535. #define GL_TEXTURE_COORD_ARRAY_SIZE_EXT 0x8088
  1536. #define GL_TEXTURE_COORD_ARRAY_TYPE_EXT 0x8089
  1537. #define GL_TEXTURE_COORD_ARRAY_STRIDE_EXT 0x808A
  1538. #define GL_TEXTURE_COORD_ARRAY_COUNT_EXT 0x808B
  1539. #define GL_EDGE_FLAG_ARRAY_STRIDE_EXT 0x808C
  1540. #define GL_EDGE_FLAG_ARRAY_COUNT_EXT 0x808D
  1541. #define GL_VERTEX_ARRAY_POINTER_EXT 0x808E
  1542. #define GL_NORMAL_ARRAY_POINTER_EXT 0x808F
  1543. #define GL_COLOR_ARRAY_POINTER_EXT 0x8090
  1544. #define GL_INDEX_ARRAY_POINTER_EXT 0x8091
  1545. #define GL_TEXTURE_COORD_ARRAY_POINTER_EXT 0x8092
  1546. #define GL_EDGE_FLAG_ARRAY_POINTER_EXT 0x8093
  1547. GLAPI void GLAPIENTRY glVertexPointerEXT( GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *ptr );
  1548. GLAPI void GLAPIENTRY glNormalPointerEXT( GLenum type, GLsizei stride, GLsizei count, const GLvoid *ptr );
  1549. GLAPI void GLAPIENTRY glColorPointerEXT( GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *ptr );
  1550. GLAPI void GLAPIENTRY glIndexPointerEXT( GLenum type, GLsizei stride, GLsizei count, const GLvoid *ptr );
  1551. GLAPI void GLAPIENTRY glTexCoordPointerEXT( GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *ptr );
  1552. GLAPI void GLAPIENTRY glEdgeFlagPointerEXT( GLsizei stride, GLsizei count, const GLboolean *ptr );
  1553. GLAPI void GLAPIENTRY glGetPointervEXT( GLenum pname, void **params );
  1554. GLAPI void GLAPIENTRY glArrayElementEXT( GLint i );
  1555. GLAPI void GLAPIENTRY glDrawArraysEXT( GLenum mode, GLint first, GLsizei count );
  1556. #endif /* GL_EXT_vertex_array */
  1557. /*
  1558. * 35. GL_SGIS_texture_edge_clamp
  1559. */
  1560. #ifndef GL_SGIS_texture_edge_clamp
  1561. #define GL_SGIS_texture_edge_clamp 1
  1562. #define GL_CLAMP_TO_EDGE_SGIS 0x812F
  1563. #endif /* GL_SGIS_texture_edge_clamp */
  1564. /*
  1565. * 37. GL_EXT_blend_minmax
  1566. */
  1567. #ifndef GL_EXT_blend_minmax
  1568. #define GL_EXT_blend_minmax 1
  1569. #define GL_FUNC_ADD_EXT 0x8006
  1570. #define GL_MIN_EXT 0x8007
  1571. #define GL_MAX_EXT 0x8008
  1572. #define GL_BLEND_EQUATION_EXT 0x8009
  1573. GLAPI void GLAPIENTRY glBlendEquationEXT( GLenum mode );
  1574. #endif /* GL_EXT_blend_minmax */
  1575. /*
  1576. * 38. GL_EXT_blend_subtract (requires GL_EXT_blend_max )
  1577. */
  1578. #ifndef GL_EXT_blend_subtract
  1579. #define GL_EXT_blend_subtract 1
  1580. #define GL_FUNC_SUBTRACT_EXT 0x800A
  1581. #define GL_FUNC_REVERSE_SUBTRACT_EXT 0x800B
  1582. #endif /* GL_EXT_blend_subtract */
  1583. /*
  1584. * 39. GL_EXT_blend_logic_op
  1585. */
  1586. #ifndef GL_EXT_blend_logic_op
  1587. #define GL_EXT_blend_logic_op 1
  1588. /* No new tokens or functions */
  1589. #endif /* GL_EXT_blend_logic_op */
  1590. /*
  1591. * 54. GL_EXT_point_parameters
  1592. */
  1593. #ifndef GL_EXT_point_parameters
  1594. #define GL_EXT_point_parameters 1
  1595. #define GL_POINT_SIZE_MIN_EXT 0x8126
  1596. #define GL_POINT_SIZE_MAX_EXT 0x8127
  1597. #define GL_POINT_FADE_THRESHOLD_SIZE_EXT 0x8128
  1598. #define GL_DISTANCE_ATTENUATION_EXT 0x8129
  1599. GLAPI void GLAPIENTRY glPointParameterfEXT( GLenum pname, GLfloat param );
  1600. GLAPI void GLAPIENTRY glPointParameterfvEXT( GLenum pname, const GLfloat *params );
  1601. GLAPI void GLAPIENTRY glPointParameterfSGIS(GLenum pname, GLfloat param);
  1602. GLAPI void GLAPIENTRY glPointParameterfvSGIS(GLenum pname, const GLfloat *params);
  1603. #endif /* GL_EXT_point_parameters */
  1604. /*
  1605. * 78. GL_EXT_paletted_texture
  1606. */
  1607. #ifndef GL_EXT_paletted_texture
  1608. #define GL_EXT_paletted_texture 1
  1609. #define GL_TABLE_TOO_LARGE_EXT 0x8031
  1610. #define GL_COLOR_TABLE_FORMAT_EXT 0x80D8
  1611. #define GL_COLOR_TABLE_WIDTH_EXT 0x80D9
  1612. #define GL_COLOR_TABLE_RED_SIZE_EXT 0x80DA
  1613. #define GL_COLOR_TABLE_GREEN_SIZE_EXT 0x80DB
  1614. #define GL_COLOR_TABLE_BLUE_SIZE_EXT 0x80DC
  1615. #define GL_COLOR_TABLE_ALPHA_SIZE_EXT 0x80DD
  1616. #define GL_COLOR_TABLE_LUMINANCE_SIZE_EXT 0x80DE
  1617. #define GL_COLOR_TABLE_INTENSITY_SIZE_EXT 0x80DF
  1618. #define GL_TEXTURE_INDEX_SIZE_EXT 0x80ED
  1619. #define GL_COLOR_INDEX1_EXT 0x80E2
  1620. #define GL_COLOR_INDEX2_EXT 0x80E3
  1621. #define GL_COLOR_INDEX4_EXT 0x80E4
  1622. #define GL_COLOR_INDEX8_EXT 0x80E5
  1623. #define GL_COLOR_INDEX12_EXT 0x80E6
  1624. #define GL_COLOR_INDEX16_EXT 0x80E7
  1625. GLAPI void GLAPIENTRY glColorTableEXT( GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *table );
  1626. GLAPI void GLAPIENTRY glColorSubTableEXT( GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid *data );
  1627. GLAPI void GLAPIENTRY glGetColorTableEXT( GLenum target, GLenum format, GLenum type, GLvoid *table );
  1628. GLAPI void GLAPIENTRY glGetColorTableParameterfvEXT( GLenum target, GLenum pname, GLfloat *params );
  1629. GLAPI void GLAPIENTRY glGetColorTableParameterivEXT( GLenum target, GLenum pname, GLint *params );
  1630. #endif /* GL_EXT_paletted_texture */
  1631. /*
  1632. * 79. GL_EXT_clip_volume_hint
  1633. */
  1634. #ifndef GL_EXT_clip_volume_hint
  1635. #define GL_EXT_clip_volume_hint 1
  1636. #define GL_CLIP_VOLUME_CLIPPING_HINT_EXT 0x80F0
  1637. #endif /* GL_EXT_clip_volume_hint */
  1638. /*
  1639. * 97. GL_EXT_compiled_vertex_array
  1640. */
  1641. #ifndef GL_EXT_compiled_vertex_array
  1642. #define GL_EXT_compiled_vertex_array 1
  1643. #define GL_ARRAY_ELEMENT_LOCK_FIRST_EXT 0x81A8
  1644. #define GL_ARRAY_ELEMENT_LOCK_COUNT_EXT 0x81A9
  1645. GLAPI void GLAPIENTRY glLockArraysEXT( GLint first, GLsizei count );
  1646. GLAPI void GLAPIENTRY glUnlockArraysEXT( void );
  1647. #endif /* GL_EXT_compiled_vertex_array */
  1648. /*
  1649. * 137. GL_HP_occlusion_test
  1650. */
  1651. #ifndef GL_HP_occlusion_test
  1652. #define GL_HP_occlusion_test 1
  1653. #define GL_OCCLUSION_TEST_HP 0x8165
  1654. #define GL_OCCLUSION_TEST_RESULT_HP 0x8166
  1655. #endif /* GL_HP_occlusion_test */
  1656. /*
  1657. * 141. GL_EXT_shared_texture_palette (req's GL_EXT_paletted_texture)
  1658. */
  1659. #ifndef GL_EXT_shared_texture_palette
  1660. #define GL_EXT_shared_texture_palette 1
  1661. #define GL_SHARED_TEXTURE_PALETTE_EXT 0x81FB
  1662. #endif /* GL_EXT_shared_texture_palette */
  1663. /*
  1664. * 176. GL_EXT_stencil_wrap
  1665. */
  1666. #ifndef GL_EXT_stencil_wrap
  1667. #define GL_EXT_stencil_wrap 1
  1668. #define GL_INCR_WRAP_EXT 0x8507
  1669. #define GL_DECR_WRAP_EXT 0x8508
  1670. #endif /* GL_EXT_stencil_wrap */
  1671. /*
  1672. * 179. GL_NV_texgen_reflection
  1673. */
  1674. #ifndef GL_NV_texgen_reflection
  1675. #define GL_NV_texgen_reflection 1
  1676. #define GL_NORMAL_MAP_NV 0x8511
  1677. #define GL_REFLECTION_MAP_NV 0x8512
  1678. #endif /* GL_NV_texgen_reflection */
  1679. /*
  1680. * 185. GL_EXT_texture_env_add
  1681. */
  1682. #ifndef GL_EXT_texture_env_add
  1683. #define GL_EXT_texture_env_add 1
  1684. /* No new tokens or functions */
  1685. #endif /* GL_EXT_texture_env_add */
  1686. /*
  1687. * 197. GL_MESA_window_pos
  1688. */
  1689. #ifndef GL_MESA_window_pos
  1690. #define GL_MESA_window_pos 1
  1691. GLAPI void GLAPIENTRY glWindowPos2iMESA( GLint x, GLint y );
  1692. GLAPI void GLAPIENTRY glWindowPos2sMESA( GLshort x, GLshort y );
  1693. GLAPI void GLAPIENTRY glWindowPos2fMESA( GLfloat x, GLfloat y );
  1694. GLAPI void GLAPIENTRY glWindowPos2dMESA( GLdouble x, GLdouble y );
  1695. GLAPI void GLAPIENTRY glWindowPos2ivMESA( const GLint *p );
  1696. GLAPI void GLAPIENTRY glWindowPos2svMESA( const GLshort *p );
  1697. GLAPI void GLAPIENTRY glWindowPos2fvMESA( const GLfloat *p );
  1698. GLAPI void GLAPIENTRY glWindowPos2dvMESA( const GLdouble *p );
  1699. GLAPI void GLAPIENTRY glWindowPos3iMESA( GLint x, GLint y, GLint z );
  1700. GLAPI void GLAPIENTRY glWindowPos3sMESA( GLshort x, GLshort y, GLshort z );
  1701. GLAPI void GLAPIENTRY glWindowPos3fMESA( GLfloat x, GLfloat y, GLfloat z );
  1702. GLAPI void GLAPIENTRY glWindowPos3dMESA( GLdouble x, GLdouble y, GLdouble z );
  1703. GLAPI void GLAPIENTRY glWindowPos3ivMESA( const GLint *p );
  1704. GLAPI void GLAPIENTRY glWindowPos3svMESA( const GLshort *p );
  1705. GLAPI void GLAPIENTRY glWindowPos3fvMESA( const GLfloat *p );
  1706. GLAPI void GLAPIENTRY glWindowPos3dvMESA( const GLdouble *p );
  1707. GLAPI void GLAPIENTRY glWindowPos4iMESA( GLint x, GLint y, GLint z, GLint w );
  1708. GLAPI void GLAPIENTRY glWindowPos4sMESA( GLshort x, GLshort y, GLshort z, GLshort w );
  1709. GLAPI void GLAPIENTRY glWindowPos4fMESA( GLfloat x, GLfloat y, GLfloat z, GLfloat w );
  1710. GLAPI void GLAPIENTRY glWindowPos4dMESA( GLdouble x, GLdouble y, GLdouble z, GLdouble w);
  1711. GLAPI void GLAPIENTRY glWindowPos4ivMESA( const GLint *p );
  1712. GLAPI void GLAPIENTRY glWindowPos4svMESA( const GLshort *p );
  1713. GLAPI void GLAPIENTRY glWindowPos4fvMESA( const GLfloat *p );
  1714. GLAPI void GLAPIENTRY glWindowPos4dvMESA( const GLdouble *p );
  1715. #endif /* GL_MESA_window_pos */
  1716. /*
  1717. * 196. GL_MESA_resize_bufffers
  1718. */
  1719. #ifndef GL_MESA_resize_bufffers
  1720. #define GL_MESA_resize_buffers 1
  1721. GLAPI void GLAPIENTRY glResizeBuffersMESA( void );
  1722. #endif /* GL_MESA_resize_bufffers */
  1723. #else /* GL_GLEXT_LEGACY */
  1724. #include <GL/glext.h>
  1725. #endif /* GL_GLEXT_LEGACY */
  1726. /**********************************************************************
  1727. * Begin system-specific stuff
  1728. */
  1729. #if defined(__BEOS__) || defined(__QUICKDRAW__)
  1730. #pragma export off
  1731. #endif
  1732. #if defined(macintosh) && PRAGMA_IMPORT_SUPPORTED
  1733. #pragma import off
  1734. #endif
  1735. /*
  1736. * End system-specific stuff
  1737. **********************************************************************/
  1738. #ifdef __cplusplus
  1739. }
  1740. #endif
  1741. #endif /* __gl_h_ */