glesew.h 192 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319
  1. /*
  2. ** The OpenGL Extension Wrangler Library
  3. ** Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>
  4. ** Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>
  5. ** Copyright (C) 2002, Lev Povalahev
  6. ** All rights reserved.
  7. **
  8. ** Redistribution and use in source and binary forms, with or without
  9. ** modification, are permitted provided that the following conditions are met:
  10. **
  11. ** * Redistributions of source code must retain the above copyright notice,
  12. ** this list of conditions and the following disclaimer.
  13. ** * Redistributions in binary form must reproduce the above copyright notice,
  14. ** this list of conditions and the following disclaimer in the documentation
  15. ** and/or other materials provided with the distribution.
  16. ** * The name of the author may be used to endorse or promote products
  17. ** derived from this software without specific prior written permission.
  18. **
  19. ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  20. ** AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  21. ** IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  22. ** ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
  23. ** LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  24. ** CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  25. ** SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  26. ** INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  27. ** CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  28. ** ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
  29. ** THE POSSIBILITY OF SUCH DAMAGE.
  30. */
  31. /*
  32. ** Copyright (c) 2008-2009 The Khronos Group Inc.
  33. **
  34. ** Permission is hereby granted, free of charge, to any person obtaining a
  35. ** copy of this software and/or associated documentation files (the
  36. ** "Materials"), to deal in the Materials without restriction, including
  37. ** without limitation the rights to use, copy, modify, merge, publish,
  38. ** distribute, sublicense, and/or sell copies of the Materials, and to
  39. ** permit persons to whom the Materials are furnished to do so, subject to
  40. ** the following conditions:
  41. **
  42. ** The above copyright notice and this permission notice shall be included
  43. ** in all copies or substantial portions of the Materials.
  44. **
  45. ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  46. ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  47. ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  48. ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
  49. ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  50. ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
  51. ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
  52. */
  53. /* Copyright © 2011 Linaro Limited
  54. */
  55. #ifndef __glesew_h__
  56. #define __glesew_h__
  57. #define __GLESEW_H__
  58. #if !defined(__glew_h__) || !defined(__GLEW_H__)
  59. #error glesew.h included instead of glew.h
  60. #endif
  61. // NOTE jwilkins: changing versions from 'ifdef' to 'if' requires setting defaults
  62. #ifndef GL_ES_VERSION_1_0 // XXX
  63. #define GL_ES_VERSION_1_0 1 // XXX
  64. #endif // XXX
  65. // NOTE jwilkins: changing versions from 'ifdef' to 'if' requires setting defaults
  66. #ifndef GL_ES_VERSION_CL_1_1 // XXX
  67. #define GL_ES_VERSION_CL_1_1 1 // XXX
  68. #endif // XXX
  69. // NOTE jwilkins: changing versions from 'ifdef' to 'if' requires setting defaults
  70. #ifndef GL_ES_VERSION_CM_1_1 // XXX
  71. #define GL_ES_VERSION_CM_1_1 1 // XXX
  72. #endif // XXX
  73. // NOTE jwilkins: changing versions from 'ifdef' to 'if' requires setting defaults
  74. #ifndef GL_ES_VERSION_2_0 // XXX
  75. #define GL_ES_VERSION_2_0 1 // XXX
  76. #endif // XXX
  77. #ifdef __cplusplus
  78. extern "C" {
  79. #endif
  80. typedef unsigned int GLenum;
  81. typedef unsigned char GLboolean;
  82. typedef unsigned int GLbitfield;
  83. typedef khronos_int8_t GLbyte;
  84. typedef short GLshort;
  85. typedef int GLint;
  86. typedef int GLsizei;
  87. typedef khronos_uint8_t GLubyte;
  88. typedef unsigned short GLushort;
  89. typedef unsigned int GLuint;
  90. typedef khronos_float_t GLfloat;
  91. typedef khronos_float_t GLclampf;
  92. typedef void GLvoid;
  93. typedef int GLintptrARB;
  94. typedef int GLsizeiptrARB;
  95. typedef khronos_int32_t GLfixed;
  96. typedef int GLclampx;
  97. /* Internal convenience typedefs */
  98. typedef void (*_GLfuncptr)();
  99. // NOTE jwilkins: had to add these
  100. #if defined(_MSC_VER) && _MSC_VER < 1400
  101. typedef __int64 GLint64EXT;
  102. typedef unsigned __int64 GLuint64EXT;
  103. #elif defined(_MSC_VER) || defined(__BORLANDC__)
  104. typedef signed long long GLint64EXT;
  105. typedef unsigned long long GLuint64EXT;
  106. #else
  107. # if defined(__MINGW32__) || defined(__CYGWIN__)
  108. #include <inttypes.h>
  109. # endif
  110. typedef int64_t GLint64EXT;
  111. typedef uint64_t GLuint64EXT;
  112. #endif
  113. typedef GLint64EXT GLint64;
  114. typedef GLuint64EXT GLuint64;
  115. typedef struct __GLsync *GLsync;
  116. /********************* GL_ES_VERSION_1_0 functions common with OpenGL 1.1 *************************/
  117. /* Extensions */
  118. //#define GL_OES_VERSION_1_0 1
  119. //#define GL_OES_read_format 1
  120. //#define GL_OES_compressed_paletted_texture 1
  121. /* ClearBufferMask */
  122. #define GL_DEPTH_BUFFER_BIT 0x00000100
  123. #define GL_STENCIL_BUFFER_BIT 0x00000400
  124. #define GL_COLOR_BUFFER_BIT 0x00004000
  125. /* Boolean */
  126. #define GL_FALSE 0
  127. #define GL_TRUE 1
  128. /* BeginMode */
  129. #define GL_POINTS 0x0000
  130. #define GL_LINES 0x0001
  131. #define GL_LINE_LOOP 0x0002
  132. #define GL_LINE_STRIP 0x0003
  133. #define GL_TRIANGLES 0x0004
  134. #define GL_TRIANGLE_STRIP 0x0005
  135. #define GL_TRIANGLE_FAN 0x0006
  136. /* AlphaFunction */
  137. #define GL_NEVER 0x0200
  138. #define GL_LESS 0x0201
  139. #define GL_EQUAL 0x0202
  140. #define GL_LEQUAL 0x0203
  141. #define GL_GREATER 0x0204
  142. #define GL_NOTEQUAL 0x0205
  143. #define GL_GEQUAL 0x0206
  144. #define GL_ALWAYS 0x0207
  145. /* BlendingFactorDest */
  146. #define GL_ZERO 0
  147. #define GL_ONE 1
  148. #define GL_SRC_COLOR 0x0300
  149. #define GL_ONE_MINUS_SRC_COLOR 0x0301
  150. #define GL_SRC_ALPHA 0x0302
  151. #define GL_ONE_MINUS_SRC_ALPHA 0x0303
  152. #define GL_DST_ALPHA 0x0304
  153. #define GL_ONE_MINUS_DST_ALPHA 0x0305
  154. /* BlendingFactorSrc */
  155. /* GL_ZERO */
  156. /* GL_ONE */
  157. #define GL_DST_COLOR 0x0306
  158. #define GL_ONE_MINUS_DST_COLOR 0x0307
  159. #define GL_SRC_ALPHA_SATURATE 0x0308
  160. /* GL_SRC_ALPHA */
  161. /* GL_ONE_MINUS_SRC_ALPHA */
  162. /* GL_DST_ALPHA */
  163. /* GL_ONE_MINUS_DST_ALPHA */
  164. /* ColorMaterialFace */
  165. /* GL_FRONT_AND_BACK */
  166. /* ColorMaterialParameter */
  167. /* GL_AMBIENT_AND_DIFFUSE */
  168. /* ColorPointerType */
  169. /* GL_UNSIGNED_BYTE */
  170. /* GL_FLOAT */
  171. /* GL_FIXED */
  172. /* CullFaceMode */
  173. #define GL_FRONT 0x0404
  174. #define GL_BACK 0x0405
  175. #define GL_FRONT_AND_BACK 0x0408
  176. /* DepthFunction */
  177. /* GL_NEVER */
  178. /* GL_LESS */
  179. /* GL_EQUAL */
  180. /* GL_LEQUAL */
  181. /* GL_GREATER */
  182. /* GL_NOTEQUAL */
  183. /* GL_GEQUAL */
  184. /* GL_ALWAYS */
  185. /* EnableCap */
  186. #define GL_FOG 0x0B60
  187. #define GL_LIGHTING 0x0B50
  188. #define GL_TEXTURE_2D 0x0DE1
  189. #define GL_CULL_FACE 0x0B44
  190. #define GL_ALPHA_TEST 0x0BC0
  191. #define GL_BLEND 0x0BE2
  192. #define GL_COLOR_LOGIC_OP 0x0BF2
  193. #define GL_DITHER 0x0BD0
  194. #define GL_STENCIL_TEST 0x0B90
  195. #define GL_DEPTH_TEST 0x0B71
  196. /* GL_LIGHT0 */
  197. /* GL_LIGHT1 */
  198. /* GL_LIGHT2 */
  199. /* GL_LIGHT3 */
  200. /* GL_LIGHT4 */
  201. /* GL_LIGHT5 */
  202. /* GL_LIGHT6 */
  203. /* GL_LIGHT7 */
  204. #define GL_POINT_SMOOTH 0x0B10
  205. #define GL_LINE_SMOOTH 0x0B20
  206. #define GL_SCISSOR_TEST 0x0C11
  207. #define GL_COLOR_MATERIAL 0x0B57
  208. #define GL_NORMALIZE 0x0BA1
  209. #define GL_RESCALE_NORMAL 0x803A
  210. #define GL_POLYGON_OFFSET_FILL 0x8037
  211. #define GL_VERTEX_ARRAY 0x8074
  212. #define GL_NORMAL_ARRAY 0x8075
  213. #define GL_COLOR_ARRAY 0x8076
  214. #define GL_TEXTURE_COORD_ARRAY 0x8078
  215. #define GL_MULTISAMPLE 0x809D
  216. #define GL_SAMPLE_ALPHA_TO_COVERAGE 0x809E
  217. #define GL_SAMPLE_ALPHA_TO_ONE 0x809F
  218. #define GL_SAMPLE_COVERAGE 0x80A0
  219. /* ErrorCode */
  220. #define GL_NO_ERROR 0
  221. #define GL_INVALID_ENUM 0x0500
  222. #define GL_INVALID_VALUE 0x0501
  223. #define GL_INVALID_OPERATION 0x0502
  224. #define GL_STACK_OVERFLOW 0x0503
  225. #define GL_STACK_UNDERFLOW 0x0504
  226. #define GL_OUT_OF_MEMORY 0x0505
  227. /* FogMode */
  228. /* GL_LINEAR */
  229. #define GL_EXP 0x0800
  230. #define GL_EXP2 0x0801
  231. /* FogParameter */
  232. #define GL_FOG_DENSITY 0x0B62
  233. #define GL_FOG_START 0x0B63
  234. #define GL_FOG_END 0x0B64
  235. #define GL_FOG_MODE 0x0B65
  236. #define GL_FOG_COLOR 0x0B66
  237. /* FrontFaceDirection */
  238. #define GL_CW 0x0900
  239. #define GL_CCW 0x0901
  240. /* GetPName */
  241. #define GL_SMOOTH_POINT_SIZE_RANGE 0x0B12
  242. #define GL_SMOOTH_LINE_WIDTH_RANGE 0x0B22
  243. #define GL_ALIASED_POINT_SIZE_RANGE 0x846D
  244. #define GL_ALIASED_LINE_WIDTH_RANGE 0x846E
  245. #define GL_IMPLEMENTATION_COLOR_READ_TYPE_OES 0x8B9A
  246. #define GL_IMPLEMENTATION_COLOR_READ_FORMAT_OES 0x8B9B
  247. #define GL_MAX_LIGHTS 0x0D31
  248. #define GL_MAX_TEXTURE_SIZE 0x0D33
  249. #define GL_MAX_MODELVIEW_STACK_DEPTH 0x0D36
  250. #define GL_MAX_PROJECTION_STACK_DEPTH 0x0D38
  251. #define GL_MAX_TEXTURE_STACK_DEPTH 0x0D39
  252. #define GL_MAX_VIEWPORT_DIMS 0x0D3A
  253. #define GL_MAX_ELEMENTS_VERTICES 0x80E8
  254. #define GL_MAX_ELEMENTS_INDICES 0x80E9
  255. #define GL_MAX_TEXTURE_UNITS 0x84E2
  256. #define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2
  257. #define GL_COMPRESSED_TEXTURE_FORMATS 0x86A3
  258. #define GL_SUBPIXEL_BITS 0x0D50
  259. #define GL_RED_BITS 0x0D52
  260. #define GL_GREEN_BITS 0x0D53
  261. #define GL_BLUE_BITS 0x0D54
  262. #define GL_ALPHA_BITS 0x0D55
  263. #define GL_DEPTH_BITS 0x0D56
  264. #define GL_STENCIL_BITS 0x0D57
  265. /* HintMode */
  266. #define GL_DONT_CARE 0x1100
  267. #define GL_FASTEST 0x1101
  268. #define GL_NICEST 0x1102
  269. /* HintTarget */
  270. #define GL_PERSPECTIVE_CORRECTION_HINT 0x0C50
  271. #define GL_POINT_SMOOTH_HINT 0x0C51
  272. #define GL_LINE_SMOOTH_HINT 0x0C52
  273. #define GL_POLYGON_SMOOTH_HINT 0x0C53
  274. #define GL_FOG_HINT 0x0C54
  275. /* LightModelParameter */
  276. #define GL_LIGHT_MODEL_AMBIENT 0x0B53
  277. #define GL_LIGHT_MODEL_TWO_SIDE 0x0B52
  278. /* LightParameter */
  279. #define GL_AMBIENT 0x1200
  280. #define GL_DIFFUSE 0x1201
  281. #define GL_SPECULAR 0x1202
  282. #define GL_POSITION 0x1203
  283. #define GL_SPOT_DIRECTION 0x1204
  284. #define GL_SPOT_EXPONENT 0x1205
  285. #define GL_SPOT_CUTOFF 0x1206
  286. #define GL_CONSTANT_ATTENUATION 0x1207
  287. #define GL_LINEAR_ATTENUATION 0x1208
  288. #define GL_QUADRATIC_ATTENUATION 0x1209
  289. /* DataType */
  290. #define GL_BYTE 0x1400
  291. #define GL_UNSIGNED_BYTE 0x1401
  292. #define GL_SHORT 0x1402
  293. #define GL_UNSIGNED_SHORT 0x1403
  294. #define GL_FLOAT 0x1406
  295. #define GL_FIXED 0x140C
  296. /* LogicOp */
  297. #define GL_CLEAR 0x1500
  298. #define GL_AND 0x1501
  299. #define GL_AND_REVERSE 0x1502
  300. #define GL_COPY 0x1503
  301. #define GL_AND_INVERTED 0x1504
  302. #define GL_NOOP 0x1505
  303. #define GL_XOR 0x1506
  304. #define GL_OR 0x1507
  305. #define GL_NOR 0x1508
  306. #define GL_EQUIV 0x1509
  307. #define GL_INVERT 0x150A
  308. #define GL_OR_REVERSE 0x150B
  309. #define GL_COPY_INVERTED 0x150C
  310. #define GL_OR_INVERTED 0x150D
  311. #define GL_NAND 0x150E
  312. #define GL_SET 0x150F
  313. /* MaterialFace */
  314. /* GL_FRONT_AND_BACK */
  315. /* MaterialParameter */
  316. #define GL_EMISSION 0x1600
  317. #define GL_SHININESS 0x1601
  318. #define GL_AMBIENT_AND_DIFFUSE 0x1602
  319. /* GL_AMBIENT */
  320. /* GL_DIFFUSE */
  321. /* GL_SPECULAR */
  322. /* MatrixMode */
  323. #define GL_MODELVIEW 0x1700
  324. #define GL_PROJECTION 0x1701
  325. #define GL_TEXTURE 0x1702
  326. /* NormalPointerType */
  327. /* GL_BYTE */
  328. /* GL_SHORT */
  329. /* GL_FLOAT */
  330. /* GL_FIXED */
  331. /* PixelFormat */
  332. #define GL_ALPHA 0x1906
  333. #define GL_RGB 0x1907
  334. #define GL_RGBA 0x1908
  335. #define GL_LUMINANCE 0x1909
  336. #define GL_LUMINANCE_ALPHA 0x190A
  337. /* PixelStoreParameter */
  338. #define GL_UNPACK_ALIGNMENT 0x0CF5
  339. #define GL_PACK_ALIGNMENT 0x0D05
  340. /* PixelType */
  341. /* GL_UNSIGNED_BYTE */
  342. #define GL_UNSIGNED_SHORT_4_4_4_4 0x8033
  343. #define GL_UNSIGNED_SHORT_5_5_5_1 0x8034
  344. #define GL_UNSIGNED_SHORT_5_6_5 0x8363
  345. /* ShadingModel */
  346. #define GL_FLAT 0x1D00
  347. #define GL_SMOOTH 0x1D01
  348. /* StencilFunction */
  349. /* GL_NEVER */
  350. /* GL_LESS */
  351. /* GL_EQUAL */
  352. /* GL_LEQUAL */
  353. /* GL_GREATER */
  354. /* GL_NOTEQUAL */
  355. /* GL_GEQUAL */
  356. /* GL_ALWAYS */
  357. /* StencilOp */
  358. /* GL_ZERO */
  359. #define GL_KEEP 0x1E00
  360. #define GL_REPLACE 0x1E01
  361. #define GL_INCR 0x1E02
  362. #define GL_DECR 0x1E03
  363. /* GL_INVERT */
  364. /* StringName */
  365. #define GL_VENDOR 0x1F00
  366. #define GL_RENDERER 0x1F01
  367. #define GL_VERSION 0x1F02
  368. #define GL_EXTENSIONS 0x1F03
  369. /* TexCoordPointerType */
  370. /* GL_SHORT */
  371. /* GL_FLOAT */
  372. /* GL_FIXED */
  373. /* GL_BYTE */
  374. /* TextureEnvMode */
  375. #define GL_MODULATE 0x2100
  376. #define GL_DECAL 0x2101
  377. /* GL_BLEND */
  378. #define GL_ADD 0x0104
  379. /* GL_REPLACE */
  380. /* TextureEnvParameter */
  381. #define GL_TEXTURE_ENV_MODE 0x2200
  382. #define GL_TEXTURE_ENV_COLOR 0x2201
  383. /* TextureEnvTarget */
  384. #define GL_TEXTURE_ENV 0x2300
  385. /* TextureMagFilter */
  386. #define GL_NEAREST 0x2600
  387. #define GL_LINEAR 0x2601
  388. /* TextureMinFilter */
  389. /* GL_NEAREST */
  390. /* GL_LINEAR */
  391. #define GL_NEAREST_MIPMAP_NEAREST 0x2700
  392. #define GL_LINEAR_MIPMAP_NEAREST 0x2701
  393. #define GL_NEAREST_MIPMAP_LINEAR 0x2702
  394. #define GL_LINEAR_MIPMAP_LINEAR 0x2703
  395. /* TextureParameterName */
  396. #define GL_TEXTURE_MAG_FILTER 0x2800
  397. #define GL_TEXTURE_MIN_FILTER 0x2801
  398. #define GL_TEXTURE_WRAP_S 0x2802
  399. #define GL_TEXTURE_WRAP_T 0x2803
  400. /* TextureTarget */
  401. /* GL_TEXTURE_2D */
  402. /* TextureUnit */
  403. #define GL_TEXTURE0 0x84C0
  404. #define GL_TEXTURE1 0x84C1
  405. #define GL_TEXTURE2 0x84C2
  406. #define GL_TEXTURE3 0x84C3
  407. #define GL_TEXTURE4 0x84C4
  408. #define GL_TEXTURE5 0x84C5
  409. #define GL_TEXTURE6 0x84C6
  410. #define GL_TEXTURE7 0x84C7
  411. #define GL_TEXTURE8 0x84C8
  412. #define GL_TEXTURE9 0x84C9
  413. #define GL_TEXTURE10 0x84CA
  414. #define GL_TEXTURE11 0x84CB
  415. #define GL_TEXTURE12 0x84CC
  416. #define GL_TEXTURE13 0x84CD
  417. #define GL_TEXTURE14 0x84CE
  418. #define GL_TEXTURE15 0x84CF
  419. #define GL_TEXTURE16 0x84D0
  420. #define GL_TEXTURE17 0x84D1
  421. #define GL_TEXTURE18 0x84D2
  422. #define GL_TEXTURE19 0x84D3
  423. #define GL_TEXTURE20 0x84D4
  424. #define GL_TEXTURE21 0x84D5
  425. #define GL_TEXTURE22 0x84D6
  426. #define GL_TEXTURE23 0x84D7
  427. #define GL_TEXTURE24 0x84D8
  428. #define GL_TEXTURE25 0x84D9
  429. #define GL_TEXTURE26 0x84DA
  430. #define GL_TEXTURE27 0x84DB
  431. #define GL_TEXTURE28 0x84DC
  432. #define GL_TEXTURE29 0x84DD
  433. #define GL_TEXTURE30 0x84DE
  434. #define GL_TEXTURE31 0x84DF
  435. /* TextureWrapMode */
  436. #define GL_REPEAT 0x2901
  437. #define GL_CLAMP_TO_EDGE 0x812F
  438. /* PixelInternalFormat */
  439. #define GL_PALETTE4_RGB8_OES 0x8B90
  440. #define GL_PALETTE4_RGBA8_OES 0x8B91
  441. #define GL_PALETTE4_R5_G6_B5_OES 0x8B92
  442. #define GL_PALETTE4_RGBA4_OES 0x8B93
  443. #define GL_PALETTE4_RGB5_A1_OES 0x8B94
  444. #define GL_PALETTE8_RGB8_OES 0x8B95
  445. #define GL_PALETTE8_RGBA8_OES 0x8B96
  446. #define GL_PALETTE8_R5_G6_B5_OES 0x8B97
  447. #define GL_PALETTE8_RGBA4_OES 0x8B98
  448. #define GL_PALETTE8_RGB5_A1_OES 0x8B99
  449. /* VertexPointerType */
  450. /* GL_SHORT */
  451. /* GL_FLOAT */
  452. /* GL_FIXED */
  453. /* GL_BYTE */
  454. /* LightName */
  455. #define GL_LIGHT0 0x4000
  456. #define GL_LIGHT1 0x4001
  457. #define GL_LIGHT2 0x4002
  458. #define GL_LIGHT3 0x4003
  459. #define GL_LIGHT4 0x4004
  460. #define GL_LIGHT5 0x4005
  461. #define GL_LIGHT6 0x4006
  462. #define GL_LIGHT7 0x4007
  463. /*************************************************************/
  464. #if !GL_ES_VERSION_2_0 // NOTE jwilkins: not in all versions of ES
  465. GLAPI void GLAPIENTRY glAlphaFunc (GLenum func, GLclampf ref);
  466. #endif // XXX
  467. GLAPI void GLAPIENTRY glBindTexture (GLenum target, GLuint texture);
  468. GLAPI void GLAPIENTRY glBlendFunc (GLenum sfactor, GLenum dfactor);
  469. GLAPI void GLAPIENTRY glClear (GLbitfield mask);
  470. GLAPI void GLAPIENTRY glClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
  471. GLAPI void GLAPIENTRY glClearStencil (GLint s);
  472. #if !GL_ES_VERSION_2_0 // NOTE jwilkins: not in all versions of ES
  473. GLAPI void GLAPIENTRY glColor4f (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
  474. #endif
  475. GLAPI void GLAPIENTRY glColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
  476. #if !GL_ES_VERSION_2_0 // NOTE jwilkins: not in all versions of ES
  477. GLAPI void GLAPIENTRY glColorPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
  478. #endif
  479. GLAPI void GLAPIENTRY glCopyTexImage2D (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
  480. GLAPI void GLAPIENTRY glCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
  481. GLAPI void GLAPIENTRY glCullFace (GLenum mode);
  482. GLAPI void GLAPIENTRY glDeleteTextures (GLsizei n, const GLuint *textures);
  483. GLAPI void GLAPIENTRY glDepthFunc (GLenum func);
  484. GLAPI void GLAPIENTRY glDepthMask (GLboolean flag);
  485. GLAPI void GLAPIENTRY glDisable (GLenum cap);
  486. #if !GL_ES_VERSION_2_0 // NOTE jwilkins: not in all versions of ES
  487. GLAPI void GLAPIENTRY glDisableClientState (GLenum array);
  488. #endif
  489. GLAPI void GLAPIENTRY glDrawArrays (GLenum mode, GLint first, GLsizei count);
  490. GLAPI void GLAPIENTRY glDrawElements (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices);
  491. GLAPI void GLAPIENTRY glEnable (GLenum cap);
  492. #if !GL_ES_VERSION_2_0 // NOTE jwilkins: not in all versions of ES
  493. GLAPI void GLAPIENTRY glEnableClientState (GLenum array);
  494. #endif
  495. GLAPI void GLAPIENTRY glFinish (void);
  496. GLAPI void GLAPIENTRY glFlush (void);
  497. #if !GL_ES_VERSION_2_0 // NOTE jwilkins: not in all versions of ES
  498. GLAPI void GLAPIENTRY glFogf (GLenum pname, GLfloat param);
  499. GLAPI void GLAPIENTRY glFogfv (GLenum pname, const GLfloat *params);
  500. #endif
  501. GLAPI void GLAPIENTRY glFrontFace (GLenum mode);
  502. GLAPI void GLAPIENTRY glGenTextures (GLsizei n, GLuint *textures);
  503. GLAPI GLenum GLAPIENTRY glGetError (void);
  504. GLAPI void GLAPIENTRY glGetIntegerv (GLenum pname, GLint *params);
  505. GLAPI const GLubyte * GLAPIENTRY glGetString (GLenum name);
  506. GLAPI void GLAPIENTRY glHint (GLenum target, GLenum mode);
  507. #if !GL_ES_VERSION_2_0 // NOTE jwilkins: not in all versions of ES
  508. GLAPI void GLAPIENTRY glLightModelf (GLenum pname, GLfloat param);
  509. GLAPI void GLAPIENTRY glLightModelfv (GLenum pname, const GLfloat *params);
  510. GLAPI void GLAPIENTRY glLightf (GLenum light, GLenum pname, GLfloat param);
  511. GLAPI void GLAPIENTRY glLightfv (GLenum light, GLenum pname, const GLfloat *params);
  512. #endif
  513. GLAPI void GLAPIENTRY glLineWidth (GLfloat width);
  514. #if !GL_ES_VERSION_2_0 // NOTE jwilkins: not in all versions of ES
  515. GLAPI void GLAPIENTRY glLoadIdentity (void);
  516. GLAPI void GLAPIENTRY glLoadMatrixf (const GLfloat *m);
  517. GLAPI void GLAPIENTRY glLogicOp (GLenum opcode);
  518. GLAPI void GLAPIENTRY glMaterialf (GLenum face, GLenum pname, GLfloat param);
  519. GLAPI void GLAPIENTRY glMaterialfv (GLenum face, GLenum pname, const GLfloat *params);
  520. GLAPI void GLAPIENTRY glMatrixMode (GLenum mode);
  521. GLAPI void GLAPIENTRY glMultMatrixf (const GLfloat *m);
  522. GLAPI void GLAPIENTRY glMultiTexCoord4f (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
  523. GLAPI void GLAPIENTRY glNormal3f (GLfloat nx, GLfloat ny, GLfloat nz);
  524. GLAPI void GLAPIENTRY glNormalPointer (GLenum type, GLsizei stride, const GLvoid *pointer);
  525. #endif
  526. GLAPI void GLAPIENTRY glPixelStorei (GLenum pname, GLint param);
  527. #if !GL_ES_VERSION_2_0 // NOTE jwilkins: not in all versions of ES
  528. GLAPI void GLAPIENTRY glPointSize (GLfloat size);
  529. #endif // XXX
  530. GLAPI void GLAPIENTRY glPolygonOffset (GLfloat factor, GLfloat units);
  531. #if !GL_ES_VERSION_2_0 // NOTE jwilkins: not in all versions of ES
  532. GLAPI void GLAPIENTRY glPopMatrix (void);
  533. GLAPI void GLAPIENTRY glPushMatrix (void);
  534. #endif
  535. GLAPI void GLAPIENTRY glReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels);
  536. #if !GL_ES_VERSION_2_0 // NOTE jwilkins: not in all versions of ES
  537. GLAPI void GLAPIENTRY glRotatef (GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
  538. GLAPI void GLAPIENTRY glScalef (GLfloat x, GLfloat y, GLfloat z);
  539. #endif
  540. GLAPI void GLAPIENTRY glScissor (GLint x, GLint y, GLsizei width, GLsizei height);
  541. #if !GL_ES_VERSION_2_0 // NOTE jwilkins: not in all versions of ES
  542. GLAPI void GLAPIENTRY glShadeModel (GLenum mode);
  543. #endif // XXX
  544. GLAPI void GLAPIENTRY glStencilFunc (GLenum func, GLint ref, GLuint mask);
  545. GLAPI void GLAPIENTRY glStencilMask (GLuint mask);
  546. GLAPI void GLAPIENTRY glStencilOp (GLenum fail, GLenum zfail, GLenum zpass);
  547. #if !GL_ES_VERSION_2_0 // NOTE jwilkins: not in all versions of ES
  548. GLAPI void GLAPIENTRY glTexCoordPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
  549. GLAPI void GLAPIENTRY glTexEnvf (GLenum target, GLenum pname, GLfloat param);
  550. GLAPI void GLAPIENTRY glTexEnvfv (GLenum target, GLenum pname, const GLfloat *params);
  551. #endif
  552. GLAPI void GLAPIENTRY glTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
  553. GLAPI void GLAPIENTRY glTexParameterf (GLenum target, GLenum pname, GLfloat param);
  554. GLAPI void GLAPIENTRY glTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
  555. #if !GL_ES_VERSION_2_0 // NOTE jwilkins: not in all versions of ES
  556. GLAPI void GLAPIENTRY glTranslatef (GLfloat x, GLfloat y, GLfloat z);
  557. GLAPI void GLAPIENTRY glVertexPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
  558. #endif
  559. GLAPI void GLAPIENTRY glViewport (GLint x, GLint y, GLsizei width, GLsizei height);
  560. /* --------------------------- GL_ES_VERSION_1_0 --------------------------- */
  561. #if GL_ES_VERSION_1_0 // NOTE jwilkins: should be if not ifdef
  562. #define GL_ES_VERSION_1_0 1
  563. typedef void (GLAPIENTRY * PFNGLACTIVETEXTUREPROC) (GLenum texture);
  564. typedef void (GLAPIENTRY * PFNGLALPHAFUNCXPROC) (GLenum func, GLclampx ref);
  565. typedef void (GLAPIENTRY * PFNGLCLEARCOLORXPROC) (GLclampx red, GLclampx green, GLclampx blue, GLclampx alpha);
  566. typedef void (GLAPIENTRY * PFNGLCLEARDEPTHFPROC) (GLclampf depth);
  567. typedef void (GLAPIENTRY * PFNGLCLEARDEPTHXPROC) (GLclampx depth);
  568. typedef void (GLAPIENTRY * PFNGLCLIENTACTIVETEXTUREPROC) (GLenum texture);
  569. typedef void (GLAPIENTRY * PFNGLCOLOR4XPROC) (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha);
  570. typedef void (GLAPIENTRY * PFNGLCOMPRESSEDTEXIMAGE2DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data);
  571. typedef void (GLAPIENTRY * PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data);
  572. typedef void (GLAPIENTRY * PFNGLDEPTHRANGEFPROC) (GLclampf zNear, GLclampf zFar);
  573. typedef void (GLAPIENTRY * PFNGLDEPTHRANGEXPROC) (GLclampx zNear, GLclampx zFar);
  574. typedef void (GLAPIENTRY * PFNGLFOGXPROC) (GLenum pname, GLfixed param);
  575. typedef void (GLAPIENTRY * PFNGLFOGXVPROC) (GLenum pname, const GLfixed *params);
  576. typedef void (GLAPIENTRY * PFNGLFRUSTUMFPROC) (GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar);
  577. typedef void (GLAPIENTRY * PFNGLFRUSTUMXPROC) (GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar);
  578. typedef void (GLAPIENTRY * PFNGLLIGHTMODELXPROC) (GLenum pname, GLfixed params);
  579. typedef void (GLAPIENTRY * PFNGLLIGHTMODELXVPROC) (GLenum pname, const GLfixed *params);
  580. typedef void (GLAPIENTRY * PFNGLLIGHTXPROC) (GLenum light, GLenum pname, GLfixed param);
  581. typedef void (GLAPIENTRY * PFNGLLIGHTXVPROC) (GLenum light, GLenum pname, const GLfixed *params);
  582. typedef void (GLAPIENTRY * PFNGLLINEWIDTHXPROC) (GLfixed width);
  583. typedef void (GLAPIENTRY * PFNGLLOADMATRIXXPROC) (const GLfixed *m);
  584. typedef void (GLAPIENTRY * PFNGLMATERIALXPROC) (GLenum face, GLenum pname, GLfixed param);
  585. typedef void (GLAPIENTRY * PFNGLMATERIALXVPROC) (GLenum face, GLenum pname, const GLfixed *params);
  586. typedef void (GLAPIENTRY * PFNGLMULTMATRIXXPROC) (const GLfixed *m);
  587. typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4FPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
  588. typedef void (GLAPIENTRY * PFNGLMULTITEXCOORD4XPROC) (GLenum target, GLfixed s, GLfixed t, GLfixed r, GLfixed q);
  589. typedef void (GLAPIENTRY * PFNGLNORMAL3XPROC) (GLfixed nx, GLfixed ny, GLfixed nz);
  590. typedef void (GLAPIENTRY * PFNGLORTHOFPROC) (GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar);
  591. typedef void (GLAPIENTRY * PFNGLORTHOXPROC) (GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar);
  592. typedef void (GLAPIENTRY * PFNGLPOINTSIZEXPROC) (GLfixed size);
  593. typedef void (GLAPIENTRY * PFNGLPOLYGONOFFSETXPROC) (GLfixed factor, GLfixed units);
  594. typedef void (GLAPIENTRY * PFNGLROTATEXPROC) (GLfixed angle, GLfixed x, GLfixed y, GLfixed z);
  595. typedef void (GLAPIENTRY * PFNGLSAMPLECOVERAGEPROC) (GLclampf value, GLboolean invert);
  596. typedef void (GLAPIENTRY * PFNGLSAMPLECOVERAGEXPROC) (GLclampx value, GLboolean invert);
  597. typedef void (GLAPIENTRY * PFNGLSCALEXPROC) (GLfixed x, GLfixed y, GLfixed z);
  598. typedef void (GLAPIENTRY * PFNGLTEXENVXPROC) (GLenum target, GLenum pname, GLfixed param);
  599. typedef void (GLAPIENTRY * PFNGLTEXENVXVPROC) (GLenum target, GLenum pname, const GLfixed *params);
  600. typedef void (GLAPIENTRY * PFNGLTEXPARAMETERXPROC) (GLenum target, GLenum pname, GLfixed param);
  601. typedef void (GLAPIENTRY * PFNGLTRANSLATEXPROC) (GLfixed x, GLfixed y, GLfixed z);
  602. #define glActiveTexture GLEW_GET_FUN(__glewActiveTexture)
  603. #define glAlphaFuncx GLEW_GET_FUN(__glewAlphaFuncx)
  604. #define glClearColorx GLEW_GET_FUN(__glewClearColorx)
  605. #define glClearDepthf GLEW_GET_FUN(__glewClearDepthf)
  606. #define glClearDepthx GLEW_GET_FUN(__glewClearDepthx)
  607. #define glClientActiveTexture GLEW_GET_FUN(__glewClientActiveTexture)
  608. #define glColor4x GLEW_GET_FUN(__glewColor4x)
  609. #define glCompressedTexImage2D GLEW_GET_FUN(__glewCompressedTexImage2D)
  610. #define glCompressedTexSubImage2D GLEW_GET_FUN(__glewCompressedTexSubImage2D)
  611. #define glDepthRangef GLEW_GET_FUN(__glewDepthRangef)
  612. #define glDepthRangex GLEW_GET_FUN(__glewDepthRangex)
  613. #define glFogx GLEW_GET_FUN(__glewFogx)
  614. #define glFogxv GLEW_GET_FUN(__glewFogxv)
  615. #define glFrustumf GLEW_GET_FUN(__glewFrustumf)
  616. #define glFrustumx GLEW_GET_FUN(__glewFrustumx)
  617. #define glLightModelx GLEW_GET_FUN(__glewLightModelx)
  618. #define glLightModelxv GLEW_GET_FUN(__glewLightModelxv)
  619. #define glLightx GLEW_GET_FUN(__glewLightx)
  620. #define glLightxv GLEW_GET_FUN(__glewLightxv)
  621. #define glLineWidthx GLEW_GET_FUN(__glewLineWidthx)
  622. #define glLoadMatrixx GLEW_GET_FUN(__glewLoadMatrixx)
  623. #define glMaterialx GLEW_GET_FUN(__glewMaterialx)
  624. #define glMaterialxv GLEW_GET_FUN(__glewMaterialxv)
  625. #define glMultMatrixx GLEW_GET_FUN(__glewMultMatrixx)
  626. #define glMultiTexCoord4f GLEW_GET_FUN(__glewMultiTexCoord4f)
  627. #define glMultiTexCoord4x GLEW_GET_FUN(__glewMultiTexCoord4x)
  628. #define glNormal3x GLEW_GET_FUN(__glewNormal3x)
  629. #define glOrthof GLEW_GET_FUN(__glewOrthof)
  630. #define glOrthox GLEW_GET_FUN(__glewOrthox)
  631. #define glPointSizex GLEW_GET_FUN(__glewPointSizex)
  632. #define glPolygonOffsetx GLEW_GET_FUN(__glewPolygonOffsetx)
  633. #define glRotatex GLEW_GET_FUN(__glewRotatex)
  634. #define glSampleCoverage GLEW_GET_FUN(__glewSampleCoverage)
  635. #define glSampleCoveragex GLEW_GET_FUN(__glewSampleCoveragex)
  636. #define glScalex GLEW_GET_FUN(__glewScalex)
  637. #define glTexEnvx GLEW_GET_FUN(__glewTexEnvx)
  638. #define glTexEnvxv GLEW_GET_FUN(__glewTexEnvxv)
  639. #define glTexParameterx GLEW_GET_FUN(__glewTexParameterx)
  640. #define glTranslatex GLEW_GET_FUN(__glewTranslatex)
  641. #else // XXX
  642. #define GL_ES_VERSION_1_0 0 // NOTE jwilkins: define version token
  643. #endif /* !GL_ES_VERSION_1_0 */
  644. #define GLEW_ES_VERSION_1_0 GLEW_GET_VAR(__GLEW_ES_VERSION_1_0) // NOTE jwilkins: always needs to be defined
  645. /* -------------------------- GL_ES_VERSION_CL_1_1 ------------------------- */
  646. #if GL_ES_VERSION_CL_1_1 // NOTE jwilkins: should be if not ifdef
  647. #define GL_ES_VERSION_CL_1_1 1
  648. #define GL_VERSION_ES_CL_1_1 0x1
  649. #define GL_VERSION_ES_CL_1_0 0x1
  650. #define GL_CURRENT_COLOR 0x0B00
  651. #define GL_CURRENT_NORMAL 0x0B02
  652. #define GL_CURRENT_TEXTURE_COORDS 0x0B03
  653. #define GL_POINT_SIZE 0x0B11
  654. #define GL_LINE_WIDTH 0x0B21
  655. #define GL_CULL_FACE_MODE 0x0B45
  656. #define GL_FRONT_FACE 0x0B46
  657. #define GL_SHADE_MODEL 0x0B54
  658. #define GL_DEPTH_RANGE 0x0B70
  659. #define GL_DEPTH_WRITEMASK 0x0B72
  660. #define GL_DEPTH_CLEAR_VALUE 0x0B73
  661. #define GL_DEPTH_FUNC 0x0B74
  662. #define GL_STENCIL_CLEAR_VALUE 0x0B91
  663. #define GL_STENCIL_FUNC 0x0B92
  664. #define GL_STENCIL_VALUE_MASK 0x0B93
  665. #define GL_STENCIL_FAIL 0x0B94
  666. #define GL_STENCIL_PASS_DEPTH_FAIL 0x0B95
  667. #define GL_STENCIL_PASS_DEPTH_PASS 0x0B96
  668. #define GL_STENCIL_REF 0x0B97
  669. #define GL_STENCIL_WRITEMASK 0x0B98
  670. #define GL_MATRIX_MODE 0x0BA0
  671. #define GL_VIEWPORT 0x0BA2
  672. #define GL_MODELVIEW_STACK_DEPTH 0x0BA3
  673. #define GL_PROJECTION_STACK_DEPTH 0x0BA4
  674. #define GL_TEXTURE_STACK_DEPTH 0x0BA5
  675. #define GL_MODELVIEW_MATRIX 0x0BA6
  676. #define GL_PROJECTION_MATRIX 0x0BA7
  677. #define GL_TEXTURE_MATRIX 0x0BA8
  678. #define GL_ALPHA_TEST_FUNC 0x0BC1
  679. #define GL_ALPHA_TEST_REF 0x0BC2
  680. #define GL_BLEND_DST 0x0BE0
  681. #define GL_BLEND_SRC 0x0BE1
  682. #define GL_LOGIC_OP_MODE 0x0BF0
  683. #define GL_SCISSOR_BOX 0x0C10
  684. #define GL_COLOR_CLEAR_VALUE 0x0C22
  685. #define GL_COLOR_WRITEMASK 0x0C23
  686. #define GL_ALPHA_SCALE 0x0D1C
  687. #define GL_MAX_CLIP_PLANES 0x0D32
  688. #define GL_POLYGON_OFFSET_UNITS 0x2A00
  689. #define GL_CLIP_PLANE0 0x3000
  690. #define GL_CLIP_PLANE1 0x3001
  691. #define GL_CLIP_PLANE2 0x3002
  692. #define GL_CLIP_PLANE3 0x3003
  693. #define GL_CLIP_PLANE4 0x3004
  694. #define GL_CLIP_PLANE5 0x3005
  695. #define GL_POLYGON_OFFSET_FACTOR 0x8038
  696. #define GL_TEXTURE_BINDING_2D 0x8069
  697. #define GL_VERTEX_ARRAY_SIZE 0x807A
  698. #define GL_VERTEX_ARRAY_TYPE 0x807B
  699. #define GL_VERTEX_ARRAY_STRIDE 0x807C
  700. #define GL_NORMAL_ARRAY_TYPE 0x807E
  701. #define GL_NORMAL_ARRAY_STRIDE 0x807F
  702. #define GL_COLOR_ARRAY_SIZE 0x8081
  703. #define GL_COLOR_ARRAY_TYPE 0x8082
  704. #define GL_COLOR_ARRAY_STRIDE 0x8083
  705. #define GL_TEXTURE_COORD_ARRAY_SIZE 0x8088
  706. #define GL_TEXTURE_COORD_ARRAY_TYPE 0x8089
  707. #define GL_TEXTURE_COORD_ARRAY_STRIDE 0x808A
  708. #define GL_VERTEX_ARRAY_POINTER 0x808E
  709. #define GL_NORMAL_ARRAY_POINTER 0x808F
  710. #define GL_COLOR_ARRAY_POINTER 0x8090
  711. #define GL_TEXTURE_COORD_ARRAY_POINTER 0x8092
  712. #define GL_SAMPLE_BUFFERS 0x80A8
  713. #define GL_SAMPLES 0x80A9
  714. #define GL_SAMPLE_COVERAGE_VALUE 0x80AA
  715. #define GL_SAMPLE_COVERAGE_INVERT 0x80AB
  716. #define GL_POINT_SIZE_MIN 0x8126
  717. #define GL_POINT_SIZE_MAX 0x8127
  718. #define GL_POINT_FADE_THRESHOLD_SIZE 0x8128
  719. #define GL_POINT_DISTANCE_ATTENUATION 0x8129
  720. #define GL_GENERATE_MIPMAP 0x8191
  721. #define GL_GENERATE_MIPMAP_HINT 0x8192
  722. #define GL_ACTIVE_TEXTURE 0x84E0
  723. #define GL_CLIENT_ACTIVE_TEXTURE 0x84E1
  724. #define GL_SUBTRACT 0x84E7
  725. #define GL_COMBINE 0x8570
  726. #define GL_COMBINE_RGB 0x8571
  727. #define GL_COMBINE_ALPHA 0x8572
  728. #define GL_RGB_SCALE 0x8573
  729. #define GL_ADD_SIGNED 0x8574
  730. #define GL_INTERPOLATE 0x8575
  731. #define GL_CONSTANT 0x8576
  732. #define GL_PRIMARY_COLOR 0x8577
  733. #define GL_PREVIOUS 0x8578
  734. #define GL_SRC0_RGB 0x8580
  735. #define GL_SRC1_RGB 0x8581
  736. #define GL_SRC2_RGB 0x8582
  737. #define GL_SRC0_ALPHA 0x8588
  738. #define GL_SRC1_ALPHA 0x8589
  739. #define GL_SRC2_ALPHA 0x858A
  740. #define GL_OPERAND0_RGB 0x8590
  741. #define GL_OPERAND1_RGB 0x8591
  742. #define GL_OPERAND2_RGB 0x8592
  743. #define GL_OPERAND0_ALPHA 0x8598
  744. #define GL_OPERAND1_ALPHA 0x8599
  745. #define GL_OPERAND2_ALPHA 0x859A
  746. #define GL_DOT3_RGB 0x86AE
  747. #define GL_DOT3_RGBA 0x86AF
  748. #define GL_BUFFER_SIZE 0x8764
  749. #define GL_BUFFER_USAGE 0x8765
  750. #define GL_ARRAY_BUFFER 0x8892
  751. #define GL_ELEMENT_ARRAY_BUFFER 0x8893
  752. #define GL_ARRAY_BUFFER_BINDING 0x8894
  753. #define GL_ELEMENT_ARRAY_BUFFER_BINDING 0x8895
  754. #define GL_VERTEX_ARRAY_BUFFER_BINDING 0x8896
  755. #define GL_NORMAL_ARRAY_BUFFER_BINDING 0x8897
  756. #define GL_COLOR_ARRAY_BUFFER_BINDING 0x8898
  757. #define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING 0x889A
  758. #define GL_STATIC_DRAW 0x88E4
  759. #define GL_DYNAMIC_DRAW 0x88E8
  760. typedef char GLchar;
  761. typedef khronos_intptr_t GLintptr;
  762. typedef khronos_ssize_t GLsizeiptr;
  763. typedef void (GLAPIENTRY * PFNGLBINDBUFFERPROC) (GLenum , GLuint );
  764. typedef void (GLAPIENTRY * PFNGLBUFFERDATAPROC) (GLenum , GLsizeiptr, const GLvoid *, GLenum );
  765. typedef void (GLAPIENTRY * PFNGLBUFFERSUBDATAPROC) (GLenum, GLintptr, GLsizeiptr, const GLvoid *);
  766. typedef void (GLAPIENTRY * PFNGLCLIPPLANEXPROC) (GLenum ,const GLfixed *);
  767. typedef void (GLAPIENTRY * PFNGLCOLOR4UBPROC) (GLubyte, GLubyte, GLubyte, GLubyte);
  768. typedef void (GLAPIENTRY * PFNGLDELETEBUFFERSPROC) (GLsizei , const GLuint *);
  769. typedef void (GLAPIENTRY * PFNGLGENBUFFERSPROC) (GLsizei, GLuint *);
  770. typedef void (GLAPIENTRY * PFNGLGETBOOLEANVPROC) (GLenum, GLboolean *);
  771. typedef void (GLAPIENTRY * PFNGLGETBUFFERPARAMETERIVPROC) (GLenum, GLenum, GLint *);
  772. typedef void (GLAPIENTRY * PFNGLGETCLIPPLANEXPROC) (GLenum ,GLfixed*);
  773. typedef void (GLAPIENTRY * PFNGLGETFIXEDVPROC) (GLenum, GLfixed *);
  774. typedef void (GLAPIENTRY * PFNGLGETLIGHTXVPROC) (GLenum, GLenum, GLfixed *);
  775. typedef void (GLAPIENTRY * PFNGLGETMATERIALXVPROC) (GLenum, GLenum, GLfixed *);
  776. typedef void (GLAPIENTRY * PFNGLGETPOINTERVPROC) (GLenum , GLvoid **);
  777. typedef void (GLAPIENTRY * PFNGLGETTEXENVIVPROC) (GLenum, GLenum , GLint *);
  778. typedef void (GLAPIENTRY * PFNGLGETTEXENVXVPROC) (GLenum, GLenum, GLfixed *);
  779. typedef void (GLAPIENTRY * PFNGLGETTEXPARAMETERIVPROC) (GLenum, GLenum, GLint *);
  780. typedef void (GLAPIENTRY * PFNGLGETTEXPARAMETERXVPROC) (GLenum, GLenum, GLfixed *);
  781. typedef GLboolean (GLAPIENTRY * PFNGLISBUFFERPROC) (GLuint);
  782. typedef GLboolean (GLAPIENTRY * PFNGLISENABLEDPROC) (GLenum);
  783. typedef GLboolean (GLAPIENTRY * PFNGLISTEXTUREPROC) (GLuint);
  784. typedef void (GLAPIENTRY * PFNGLPOINTPARAMETERXPROC) (GLenum, GLfixed);
  785. typedef void (GLAPIENTRY * PFNGLPOINTPARAMETERXVPROC) (GLenum, const GLfixed *);
  786. typedef void (GLAPIENTRY * PFNGLTEXENVIPROC) (GLenum, GLenum, GLint);
  787. typedef void (GLAPIENTRY * PFNGLTEXENVIVPROC) (GLenum, GLenum, const GLint *);
  788. typedef void (GLAPIENTRY * PFNGLTEXPARAMETERIPROC) (GLenum, GLenum, GLint);
  789. typedef void (GLAPIENTRY * PFNGLTEXPARAMETERIVPROC) (GLenum, GLenum, const GLint *);
  790. typedef void (GLAPIENTRY * PFNGLTEXPARAMETERXVPROC) (GLenum, GLenum, const GLfixed *);
  791. #define glBindBuffer GLEW_GET_FUN(__glewBindBuffer)
  792. #define glBufferData GLEW_GET_FUN(__glewBufferData)
  793. #define glBufferSubData GLEW_GET_FUN(__glewBufferSubData)
  794. #define glClipPlanex GLEW_GET_FUN(__glewClipPlanex)
  795. #define glColor4ub GLEW_GET_FUN(__glewColor4ub)
  796. #define glDeleteBuffers GLEW_GET_FUN(__glewDeleteBuffers)
  797. #define glGenBuffers GLEW_GET_FUN(__glewGenBuffers)
  798. #define glGetBooleanv GLEW_GET_FUN(__glewGetBooleanv)
  799. #define glGetBufferParameteriv GLEW_GET_FUN(__glewGetBufferParameteriv)
  800. #define glGetClipPlanex GLEW_GET_FUN(__glewGetClipPlanex)
  801. #define glGetFixedv GLEW_GET_FUN(__glewGetFixedv)
  802. #define glGetLightxv GLEW_GET_FUN(__glewGetLightxv)
  803. #define glGetMaterialxv GLEW_GET_FUN(__glewGetMaterialxv)
  804. #define glGetPointerv GLEW_GET_FUN(__glewGetPointerv)
  805. #define glGetTexEnviv GLEW_GET_FUN(__glewGetTexEnviv)
  806. #define glGetTexEnvxv GLEW_GET_FUN(__glewGetTexEnvxv)
  807. #define glGetTexParameteriv GLEW_GET_FUN(__glewGetTexParameteriv)
  808. #define glGetTexParameterxv GLEW_GET_FUN(__glewGetTexParameterxv)
  809. #define glIsBuffer GLEW_GET_FUN(__glewIsBuffer)
  810. #define glIsEnabled GLEW_GET_FUN(__glewIsEnabled)
  811. #define glIsTexture GLEW_GET_FUN(__glewIsTexture)
  812. #define glPointParameterx GLEW_GET_FUN(__glewPointParameterx)
  813. #define glPointParameterxv GLEW_GET_FUN(__glewPointParameterxv)
  814. #define glTexEnvi GLEW_GET_FUN(__glewTexEnvi)
  815. #define glTexEnviv GLEW_GET_FUN(__glewTexEnviv)
  816. #define glTexParameteri GLEW_GET_FUN(__glewTexParameteri)
  817. #define glTexParameteriv GLEW_GET_FUN(__glewTexParameteriv)
  818. #define glTexParameterxv GLEW_GET_FUN(__glewTexParameterxv)
  819. #else // XXX
  820. #define GL_ES_VERSION_CL_1_1 0 // NOTE jwilkins: define version token
  821. #endif /* !GL_ES_VERSION_CL_1_1 */
  822. #define GLEW_ES_VERSION_CL_1_1 GLEW_GET_VAR(__GLEW_ES_VERSION_CL_1_1) // NOTE jwilkins: always needs to be defined
  823. /* -------------------------- GL_ES_VERSION_CM_1_1 ------------------------- */
  824. #if GL_ES_VERSION_CM_1_1 // NOTE jwilkins: should be if not ifdef
  825. #define GL_ES_VERSION_CM_1_1 1
  826. #define GL_VERSION_ES_CM_1_1 0x1
  827. #define GL_VERSION_ES_CM_1_0 0x1
  828. typedef void (GLAPIENTRY * PFNGLCLIPPLANEFPROC) (GLenum, const GLfloat *);
  829. typedef void (GLAPIENTRY * PFNGLGETCLIPPLANEFPROC) (GLenum , GLfloat* );
  830. typedef void (GLAPIENTRY * PFNGLGETFLOATVPROC) (GLenum , GLfloat *);
  831. typedef void (GLAPIENTRY * PFNGLGETLIGHTFVPROC) (GLenum , GLenum , GLfloat *);
  832. typedef void (GLAPIENTRY * PFNGLGETMATERIALFVPROC) (GLenum, GLenum, GLfloat *);
  833. typedef void (GLAPIENTRY * PFNGLGETTEXENVFVPROC) (GLenum env, GLenum, GLfloat *);
  834. typedef void (GLAPIENTRY * PFNGLGETTEXPARAMETERFVPROC) (GLenum, GLenum, GLfloat *);
  835. typedef void (GLAPIENTRY * PFNGLPOINTPARAMETERFPROC) (GLenum , GLfloat );
  836. typedef void (GLAPIENTRY * PFNGLPOINTPARAMETERFVPROC) (GLenum, const GLfloat *);
  837. typedef void (GLAPIENTRY * PFNGLTEXPARAMETERFVPROC) (GLenum, GLenum , const GLfloat *);
  838. #define glClipPlanef GLEW_GET_FUN(__glewClipPlanef)
  839. #define glGetClipPlanef GLEW_GET_FUN(__glewGetClipPlanef)
  840. #define glGetFloatv GLEW_GET_FUN(__glewGetFloatv)
  841. #define glGetLightfv GLEW_GET_FUN(__glewGetLightfv)
  842. #define glGetMaterialfv GLEW_GET_FUN(__glewGetMaterialfv)
  843. #define glGetTexEnvfv GLEW_GET_FUN(__glewGetTexEnvfv)
  844. #define glGetTexParameterfv GLEW_GET_FUN(__glewGetTexParameterfv)
  845. #define glPointParameterf GLEW_GET_FUN(__glewPointParameterf)
  846. #define glPointParameterfv GLEW_GET_FUN(__glewPointParameterfv)
  847. #define glTexParameterfv GLEW_GET_FUN(__glewTexParameterfv)
  848. #else // XXX
  849. #define GL_ES_VERSION_CM_1_1 0 // NOTE jwilkins: define version token
  850. #endif /* !GL_ES_VERSION_CM_1_1 */
  851. #define GLEW_ES_VERSION_CM_1_1 GLEW_GET_VAR(__GLEW_ES_VERSION_CM_1_1) // NOTE jwilkins: always needs to be defined
  852. /* --------------------------- GL_ES_VERSION_2_0 --------------------------- */
  853. #if GL_ES_VERSION_2_0 // NOTE jwilkins: should be if not ifdef
  854. #define GL_ES_VERSION_2_0 1
  855. #define GL_NONE 0
  856. #define GL_INVALID_FRAMEBUFFER_OPERATION 0x0506
  857. #define GL_INT 0x1404
  858. #define GL_UNSIGNED_INT 0x1405
  859. #define GL_STENCIL_INDEX 0x1901
  860. #define GL_DEPTH_COMPONENT 0x1902
  861. #define GL_CONSTANT_COLOR 0x8001
  862. #define GL_ONE_MINUS_CONSTANT_COLOR 0x8002
  863. #define GL_CONSTANT_ALPHA 0x8003
  864. #define GL_ONE_MINUS_CONSTANT_ALPHA 0x8004
  865. #define GL_BLEND_COLOR 0x8005
  866. #define GL_FUNC_ADD 0x8006
  867. #define GL_BLEND_EQUATION 0x8009
  868. #define GL_BLEND_EQUATION_RGB 0x8009
  869. #define GL_FUNC_SUBTRACT 0x800A
  870. #define GL_FUNC_REVERSE_SUBTRACT 0x800B
  871. #define GL_RGBA4 0x8056
  872. #define GL_RGB5_A1 0x8057
  873. #define GL_BLEND_DST_RGB 0x80C8
  874. #define GL_BLEND_SRC_RGB 0x80C9
  875. #define GL_BLEND_DST_ALPHA 0x80CA
  876. #define GL_BLEND_SRC_ALPHA 0x80CB
  877. #define GL_DEPTH_COMPONENT16 0x81A5
  878. #define GL_MIRRORED_REPEAT 0x8370
  879. #define GL_MAX_RENDERBUFFER_SIZE 0x84E8
  880. #define GL_INCR_WRAP 0x8507
  881. #define GL_DECR_WRAP 0x8508
  882. #define GL_TEXTURE_CUBE_MAP 0x8513
  883. #define GL_TEXTURE_BINDING_CUBE_MAP 0x8514
  884. #define GL_TEXTURE_CUBE_MAP_POSITIVE_X 0x8515
  885. #define GL_TEXTURE_CUBE_MAP_NEGATIVE_X 0x8516
  886. #define GL_TEXTURE_CUBE_MAP_POSITIVE_Y 0x8517
  887. #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y 0x8518
  888. #define GL_TEXTURE_CUBE_MAP_POSITIVE_Z 0x8519
  889. #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z 0x851A
  890. #define GL_MAX_CUBE_MAP_TEXTURE_SIZE 0x851C
  891. #define GL_VERTEX_ATTRIB_ARRAY_ENABLED 0x8622
  892. #define GL_VERTEX_ATTRIB_ARRAY_SIZE 0x8623
  893. #define GL_VERTEX_ATTRIB_ARRAY_STRIDE 0x8624
  894. #define GL_VERTEX_ATTRIB_ARRAY_TYPE 0x8625
  895. #define GL_CURRENT_VERTEX_ATTRIB 0x8626
  896. #define GL_VERTEX_ATTRIB_ARRAY_POINTER 0x8645
  897. #define GL_STENCIL_BACK_FUNC 0x8800
  898. #define GL_STENCIL_BACK_FAIL 0x8801
  899. #define GL_STENCIL_BACK_PASS_DEPTH_FAIL 0x8802
  900. #define GL_STENCIL_BACK_PASS_DEPTH_PASS 0x8803
  901. #define GL_BLEND_EQUATION_ALPHA 0x883D
  902. #define GL_MAX_VERTEX_ATTRIBS 0x8869
  903. #define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED 0x886A
  904. #define GL_MAX_TEXTURE_IMAGE_UNITS 0x8872
  905. #define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING 0x889F
  906. #define GL_STREAM_DRAW 0x88E0
  907. #define GL_FRAGMENT_SHADER 0x8B30
  908. #define GL_VERTEX_SHADER 0x8B31
  909. #define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS 0x8B4C
  910. #define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS 0x8B4D
  911. #define GL_SHADER_TYPE 0x8B4F
  912. #define GL_FLOAT_VEC2 0x8B50
  913. #define GL_FLOAT_VEC3 0x8B51
  914. #define GL_FLOAT_VEC4 0x8B52
  915. #define GL_INT_VEC2 0x8B53
  916. #define GL_INT_VEC3 0x8B54
  917. #define GL_INT_VEC4 0x8B55
  918. #define GL_BOOL 0x8B56
  919. #define GL_BOOL_VEC2 0x8B57
  920. #define GL_BOOL_VEC3 0x8B58
  921. #define GL_BOOL_VEC4 0x8B59
  922. #define GL_FLOAT_MAT2 0x8B5A
  923. #define GL_FLOAT_MAT3 0x8B5B
  924. #define GL_FLOAT_MAT4 0x8B5C
  925. #define GL_SAMPLER_2D 0x8B5E
  926. #define GL_SAMPLER_CUBE 0x8B60
  927. #define GL_DELETE_STATUS 0x8B80
  928. #define GL_COMPILE_STATUS 0x8B81
  929. #define GL_LINK_STATUS 0x8B82
  930. #define GL_VALIDATE_STATUS 0x8B83
  931. #define GL_INFO_LOG_LENGTH 0x8B84
  932. #define GL_ATTACHED_SHADERS 0x8B85
  933. #define GL_ACTIVE_UNIFORMS 0x8B86
  934. #define GL_ACTIVE_UNIFORM_MAX_LENGTH 0x8B87
  935. #define GL_SHADER_SOURCE_LENGTH 0x8B88
  936. #define GL_ACTIVE_ATTRIBUTES 0x8B89
  937. #define GL_ACTIVE_ATTRIBUTE_MAX_LENGTH 0x8B8A
  938. #define GL_SHADING_LANGUAGE_VERSION 0x8B8C
  939. #define GL_CURRENT_PROGRAM 0x8B8D
  940. #define GL_IMPLEMENTATION_COLOR_READ_TYPE 0x8B9A
  941. #define GL_IMPLEMENTATION_COLOR_READ_FORMAT 0x8B9B
  942. #define GL_STENCIL_BACK_REF 0x8CA3
  943. #define GL_STENCIL_BACK_VALUE_MASK 0x8CA4
  944. #define GL_STENCIL_BACK_WRITEMASK 0x8CA5
  945. #define GL_FRAMEBUFFER_BINDING 0x8CA6
  946. #define GL_RENDERBUFFER_BINDING 0x8CA7
  947. #define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE 0x8CD0
  948. #define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME 0x8CD1
  949. #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL 0x8CD2
  950. #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE 0x8CD3
  951. #define GL_FRAMEBUFFER_COMPLETE 0x8CD5
  952. #define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT 0x8CD6
  953. #define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT 0x8CD7
  954. #define GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS 0x8CD9
  955. #define GL_FRAMEBUFFER_UNSUPPORTED 0x8CDD
  956. #define GL_COLOR_ATTACHMENT0 0x8CE0
  957. #define GL_DEPTH_ATTACHMENT 0x8D00
  958. #define GL_STENCIL_ATTACHMENT 0x8D20
  959. #define GL_FRAMEBUFFER 0x8D40
  960. #define GL_RENDERBUFFER 0x8D41
  961. #define GL_RENDERBUFFER_WIDTH 0x8D42
  962. #define GL_RENDERBUFFER_HEIGHT 0x8D43
  963. #define GL_RENDERBUFFER_INTERNAL_FORMAT 0x8D44
  964. #define GL_STENCIL_INDEX8 0x8D48
  965. #define GL_RENDERBUFFER_RED_SIZE 0x8D50
  966. #define GL_RENDERBUFFER_GREEN_SIZE 0x8D51
  967. #define GL_RENDERBUFFER_BLUE_SIZE 0x8D52
  968. #define GL_RENDERBUFFER_ALPHA_SIZE 0x8D53
  969. #define GL_RENDERBUFFER_DEPTH_SIZE 0x8D54
  970. #define GL_RENDERBUFFER_STENCIL_SIZE 0x8D55
  971. #define GL_RGB565 0x8D62
  972. #define GL_LOW_FLOAT 0x8DF0
  973. #define GL_MEDIUM_FLOAT 0x8DF1
  974. #define GL_HIGH_FLOAT 0x8DF2
  975. #define GL_LOW_INT 0x8DF3
  976. #define GL_MEDIUM_INT 0x8DF4
  977. #define GL_HIGH_INT 0x8DF5
  978. #define GL_SHADER_BINARY_FORMATS 0x8DF8
  979. #define GL_NUM_SHADER_BINARY_FORMATS 0x8DF9
  980. #define GL_SHADER_COMPILER 0x8DFA
  981. #define GL_MAX_VERTEX_UNIFORM_VECTORS 0x8DFB
  982. #define GL_MAX_VARYING_VECTORS 0x8DFC
  983. #define GL_MAX_FRAGMENT_UNIFORM_VECTORS 0x8DFD
  984. #define GL_VIEWPORT 0x0BA2 // XXX missing enum
  985. #define GL_SCISSOR_BOX 0x0C10 // XXX missing enum
  986. #define GL_GENERATE_MIPMAP_HINT 0x8192 // XXX missing enum
  987. #define GL_ARRAY_BUFFER 0x8892 // XXX missing enum
  988. #define GL_ELEMENT_ARRAY_BUFFER 0x8893 // XXX missing enum
  989. #define GL_ARRAY_BUFFER_BINDING 0x8894 // XXX missing enum
  990. #define GL_ELEMENT_ARRAY_BUFFER_BINDING 0x8895 // XXX missing enum
  991. #define GL_STATIC_DRAW 0x88E4 // XXX missing enum
  992. #define GL_DYNAMIC_DRAW 0x88E8 // XXX missing enum
  993. #define GL_SAMPLE_BUFFERS 0x80A8 // XXX missing enum
  994. typedef char GLchar; // NOTE jwilkins: this typedef is missing when ES 1.1 is not enabled
  995. typedef khronos_intptr_t GLintptr; // XXX
  996. typedef khronos_ssize_t GLsizeiptr; // XXX
  997. typedef void (GLAPIENTRY * PFNGLATTACHSHADERPROC) (GLuint program, GLuint shader);
  998. typedef void (GLAPIENTRY * PFNGLBINDATTRIBLOCATIONPROC) (GLuint program, GLuint index, const GLchar* name);
  999. typedef void (GLAPIENTRY * PFNGLBINDFRAMEBUFFERPROC) (GLenum target, GLuint framebuffer);
  1000. typedef void (GLAPIENTRY * PFNGLBINDRENDERBUFFERPROC) (GLenum target, GLuint renderbuffer);
  1001. typedef void (GLAPIENTRY * PFNGLBLENDCOLORPROC) (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
  1002. typedef void (GLAPIENTRY * PFNGLBLENDEQUATIONPROC) ( GLenum mode );
  1003. typedef void (GLAPIENTRY * PFNGLBLENDEQUATIONSEPARATEPROC) (GLenum modeRGB, GLenum modeAlpha);
  1004. typedef void (GLAPIENTRY * PFNGLBLENDFUNCSEPARATEPROC) (GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
  1005. typedef GLenum (GLAPIENTRY * PFNGLCHECKFRAMEBUFFERSTATUSPROC) (GLenum target);
  1006. typedef void (GLAPIENTRY * PFNGLCOMPILESHADERPROC) (GLuint shader);
  1007. typedef GLuint (GLAPIENTRY * PFNGLCREATEPROGRAMPROC) (void);
  1008. typedef GLuint (GLAPIENTRY * PFNGLCREATESHADERPROC) (GLenum type);
  1009. typedef void (GLAPIENTRY * PFNGLDELETEFRAMEBUFFERSPROC) (GLsizei n, const GLuint* framebuffers);
  1010. typedef void (GLAPIENTRY * PFNGLDELETEPROGRAMPROC) (GLuint program);
  1011. typedef void (GLAPIENTRY * PFNGLDELETERENDERBUFFERSPROC) (GLsizei n, const GLuint* renderbuffers);
  1012. typedef void (GLAPIENTRY * PFNGLDELETESHADERPROC) (GLuint shader);
  1013. typedef void (GLAPIENTRY * PFNGLDETACHSHADERPROC) (GLuint program, GLuint shader);
  1014. typedef void (GLAPIENTRY * PFNGLDISABLEVERTEXATTRIBARRAYPROC) (GLuint index);
  1015. typedef void (GLAPIENTRY * PFNGLENABLEVERTEXATTRIBARRAYPROC) (GLuint index);
  1016. typedef void (GLAPIENTRY * PFNGLFRAMEBUFFERRENDERBUFFERPROC) (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
  1017. typedef void (GLAPIENTRY * PFNGLFRAMEBUFFERTEXTURE2DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
  1018. typedef void (GLAPIENTRY * PFNGLGENFRAMEBUFFERSPROC) (GLsizei n, GLuint* framebuffers);
  1019. typedef void (GLAPIENTRY * PFNGLGENRENDERBUFFERSPROC) (GLsizei n, GLuint* renderbuffers);
  1020. typedef void (GLAPIENTRY * PFNGLGENERATEMIPMAPPROC) (GLenum target);
  1021. typedef void (GLAPIENTRY * PFNGLGETACTIVEATTRIBPROC) (GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name);
  1022. typedef void (GLAPIENTRY * PFNGLGETACTIVEUNIFORMPROC) (GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name);
  1023. typedef void (GLAPIENTRY * PFNGLGETATTACHEDSHADERSPROC) (GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders);
  1024. typedef int (GLAPIENTRY * PFNGLGETATTRIBLOCATIONPROC) (GLuint program, const GLchar* name);
  1025. typedef void (GLAPIENTRY * PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC) (GLenum target, GLenum attachment, GLenum pname, GLint* params);
  1026. typedef void (GLAPIENTRY * PFNGLGETPROGRAMINFOLOGPROC) (GLuint program, GLsizei bufsize, GLsizei* length, GLchar* infolog);
  1027. typedef void (GLAPIENTRY * PFNGLGETPROGRAMIVPROC) (GLuint program, GLenum pname, GLint* params);
  1028. typedef void (GLAPIENTRY * PFNGLGETRENDERBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint* params);
  1029. typedef void (GLAPIENTRY * PFNGLGETSHADERINFOLOGPROC) (GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* infolog);
  1030. typedef void (GLAPIENTRY * PFNGLGETSHADERPRECISIONFORMATPROC) (GLenum shadertype, GLenum precisiontype, GLint* range, GLint* precision);
  1031. typedef void (GLAPIENTRY * PFNGLGETSHADERSOURCEPROC) (GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* source);
  1032. typedef void (GLAPIENTRY * PFNGLGETSHADERIVPROC) (GLuint shader, GLenum pname, GLint* params);
  1033. typedef int (GLAPIENTRY * PFNGLGETUNIFORMLOCATIONPROC) (GLuint program, const GLchar* name);
  1034. typedef void (GLAPIENTRY * PFNGLGETUNIFORMFVPROC) (GLuint program, GLint location, GLfloat* params);
  1035. typedef void (GLAPIENTRY * PFNGLGETUNIFORMIVPROC) (GLuint program, GLint location, GLint* params);
  1036. typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBPOINTERVPROC) (GLuint index, GLenum pname, GLvoid** pointer);
  1037. typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBFVPROC) (GLuint index, GLenum pname, GLfloat* params);
  1038. typedef void (GLAPIENTRY * PFNGLGETVERTEXATTRIBIVPROC) (GLuint index, GLenum pname, GLint* params);
  1039. typedef GLboolean (GLAPIENTRY * PFNGLISFRAMEBUFFERPROC) (GLuint framebuffer);
  1040. typedef GLboolean (GLAPIENTRY * PFNGLISPROGRAMPROC) (GLuint program);
  1041. typedef GLboolean (GLAPIENTRY * PFNGLISRENDERBUFFERPROC) (GLuint renderbuffer);
  1042. typedef GLboolean (GLAPIENTRY * PFNGLISSHADERPROC) (GLuint shader);
  1043. typedef void (GLAPIENTRY * PFNGLLINKPROGRAMPROC) (GLuint program);
  1044. typedef void (GLAPIENTRY * PFNGLRELEASESHADERCOMPILERPROC) (void);
  1045. typedef void (GLAPIENTRY * PFNGLRENDERBUFFERSTORAGEPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
  1046. typedef void (GLAPIENTRY * PFNGLSHADERBINARYPROC) (GLsizei n, const GLuint* shaders, GLenum binaryformat, const GLvoid* binary, GLsizei length);
  1047. typedef void (GLAPIENTRY * PFNGLSHADERSOURCEPROC) (GLuint shader, GLsizei count, const GLchar** string, const GLint* length);
  1048. typedef void (GLAPIENTRY * PFNGLSTENCILFUNCSEPARATEPROC) (GLenum face, GLenum func, GLint ref, GLuint mask);
  1049. typedef void (GLAPIENTRY * PFNGLSTENCILMASKSEPARATEPROC) (GLenum face, GLuint mask);
  1050. typedef void (GLAPIENTRY * PFNGLSTENCILOPSEPARATEPROC) (GLenum face, GLenum fail, GLenum zfail, GLenum zpass);
  1051. typedef void (GLAPIENTRY * PFNGLUNIFORM1FPROC) (GLint location, GLfloat x);
  1052. typedef void (GLAPIENTRY * PFNGLUNIFORM1FVPROC) (GLint location, GLsizei count, const GLfloat* v);
  1053. typedef void (GLAPIENTRY * PFNGLUNIFORM1IPROC) (GLint location, GLint x);
  1054. typedef void (GLAPIENTRY * PFNGLUNIFORM1IVPROC) (GLint location, GLsizei count, const GLint* v);
  1055. typedef void (GLAPIENTRY * PFNGLUNIFORM2FPROC) (GLint location, GLfloat x, GLfloat y);
  1056. typedef void (GLAPIENTRY * PFNGLUNIFORM2FVPROC) (GLint location, GLsizei count, const GLfloat* v);
  1057. typedef void (GLAPIENTRY * PFNGLUNIFORM2IPROC) (GLint location, GLint x, GLint y);
  1058. typedef void (GLAPIENTRY * PFNGLUNIFORM2IVPROC) (GLint location, GLsizei count, const GLint* v);
  1059. typedef void (GLAPIENTRY * PFNGLUNIFORM3FPROC) (GLint location, GLfloat x, GLfloat y, GLfloat z);
  1060. typedef void (GLAPIENTRY * PFNGLUNIFORM3FVPROC) (GLint location, GLsizei count, const GLfloat* v);
  1061. typedef void (GLAPIENTRY * PFNGLUNIFORM3IPROC) (GLint location, GLint x, GLint y, GLint z);
  1062. typedef void (GLAPIENTRY * PFNGLUNIFORM3IVPROC) (GLint location, GLsizei count, const GLint* v);
  1063. typedef void (GLAPIENTRY * PFNGLUNIFORM4FPROC) (GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
  1064. typedef void (GLAPIENTRY * PFNGLUNIFORM4FVPROC) (GLint location, GLsizei count, const GLfloat* v);
  1065. typedef void (GLAPIENTRY * PFNGLUNIFORM4IPROC) (GLint location, GLint x, GLint y, GLint z, GLint w);
  1066. typedef void (GLAPIENTRY * PFNGLUNIFORM4IVPROC) (GLint location, GLsizei count, const GLint* v);
  1067. typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
  1068. typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
  1069. typedef void (GLAPIENTRY * PFNGLUNIFORMMATRIX4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
  1070. typedef void (GLAPIENTRY * PFNGLUSEPROGRAMPROC) (GLuint program);
  1071. typedef void (GLAPIENTRY * PFNGLVALIDATEPROGRAMPROC) (GLuint program);
  1072. typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB1FPROC) (GLuint indx, GLfloat x);
  1073. typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB1FVPROC) (GLuint indx, const GLfloat* values);
  1074. typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB2FPROC) (GLuint indx, GLfloat x, GLfloat y);
  1075. typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB2FVPROC) (GLuint indx, const GLfloat* values);
  1076. typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB3FPROC) (GLuint indx, GLfloat x, GLfloat y, GLfloat z);
  1077. typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB3FVPROC) (GLuint indx, const GLfloat* values);
  1078. typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4FPROC) (GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
  1079. typedef void (GLAPIENTRY * PFNGLVERTEXATTRIB4FVPROC) (GLuint indx, const GLfloat* values);
  1080. typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBPOINTERPROC) (GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid* ptr);
  1081. typedef void (GLAPIENTRY * PFNGLBINDBUFFERPROC) (GLenum , GLuint ); // NOTE jwilkins: missing function
  1082. typedef void (GLAPIENTRY * PFNGLBUFFERDATAPROC) (GLenum , GLsizeiptr, const GLvoid *, GLenum ); // NOTE jwilkins: missing function
  1083. typedef void (GLAPIENTRY * PFNGLBUFFERSUBDATAPROC) (GLenum, GLintptr, GLsizeiptr, const GLvoid *); // NOTE jwilkins: missing function
  1084. typedef void (GLAPIENTRY * PFNGLDELETEBUFFERSPROC) (GLsizei , const GLuint *); // NOTE jwilkins: missing function
  1085. typedef void (GLAPIENTRY * PFNGLGENBUFFERSPROC) (GLsizei, GLuint *); // NOTE jwilkins: missing function
  1086. typedef void (GLAPIENTRY * PFNGLTEXPARAMETERIPROC) (GLenum, GLenum, GLint); // NOTE jwilkins: missing function
  1087. typedef GLboolean (GLAPIENTRY * PFNGLISENABLEDPROC) (GLenum); // NOTE jwilkins: missing function
  1088. typedef void (GLAPIENTRY * PFNGLGETFLOATVPROC) (GLenum , GLfloat *); // NOTE jwilkins: missing function
  1089. typedef void (GLAPIENTRY * PFNGLDEPTHRANGEFPROC) (GLclampf zNear, GLclampf zFar); // NOTE jwilkins: missing function
  1090. typedef void (GLAPIENTRY * PFNGLACTIVETEXTUREPROC) (GLenum texture); // NOTE jwilkins: missing function
  1091. typedef void (GLAPIENTRY * PFNGLGETBOOLEANVPROC) (GLenum, GLboolean *); // NOTE jwilkins: missing function
  1092. #define glAttachShader GLEW_GET_FUN(__glewAttachShader)
  1093. #define glBindAttribLocation GLEW_GET_FUN(__glewBindAttribLocation)
  1094. #define glBindFramebuffer GLEW_GET_FUN(__glewBindFramebuffer)
  1095. #define glBindRenderbuffer GLEW_GET_FUN(__glewBindRenderbuffer)
  1096. #define glBlendColor GLEW_GET_FUN(__glewBlendColor)
  1097. #define glBlendEquation GLEW_GET_FUN(__glewBlendEquation)
  1098. #define glBlendEquationSeparate GLEW_GET_FUN(__glewBlendEquationSeparate)
  1099. #define glBlendFuncSeparate GLEW_GET_FUN(__glewBlendFuncSeparate)
  1100. #define glCheckFramebufferStatus GLEW_GET_FUN(__glewCheckFramebufferStatus)
  1101. #define glCompileShader GLEW_GET_FUN(__glewCompileShader)
  1102. #define glCreateProgram GLEW_GET_FUN(__glewCreateProgram)
  1103. #define glCreateShader GLEW_GET_FUN(__glewCreateShader)
  1104. #define glDeleteFramebuffers GLEW_GET_FUN(__glewDeleteFramebuffers)
  1105. #define glDeleteProgram GLEW_GET_FUN(__glewDeleteProgram)
  1106. #define glDeleteRenderbuffers GLEW_GET_FUN(__glewDeleteRenderbuffers)
  1107. #define glDeleteShader GLEW_GET_FUN(__glewDeleteShader)
  1108. #define glDetachShader GLEW_GET_FUN(__glewDetachShader)
  1109. #define glDisableVertexAttribArray GLEW_GET_FUN(__glewDisableVertexAttribArray)
  1110. #define glEnableVertexAttribArray GLEW_GET_FUN(__glewEnableVertexAttribArray)
  1111. #define glFramebufferRenderbuffer GLEW_GET_FUN(__glewFramebufferRenderbuffer)
  1112. #define glFramebufferTexture2D GLEW_GET_FUN(__glewFramebufferTexture2D)
  1113. #define glGenFramebuffers GLEW_GET_FUN(__glewGenFramebuffers)
  1114. #define glGenRenderbuffers GLEW_GET_FUN(__glewGenRenderbuffers)
  1115. #define glGenerateMipmap GLEW_GET_FUN(__glewGenerateMipmap)
  1116. #define glGetActiveAttrib GLEW_GET_FUN(__glewGetActiveAttrib)
  1117. #define glGetActiveUniform GLEW_GET_FUN(__glewGetActiveUniform)
  1118. #define glGetAttachedShaders GLEW_GET_FUN(__glewGetAttachedShaders)
  1119. #define glGetAttribLocation GLEW_GET_FUN(__glewGetAttribLocation)
  1120. #define glGetFramebufferAttachmentParameteriv GLEW_GET_FUN(__glewGetFramebufferAttachmentParameteriv)
  1121. #define glGetProgramInfoLog GLEW_GET_FUN(__glewGetProgramInfoLog)
  1122. #define glGetProgramiv GLEW_GET_FUN(__glewGetProgramiv)
  1123. #define glGetRenderbufferParameteriv GLEW_GET_FUN(__glewGetRenderbufferParameteriv)
  1124. #define glGetShaderInfoLog GLEW_GET_FUN(__glewGetShaderInfoLog)
  1125. #define glGetShaderPrecisionFormat GLEW_GET_FUN(__glewGetShaderPrecisionFormat)
  1126. #define glGetShaderSource GLEW_GET_FUN(__glewGetShaderSource)
  1127. #define glGetShaderiv GLEW_GET_FUN(__glewGetShaderiv)
  1128. #define glGetUniformLocation GLEW_GET_FUN(__glewGetUniformLocation)
  1129. #define glGetUniformfv GLEW_GET_FUN(__glewGetUniformfv)
  1130. #define glGetUniformiv GLEW_GET_FUN(__glewGetUniformiv)
  1131. #define glGetVertexAttribPointerv GLEW_GET_FUN(__glewGetVertexAttribPointerv)
  1132. #define glGetVertexAttribfv GLEW_GET_FUN(__glewGetVertexAttribfv)
  1133. #define glGetVertexAttribiv GLEW_GET_FUN(__glewGetVertexAttribiv)
  1134. #define glIsFramebuffer GLEW_GET_FUN(__glewIsFramebuffer)
  1135. #define glIsProgram GLEW_GET_FUN(__glewIsProgram)
  1136. #define glIsRenderbuffer GLEW_GET_FUN(__glewIsRenderbuffer)
  1137. #define glIsShader GLEW_GET_FUN(__glewIsShader)
  1138. #define glLinkProgram GLEW_GET_FUN(__glewLinkProgram)
  1139. #define glReleaseShaderCompiler GLEW_GET_FUN(__glewReleaseShaderCompiler)
  1140. #define glRenderbufferStorage GLEW_GET_FUN(__glewRenderbufferStorage)
  1141. #define glShaderBinary GLEW_GET_FUN(__glewShaderBinary)
  1142. #define glShaderSource GLEW_GET_FUN(__glewShaderSource)
  1143. #define glStencilFuncSeparate GLEW_GET_FUN(__glewStencilFuncSeparate)
  1144. #define glStencilMaskSeparate GLEW_GET_FUN(__glewStencilMaskSeparate)
  1145. #define glStencilOpSeparate GLEW_GET_FUN(__glewStencilOpSeparate)
  1146. #define glUniform1f GLEW_GET_FUN(__glewUniform1f)
  1147. #define glUniform1fv GLEW_GET_FUN(__glewUniform1fv)
  1148. #define glUniform1i GLEW_GET_FUN(__glewUniform1i)
  1149. #define glUniform1iv GLEW_GET_FUN(__glewUniform1iv)
  1150. #define glUniform2f GLEW_GET_FUN(__glewUniform2f)
  1151. #define glUniform2fv GLEW_GET_FUN(__glewUniform2fv)
  1152. #define glUniform2i GLEW_GET_FUN(__glewUniform2i)
  1153. #define glUniform2iv GLEW_GET_FUN(__glewUniform2iv)
  1154. #define glUniform3f GLEW_GET_FUN(__glewUniform3f)
  1155. #define glUniform3fv GLEW_GET_FUN(__glewUniform3fv)
  1156. #define glUniform3i GLEW_GET_FUN(__glewUniform3i)
  1157. #define glUniform3iv GLEW_GET_FUN(__glewUniform3iv)
  1158. #define glUniform4f GLEW_GET_FUN(__glewUniform4f)
  1159. #define glUniform4fv GLEW_GET_FUN(__glewUniform4fv)
  1160. #define glUniform4i GLEW_GET_FUN(__glewUniform4i)
  1161. #define glUniform4iv GLEW_GET_FUN(__glewUniform4iv)
  1162. #define glUniformMatrix2fv GLEW_GET_FUN(__glewUniformMatrix2fv)
  1163. #define glUniformMatrix3fv GLEW_GET_FUN(__glewUniformMatrix3fv)
  1164. #define glUniformMatrix4fv GLEW_GET_FUN(__glewUniformMatrix4fv)
  1165. #define glUseProgram GLEW_GET_FUN(__glewUseProgram)
  1166. #define glValidateProgram GLEW_GET_FUN(__glewValidateProgram)
  1167. #define glVertexAttrib1f GLEW_GET_FUN(__glewVertexAttrib1f)
  1168. #define glVertexAttrib1fv GLEW_GET_FUN(__glewVertexAttrib1fv)
  1169. #define glVertexAttrib2f GLEW_GET_FUN(__glewVertexAttrib2f)
  1170. #define glVertexAttrib2fv GLEW_GET_FUN(__glewVertexAttrib2fv)
  1171. #define glVertexAttrib3f GLEW_GET_FUN(__glewVertexAttrib3f)
  1172. #define glVertexAttrib3fv GLEW_GET_FUN(__glewVertexAttrib3fv)
  1173. #define glVertexAttrib4f GLEW_GET_FUN(__glewVertexAttrib4f)
  1174. #define glVertexAttrib4fv GLEW_GET_FUN(__glewVertexAttrib4fv)
  1175. #define glVertexAttribPointer GLEW_GET_FUN(__glewVertexAttribPointer)
  1176. #define glBindBuffer GLEW_GET_FUN(__glewBindBuffer) // NOTE jwilkins: missing function
  1177. #define glBufferData GLEW_GET_FUN(__glewBufferData) // NOTE jwilkins: missing function
  1178. #define glBufferSubData GLEW_GET_FUN(__glewBufferSubData) // NOTE jwilkins: missing function
  1179. #define glDeleteBuffers GLEW_GET_FUN(__glewDeleteBuffers) // NOTE jwilkins: missing function
  1180. #define glGenBuffers GLEW_GET_FUN(__glewGenBuffers) // NOTE jwilkins: missing function
  1181. #define glTexParameteri GLEW_GET_FUN(__glewTexParameteri) // NOTE jwilkins: missing function
  1182. #define glIsEnabled GLEW_GET_FUN(__glewIsEnabled) // NOTE jwilkins: missing function
  1183. #define glGetFloatv GLEW_GET_FUN(__glewGetFloatv) // NOTE jwilkins: missing function
  1184. #define glDepthRangef GLEW_GET_FUN(__glewDepthRangef) // NOTE jwilkins: missing function
  1185. #define glActiveTexture GLEW_GET_FUN(__glewActiveTexture) // NOTE jwilkins: missing function
  1186. #define glGetBooleanv GLEW_GET_FUN(__glewGetBooleanv) // NOTE jwilkins: missing function
  1187. #define GLEW_ES_VERSION_2_0 GLEW_GET_VAR(__GLEW_ES_VERSION_2_0)
  1188. #endif /* !GL_ES_VERSION_2_0 */
  1189. /* --------------------- GL_AMD_compressed_3DC_texture --------------------- */
  1190. #if !defined(GL_AMD_compressed_3DC_texture)
  1191. #define GL_AMD_compressed_3DC_texture 1
  1192. #define GL_3DC_X_AMD 0x87F9
  1193. #define GL_3DC_XY_AMD 0x87FA
  1194. #define GLEW_AMD_compressed_3DC_texture GLEW_GET_VAR(__GLEW_AMD_compressed_3DC_texture)
  1195. #endif /* !GL_AMD_compressed_3DC_texture */
  1196. /* --------------------- GL_AMD_compressed_ATC_texture --------------------- */
  1197. #if !defined(GL_AMD_compressed_ATC_texture)
  1198. #define GL_AMD_compressed_ATC_texture 1
  1199. #define GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD 0x87EE
  1200. #define GL_ATC_RGB_AMD 0x8C92
  1201. #define GL_ATC_RGBA_EXPLICIT_ALPHA_AMD 0x8C93
  1202. #define GLEW_AMD_compressed_ATC_texture GLEW_GET_VAR(__GLEW_AMD_compressed_ATC_texture)
  1203. #endif /* !GL_AMD_compressed_ATC_texture */
  1204. /* ----------------------- GL_AMD_performance_monitor ---------------------- */
  1205. #if !defined(GL_AMD_performance_monitor)
  1206. #define GL_AMD_performance_monitor 1
  1207. #define GL_UNSIGNED_INT 0x1405
  1208. #define GL_FLOAT 0x1406
  1209. #define GL_COUNTER_TYPE_AMD 0x8BC0
  1210. #define GL_COUNTER_RANGE_AMD 0x8BC1
  1211. #define GL_UNSIGNED_INT64_AMD 0x8BC2
  1212. #define GL_PERCENTAGE_AMD 0x8BC3
  1213. #define GL_PERFMON_RESULT_AVAILABLE_AMD 0x8BC4
  1214. #define GL_PERFMON_RESULT_SIZE_AMD 0x8BC5
  1215. #define GL_PERFMON_RESULT_AMD 0x8BC6
  1216. typedef void (GLAPIENTRY * PFNGLBEGINPERFMONITORAMDPROC) (GLuint monitor);
  1217. typedef void (GLAPIENTRY * PFNGLDELETEPERFMONITORSAMDPROC) (GLsizei n, GLuint* monitors);
  1218. typedef void (GLAPIENTRY * PFNGLENDPERFMONITORAMDPROC) (GLuint monitor);
  1219. typedef void (GLAPIENTRY * PFNGLGENPERFMONITORSAMDPROC) (GLsizei n, GLuint* monitors);
  1220. typedef void (GLAPIENTRY * PFNGLGETPERFMONITORCOUNTERDATAAMDPROC) (GLuint monitor, GLenum pname, GLsizei dataSize, GLuint* data, GLint *bytesWritten);
  1221. typedef void (GLAPIENTRY * PFNGLGETPERFMONITORCOUNTERINFOAMDPROC) (GLuint group, GLuint counter, GLenum pname, void* data);
  1222. typedef void (GLAPIENTRY * PFNGLGETPERFMONITORCOUNTERSTRINGAMDPROC) (GLuint group, GLuint counter, GLsizei bufSize, GLsizei* length, char *counterString);
  1223. typedef void (GLAPIENTRY * PFNGLGETPERFMONITORCOUNTERSAMDPROC) (GLuint group, GLint* numCounters, GLint *maxActiveCounters, GLsizei countersSize, GLuint *counters);
  1224. typedef void (GLAPIENTRY * PFNGLGETPERFMONITORGROUPSTRINGAMDPROC) (GLuint group, GLsizei bufSize, GLsizei* length, char *groupString);
  1225. typedef void (GLAPIENTRY * PFNGLGETPERFMONITORGROUPSAMDPROC) (GLint* numGroups, GLsizei groupsSize, GLuint *groups);
  1226. typedef void (GLAPIENTRY * PFNGLSELECTPERFMONITORCOUNTERSAMDPROC) (GLuint monitor, GLboolean enable, GLuint group, GLint numCounters, GLuint* counterList);
  1227. #define glBeginPerfMonitorAMD GLEW_GET_FUN(__glewBeginPerfMonitorAMD)
  1228. #define glDeletePerfMonitorsAMD GLEW_GET_FUN(__glewDeletePerfMonitorsAMD)
  1229. #define glEndPerfMonitorAMD GLEW_GET_FUN(__glewEndPerfMonitorAMD)
  1230. #define glGenPerfMonitorsAMD GLEW_GET_FUN(__glewGenPerfMonitorsAMD)
  1231. #define glGetPerfMonitorCounterDataAMD GLEW_GET_FUN(__glewGetPerfMonitorCounterDataAMD)
  1232. #define glGetPerfMonitorCounterInfoAMD GLEW_GET_FUN(__glewGetPerfMonitorCounterInfoAMD)
  1233. #define glGetPerfMonitorCounterStringAMD GLEW_GET_FUN(__glewGetPerfMonitorCounterStringAMD)
  1234. #define glGetPerfMonitorCountersAMD GLEW_GET_FUN(__glewGetPerfMonitorCountersAMD)
  1235. #define glGetPerfMonitorGroupStringAMD GLEW_GET_FUN(__glewGetPerfMonitorGroupStringAMD)
  1236. #define glGetPerfMonitorGroupsAMD GLEW_GET_FUN(__glewGetPerfMonitorGroupsAMD)
  1237. #define glSelectPerfMonitorCountersAMD GLEW_GET_FUN(__glewSelectPerfMonitorCountersAMD)
  1238. #define GLEW_AMD_performance_monitor GLEW_GET_VAR(__GLEW_AMD_performance_monitor)
  1239. #endif /* !GL_AMD_performance_monitor */
  1240. /* ----------------------- GL_AMD_program_binary_Z400 ---------------------- */
  1241. #if !defined(GL_AMD_program_binary_Z400)
  1242. #define GL_AMD_program_binary_Z400 1
  1243. #define GL_Z400_BINARY_AMD 0x8740
  1244. #define GLEW_AMD_program_binary_Z400 GLEW_GET_VAR(__GLEW_AMD_program_binary_Z400)
  1245. #endif /* !GL_AMD_program_binary_Z400 */
  1246. /* ----------------------- GL_ANGLE_framebuffer_blit ----------------------- */
  1247. #if !defined(GL_ANGLE_framebuffer_blit)
  1248. #define GL_ANGLE_framebuffer_blit 1
  1249. #define GL_DRAW_FRAMEBUFFER_BINDING_ANGLE 0x8CA6
  1250. #define GL_READ_FRAMEBUFFER_ANGLE 0x8CA8
  1251. #define GL_DRAW_FRAMEBUFFER_ANGLE 0x8CA9
  1252. #define GL_READ_FRAMEBUFFER_BINDING_ANGLE 0x8CAA
  1253. typedef void (GLAPIENTRY * PFNGLBLITFRAMEBUFFERANGLEPROC) (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
  1254. #define glBlitFramebufferANGLE GLEW_GET_FUN(__glewBlitFramebufferANGLE)
  1255. #define GLEW_ANGLE_framebuffer_blit GLEW_GET_VAR(__GLEW_ANGLE_framebuffer_blit)
  1256. #endif /* !GL_ANGLE_framebuffer_blit */
  1257. /* -------------------- GL_ANGLE_framebuffer_multisample ------------------- */
  1258. #if !defined(GL_ANGLE_framebuffer_multisample)
  1259. #define GL_ANGLE_framebuffer_multisample 1
  1260. #define GL_RENDERBUFFER_SAMPLES_ANGLE 0x8CAB
  1261. #define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_ANGLE 0x8D56
  1262. #define GL_MAX_SAMPLES_ANGLE 0x8D57
  1263. typedef void (GLAPIENTRY * PFNGLRENDERBUFFERSTORAGEMULTISAMPLEANGLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
  1264. #define glRenderbufferStorageMultisampleANGLE GLEW_GET_FUN(__glewRenderbufferStorageMultisampleANGLE)
  1265. #define GLEW_ANGLE_framebuffer_multisample GLEW_GET_VAR(__GLEW_ANGLE_framebuffer_multisample)
  1266. #endif /* !GL_ANGLE_framebuffer_multisample */
  1267. /* ----------------------- GL_ANGLE_instanced_arrays ----------------------- */
  1268. #if !defined(GL_ANGLE_instanced_arrays)
  1269. #define GL_ANGLE_instanced_arrays 1
  1270. #define GL_VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE 0x88FE
  1271. typedef void (GLAPIENTRY * PFNGLDRAWARRAYSINSTANCEDANGLEPROC) (GLenum mode, GLint first, GLsizei count, GLsizei primcount);
  1272. typedef void (GLAPIENTRY * PFNGLDRAWELEMENTSINSTANCEDANGLEPROC) (GLenum mode, GLsizei count, GLenum type, const void* indices, GLsizei primcount);
  1273. typedef void (GLAPIENTRY * PFNGLVERTEXATTRIBDIVISORANGLEPROC) (GLuint index, GLuint divisor);
  1274. #define glDrawArraysInstancedANGLE GLEW_GET_FUN(__glewDrawArraysInstancedANGLE)
  1275. #define glDrawElementsInstancedANGLE GLEW_GET_FUN(__glewDrawElementsInstancedANGLE)
  1276. #define glVertexAttribDivisorANGLE GLEW_GET_FUN(__glewVertexAttribDivisorANGLE)
  1277. #define GLEW_ANGLE_instanced_arrays GLEW_GET_VAR(__GLEW_ANGLE_instanced_arrays)
  1278. #endif /* !GL_ANGLE_instanced_arrays */
  1279. /* -------------------- GL_ANGLE_pack_reverse_row_order -------------------- */
  1280. #if !defined(GL_ANGLE_pack_reverse_row_order)
  1281. #define GL_ANGLE_pack_reverse_row_order 1
  1282. #define GL_PACK_REVERSE_ROW_ORDER_ANGLE 0x93A4
  1283. #define GLEW_ANGLE_pack_reverse_row_order GLEW_GET_VAR(__GLEW_ANGLE_pack_reverse_row_order)
  1284. #endif /* !GL_ANGLE_pack_reverse_row_order */
  1285. /* ------------------- GL_ANGLE_texture_compression_dxt3 ------------------- */
  1286. #if !defined(GL_ANGLE_texture_compression_dxt3)
  1287. #define GL_ANGLE_texture_compression_dxt3 1
  1288. #define GL_COMPRESSED_RGBA_S3TC_DXT3_ANGLE 0x83F2
  1289. #define GL_COMPRESSED_RGBA_S3TC_DXT5_ANGLE 0x83F3
  1290. #define GLEW_ANGLE_texture_compression_dxt3 GLEW_GET_VAR(__GLEW_ANGLE_texture_compression_dxt3)
  1291. #endif /* !GL_ANGLE_texture_compression_dxt3 */
  1292. /* ------------------- GL_ANGLE_texture_compression_dxt5 ------------------- */
  1293. #if !defined(GL_ANGLE_texture_compression_dxt5)
  1294. #define GL_ANGLE_texture_compression_dxt5 1
  1295. #define GL_COMPRESSED_RGBA_S3TC_DXT3_ANGLE 0x83F2
  1296. #define GL_COMPRESSED_RGBA_S3TC_DXT5_ANGLE 0x83F3
  1297. #define GLEW_ANGLE_texture_compression_dxt5 GLEW_GET_VAR(__GLEW_ANGLE_texture_compression_dxt5)
  1298. #endif /* !GL_ANGLE_texture_compression_dxt5 */
  1299. /* ------------------------- GL_ANGLE_texture_usage ------------------------ */
  1300. #if !defined(GL_ANGLE_texture_usage)
  1301. #define GL_ANGLE_texture_usage 1
  1302. #define GL_NONE 0 // NOTE jwilkins: had to change this from 0x0000 so it would match other definition of GL_NONE
  1303. #define GL_TEXTURE_USAGE_ANGLE 0x93A2
  1304. #define GL_FRAMEBUFFER_ATTACHMENT_ANGLE 0x93A3
  1305. #define GLEW_ANGLE_texture_usage GLEW_GET_VAR(__GLEW_ANGLE_texture_usage)
  1306. #endif /* !GL_ANGLE_texture_usage */
  1307. /* ------------------- GL_ANGLE_translated_shader_source ------------------- */
  1308. #if !defined(GL_ANGLE_translated_shader_source)
  1309. #define GL_ANGLE_translated_shader_source 1
  1310. #define GL_TRANSLATED_SHADER_SOURCE_LENGTH_ANGLE 0x93A0
  1311. typedef void (GLAPIENTRY * PFNGLGETTRANSLATEDSHADERSOURCEANGLEPROC) (GLuint shader, GLsizei bufsize, GLsizei* length, char* source);
  1312. #define glGetTranslatedShaderSourceANGLE GLEW_GET_FUN(__glewGetTranslatedShaderSourceANGLE)
  1313. #define GLEW_ANGLE_translated_shader_source GLEW_GET_VAR(__GLEW_ANGLE_translated_shader_source)
  1314. #endif /* !GL_ANGLE_translated_shader_source */
  1315. /* ---------------------- GL_APPLE_copy_texture_levels --------------------- */
  1316. #if !defined(GL_APPLE_copy_texture_levels)
  1317. #define GL_APPLE_copy_texture_levels 1
  1318. typedef void (GLAPIENTRY * PFNGLCOPYTEXTURELEVELSAPPLEPROC) (GLuint destinationTexture, GLuint sourceTexture, GLint sourceBaseLevel, GLsizei sourceLevelCount);
  1319. #define glCopyTextureLevelsAPPLE GLEW_GET_FUN(__glewCopyTextureLevelsAPPLE)
  1320. #define GLEW_APPLE_copy_texture_levels GLEW_GET_VAR(__GLEW_APPLE_copy_texture_levels)
  1321. #endif /* !GL_APPLE_copy_texture_levels */
  1322. /* -------------------- GL_APPLE_framebuffer_multisample ------------------- */
  1323. #if !defined(GL_APPLE_framebuffer_multisample)
  1324. #define GL_APPLE_framebuffer_multisample 1
  1325. #define GL_DRAW_FRAMEBUFFER_BINDING_APPLE 0x8CA6
  1326. #define GL_READ_FRAMEBUFFER_APPLE 0x8CA8
  1327. #define GL_DRAW_FRAMEBUFFER_APPLE 0x8CA9
  1328. #define GL_READ_FRAMEBUFFER_BINDING_APPLE 0x8CAA
  1329. #define GL_RENDERBUFFER_SAMPLES_APPLE 0x8CAB
  1330. #define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_APPLE 0x8D56
  1331. #define GL_MAX_SAMPLES_APPLE 0x8D57
  1332. typedef void (GLAPIENTRY * PFNGLRENDERBUFFERSTORAGEMULTISAMPLEAPPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
  1333. typedef void (GLAPIENTRY * PFNGLRESOLVEMULTISAMPLEFRAMEBUFFERAPPLEPROC) (void);
  1334. #define glRenderbufferStorageMultisampleAPPLE GLEW_GET_FUN(__glewRenderbufferStorageMultisampleAPPLE)
  1335. #define glResolveMultisampleFramebufferAPPLE GLEW_GET_FUN(__glewResolveMultisampleFramebufferAPPLE)
  1336. #define GLEW_APPLE_framebuffer_multisample GLEW_GET_VAR(__GLEW_APPLE_framebuffer_multisample)
  1337. #endif /* !GL_APPLE_framebuffer_multisample */
  1338. /* ---------------------------- GL_APPLE_rgb_422 --------------------------- */
  1339. #if !defined(GL_APPLE_rgb_422)
  1340. #define GL_APPLE_rgb_422 1
  1341. #define GL_UNSIGNED_SHORT_8_8_APPLE 0x85BA
  1342. #define GL_UNSIGNED_SHORT_8_8_REV_APPLE 0x85BB
  1343. #define GL_RGB_422_APPLE 0x8A1F
  1344. #define GLEW_APPLE_rgb_422 GLEW_GET_VAR(__GLEW_APPLE_rgb_422)
  1345. #endif /* !GL_APPLE_rgb_422 */
  1346. /* ----------------------------- GL_APPLE_sync ----------------------------- */
  1347. #if !defined(GL_APPLE_sync)
  1348. #define GL_APPLE_sync 1
  1349. #define GL_SYNC_FLUSH_COMMANDS_BIT_APPLE 0x00000001
  1350. #define GL_SYNC_OBJECT_APPLE 0x8A53
  1351. #define GL_MAX_SERVER_WAIT_TIMEOUT_APPLE 0x9111
  1352. #define GL_OBJECT_TYPE_APPLE 0x9112
  1353. #define GL_SYNC_CONDITION_APPLE 0x9113
  1354. #define GL_SYNC_STATUS_APPLE 0x9114
  1355. #define GL_SYNC_FLAGS_APPLE 0x9115
  1356. #define GL_SYNC_FENCE_APPLE 0x9116
  1357. #define GL_SYNC_GPU_COMMANDS_COMPLETE_APPLE 0x9117
  1358. #define GL_UNSIGNALED_APPLE 0x9118
  1359. #define GL_SIGNALED_APPLE 0x9119
  1360. #define GL_ALREADY_SIGNALED_APPLE 0x911A
  1361. #define GL_TIMEOUT_EXPIRED_APPLE 0x911B
  1362. #define GL_CONDITION_SATISFIED_APPLE 0x911C
  1363. #define GL_WAIT_FAILED_APPLE 0x911D
  1364. #define GL_TIMEOUT_IGNORED_APPLE 0xFFFFFFFFFFFFFFFF
  1365. typedef GLenum (GLAPIENTRY * PFNGLCLIENTWAITSYNCAPPLEPROC) (GLsync GLsync, GLbitfield flags, GLuint64 timeout);
  1366. typedef void (GLAPIENTRY * PFNGLDELETESYNCAPPLEPROC) (GLsync GLsync);
  1367. typedef GLsync (GLAPIENTRY * PFNGLFENCESYNCAPPLEPROC) (GLenum condition, GLbitfield flags);
  1368. typedef void (GLAPIENTRY * PFNGLGETINTEGER64VAPPLEPROC) (GLenum pname, GLint64* params);
  1369. typedef void (GLAPIENTRY * PFNGLGETSYNCIVAPPLEPROC) (GLsync GLsync, GLenum pname, GLsizei bufSize, GLsizei* length, GLint *values);
  1370. typedef GLboolean (GLAPIENTRY * PFNGLISSYNCAPPLEPROC) (GLsync GLsync);
  1371. typedef void (GLAPIENTRY * PFNGLWAITSYNCAPPLEPROC) (GLsync GLsync, GLbitfield flags, GLuint64 timeout);
  1372. #define glClientWaitSyncAPPLE GLEW_GET_FUN(__glewClientWaitSyncAPPLE)
  1373. #define glDeleteSyncAPPLE GLEW_GET_FUN(__glewDeleteSyncAPPLE)
  1374. #define glFenceSyncAPPLE GLEW_GET_FUN(__glewFenceSyncAPPLE)
  1375. #define glGetInteger64vAPPLE GLEW_GET_FUN(__glewGetInteger64vAPPLE)
  1376. #define glGetSyncivAPPLE GLEW_GET_FUN(__glewGetSyncivAPPLE)
  1377. #define glIsSyncAPPLE GLEW_GET_FUN(__glewIsSyncAPPLE)
  1378. #define glWaitSyncAPPLE GLEW_GET_FUN(__glewWaitSyncAPPLE)
  1379. #define GLEW_APPLE_sync GLEW_GET_VAR(__GLEW_APPLE_sync)
  1380. #endif /* !GL_APPLE_sync */
  1381. /* -------------------- GL_APPLE_texture_2D_limited_npot ------------------- */
  1382. #if !defined(GL_APPLE_texture_2D_limited_npot)
  1383. #define GL_APPLE_texture_2D_limited_npot 1
  1384. #define GLEW_APPLE_texture_2D_limited_npot GLEW_GET_VAR(__GLEW_APPLE_texture_2D_limited_npot)
  1385. #endif /* !GL_APPLE_texture_2D_limited_npot */
  1386. /* -------------------- GL_APPLE_texture_format_BGRA8888 ------------------- */
  1387. #if !defined(GL_APPLE_texture_format_BGRA8888)
  1388. #define GL_APPLE_texture_format_BGRA8888 1
  1389. #define GL_BGRA_EXT 0x80E1
  1390. #define GLEW_APPLE_texture_format_BGRA8888 GLEW_GET_VAR(__GLEW_APPLE_texture_format_BGRA8888)
  1391. #endif /* !GL_APPLE_texture_format_BGRA8888 */
  1392. /* ----------------------- GL_APPLE_texture_max_level ---------------------- */
  1393. #if !defined(GL_APPLE_texture_max_level)
  1394. #define GL_APPLE_texture_max_level 1
  1395. #define GL_TEXTURE_MAX_LEVEL_APPLE 0x813D
  1396. #define GLEW_APPLE_texture_max_level GLEW_GET_VAR(__GLEW_APPLE_texture_max_level)
  1397. #endif /* !GL_APPLE_texture_max_level */
  1398. /* ----------------------- GL_ARM_mali_program_binary ---------------------- */
  1399. #if !defined(GL_ARM_mali_program_binary)
  1400. #define GL_ARM_mali_program_binary 1
  1401. #define GL_MALI_PROGRAM_BINARY_ARM 0x8F61
  1402. #define GLEW_ARM_mali_program_binary GLEW_GET_VAR(__GLEW_ARM_mali_program_binary)
  1403. #endif /* !GL_ARM_mali_program_binary */
  1404. /* ----------------------- GL_ARM_mali_shader_binary ----------------------- */
  1405. #if !defined(GL_ARM_mali_shader_binary)
  1406. #define GL_ARM_mali_shader_binary 1
  1407. #define GL_MALI_SHADER_BINARY_ARM 0x8F60
  1408. #define GLEW_ARM_mali_shader_binary GLEW_GET_VAR(__GLEW_ARM_mali_shader_binary)
  1409. #endif /* !GL_ARM_mali_shader_binary */
  1410. /* ------------------------------ GL_ARM_rgba8 ----------------------------- */
  1411. #if !defined(GL_ARM_rgba8)
  1412. #define GL_ARM_rgba8 1
  1413. #define GL_RGBA8_OES 0x8058
  1414. #define GLEW_ARM_rgba8 GLEW_GET_VAR(__GLEW_ARM_rgba8)
  1415. #endif /* !GL_ARM_rgba8 */
  1416. /* -------------------------- GL_DMP_shader_binary ------------------------- */
  1417. #if !defined(GL_DMP_shader_binary)
  1418. #define GL_DMP_shader_binary 1
  1419. #define GL_SHADER_BINARY_DMP 0x9250
  1420. #define GLEW_DMP_shader_binary GLEW_GET_VAR(__GLEW_DMP_shader_binary)
  1421. #endif /* !GL_DMP_shader_binary */
  1422. /* -------------------------- GL_EXT_blend_minmax -------------------------- */
  1423. #if !defined(GL_EXT_blend_minmax)
  1424. #define GL_EXT_blend_minmax 1
  1425. #define GL_FUNC_ADD_EXT 0x8006
  1426. #define GL_MIN_EXT 0x8007
  1427. #define GL_MAX_EXT 0x8008
  1428. #define GL_BLEND_EQUATION_EXT 0x8009
  1429. typedef void (GLAPIENTRY * PFNGLBLENDEQUATIONEXTPROC) (GLenum mode);
  1430. #define glBlendEquationEXT GLEW_GET_FUN(__glewBlendEquationEXT)
  1431. #define GLEW_EXT_blend_minmax GLEW_GET_VAR(__GLEW_EXT_blend_minmax)
  1432. #endif /* !GL_EXT_blend_minmax */
  1433. /* --------------------- GL_EXT_color_buffer_half_float -------------------- */
  1434. #if !defined(GL_EXT_color_buffer_half_float)
  1435. #define GL_EXT_color_buffer_half_float 1
  1436. #define GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT 0x8211
  1437. #define GL_R16F_EXT 0x822D
  1438. #define GL_RG16F_EXT 0x822F
  1439. #define GL_RGBA16F_EXT 0x881A
  1440. #define GL_RGB16F_EXT 0x881B
  1441. #define GL_UNSIGNED_NORMALIZED_EXT 0x8C17
  1442. #define GLEW_EXT_color_buffer_half_float GLEW_GET_VAR(__GLEW_EXT_color_buffer_half_float)
  1443. #endif /* !GL_EXT_color_buffer_half_float */
  1444. /* --------------------------- GL_EXT_debug_label -------------------------- */
  1445. #if !defined(GL_EXT_debug_label)
  1446. #define GL_EXT_debug_label 1
  1447. #define GL_PROGRAM_PIPELINE_OBJECT_EXT 0x8A4F
  1448. #define GL_PROGRAM_OBJECT_EXT 0x8B40
  1449. #define GL_SHADER_OBJECT_EXT 0x8B48
  1450. #define GL_BUFFER_OBJECT_EXT 0x9151
  1451. #define GL_QUERY_OBJECT_EXT 0x9153
  1452. #define GL_VERTEX_ARRAY_OBJECT_EXT 0x9154
  1453. typedef void (GLAPIENTRY * PFNGLGETOBJECTLABELEXTPROC) (GLenum type, GLuint object, GLsizei bufSize, GLsizei* length, char *label);
  1454. typedef void (GLAPIENTRY * PFNGLLABELOBJECTEXTPROC) (GLenum type, GLuint object, GLsizei length, const char* label);
  1455. #define glGetObjectLabelEXT GLEW_GET_FUN(__glewGetObjectLabelEXT)
  1456. #define glLabelObjectEXT GLEW_GET_FUN(__glewLabelObjectEXT)
  1457. #define GLEW_EXT_debug_label GLEW_GET_VAR(__GLEW_EXT_debug_label)
  1458. #endif /* !GL_EXT_debug_label */
  1459. /* -------------------------- GL_EXT_debug_marker -------------------------- */
  1460. #if !defined(GL_EXT_debug_marker)
  1461. #define GL_EXT_debug_marker 1
  1462. typedef void (GLAPIENTRY * PFNGLINSERTEVENTMARKEREXTPROC) (GLsizei length, const char* marker);
  1463. typedef void (GLAPIENTRY * PFNGLPUSHGROUPMARKEREXTPROC) (GLsizei length, const char* marker);
  1464. #define glInsertEventMarkerEXT GLEW_GET_FUN(__glewInsertEventMarkerEXT)
  1465. #define glPushGroupMarkerEXT GLEW_GET_FUN(__glewPushGroupMarkerEXT)
  1466. #define GLEW_EXT_debug_marker GLEW_GET_VAR(__GLEW_EXT_debug_marker)
  1467. #endif /* !GL_EXT_debug_marker */
  1468. /* ----------------------- GL_EXT_discard_framebuffer ---------------------- */
  1469. #if !defined(GL_EXT_discard_framebuffer)
  1470. #define GL_EXT_discard_framebuffer 1
  1471. #define GL_COLOR_EXT 0x1800
  1472. #define GL_DEPTH_EXT 0x1801
  1473. #define GL_STENCIL_EXT 0x1802
  1474. typedef void (GLAPIENTRY * PFNGLDISCARDFRAMEBUFFEREXTPROC) (GLenum target, GLsizei numAttachments, const GLenum* attachments);
  1475. #define glDiscardFramebufferEXT GLEW_GET_FUN(__glewDiscardFramebufferEXT)
  1476. #define GLEW_EXT_discard_framebuffer GLEW_GET_VAR(__GLEW_EXT_discard_framebuffer)
  1477. #endif /* !GL_EXT_discard_framebuffer */
  1478. /* --------------------------- GL_EXT_frag_depth --------------------------- */
  1479. #if !defined(GL_EXT_frag_depth)
  1480. #define GL_EXT_frag_depth 1
  1481. #define GLEW_EXT_frag_depth GLEW_GET_VAR(__GLEW_EXT_frag_depth)
  1482. #endif /* !GL_EXT_frag_depth */
  1483. /* ------------------------ GL_EXT_map_buffer_range ------------------------ */
  1484. #if !defined(GL_EXT_map_buffer_range)
  1485. #define GL_EXT_map_buffer_range 1
  1486. #define GL_MAP_READ_BIT_EXT 0x0001
  1487. #define GL_MAP_WRITE_BIT_EXT 0x0002
  1488. #define GL_MAP_INVALIDATE_RANGE_BIT_EXT 0x0004
  1489. #define GL_MAP_INVALIDATE_BUFFER_BIT_EXT 0x0008
  1490. #define GL_MAP_FLUSH_EXPLICIT_BIT_EXT 0x0010
  1491. #define GL_MAP_UNSYNCHRONIZED_BIT_EXT 0x0020
  1492. typedef void (GLAPIENTRY * PFNGLFLUSHMAPPEDBUFFERRANGEEXTPROC) (GLenum target, GLintptr offset, GLsizeiptr length);
  1493. typedef GLvoid * (GLAPIENTRY * PFNGLMAPBUFFERRANGEEXTPROC) (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access);
  1494. #define glFlushMappedBufferRangeEXT GLEW_GET_FUN(__glewFlushMappedBufferRangeEXT)
  1495. #define glMapBufferRangeEXT GLEW_GET_FUN(__glewMapBufferRangeEXT)
  1496. #define GLEW_EXT_map_buffer_range GLEW_GET_VAR(__GLEW_EXT_map_buffer_range)
  1497. #endif /* !GL_EXT_map_buffer_range */
  1498. /* ------------------------ GL_EXT_multi_draw_arrays ----------------------- */
  1499. #if !defined(GL_EXT_multi_draw_arrays)
  1500. #define GL_EXT_multi_draw_arrays 1
  1501. typedef void (GLAPIENTRY * PFNGLMULTIDRAWARRAYSEXTPROC) (GLenum mode, const GLint* first, const GLsizei *count, GLsizei primcount);
  1502. typedef void (GLAPIENTRY * PFNGLMULTIDRAWELEMENTSEXTPROC) (GLenum mode, GLsizei* count, GLenum type, const GLvoid **indices, GLsizei primcount);
  1503. #define glMultiDrawArraysEXT GLEW_GET_FUN(__glewMultiDrawArraysEXT)
  1504. #define glMultiDrawElementsEXT GLEW_GET_FUN(__glewMultiDrawElementsEXT)
  1505. #define GLEW_EXT_multi_draw_arrays GLEW_GET_VAR(__GLEW_EXT_multi_draw_arrays)
  1506. #endif /* !GL_EXT_multi_draw_arrays */
  1507. /* ----------------- GL_EXT_multisampled_render_to_texture ----------------- */
  1508. #if !defined(GL_EXT_multisampled_render_to_texture)
  1509. #define GL_EXT_multisampled_render_to_texture 1
  1510. #define GL_RENDERBUFFER_SAMPLES_EXT 0x8CAB
  1511. #define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_EXT 0x8D56
  1512. #define GL_MAX_SAMPLES_EXT 0x8D57
  1513. #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_SAMPLES_EXT 0x8D6C
  1514. typedef void (GLAPIENTRY * PFNGLFRAMEBUFFERTEXTURE2DMULTISAMPLEEXTPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLsizei samples);
  1515. typedef void (GLAPIENTRY * PFNGLRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
  1516. #define glFramebufferTexture2DMultisampleEXT GLEW_GET_FUN(__glewFramebufferTexture2DMultisampleEXT)
  1517. #define glRenderbufferStorageMultisampleEXT GLEW_GET_FUN(__glewRenderbufferStorageMultisampleEXT)
  1518. #define GLEW_EXT_multisampled_render_to_texture GLEW_GET_VAR(__GLEW_EXT_multisampled_render_to_texture)
  1519. #endif /* !GL_EXT_multisampled_render_to_texture */
  1520. /* --------------------- GL_EXT_multiview_draw_buffers --------------------- */
  1521. #if !defined(GL_EXT_multiview_draw_buffers)
  1522. #define GL_EXT_multiview_draw_buffers 1
  1523. #define GL_DRAW_BUFFER_EXT 0x0C01
  1524. #define GL_READ_BUFFER_EXT 0x0C02
  1525. #define GL_COLOR_ATTACHMENT_EXT 0x90F0
  1526. #define GL_MULTIVIEW_EXT 0x90F1
  1527. #define GL_MAX_MULTIVIEW_BUFFERS_EXT 0x90F2
  1528. typedef void (GLAPIENTRY * PFNGLDRAWBUFFERSINDEXEDEXTPROC) (GLint n, const GLenum* location, const GLint *indices);
  1529. typedef void (GLAPIENTRY * PFNGLGETINTEGERI_VEXTPROC) (GLenum target, GLuint index, GLint* data);
  1530. typedef void (GLAPIENTRY * PFNGLREADBUFFERINDEXEDEXTPROC) (GLenum src, GLint index);
  1531. #define glDrawBuffersIndexedEXT GLEW_GET_FUN(__glewDrawBuffersIndexedEXT)
  1532. #define glGetIntegeri_vEXT GLEW_GET_FUN(__glewGetIntegeri_vEXT)
  1533. #define glReadBufferIndexedEXT GLEW_GET_FUN(__glewReadBufferIndexedEXT)
  1534. #define GLEW_EXT_multiview_draw_buffers GLEW_GET_VAR(__GLEW_EXT_multiview_draw_buffers)
  1535. #endif /* !GL_EXT_multiview_draw_buffers */
  1536. /* --------------------- GL_EXT_occlusion_query_boolean -------------------- */
  1537. #if !defined(GL_EXT_occlusion_query_boolean)
  1538. #define GL_EXT_occlusion_query_boolean 1
  1539. #define GL_CURRENT_QUERY_EXT 0x8865
  1540. #define GL_QUERY_RESULT_EXT 0x8866
  1541. #define GL_QUERY_RESULT_AVAILABLE_EXT 0x8867
  1542. #define GL_ANY_SAMPLES_PASSED_EXT 0x8C2F
  1543. #define GL_ANY_SAMPLES_PASSED_CONSERVATIVE_EXT 0x8D6A
  1544. typedef void (GLAPIENTRY * PFNGLBEGINQUERYEXTPROC) (GLenum target, GLuint id);
  1545. typedef void (GLAPIENTRY * PFNGLDELETEQUERIESEXTPROC) (GLsizei n, const GLuint* ids);
  1546. typedef void (GLAPIENTRY * PFNGLENDQUERYEXTPROC) (GLenum target);
  1547. typedef void (GLAPIENTRY * PFNGLGENQUERIESEXTPROC) (GLsizei n, GLuint* ids);
  1548. typedef void (GLAPIENTRY * PFNGLGETQUERYOBJECTUIVEXTPROC) (GLuint id, GLenum pname, GLuint* params);
  1549. typedef void (GLAPIENTRY * PFNGLGETQUERYIVEXTPROC) (GLenum target, GLenum pname, GLint* params);
  1550. typedef GLboolean (GLAPIENTRY * PFNGLISQUERYEXTPROC) (GLuint id);
  1551. #define glBeginQueryEXT GLEW_GET_FUN(__glewBeginQueryEXT)
  1552. #define glDeleteQueriesEXT GLEW_GET_FUN(__glewDeleteQueriesEXT)
  1553. #define glEndQueryEXT GLEW_GET_FUN(__glewEndQueryEXT)
  1554. #define glGenQueriesEXT GLEW_GET_FUN(__glewGenQueriesEXT)
  1555. #define glGetQueryObjectuivEXT GLEW_GET_FUN(__glewGetQueryObjectuivEXT)
  1556. #define glGetQueryivEXT GLEW_GET_FUN(__glewGetQueryivEXT)
  1557. #define glIsQueryEXT GLEW_GET_FUN(__glewIsQueryEXT)
  1558. #define GLEW_EXT_occlusion_query_boolean GLEW_GET_VAR(__GLEW_EXT_occlusion_query_boolean)
  1559. #endif /* !GL_EXT_occlusion_query_boolean */
  1560. /* ------------------------ GL_EXT_read_format_bgra ------------------------ */
  1561. #if !defined(GL_EXT_read_format_bgra)
  1562. #define GL_EXT_read_format_bgra 1
  1563. #define GL_BGRA_EXT 0x80E1
  1564. #define GL_UNSIGNED_SHORT_4_4_4_4_REV_EXT 0x8365
  1565. #define GL_UNSIGNED_SHORT_1_5_5_5_REV_EXT 0x8366
  1566. #define GLEW_EXT_read_format_bgra GLEW_GET_VAR(__GLEW_EXT_read_format_bgra)
  1567. #endif /* !GL_EXT_read_format_bgra */
  1568. /* --------------------------- GL_EXT_robustness --------------------------- */
  1569. #if !defined(GL_EXT_robustness)
  1570. #define GL_EXT_robustness 1
  1571. #define GL_NO_ERROR 0 // NOTE jwilkins: had to change this from 0x0000 so it would math other definition
  1572. #define GL_LOSE_CONTEXT_ON_RESET_EXT 0x8252
  1573. #define GL_GUILTY_CONTEXT_RESET_EXT 0x8253
  1574. #define GL_INNOCENT_CONTEXT_RESET_EXT 0x8254
  1575. #define GL_UNKNOWN_CONTEXT_RESET_EXT 0x8255
  1576. #define GL_RESET_NOTIFICATION_STRATEGY_EXT 0x8256
  1577. #define GL_NO_RESET_NOTIFICATION_EXT 0x8261
  1578. #define GL_CONTEXT_ROBUST_ACCESS_EXT 0x90F3
  1579. typedef void (GLAPIENTRY * PFNGLGETNUNIFORMFVEXTPROC) (GLuint program, GLint location, GLsizei bufSize, GLfloat* params);
  1580. typedef void (GLAPIENTRY * PFNGLGETNUNIFORMIVEXTPROC) (GLuint program, GLint location, GLsizei bufSize, GLint* params);
  1581. typedef void (GLAPIENTRY * PFNGLREADNPIXELSEXTPROC) (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void* data);
  1582. #define glGetnUniformfvEXT GLEW_GET_FUN(__glewGetnUniformfvEXT)
  1583. #define glGetnUniformivEXT GLEW_GET_FUN(__glewGetnUniformivEXT)
  1584. #define glReadnPixelsEXT GLEW_GET_FUN(__glewReadnPixelsEXT)
  1585. #define GLEW_EXT_robustness GLEW_GET_VAR(__GLEW_EXT_robustness)
  1586. #endif /* !GL_EXT_robustness */
  1587. /* ------------------------------ GL_EXT_sRGB ------------------------------ */
  1588. #if !defined(GL_EXT_sRGB)
  1589. #define GL_EXT_sRGB 1
  1590. #define GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT 0x8210
  1591. #define GL_SRGB_EXT 0x8C40
  1592. #define GL_SRGB_ALPHA_EXT 0x8C42
  1593. #define GL_SRGB8_ALPHA8_EXT 0x8C43
  1594. #define GLEW_EXT_sRGB GLEW_GET_VAR(__GLEW_EXT_sRGB)
  1595. #endif /* !GL_EXT_sRGB */
  1596. #if 0 // NOTE jwilkins: there is an inconsistency between the ES and Non-ES versions of this extension??
  1597. /* --------------------- GL_EXT_separate_shader_objects -------------------- */
  1598. #if !defined(GL_EXT_separate_shader_objects)
  1599. #define GL_EXT_separate_shader_objects 1
  1600. #define GL_VERTEX_SHADER_BIT_EXT 0x00000001
  1601. #define GL_FRAGMENT_SHADER_BIT_EXT 0x00000002
  1602. #define GL_PROGRAM_SEPARABLE_EXT 0x8258
  1603. #define GL_ACTIVE_PROGRAM_EXT 0x8259
  1604. #define GL_PROGRAM_PIPELINE_BINDING_EXT 0x825A
  1605. #define GL_ALL_SHADER_BITS_EXT 0xFFFFFFFF
  1606. typedef void (GLAPIENTRY * PFNGLACTIVESHADERPROGRAMEXTPROC) (GLuint pipeline, GLuint program);
  1607. typedef void (GLAPIENTRY * PFNGLBINDPROGRAMPIPELINEEXTPROC) (GLuint pipeline);
  1608. typedef GLuint (GLAPIENTRY * PFNGLCREATESHADERPROGRAMVEXTPROC) (GLenum type, GLsizei count, const char ** strings);
  1609. typedef void (GLAPIENTRY * PFNGLDELETEPROGRAMPIPELINESEXTPROC) (GLsizei n, const GLuint* pipelines);
  1610. typedef void (GLAPIENTRY * PFNGLGENPROGRAMPIPELINESEXTPROC) (GLsizei n, GLuint* pipelines);
  1611. typedef void (GLAPIENTRY * PFNGLGETPROGRAMPIPELINEINFOLOGEXTPROC) (GLuint pipeline, GLsizei bufSize, GLsizei* length, char *infoLog);
  1612. typedef void (GLAPIENTRY * PFNGLGETPROGRAMPIPELINEIVEXTPROC) (GLuint pipeline, GLenum pname, GLint* params);
  1613. typedef GLboolean (GLAPIENTRY * PFNGLISPROGRAMPIPELINEEXTPROC) (GLuint pipeline);
  1614. typedef void (GLAPIENTRY * PFNGLPROGRAMPARAMETERIEXTPROC) (GLuint program, GLenum pname, GLint value);
  1615. typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM1FEXTPROC) (GLuint program, GLint location, GLfloat x);
  1616. typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM1FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat* value);
  1617. typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM1IEXTPROC) (GLuint program, GLint location, GLint x);
  1618. typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM1IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint* value);
  1619. typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM2FEXTPROC) (GLuint program, GLint location, GLfloat x, GLfloat y);
  1620. typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM2FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat* value);
  1621. typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM2IEXTPROC) (GLuint program, GLint location, GLint x, GLint y);
  1622. typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM2IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint* value);
  1623. typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM3FEXTPROC) (GLuint program, GLint location, GLfloat x, GLfloat y, GLfloat z);
  1624. typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM3FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat* value);
  1625. typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM3IEXTPROC) (GLuint program, GLint location, GLint x, GLint y, GLint z);
  1626. typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM3IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint* value);
  1627. typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM4FEXTPROC) (GLuint program, GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
  1628. typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM4FVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLfloat* value);
  1629. typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM4IEXTPROC) (GLuint program, GLint location, GLint x, GLint y, GLint z, GLint w);
  1630. typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORM4IVEXTPROC) (GLuint program, GLint location, GLsizei count, const GLint* value);
  1631. typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX2FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
  1632. typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX3FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
  1633. typedef void (GLAPIENTRY * PFNGLPROGRAMUNIFORMMATRIX4FVEXTPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
  1634. typedef void (GLAPIENTRY * PFNGLUSEPROGRAMSTAGESEXTPROC) (GLuint pipeline, GLbitfield stages, GLuint program);
  1635. typedef void (GLAPIENTRY * PFNGLVALIDATEPROGRAMPIPELINEEXTPROC) (GLuint pipeline);
  1636. #define glActiveShaderProgramEXT GLEW_GET_FUN(__glewActiveShaderProgramEXT)
  1637. #define glBindProgramPipelineEXT GLEW_GET_FUN(__glewBindProgramPipelineEXT)
  1638. #define glCreateShaderProgramvEXT GLEW_GET_FUN(__glewCreateShaderProgramvEXT)
  1639. #define glDeleteProgramPipelinesEXT GLEW_GET_FUN(__glewDeleteProgramPipelinesEXT)
  1640. #define glGenProgramPipelinesEXT GLEW_GET_FUN(__glewGenProgramPipelinesEXT)
  1641. #define glGetProgramPipelineInfoLogEXT GLEW_GET_FUN(__glewGetProgramPipelineInfoLogEXT)
  1642. #define glGetProgramPipelineivEXT GLEW_GET_FUN(__glewGetProgramPipelineivEXT)
  1643. #define glIsProgramPipelineEXT GLEW_GET_FUN(__glewIsProgramPipelineEXT)
  1644. #define glProgramParameteriEXT GLEW_GET_FUN(__glewProgramParameteriEXT)
  1645. #define glProgramUniform1fEXT GLEW_GET_FUN(__glewProgramUniform1fEXT)
  1646. #define glProgramUniform1fvEXT GLEW_GET_FUN(__glewProgramUniform1fvEXT)
  1647. #define glProgramUniform1iEXT GLEW_GET_FUN(__glewProgramUniform1iEXT)
  1648. #define glProgramUniform1ivEXT GLEW_GET_FUN(__glewProgramUniform1ivEXT)
  1649. #define glProgramUniform2fEXT GLEW_GET_FUN(__glewProgramUniform2fEXT)
  1650. #define glProgramUniform2fvEXT GLEW_GET_FUN(__glewProgramUniform2fvEXT)
  1651. #define glProgramUniform2iEXT GLEW_GET_FUN(__glewProgramUniform2iEXT)
  1652. #define glProgramUniform2ivEXT GLEW_GET_FUN(__glewProgramUniform2ivEXT)
  1653. #define glProgramUniform3fEXT GLEW_GET_FUN(__glewProgramUniform3fEXT)
  1654. #define glProgramUniform3fvEXT GLEW_GET_FUN(__glewProgramUniform3fvEXT)
  1655. #define glProgramUniform3iEXT GLEW_GET_FUN(__glewProgramUniform3iEXT)
  1656. #define glProgramUniform3ivEXT GLEW_GET_FUN(__glewProgramUniform3ivEXT)
  1657. #define glProgramUniform4fEXT GLEW_GET_FUN(__glewProgramUniform4fEXT)
  1658. #define glProgramUniform4fvEXT GLEW_GET_FUN(__glewProgramUniform4fvEXT)
  1659. #define glProgramUniform4iEXT GLEW_GET_FUN(__glewProgramUniform4iEXT)
  1660. #define glProgramUniform4ivEXT GLEW_GET_FUN(__glewProgramUniform4ivEXT)
  1661. #define glProgramUniformMatrix2fvEXT GLEW_GET_FUN(__glewProgramUniformMatrix2fvEXT)
  1662. #define glProgramUniformMatrix3fvEXT GLEW_GET_FUN(__glewProgramUniformMatrix3fvEXT)
  1663. #define glProgramUniformMatrix4fvEXT GLEW_GET_FUN(__glewProgramUniformMatrix4fvEXT)
  1664. #define glUseProgramStagesEXT GLEW_GET_FUN(__glewUseProgramStagesEXT)
  1665. #define glValidateProgramPipelineEXT GLEW_GET_FUN(__glewValidateProgramPipelineEXT)
  1666. #define GLEW_EXT_separate_shader_objects GLEW_GET_VAR(__GLEW_EXT_separate_shader_objects)
  1667. #endif /* !GL_EXT_separate_shader_objects */
  1668. #endif // XXX
  1669. /* -------------------- GL_EXT_shader_framebuffer_fetch -------------------- */
  1670. #if !defined(GL_EXT_shader_framebuffer_fetch)
  1671. #define GL_EXT_shader_framebuffer_fetch 1
  1672. #define GL_FRAGMENT_SHADER_DISCARDS_SAMPLES_EXT 0x8A52
  1673. #define GLEW_EXT_shader_framebuffer_fetch GLEW_GET_VAR(__GLEW_EXT_shader_framebuffer_fetch)
  1674. #endif /* !GL_EXT_shader_framebuffer_fetch */
  1675. /* ----------------------- GL_EXT_shader_texture_lod ----------------------- */
  1676. #if !defined(GL_EXT_shader_texture_lod)
  1677. #define GL_EXT_shader_texture_lod 1
  1678. #define GLEW_EXT_shader_texture_lod GLEW_GET_VAR(__GLEW_EXT_shader_texture_lod)
  1679. #endif /* !GL_EXT_shader_texture_lod */
  1680. /* ------------------------- GL_EXT_shadow_samplers ------------------------ */
  1681. #if !defined(GL_EXT_shadow_samplers)
  1682. #define GL_EXT_shadow_samplers 1
  1683. #define GL_TEXTURE_COMPARE_MODE_EXT 0x884C
  1684. #define GL_TEXTURE_COMPARE_FUNC_EXT 0x884D
  1685. #define GL_COMPARE_REF_TO_TEXTURE_EXT 0x884E
  1686. #define GL_SAMPLER_2D_SHADOW_EXT 0x8B62
  1687. #define GLEW_EXT_shadow_samplers GLEW_GET_VAR(__GLEW_EXT_shadow_samplers)
  1688. #endif /* !GL_EXT_shadow_samplers */
  1689. /* -------------------- GL_EXT_texture_compression_dxt1 -------------------- */
  1690. #if !defined(GL_EXT_texture_compression_dxt1)
  1691. #define GL_EXT_texture_compression_dxt1 1
  1692. #define GL_COMPRESSED_RGB_S3TC_DXT1_EXT 0x83F0
  1693. #define GL_COMPRESSED_RGBA_S3TC_DXT1_EXT 0x83F1
  1694. #define GLEW_EXT_texture_compression_dxt1 GLEW_GET_VAR(__GLEW_EXT_texture_compression_dxt1)
  1695. #endif /* !GL_EXT_texture_compression_dxt1 */
  1696. /* ------------------- GL_EXT_texture_filter_anisotropic ------------------- */
  1697. #if !defined(GL_EXT_texture_filter_anisotropic)
  1698. #define GL_EXT_texture_filter_anisotropic 1
  1699. #define GL_TEXTURE_MAX_ANISOTROPY_EXT 0x84FE
  1700. #define GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT 0x84FF
  1701. #define GLEW_EXT_texture_filter_anisotropic GLEW_GET_VAR(__GLEW_EXT_texture_filter_anisotropic)
  1702. #endif /* !GL_EXT_texture_filter_anisotropic */
  1703. /* --------------------- GL_EXT_texture_format_BGRA8888 -------------------- */
  1704. #if !defined(GL_EXT_texture_format_BGRA8888)
  1705. #define GL_EXT_texture_format_BGRA8888 1
  1706. #define GL_BGRA_EXT 0x80E1
  1707. #define GLEW_EXT_texture_format_BGRA8888 GLEW_GET_VAR(__GLEW_EXT_texture_format_BGRA8888)
  1708. #endif /* !GL_EXT_texture_format_BGRA8888 */
  1709. /* ------------------------ GL_EXT_texture_lod_bias ------------------------ */
  1710. #if !defined(GL_EXT_texture_lod_bias)
  1711. #define GL_EXT_texture_lod_bias 1
  1712. #define GL_MAX_TEXTURE_LOD_BIAS_EXT 0x84FD
  1713. #define GL_TEXTURE_FILTER_CONTROL_EXT 0x8500
  1714. #define GL_TEXTURE_LOD_BIAS_EXT 0x8501
  1715. #define GLEW_EXT_texture_lod_bias GLEW_GET_VAR(__GLEW_EXT_texture_lod_bias)
  1716. #endif /* !GL_EXT_texture_lod_bias */
  1717. /* --------------------------- GL_EXT_texture_rg --------------------------- */
  1718. #if !defined(GL_EXT_texture_rg)
  1719. #define GL_EXT_texture_rg 1
  1720. #define GL_RED_EXT 0x1903
  1721. #define GL_RG_EXT 0x8227
  1722. #define GL_R8_EXT 0x8229
  1723. #define GL_RG8_EXT 0x822B
  1724. #define GLEW_EXT_texture_rg GLEW_GET_VAR(__GLEW_EXT_texture_rg)
  1725. #endif /* !GL_EXT_texture_rg */
  1726. /* ------------------------- GL_EXT_texture_storage ------------------------ */
  1727. #if !defined(GL_EXT_texture_storage)
  1728. #define GL_EXT_texture_storage 1
  1729. #define GL_ALPHA8_EXT 0x803C
  1730. #define GL_LUMINANCE8_EXT 0x8040
  1731. #define GL_LUMINANCE8_ALPHA8_EXT 0x8045
  1732. #define GL_RGB10_EXT 0x8052
  1733. #define GL_RGB10_A2_EXT 0x8059
  1734. #define GL_R8_EXT 0x8229
  1735. #define GL_RG8_EXT 0x822B
  1736. #define GL_R16F_EXT 0x822D
  1737. #define GL_R32F_EXT 0x822E
  1738. #define GL_RG16F_EXT 0x822F
  1739. #define GL_RG32F_EXT 0x8230
  1740. #define GL_RGBA32F_EXT 0x8814
  1741. #define GL_RGB32F_EXT 0x8815
  1742. #define GL_ALPHA32F_EXT 0x8816
  1743. #define GL_LUMINANCE32F_EXT 0x8818
  1744. #define GL_LUMINANCE_ALPHA32F_EXT 0x8819
  1745. #define GL_RGBA16F_EXT 0x881A
  1746. #define GL_RGB16F_EXT 0x881B
  1747. #define GL_ALPHA16F_EXT 0x881C
  1748. #define GL_LUMINANCE16F_EXT 0x881E
  1749. #define GL_LUMINANCE_ALPHA16F_EXT 0x881F
  1750. #define GL_RGB_422_APPLE 0x8A1F
  1751. #define GL_TEXTURE_IMMUTABLE_FORMAT_EXT 0x912F
  1752. #define GL_BGRA8_EXT 0x93A1
  1753. typedef void (GLAPIENTRY * PFNGLTEXSTORAGE1DEXTPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
  1754. typedef void (GLAPIENTRY * PFNGLTEXSTORAGE2DEXTPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
  1755. typedef void (GLAPIENTRY * PFNGLTEXSTORAGE3DEXTPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
  1756. typedef void (GLAPIENTRY * PFNGLTEXTURESTORAGE1DEXTPROC) (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
  1757. typedef void (GLAPIENTRY * PFNGLTEXTURESTORAGE2DEXTPROC) (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
  1758. typedef void (GLAPIENTRY * PFNGLTEXTURESTORAGE3DEXTPROC) (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
  1759. #define glTexStorage1DEXT GLEW_GET_FUN(__glewTexStorage1DEXT)
  1760. #define glTexStorage2DEXT GLEW_GET_FUN(__glewTexStorage2DEXT)
  1761. #define glTexStorage3DEXT GLEW_GET_FUN(__glewTexStorage3DEXT)
  1762. #define glTextureStorage1DEXT GLEW_GET_FUN(__glewTextureStorage1DEXT)
  1763. #define glTextureStorage2DEXT GLEW_GET_FUN(__glewTextureStorage2DEXT)
  1764. #define glTextureStorage3DEXT GLEW_GET_FUN(__glewTextureStorage3DEXT)
  1765. #define GLEW_EXT_texture_storage GLEW_GET_VAR(__GLEW_EXT_texture_storage)
  1766. #endif /* !GL_EXT_texture_storage */
  1767. /* ------------------- GL_EXT_texture_type_2_10_10_10_REV ------------------ */
  1768. #if !defined(GL_EXT_texture_type_2_10_10_10_REV)
  1769. #define GL_EXT_texture_type_2_10_10_10_REV 1
  1770. #define GL_UNSIGNED_INT_2_10_10_10_REV_EXT 0x8368
  1771. #define GLEW_EXT_texture_type_2_10_10_10_REV GLEW_GET_VAR(__GLEW_EXT_texture_type_2_10_10_10_REV)
  1772. #endif /* !GL_EXT_texture_type_2_10_10_10_REV */
  1773. /* ------------------------- GL_EXT_unpack_subimage ------------------------ */
  1774. #if !defined(GL_EXT_unpack_subimage)
  1775. #define GL_EXT_unpack_subimage 1
  1776. #define GL_UNPACK_ROW_LENGTH 0x0CF2
  1777. #define GL_UNPACK_SKIP_ROWS 0x0CF3
  1778. #define GL_UNPACK_SKIP_PIXELS 0x0CF4
  1779. #define GLEW_EXT_unpack_subimage GLEW_GET_VAR(__GLEW_EXT_unpack_subimage)
  1780. #endif /* !GL_EXT_unpack_subimage */
  1781. /* ----------------------- GL_FJ_shader_binary_GCCSO ----------------------- */
  1782. #if !defined(GL_FJ_shader_binary_GCCSO)
  1783. #define GL_FJ_shader_binary_GCCSO 1
  1784. #define GL_GCCSO_SHADER_BINARY_FJ 0x9260
  1785. #define GLEW_FJ_shader_binary_GCCSO GLEW_GET_VAR(__GLEW_FJ_shader_binary_GCCSO)
  1786. #endif /* !GL_FJ_shader_binary_GCCSO */
  1787. /* ----------------- GL_IMG_multisampled_render_to_texture ----------------- */
  1788. #if !defined(GL_IMG_multisampled_render_to_texture)
  1789. #define GL_IMG_multisampled_render_to_texture 1
  1790. #define GL_RENDERBUFFER_SAMPLES_IMG 0x9133
  1791. #define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_IMG 0x9134
  1792. #define GL_MAX_SAMPLES_IMG 0x9135
  1793. #define GL_TEXTURE_SAMPLES_IMG 0x9136
  1794. typedef void (GLAPIENTRY * PFNGLFRAMEBUFFERTEXTURE2DMULTISAMPLEIMGPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLsizei samples);
  1795. typedef void (GLAPIENTRY * PFNGLRENDERBUFFERSTORAGEMULTISAMPLEIMGPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
  1796. #define glFramebufferTexture2DMultisampleIMG GLEW_GET_FUN(__glewFramebufferTexture2DMultisampleIMG)
  1797. #define glRenderbufferStorageMultisampleIMG GLEW_GET_FUN(__glewRenderbufferStorageMultisampleIMG)
  1798. #define GLEW_IMG_multisampled_render_to_texture GLEW_GET_VAR(__GLEW_IMG_multisampled_render_to_texture)
  1799. #endif /* !GL_IMG_multisampled_render_to_texture */
  1800. /* ------------------------- GL_IMG_program_binary ------------------------- */
  1801. #if !defined(GL_IMG_program_binary)
  1802. #define GL_IMG_program_binary 1
  1803. #define GL_SGX_PROGRAM_BINARY_IMG 0x9130
  1804. #define GLEW_IMG_program_binary GLEW_GET_VAR(__GLEW_IMG_program_binary)
  1805. #endif /* !GL_IMG_program_binary */
  1806. /* --------------------------- GL_IMG_read_format -------------------------- */
  1807. #if !defined(GL_IMG_read_format)
  1808. #define GL_IMG_read_format 1
  1809. #define GL_BGRA_IMG 0x80E1
  1810. #define GL_UNSIGNED_SHORT_4_4_4_4_REV_IMG 0x8365
  1811. #define GLEW_IMG_read_format GLEW_GET_VAR(__GLEW_IMG_read_format)
  1812. #endif /* !GL_IMG_read_format */
  1813. /* -------------------------- GL_IMG_shader_binary ------------------------- */
  1814. #if !defined(GL_IMG_shader_binary)
  1815. #define GL_IMG_shader_binary 1
  1816. #define GL_SGX_BINARY_IMG 0x8C0A
  1817. #define GLEW_IMG_shader_binary GLEW_GET_VAR(__GLEW_IMG_shader_binary)
  1818. #endif /* !GL_IMG_shader_binary */
  1819. /* -------------------- GL_IMG_texture_compression_pvrtc ------------------- */
  1820. #if !defined(GL_IMG_texture_compression_pvrtc)
  1821. #define GL_IMG_texture_compression_pvrtc 1
  1822. #define GL_COMPRESSED_RGB_PVRTC_4BPPV1_IMG 0x8C00
  1823. #define GL_COMPRESSED_RGB_PVRTC_2BPPV1_IMG 0x8C01
  1824. #define GL_COMPRESSED_RGBA_PVRTC_4BPPV1_IMG 0x8C02
  1825. #define GL_COMPRESSED_RGBA_PVRTC_2BPPV1_IMG 0x8C03
  1826. #define GLEW_IMG_texture_compression_pvrtc GLEW_GET_VAR(__GLEW_IMG_texture_compression_pvrtc)
  1827. #endif /* !GL_IMG_texture_compression_pvrtc */
  1828. /* --------------- GL_IMG_texture_env_enhanced_fixed_function -------------- */
  1829. #if !defined(GL_IMG_texture_env_enhanced_fixed_function)
  1830. #define GL_IMG_texture_env_enhanced_fixed_function 1
  1831. #define GL_DOT3_RGBA_IMG 0x86AF
  1832. #define GL_MODULATE_COLOR_IMG 0x8C04
  1833. #define GL_RECIP_ADD_SIGNED_ALPHA_IMG 0x8C05
  1834. #define GL_TEXTURE_ALPHA_MODULATE_IMG 0x8C06
  1835. #define GL_FACTOR_ALPHA_MODULATE_IMG 0x8C07
  1836. #define GL_FRAGMENT_ALPHA_MODULATE_IMG 0x8C08
  1837. #define GL_ADD_BLEND_IMG 0x8C09
  1838. #define GLEW_IMG_texture_env_enhanced_fixed_function GLEW_GET_VAR(__GLEW_IMG_texture_env_enhanced_fixed_function)
  1839. #endif /* !GL_IMG_texture_env_enhanced_fixed_function */
  1840. /* ------------------------- GL_IMG_user_clip_plane ------------------------ */
  1841. #if !defined(GL_IMG_user_clip_plane)
  1842. #define GL_IMG_user_clip_plane 1
  1843. #define GL_MAX_CLIP_PLANES_IMG 0x0D32
  1844. #define GL_CLIP_PLANE0_IMG 0x3000
  1845. #define GL_CLIP_PLANE1_IMG 0x3001
  1846. #define GL_CLIP_PLANE2_IMG 0x3002
  1847. #define GL_CLIP_PLANE3_IMG 0x3003
  1848. #define GL_CLIP_PLANE4_IMG 0x3004
  1849. #define GL_CLIP_PLANE5_IMG 0x3005
  1850. typedef void (GLAPIENTRY * PFNGLCLIPPLANEFIMGPROC) (GLenum p, GLfloat eqn[4]);
  1851. #define glClipPlanefIMG GLEW_GET_FUN(__glewClipPlanefIMG)
  1852. #define GLEW_IMG_user_clip_plane GLEW_GET_VAR(__GLEW_IMG_user_clip_plane)
  1853. #endif /* !GL_IMG_user_clip_plane */
  1854. /* ------------------------------ GL_KHR_debug ----------------------------- */
  1855. #if !defined(GL_KHR_debug)
  1856. #define GL_KHR_debug 1
  1857. #define GL_CONTEXT_FLAG_DEBUG_BIT 0x00000002
  1858. #define GL_STACK_OVERFLOW 0x0503
  1859. #define GL_STACK_UNDERFLOW 0x0504
  1860. #define GL_DEBUG_OUTPUT_SYNCHRONOUS 0x8242
  1861. #define GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH 0x8243
  1862. #define GL_DEBUG_CALLBACK_FUNCTION 0x8244
  1863. #define GL_DEBUG_CALLBACK_USER_PARAM 0x8245
  1864. #define GL_DEBUG_SOURCE_API 0x8246
  1865. #define GL_DEBUG_SOURCE_WINDOW_SYSTEM 0x8247
  1866. #define GL_DEBUG_SOURCE_SHADER_COMPILER 0x8248
  1867. #define GL_DEBUG_SOURCE_THIRD_PARTY 0x8249
  1868. #define GL_DEBUG_SOURCE_APPLICATION 0x824A
  1869. #define GL_DEBUG_SOURCE_OTHER 0x824B
  1870. #define GL_DEBUG_TYPE_ERROR 0x824C
  1871. #define GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR 0x824D
  1872. #define GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR 0x824E
  1873. #define GL_DEBUG_TYPE_PORTABILITY 0x824F
  1874. #define GL_DEBUG_TYPE_PERFORMANCE 0x8250
  1875. #define GL_DEBUG_TYPE_OTHER 0x8251
  1876. #define GL_DEBUG_TYPE_MARKER 0x8268
  1877. #define GL_DEBUG_TYPE_PUSH_GROUP 0x8269
  1878. #define GL_DEBUG_TYPE_POP_GROUP 0x826A
  1879. #define GL_DEBUG_SEVERITY_NOTIFICATION 0x826B
  1880. #define GL_MAX_DEBUG_GROUP_STACK_DEPTH 0x826C
  1881. #define GL_DEBUG_GROUP_STACK_DEPTH 0x826D
  1882. #define GL_BUFFER 0x82E0
  1883. #define GL_SHADER 0x82E1
  1884. #define GL_PROGRAM 0x82E2
  1885. #define GL_QUERY 0x82E3
  1886. #define GL_PROGRAM_PIPELINE 0x82E4
  1887. #define GL_SAMPLER 0x82E6
  1888. #define GL_DISPLAY_LIST 0x82E7
  1889. #define GL_MAX_LABEL_LENGTH 0x82E8
  1890. #define GL_MAX_DEBUG_MESSAGE_LENGTH 0x9143
  1891. #define GL_MAX_DEBUG_LOGGED_MESSAGES 0x9144
  1892. #define GL_DEBUG_LOGGED_MESSAGES 0x9145
  1893. #define GL_DEBUG_SEVERITY_HIGH 0x9146
  1894. #define GL_DEBUG_SEVERITY_MEDIUM 0x9147
  1895. #define GL_DEBUG_SEVERITY_LOW 0x9148
  1896. #define GL_DEBUG_OUTPUT 0x92E0
  1897. typedef void (APIENTRY *GLDEBUGPROC)(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar* message, GLvoid* userParam); // NOTE jwilkins: added this typedef
  1898. typedef void (GLAPIENTRY * PFNGLDEBUGMESSAGECALLBACKPROC) (GLDEBUGPROC callback, void* userParam); // NOTE jwilkins: had to fix DEBUGPROC
  1899. typedef void (GLAPIENTRY * PFNGLDEBUGMESSAGECONTROLPROC) (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint* ids, GLboolean enabled);
  1900. typedef void (GLAPIENTRY * PFNGLDEBUGMESSAGEINSERTPROC) (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const char* buf);
  1901. typedef GLuint (GLAPIENTRY * PFNGLGETDEBUGMESSAGELOGPROC) (GLuint count, GLsizei bufsize, GLenum* sources, GLenum* types, GLuint* ids, GLenum* severities, GLsizei* lengths, char* messageLog);
  1902. typedef void (GLAPIENTRY * PFNGLGETOBJECTLABELPROC) (GLenum identifier, GLuint name, GLsizei bufSize, GLsizei* length, char *label);
  1903. typedef void (GLAPIENTRY * PFNGLGETOBJECTPTRLABELPROC) (void* ptr, GLsizei bufSize, GLsizei* length, char *label);
  1904. typedef void (GLAPIENTRY * PFNGLGETPOINTERVPROC) (GLenum pname, void** params);
  1905. typedef void (GLAPIENTRY * PFNGLOBJECTLABELPROC) (GLenum identifier, GLuint name, GLsizei length, const char* label);
  1906. typedef void (GLAPIENTRY * PFNGLOBJECTPTRLABELPROC) (void* ptr, GLsizei length, const char* label);
  1907. typedef void (GLAPIENTRY * PFNGLPOPDEBUGGROUPPROC) (void);
  1908. typedef void (GLAPIENTRY * PFNGLPUSHDEBUGGROUPPROC) (GLenum source, GLuint id, GLsizei length, const char * message);
  1909. #define glDebugMessageCallback GLEW_GET_FUN(__glewDebugMessageCallback)
  1910. #define glDebugMessageControl GLEW_GET_FUN(__glewDebugMessageControl)
  1911. #define glDebugMessageInsert GLEW_GET_FUN(__glewDebugMessageInsert)
  1912. #define glGetDebugMessageLog GLEW_GET_FUN(__glewGetDebugMessageLog)
  1913. #define glGetObjectLabel GLEW_GET_FUN(__glewGetObjectLabel)
  1914. #define glGetObjectPtrLabel GLEW_GET_FUN(__glewGetObjectPtrLabel)
  1915. #define glGetPointerv GLEW_GET_FUN(__glewGetPointerv)
  1916. #define glObjectLabel GLEW_GET_FUN(__glewObjectLabel)
  1917. #define glObjectPtrLabel GLEW_GET_FUN(__glewObjectPtrLabel)
  1918. #define glPopDebugGroup GLEW_GET_FUN(__glewPopDebugGroup)
  1919. #define glPushDebugGroup GLEW_GET_FUN(__glewPushDebugGroup)
  1920. #define GLEW_KHR_debug GLEW_GET_VAR(__GLEW_KHR_debug)
  1921. #endif /* !GL_KHR_debug */
  1922. /* ------------------ GL_KHR_texture_compression_astc_ldr ------------------ */
  1923. #if !defined(GL_KHR_texture_compression_astc_ldr)
  1924. #define GL_KHR_texture_compression_astc_ldr 1
  1925. #define GL_COMPRESSED_RGBA_ASTC_4x4_KHR 0x93B0
  1926. #define GL_COMPRESSED_RGBA_ASTC_5x4_KHR 0x93B1
  1927. #define GL_COMPRESSED_RGBA_ASTC_5x5_KHR 0x93B2
  1928. #define GL_COMPRESSED_RGBA_ASTC_6x5_KHR 0x93B3
  1929. #define GL_COMPRESSED_RGBA_ASTC_6x6_KHR 0x93B4
  1930. #define GL_COMPRESSED_RGBA_ASTC_8x5_KHR 0x93B5
  1931. #define GL_COMPRESSED_RGBA_ASTC_8x6_KHR 0x93B6
  1932. #define GL_COMPRESSED_RGBA_ASTC_8x8_KHR 0x93B7
  1933. #define GL_COMPRESSED_RGBA_ASTC_10x5_KHR 0x93B8
  1934. #define GL_COMPRESSED_RGBA_ASTC_10x6_KHR 0x93B9
  1935. #define GL_COMPRESSED_RGBA_ASTC_10x8_KHR 0x93BA
  1936. #define GL_COMPRESSED_RGBA_ASTC_10x10_KHR 0x93BB
  1937. #define GL_COMPRESSED_RGBA_ASTC_12x10_KHR 0x93BC
  1938. #define GL_COMPRESSED_RGBA_ASTC_12x12_KHR 0x93BD
  1939. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR 0x93D0
  1940. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR 0x93D1
  1941. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR 0x93D2
  1942. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR 0x93D3
  1943. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR 0x93D4
  1944. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR 0x93D5
  1945. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR 0x93D6
  1946. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR 0x93D7
  1947. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR 0x93D8
  1948. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR 0x93D9
  1949. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR 0x93DA
  1950. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR 0x93DB
  1951. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR 0x93DC
  1952. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR 0x93DD
  1953. #define GLEW_KHR_texture_compression_astc_ldr GLEW_GET_VAR(__GLEW_KHR_texture_compression_astc_ldr)
  1954. #endif /* !GL_KHR_texture_compression_astc_ldr */
  1955. /* ------------------------ GL_NV_3dvision_settings ------------------------ */
  1956. #if !defined(GL_NV_3dvision_settings)
  1957. #define GL_NV_3dvision_settings 1
  1958. #define GL_3DVISION_STEREO_NV 0x90F4
  1959. #define GL_STEREO_SEPARATION_NV 0x90F5
  1960. #define GL_STEREO_CONVERGENCE_NV 0x90F6
  1961. #define GL_STEREO_CUTOFF_NV 0x90F7
  1962. #define GL_STEREO_PROJECTION_NV 0x90F8
  1963. #define GL_STEREO_PROJECTION_PERSPECTIVE_NV 0x90F9
  1964. #define GL_STEREO_PROJECTION_ORTHO_NV 0x90FA
  1965. typedef void (GLAPIENTRY * PFNGLSTEREOPARAMETERFNVPROC) (GLenum pname, GLfloat param);
  1966. typedef void (GLAPIENTRY * PFNGLSTEREOPARAMETERINVPROC) (GLenum pname, GLint param);
  1967. #define glStereoParameterfNV GLEW_GET_FUN(__glewStereoParameterfNV)
  1968. #define glStereoParameteriNV GLEW_GET_FUN(__glewStereoParameteriNV)
  1969. #define GLEW_NV_3dvision_settings GLEW_GET_VAR(__GLEW_NV_3dvision_settings)
  1970. #endif /* !GL_NV_3dvision_settings */
  1971. /* ------------------- GL_NV_EGL_stream_consumer_external ------------------ */
  1972. #if !defined(GL_NV_EGL_stream_consumer_external)
  1973. #define GL_NV_EGL_stream_consumer_external 1
  1974. #define GL_TEXTURE_EXTERNAL_OES 0x8D65
  1975. #define GL_SAMPLER_EXTERNAL_OES 0x8D66
  1976. #define GL_TEXTURE_BINDING_EXTERNAL_OES 0x8D67
  1977. #define GL_REQUIRED_TEXTURE_IMAGE_UNITS_OES 0x8D68
  1978. #define GLEW_NV_EGL_stream_consumer_external GLEW_GET_VAR(__GLEW_NV_EGL_stream_consumer_external)
  1979. #endif /* !GL_NV_EGL_stream_consumer_external */
  1980. /* ------------------------------- GL_NV_bgr ------------------------------- */
  1981. #if !defined(GL_NV_bgr)
  1982. #define GL_NV_bgr 1
  1983. #define GL_BGR_NV 0x80E0
  1984. #define GLEW_NV_bgr GLEW_GET_VAR(__GLEW_NV_bgr)
  1985. #endif /* !GL_NV_bgr */
  1986. /* ------------------------- GL_NV_coverage_sample ------------------------- */
  1987. #if !defined(GL_NV_coverage_sample)
  1988. #define GL_NV_coverage_sample 1
  1989. #define GL_COVERAGE_BUFFER_BIT_NV 0x8000
  1990. #define GL_COVERAGE_COMPONENT_NV 0x8ED0
  1991. #define GL_COVERAGE_COMPONENT4_NV 0x8ED1
  1992. #define GL_COVERAGE_ATTACHMENT_NV 0x8ED2
  1993. #define GL_COVERAGE_BUFFERS_NV 0x8ED3
  1994. #define GL_COVERAGE_ALL_FRAGMENTS_NV 0x8ED5
  1995. #define GL_COVERAGE_EDGE_FRAGMENTS_NV 0x8ED6
  1996. #define GL_COVERAGE_AUTOMATIC_NV 0x8ED7
  1997. typedef void (GLAPIENTRY * PFNGLCOVERAGEMASKNVPROC) (GLboolean mask);
  1998. typedef void (GLAPIENTRY * PFNGLCOVERAGEOPERATIONNVPROC) (GLenum operation);
  1999. #define glCoverageMaskNV GLEW_GET_FUN(__glewCoverageMaskNV)
  2000. #define glCoverageOperationNV GLEW_GET_FUN(__glewCoverageOperationNV)
  2001. #define GLEW_NV_coverage_sample GLEW_GET_VAR(__GLEW_NV_coverage_sample)
  2002. #endif /* !GL_NV_coverage_sample */
  2003. /* ------------------------- GL_NV_depth_nonlinear ------------------------- */
  2004. #if !defined(GL_NV_depth_nonlinear)
  2005. #define GL_NV_depth_nonlinear 1
  2006. #define GL_DEPTH_COMPONENT16_NONLINEAR_NV 0x8E2C
  2007. #define GLEW_NV_depth_nonlinear GLEW_GET_VAR(__GLEW_NV_depth_nonlinear)
  2008. #endif /* !GL_NV_depth_nonlinear */
  2009. /* --------------------------- GL_NV_draw_buffers -------------------------- */
  2010. #if !defined(GL_NV_draw_buffers)
  2011. #define GL_NV_draw_buffers 1
  2012. #define GL_MAX_DRAW_BUFFERS_NV 0x8824
  2013. #define GL_DRAW_BUFFER0_NV 0x8825
  2014. #define GL_DRAW_BUFFER1_NV 0x8826
  2015. #define GL_DRAW_BUFFER2_NV 0x8827
  2016. #define GL_DRAW_BUFFER3_NV 0x8828
  2017. #define GL_DRAW_BUFFER4_NV 0x8829
  2018. #define GL_DRAW_BUFFER5_NV 0x882A
  2019. #define GL_DRAW_BUFFER6_NV 0x882B
  2020. #define GL_DRAW_BUFFER7_NV 0x882C
  2021. #define GL_DRAW_BUFFER8_NV 0x882D
  2022. #define GL_DRAW_BUFFER9_NV 0x882E
  2023. #define GL_DRAW_BUFFER10_NV 0x882F
  2024. #define GL_DRAW_BUFFER11_NV 0x8830
  2025. #define GL_DRAW_BUFFER12_NV 0x8831
  2026. #define GL_DRAW_BUFFER13_NV 0x8832
  2027. #define GL_DRAW_BUFFER14_NV 0x8833
  2028. #define GL_DRAW_BUFFER15_NV 0x8834
  2029. #define GL_COLOR_ATTACHMENT0_NV 0x8CE0
  2030. #define GL_COLOR_ATTACHMENT1_NV 0x8CE1
  2031. #define GL_COLOR_ATTACHMENT2_NV 0x8CE2
  2032. #define GL_COLOR_ATTACHMENT3_NV 0x8CE3
  2033. #define GL_COLOR_ATTACHMENT4_NV 0x8CE4
  2034. #define GL_COLOR_ATTACHMENT5_NV 0x8CE5
  2035. #define GL_COLOR_ATTACHMENT6_NV 0x8CE6
  2036. #define GL_COLOR_ATTACHMENT7_NV 0x8CE7
  2037. #define GL_COLOR_ATTACHMENT8_NV 0x8CE8
  2038. #define GL_COLOR_ATTACHMENT9_NV 0x8CE9
  2039. #define GL_COLOR_ATTACHMENT10_NV 0x8CEA
  2040. #define GL_COLOR_ATTACHMENT11_NV 0x8CEB
  2041. #define GL_COLOR_ATTACHMENT12_NV 0x8CEC
  2042. #define GL_COLOR_ATTACHMENT13_NV 0x8CED
  2043. #define GL_COLOR_ATTACHMENT14_NV 0x8CEE
  2044. #define GL_COLOR_ATTACHMENT15_NV 0x8CEF
  2045. typedef void (GLAPIENTRY * PFNGLDRAWBUFFERSNVPROC) (GLsizei n, const GLenum* bufs);
  2046. #define glDrawBuffersNV GLEW_GET_FUN(__glewDrawBuffersNV)
  2047. #define GLEW_NV_draw_buffers GLEW_GET_VAR(__GLEW_NV_draw_buffers)
  2048. #endif /* !GL_NV_draw_buffers */
  2049. /* --------------------------- GL_NV_draw_texture -------------------------- */
  2050. #if !defined(GL_NV_draw_texture)
  2051. #define GL_NV_draw_texture 1
  2052. typedef void (GLAPIENTRY * PFNGLDRAWTEXTURENVPROC) (GLuint texture, GLuint sampler, GLfloat x0, GLfloat y0, GLfloat x1, GLfloat y1, GLfloat z, GLfloat s0, GLfloat t0, GLfloat s1, GLfloat t1);
  2053. #define glDrawTextureNV GLEW_GET_FUN(__glewDrawTextureNV)
  2054. #define GLEW_NV_draw_texture GLEW_GET_VAR(__GLEW_NV_draw_texture)
  2055. #endif /* !GL_NV_draw_texture */
  2056. /* ---------------------- GL_NV_fbo_color_attachments ---------------------- */
  2057. #if !defined(GL_NV_fbo_color_attachments)
  2058. #define GL_NV_fbo_color_attachments 1
  2059. #define GL_MAX_COLOR_ATTACHMENTS_NV 0x8CDF
  2060. #define GL_COLOR_ATTACHMENT0_NV 0x8CE0
  2061. #define GL_COLOR_ATTACHMENT1_NV 0x8CE1
  2062. #define GL_COLOR_ATTACHMENT2_NV 0x8CE2
  2063. #define GL_COLOR_ATTACHMENT3_NV 0x8CE3
  2064. #define GL_COLOR_ATTACHMENT4_NV 0x8CE4
  2065. #define GL_COLOR_ATTACHMENT5_NV 0x8CE5
  2066. #define GL_COLOR_ATTACHMENT6_NV 0x8CE6
  2067. #define GL_COLOR_ATTACHMENT7_NV 0x8CE7
  2068. #define GL_COLOR_ATTACHMENT8_NV 0x8CE8
  2069. #define GL_COLOR_ATTACHMENT9_NV 0x8CE9
  2070. #define GL_COLOR_ATTACHMENT10_NV 0x8CEA
  2071. #define GL_COLOR_ATTACHMENT11_NV 0x8CEB
  2072. #define GL_COLOR_ATTACHMENT12_NV 0x8CEC
  2073. #define GL_COLOR_ATTACHMENT13_NV 0x8CED
  2074. #define GL_COLOR_ATTACHMENT14_NV 0x8CEE
  2075. #define GL_COLOR_ATTACHMENT15_NV 0x8CEF
  2076. #define GLEW_NV_fbo_color_attachments GLEW_GET_VAR(__GLEW_NV_fbo_color_attachments)
  2077. #endif /* !GL_NV_fbo_color_attachments */
  2078. /* ------------------------------ GL_NV_fence ------------------------------ */
  2079. #if !defined(GL_NV_fence)
  2080. #define GL_NV_fence 1
  2081. #define GL_ALL_COMPLETED_NV 0x84F2
  2082. #define GL_FENCE_STATUS_NV 0x84F3
  2083. #define GL_FENCE_CONDITION_NV 0x84F4
  2084. typedef void (GLAPIENTRY * PFNGLDELETEFENCESNVPROC) (GLsizei n, const GLuint* fences);
  2085. typedef void (GLAPIENTRY * PFNGLFINISHFENCENVPROC) (GLuint fence);
  2086. typedef void (GLAPIENTRY * PFNGLGENFENCESNVPROC) (GLsizei n, GLuint* fences);
  2087. typedef void (GLAPIENTRY * PFNGLGETFENCEIVNVPROC) (GLuint fence, GLenum pname, GLint* params);
  2088. typedef GLboolean (GLAPIENTRY * PFNGLISFENCENVPROC) (GLuint fence);
  2089. typedef void (GLAPIENTRY * PFNGLSETFENCENVPROC) (GLuint fence, GLenum condition);
  2090. typedef GLboolean (GLAPIENTRY * PFNGLTESTFENCENVPROC) (GLuint fence);
  2091. #define glDeleteFencesNV GLEW_GET_FUN(__glewDeleteFencesNV)
  2092. #define glFinishFenceNV GLEW_GET_FUN(__glewFinishFenceNV)
  2093. #define glGenFencesNV GLEW_GET_FUN(__glewGenFencesNV)
  2094. #define glGetFenceivNV GLEW_GET_FUN(__glewGetFenceivNV)
  2095. #define glIsFenceNV GLEW_GET_FUN(__glewIsFenceNV)
  2096. #define glSetFenceNV GLEW_GET_FUN(__glewSetFenceNV)
  2097. #define glTestFenceNV GLEW_GET_FUN(__glewTestFenceNV)
  2098. #define GLEW_NV_fence GLEW_GET_VAR(__GLEW_NV_fence)
  2099. #endif /* !GL_NV_fence */
  2100. /* -------------------------- GL_NV_pack_subimage -------------------------- */
  2101. #if !defined(GL_NV_pack_subimage)
  2102. #define GL_NV_pack_subimage 1
  2103. #define GL_PACK_ROW_LENGTH_NV 0x0D02
  2104. #define GL_PACK_SKIP_ROWS_NV 0x0D03
  2105. #define GL_PACK_SKIP_PIXELS_NV 0x0D04
  2106. #define GLEW_NV_pack_subimage GLEW_GET_VAR(__GLEW_NV_pack_subimage)
  2107. #endif /* !GL_NV_pack_subimage */
  2108. /* --------------------------- GL_NV_packed_float -------------------------- */
  2109. #if !defined(GL_NV_packed_float)
  2110. #define GL_NV_packed_float 1
  2111. #define GL_R11F_G11F_B10F_NV 0x8C3A
  2112. #define GL_UNSIGNED_INT_10F_11F_11F_REV_NV 0x8C3B
  2113. #define GLEW_NV_packed_float GLEW_GET_VAR(__GLEW_NV_packed_float)
  2114. #endif /* !GL_NV_packed_float */
  2115. /* ----------------------- GL_NV_packed_float_linear ----------------------- */
  2116. #if !defined(GL_NV_packed_float_linear)
  2117. #define GL_NV_packed_float_linear 1
  2118. #define GL_R11F_G11F_B10F_NV 0x8C3A
  2119. #define GL_UNSIGNED_INT_10F_11F_11F_REV_NV 0x8C3B
  2120. #define GLEW_NV_packed_float_linear GLEW_GET_VAR(__GLEW_NV_packed_float_linear)
  2121. #endif /* !GL_NV_packed_float_linear */
  2122. /* ----------------------- GL_NV_pixel_buffer_object ----------------------- */
  2123. #if !defined(GL_NV_pixel_buffer_object)
  2124. #define GL_NV_pixel_buffer_object 1
  2125. #define GL_PIXEL_PACK_BUFFER_NV 0x88EB
  2126. #define GL_PIXEL_UNPACK_BUFFER_NV 0x88EC
  2127. #define GL_PIXEL_PACK_BUFFER_BINDING_NV 0x88ED
  2128. #define GL_PIXEL_UNPACK_BUFFER_BINDING_NV 0x88EF
  2129. #define GLEW_NV_pixel_buffer_object GLEW_GET_VAR(__GLEW_NV_pixel_buffer_object)
  2130. #endif /* !GL_NV_pixel_buffer_object */
  2131. /* ------------------------- GL_NV_platform_binary ------------------------- */
  2132. #if !defined(GL_NV_platform_binary)
  2133. #define GL_NV_platform_binary 1
  2134. #define GL_NVIDIA_PLATFORM_BINARY_NV 0x890B
  2135. #define GLEW_NV_platform_binary GLEW_GET_VAR(__GLEW_NV_platform_binary)
  2136. #endif /* !GL_NV_platform_binary */
  2137. /* --------------------------- GL_NV_read_buffer --------------------------- */
  2138. #if !defined(GL_NV_read_buffer)
  2139. #define GL_NV_read_buffer 1
  2140. #define GL_READ_BUFFER_NV 0x0C02
  2141. typedef void (GLAPIENTRY * PFNGLREADBUFFERNVPROC) (GLenum mode);
  2142. #define glReadBufferNV GLEW_GET_FUN(__glewReadBufferNV)
  2143. #define GLEW_NV_read_buffer GLEW_GET_VAR(__GLEW_NV_read_buffer)
  2144. #endif /* !GL_NV_read_buffer */
  2145. /* ------------------------ GL_NV_read_buffer_front ------------------------ */
  2146. #if !defined(GL_NV_read_buffer_front)
  2147. #define GL_NV_read_buffer_front 1
  2148. #define GLEW_NV_read_buffer_front GLEW_GET_VAR(__GLEW_NV_read_buffer_front)
  2149. #endif /* !GL_NV_read_buffer_front */
  2150. /* ---------------------------- GL_NV_read_depth --------------------------- */
  2151. #if !defined(GL_NV_read_depth)
  2152. #define GL_NV_read_depth 1
  2153. #define GLEW_NV_read_depth GLEW_GET_VAR(__GLEW_NV_read_depth)
  2154. #endif /* !GL_NV_read_depth */
  2155. /* ------------------------ GL_NV_read_depth_stencil ----------------------- */
  2156. #if !defined(GL_NV_read_depth_stencil)
  2157. #define GL_NV_read_depth_stencil 1
  2158. #define GLEW_NV_read_depth_stencil GLEW_GET_VAR(__GLEW_NV_read_depth_stencil)
  2159. #endif /* !GL_NV_read_depth_stencil */
  2160. /* --------------------------- GL_NV_read_stencil -------------------------- */
  2161. #if !defined(GL_NV_read_stencil)
  2162. #define GL_NV_read_stencil 1
  2163. #define GLEW_NV_read_stencil GLEW_GET_VAR(__GLEW_NV_read_stencil)
  2164. #endif /* !GL_NV_read_stencil */
  2165. /* -------------------------- GL_NV_texture_array -------------------------- */
  2166. #if !defined(GL_NV_texture_array)
  2167. #define GL_NV_texture_array 1
  2168. #define GL_UNPACK_SKIP_IMAGES_NV 0x806D
  2169. #define GL_UNPACK_IMAGE_HEIGHT_NV 0x806E
  2170. #define GL_MAX_ARRAY_TEXTURE_LAYERS_NV 0x88FF
  2171. #define GL_TEXTURE_2D_ARRAY_NV 0x8C1A
  2172. #define GL_TEXTURE_BINDING_2D_ARRAY_NV 0x8C1D
  2173. #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER_NV 0x8CD4
  2174. #define GL_SAMPLER_2D_ARRAY_NV 0x8DC1
  2175. typedef void (GLAPIENTRY * PFNGLCOMPRESSEDTEXIMAGE3DNVPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void* data);
  2176. typedef void (GLAPIENTRY * PFNGLCOMPRESSEDTEXSUBIMAGE3DNVPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void* data);
  2177. typedef void (GLAPIENTRY * PFNGLCOPYTEXSUBIMAGE3DNVPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
  2178. typedef void (GLAPIENTRY * PFNGLFRAMEBUFFERTEXTURELAYERNVPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer);
  2179. typedef void (GLAPIENTRY * PFNGLTEXIMAGE3DNVPROC) (GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void* pixels);
  2180. typedef void (GLAPIENTRY * PFNGLTEXSUBIMAGE3DNVPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void* pixels);
  2181. #define glCompressedTexImage3DNV GLEW_GET_FUN(__glewCompressedTexImage3DNV)
  2182. #define glCompressedTexSubImage3DNV GLEW_GET_FUN(__glewCompressedTexSubImage3DNV)
  2183. #define glCopyTexSubImage3DNV GLEW_GET_FUN(__glewCopyTexSubImage3DNV)
  2184. #define glFramebufferTextureLayerNV GLEW_GET_FUN(__glewFramebufferTextureLayerNV)
  2185. #define glTexImage3DNV GLEW_GET_FUN(__glewTexImage3DNV)
  2186. #define glTexSubImage3DNV GLEW_GET_FUN(__glewTexSubImage3DNV)
  2187. #define GLEW_NV_texture_array GLEW_GET_VAR(__GLEW_NV_texture_array)
  2188. #endif /* !GL_NV_texture_array */
  2189. /* --------------------- GL_NV_texture_compression_latc -------------------- */
  2190. #if !defined(GL_NV_texture_compression_latc)
  2191. #define GL_NV_texture_compression_latc 1
  2192. #define GL_COMPRESSED_LUMINANCE_LATC1_NV 0x8C70
  2193. #define GL_COMPRESSED_SIGNED_LUMINANCE_LATC1_NV 0x8C71
  2194. #define GL_COMPRESSED_LUMINANCE_ALPHA_LATC2_NV 0x8C72
  2195. #define GL_COMPRESSED_SIGNED_LUMINANCE_ALPHA_LATC2_NV 0x8C73
  2196. #define GLEW_NV_texture_compression_latc GLEW_GET_VAR(__GLEW_NV_texture_compression_latc)
  2197. #endif /* !GL_NV_texture_compression_latc */
  2198. /* --------------------- GL_NV_texture_compression_s3tc -------------------- */
  2199. #if !defined(GL_NV_texture_compression_s3tc)
  2200. #define GL_NV_texture_compression_s3tc 1
  2201. #define GL_COMPRESSED_RGB_S3TC_DXT1_NV 0x83F0
  2202. #define GL_COMPRESSED_RGBA_S3TC_DXT1_NV 0x83F1
  2203. #define GL_COMPRESSED_RGBA_S3TC_DXT3_NV 0x83F2
  2204. #define GL_COMPRESSED_RGBA_S3TC_DXT5_NV 0x83F3
  2205. #define GLEW_NV_texture_compression_s3tc GLEW_GET_VAR(__GLEW_NV_texture_compression_s3tc)
  2206. #endif /* !GL_NV_texture_compression_s3tc */
  2207. /* ----------------- GL_NV_texture_compression_s3tc_update ----------------- */
  2208. #if !defined(GL_NV_texture_compression_s3tc_update)
  2209. #define GL_NV_texture_compression_s3tc_update 1
  2210. #define GLEW_NV_texture_compression_s3tc_update GLEW_GET_VAR(__GLEW_NV_texture_compression_s3tc_update)
  2211. #endif /* !GL_NV_texture_compression_s3tc_update */
  2212. /* ---------------------- GL_NV_texture_npot_2D_mipmap --------------------- */
  2213. #if !defined(GL_NV_texture_npot_2D_mipmap)
  2214. #define GL_NV_texture_npot_2D_mipmap 1
  2215. #define GLEW_NV_texture_npot_2D_mipmap GLEW_GET_VAR(__GLEW_NV_texture_npot_2D_mipmap)
  2216. #endif /* !GL_NV_texture_npot_2D_mipmap */
  2217. /* ---------------------------- GL_OES_EGL_image --------------------------- */
  2218. #if !defined(GL_OES_EGL_image)
  2219. #define GL_OES_EGL_image 1
  2220. typedef void* GLeglImageOES;
  2221. typedef void (GLAPIENTRY * PFNGLEGLIMAGETARGETRENDERBUFFERSTORAGEOESPROC) (GLenum target, GLeglImageOES image);
  2222. typedef void (GLAPIENTRY * PFNGLEGLIMAGETARGETTEXTURE2DOESPROC) (GLenum target, GLeglImageOES image);
  2223. #define glEGLImageTargetRenderbufferStorageOES GLEW_GET_FUN(__glewEGLImageTargetRenderbufferStorageOES)
  2224. #define glEGLImageTargetTexture2DOES GLEW_GET_FUN(__glewEGLImageTargetTexture2DOES)
  2225. #define GLEW_OES_EGL_image GLEW_GET_VAR(__GLEW_OES_EGL_image)
  2226. #endif /* !GL_OES_EGL_image */
  2227. /* ----------------------- GL_OES_EGL_image_external ----------------------- */
  2228. #if !defined(GL_OES_EGL_image_external)
  2229. #define GL_OES_EGL_image_external 1
  2230. #define GL_TEXTURE_EXTERNAL_OES 0x8D65
  2231. #define GL_SAMPLER_EXTERNAL_OES 0x8D66
  2232. #define GL_TEXTURE_BINDING_EXTERNAL_OES 0x8D67
  2233. #define GL_REQUIRED_TEXTURE_IMAGE_UNITS_OES 0x8D68
  2234. #define GLEW_OES_EGL_image_external GLEW_GET_VAR(__GLEW_OES_EGL_image_external)
  2235. #endif /* !GL_OES_EGL_image_external */
  2236. /* ---------------------------- GL_OES_EGL_sync ---------------------------- */
  2237. #if !defined(GL_OES_EGL_sync)
  2238. #define GL_OES_EGL_sync 1
  2239. #define GLEW_OES_EGL_sync GLEW_GET_VAR(__GLEW_OES_EGL_sync)
  2240. #endif /* !GL_OES_EGL_sync */
  2241. /* --------------------- GL_OES_blend_equation_separate -------------------- */
  2242. #if !defined(GL_OES_blend_equation_separate)
  2243. #define GL_OES_blend_equation_separate 1
  2244. #define GL_BLEND_EQUATION_RGB_OES 0x8009
  2245. #define GL_BLEND_EQUATION_ALPHA_OES 0x883D
  2246. typedef void (GLAPIENTRY * PFNGLBLENDEQUATIONSEPARATEOESPROC) (GLenum modeRGB, GLenum modeAlpha);
  2247. #define glBlendEquationSeparateOES GLEW_GET_FUN(__glewBlendEquationSeparateOES)
  2248. #define GLEW_OES_blend_equation_separate GLEW_GET_VAR(__GLEW_OES_blend_equation_separate)
  2249. #endif /* !GL_OES_blend_equation_separate */
  2250. /* ----------------------- GL_OES_blend_func_separate ---------------------- */
  2251. #if !defined(GL_OES_blend_func_separate)
  2252. #define GL_OES_blend_func_separate 1
  2253. #define GL_BLEND_DST_RGB_OES 0x80C8
  2254. #define GL_BLEND_SRC_RGB_OES 0x80C9
  2255. #define GL_BLEND_DST_ALPHA_OES 0x80CA
  2256. #define GL_BLEND_SRC_ALPHA_OES 0x80CB
  2257. typedef void (GLAPIENTRY * PFNGLBLENDFUNCSEPARATEOESPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
  2258. #define glBlendFuncSeparateOES GLEW_GET_FUN(__glewBlendFuncSeparateOES)
  2259. #define GLEW_OES_blend_func_separate GLEW_GET_VAR(__GLEW_OES_blend_func_separate)
  2260. #endif /* !GL_OES_blend_func_separate */
  2261. /* ------------------------- GL_OES_blend_subtract ------------------------- */
  2262. #if !defined(GL_OES_blend_subtract)
  2263. #define GL_OES_blend_subtract 1
  2264. #define GL_FUNC_ADD_OES 0x8006
  2265. #define GL_BLEND_EQUATION_OES 0x8009
  2266. #define GL_FUNC_SUBTRACT_OES 0x800A
  2267. #define GL_FUNC_REVERSE_SUBTRACT_OES 0x800B
  2268. typedef void (GLAPIENTRY * PFNGLBLENDEQUATIONOESPROC) (GLenum mode);
  2269. #define glBlendEquationOES GLEW_GET_FUN(__glewBlendEquationOES)
  2270. #define GLEW_OES_blend_subtract GLEW_GET_VAR(__GLEW_OES_blend_subtract)
  2271. #endif /* !GL_OES_blend_subtract */
  2272. /* ------------------------ GL_OES_byte_coordinates ------------------------ */
  2273. #if !defined(GL_OES_byte_coordinates)
  2274. #define GL_OES_byte_coordinates 1
  2275. #define GL_BYTE 0x1400
  2276. #define GLEW_OES_byte_coordinates GLEW_GET_VAR(__GLEW_OES_byte_coordinates)
  2277. #endif /* !GL_OES_byte_coordinates */
  2278. /* ------------------ GL_OES_compressed_ETC1_RGB8_texture ------------------ */
  2279. #if !defined(GL_OES_compressed_ETC1_RGB8_texture)
  2280. #define GL_OES_compressed_ETC1_RGB8_texture 1
  2281. #define GL_ETC1_RGB8_OES 0x8D64
  2282. #define GLEW_OES_compressed_ETC1_RGB8_texture GLEW_GET_VAR(__GLEW_OES_compressed_ETC1_RGB8_texture)
  2283. #endif /* !GL_OES_compressed_ETC1_RGB8_texture */
  2284. /* ------------------- GL_OES_compressed_paletted_texture ------------------ */
  2285. #if !defined(GL_OES_compressed_paletted_texture)
  2286. #define GL_OES_compressed_paletted_texture 1
  2287. #define GL_PALETTE4_RGB8_OES 0x8B90
  2288. #define GL_PALETTE4_RGBA8_OES 0x8B91
  2289. #define GL_PALETTE4_R5_G6_B5_OES 0x8B92
  2290. #define GL_PALETTE4_RGBA4_OES 0x8B93
  2291. #define GL_PALETTE4_RGB5_A1_OES 0x8B94
  2292. #define GL_PALETTE8_RGB8_OES 0x8B95
  2293. #define GL_PALETTE8_RGBA8_OES 0x8B96
  2294. #define GL_PALETTE8_R5_G6_B5_OES 0x8B97
  2295. #define GL_PALETTE8_RGBA4_OES 0x8B98
  2296. #define GL_PALETTE8_RGB5_A1_OES 0x8B99
  2297. #define GLEW_OES_compressed_paletted_texture GLEW_GET_VAR(__GLEW_OES_compressed_paletted_texture)
  2298. #endif /* !GL_OES_compressed_paletted_texture */
  2299. /* ----------------------------- GL_OES_depth24 ---------------------------- */
  2300. #if !defined(GL_OES_depth24)
  2301. #define GL_OES_depth24 1
  2302. #define GL_DEPTH_COMPONENT24_OES 0x81A6
  2303. #define GLEW_OES_depth24 GLEW_GET_VAR(__GLEW_OES_depth24)
  2304. #endif /* !GL_OES_depth24 */
  2305. /* ----------------------------- GL_OES_depth32 ---------------------------- */
  2306. #if !defined(GL_OES_depth32)
  2307. #define GL_OES_depth32 1
  2308. #define GL_DEPTH_COMPONENT32_OES 0x81A7
  2309. #define GLEW_OES_depth32 GLEW_GET_VAR(__GLEW_OES_depth32)
  2310. #endif /* !GL_OES_depth32 */
  2311. /* -------------------------- GL_OES_depth_texture ------------------------- */
  2312. #if !defined(GL_OES_depth_texture)
  2313. #define GL_OES_depth_texture 1
  2314. #define GL_UNSIGNED_SHORT 0x1403
  2315. #define GL_UNSIGNED_INT 0x1405
  2316. #define GL_DEPTH_COMPONENT 0x1902
  2317. #define GLEW_OES_depth_texture GLEW_GET_VAR(__GLEW_OES_depth_texture)
  2318. #endif /* !GL_OES_depth_texture */
  2319. /* --------------------- GL_OES_depth_texture_cube_map --------------------- */
  2320. #if !defined(GL_OES_depth_texture_cube_map)
  2321. #define GL_OES_depth_texture_cube_map 1
  2322. #define GL_UNSIGNED_SHORT 0x1403
  2323. #define GL_UNSIGNED_INT 0x1405
  2324. #define GL_DEPTH_COMPONENT 0x1902
  2325. #define GL_DEPTH_STENCIL_OES 0x84F9
  2326. #define GL_DEPTH24_STENCIL8_OES 0x88F0
  2327. #define GLEW_OES_depth_texture_cube_map GLEW_GET_VAR(__GLEW_OES_depth_texture_cube_map)
  2328. #endif /* !GL_OES_depth_texture_cube_map */
  2329. /* -------------------------- GL_OES_draw_texture -------------------------- */
  2330. #if !defined(GL_OES_draw_texture)
  2331. #define GL_OES_draw_texture 1
  2332. #define GL_TEXTURE_CROP_RECT_OES 0x8B9D
  2333. #define GLEW_OES_draw_texture GLEW_GET_VAR(__GLEW_OES_draw_texture)
  2334. #endif /* !GL_OES_draw_texture */
  2335. /* ----------------------- GL_OES_element_index_uint ----------------------- */
  2336. #if !defined(GL_OES_element_index_uint)
  2337. #define GL_OES_element_index_uint 1
  2338. #define GL_UNSIGNED_INT 0x1405
  2339. #define GLEW_OES_element_index_uint GLEW_GET_VAR(__GLEW_OES_element_index_uint)
  2340. #endif /* !GL_OES_element_index_uint */
  2341. /* --------------------- GL_OES_extended_matrix_palette -------------------- */
  2342. #if !defined(GL_OES_extended_matrix_palette)
  2343. #define GL_OES_extended_matrix_palette 1
  2344. #define GLEW_OES_extended_matrix_palette GLEW_GET_VAR(__GLEW_OES_extended_matrix_palette)
  2345. #endif /* !GL_OES_extended_matrix_palette */
  2346. /* ------------------------ GL_OES_fbo_render_mipmap ----------------------- */
  2347. #if !defined(GL_OES_fbo_render_mipmap)
  2348. #define GL_OES_fbo_render_mipmap 1
  2349. #define GLEW_OES_fbo_render_mipmap GLEW_GET_VAR(__GLEW_OES_fbo_render_mipmap)
  2350. #endif /* !GL_OES_fbo_render_mipmap */
  2351. /* --------------------- GL_OES_fragment_precision_high -------------------- */
  2352. #if !defined(GL_OES_fragment_precision_high)
  2353. #define GL_OES_fragment_precision_high 1
  2354. #define GLEW_OES_fragment_precision_high GLEW_GET_VAR(__GLEW_OES_fragment_precision_high)
  2355. #endif /* !GL_OES_fragment_precision_high */
  2356. /* ----------------------- GL_OES_framebuffer_object ----------------------- */
  2357. #if !defined(GL_OES_framebuffer_object)
  2358. #define GL_OES_framebuffer_object 1
  2359. #define GL_NONE_OES 0
  2360. #define GL_INVALID_FRAMEBUFFER_OPERATION_OES 0x0506
  2361. #define GL_RGBA4_OES 0x8056
  2362. #define GL_RGB5_A1_OES 0x8057
  2363. #define GL_DEPTH_COMPONENT16_OES 0x81A5
  2364. #define GL_MAX_RENDERBUFFER_SIZE_OES 0x84E8
  2365. #define GL_FRAMEBUFFER_BINDING_OES 0x8CA6
  2366. #define GL_RENDERBUFFER_BINDING_OES 0x8CA7
  2367. #define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_OES 0x8CD0
  2368. #define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_OES 0x8CD1
  2369. #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL_OES 0x8CD2
  2370. #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_OES 0x8CD3
  2371. #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_OES 0x8CD4
  2372. #define GL_FRAMEBUFFER_COMPLETE_OES 0x8CD5
  2373. #define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_OES 0x8CD6
  2374. #define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_OES 0x8CD7
  2375. #define GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_OES 0x8CD9
  2376. #define GL_FRAMEBUFFER_INCOMPLETE_FORMATS_OES 0x8CDA
  2377. #define GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_OES 0x8CDB
  2378. #define GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER_OES 0x8CDC
  2379. #define GL_FRAMEBUFFER_UNSUPPORTED_OES 0x8CDD
  2380. #define GL_COLOR_ATTACHMENT0_OES 0x8CE0
  2381. #define GL_DEPTH_ATTACHMENT_OES 0x8D00
  2382. #define GL_STENCIL_ATTACHMENT_OES 0x8D20
  2383. #define GL_FRAMEBUFFER_OES 0x8D40
  2384. #define GL_RENDERBUFFER_OES 0x8D41
  2385. #define GL_RENDERBUFFER_WIDTH_OES 0x8D42
  2386. #define GL_RENDERBUFFER_HEIGHT_OES 0x8D43
  2387. #define GL_RENDERBUFFER_INTERNAL_FORMAT_OES 0x8D44
  2388. #define GL_STENCIL_INDEX1_OES 0x8D46
  2389. #define GL_STENCIL_INDEX4_OES 0x8D47
  2390. #define GL_STENCIL_INDEX8_OES 0x8D48
  2391. #define GL_RENDERBUFFER_RED_SIZE_OES 0x8D50
  2392. #define GL_RENDERBUFFER_GREEN_SIZE_OES 0x8D51
  2393. #define GL_RENDERBUFFER_BLUE_SIZE_OES 0x8D52
  2394. #define GL_RENDERBUFFER_ALPHA_SIZE_OES 0x8D53
  2395. #define GL_RENDERBUFFER_DEPTH_SIZE_OES 0x8D54
  2396. #define GL_RENDERBUFFER_STENCIL_SIZE_OES 0x8D55
  2397. #define GL_RGB565_OES 0x8D62
  2398. typedef void (GLAPIENTRY * PFNGLBINDFRAMEBUFFEROESPROC) (GLenum target, GLuint framebuffer);
  2399. typedef void (GLAPIENTRY * PFNGLBINDRENDERBUFFEROESPROC) (GLenum target, GLuint renderbuffer);
  2400. typedef GLenum (GLAPIENTRY * PFNGLCHECKFRAMEBUFFERSTATUSOESPROC) (GLenum target);
  2401. typedef void (GLAPIENTRY * PFNGLDELETEFRAMEBUFFERSOESPROC) (GLsizei n, const GLuint* framebuffers);
  2402. typedef void (GLAPIENTRY * PFNGLDELETERENDERBUFFERSOESPROC) (GLsizei n, const GLuint* renderbuffers);
  2403. typedef void (GLAPIENTRY * PFNGLFRAMEBUFFERRENDERBUFFEROESPROC) (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
  2404. typedef void (GLAPIENTRY * PFNGLFRAMEBUFFERTEXTURE2DOESPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
  2405. typedef void (GLAPIENTRY * PFNGLGENFRAMEBUFFERSOESPROC) (GLsizei n, GLuint* framebuffers);
  2406. typedef void (GLAPIENTRY * PFNGLGENRENDERBUFFERSOESPROC) (GLsizei n, GLuint* renderbuffers);
  2407. typedef void (GLAPIENTRY * PFNGLGENERATEMIPMAPOESPROC) (GLenum target);
  2408. typedef void (GLAPIENTRY * PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVOESPROC) (GLenum target, GLenum attachment, GLenum pname, GLint* params);
  2409. typedef void (GLAPIENTRY * PFNGLGETRENDERBUFFERPARAMETERIVOESPROC) (GLenum target, GLenum pname, GLint* params);
  2410. typedef GLboolean (GLAPIENTRY * PFNGLISFRAMEBUFFEROESPROC) (GLuint framebuffer);
  2411. typedef GLboolean (GLAPIENTRY * PFNGLISRENDERBUFFEROESPROC) (GLuint renderbuffer);
  2412. typedef void (GLAPIENTRY * PFNGLRENDERBUFFERSTORAGEOESPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
  2413. #define glBindFramebufferOES GLEW_GET_FUN(__glewBindFramebufferOES)
  2414. #define glBindRenderbufferOES GLEW_GET_FUN(__glewBindRenderbufferOES)
  2415. #define glCheckFramebufferStatusOES GLEW_GET_FUN(__glewCheckFramebufferStatusOES)
  2416. #define glDeleteFramebuffersOES GLEW_GET_FUN(__glewDeleteFramebuffersOES)
  2417. #define glDeleteRenderbuffersOES GLEW_GET_FUN(__glewDeleteRenderbuffersOES)
  2418. #define glFramebufferRenderbufferOES GLEW_GET_FUN(__glewFramebufferRenderbufferOES)
  2419. #define glFramebufferTexture2DOES GLEW_GET_FUN(__glewFramebufferTexture2DOES)
  2420. #define glGenFramebuffersOES GLEW_GET_FUN(__glewGenFramebuffersOES)
  2421. #define glGenRenderbuffersOES GLEW_GET_FUN(__glewGenRenderbuffersOES)
  2422. #define glGenerateMipmapOES GLEW_GET_FUN(__glewGenerateMipmapOES)
  2423. #define glGetFramebufferAttachmentParameterivOES GLEW_GET_FUN(__glewGetFramebufferAttachmentParameterivOES)
  2424. #define glGetRenderbufferParameterivOES GLEW_GET_FUN(__glewGetRenderbufferParameterivOES)
  2425. #define glIsFramebufferOES GLEW_GET_FUN(__glewIsFramebufferOES)
  2426. #define glIsRenderbufferOES GLEW_GET_FUN(__glewIsRenderbufferOES)
  2427. #define glRenderbufferStorageOES GLEW_GET_FUN(__glewRenderbufferStorageOES)
  2428. #define GLEW_OES_framebuffer_object GLEW_GET_VAR(__GLEW_OES_framebuffer_object)
  2429. #endif /* !GL_OES_framebuffer_object */
  2430. /* ----------------------- GL_OES_get_program_binary ----------------------- */
  2431. #if !defined(GL_OES_get_program_binary)
  2432. #define GL_OES_get_program_binary 1
  2433. #define GL_PROGRAM_BINARY_LENGTH_OES 0x8741
  2434. #define GL_NUM_PROGRAM_BINARY_FORMATS_OES 0x87FE
  2435. #define GL_PROGRAM_BINARY_FORMATS_OES 0x87FF
  2436. typedef void (GLAPIENTRY * PFNGLGETPROGRAMBINARYOESPROC) (GLuint program, GLsizei bufSize, GLsizei* length, GLenum *binaryFormat, GLvoid*binary);
  2437. typedef void (GLAPIENTRY * PFNGLPROGRAMBINARYOESPROC) (GLuint program, GLenum binaryFormat, const void* binary, GLint length);
  2438. #define glGetProgramBinaryOES GLEW_GET_FUN(__glewGetProgramBinaryOES)
  2439. #define glProgramBinaryOES GLEW_GET_FUN(__glewProgramBinaryOES)
  2440. #define GLEW_OES_get_program_binary GLEW_GET_VAR(__GLEW_OES_get_program_binary)
  2441. #endif /* !GL_OES_get_program_binary */
  2442. /* ---------------------------- GL_OES_mapbuffer --------------------------- */
  2443. #if !defined(GL_OES_mapbuffer)
  2444. #define GL_OES_mapbuffer 1
  2445. #define GL_WRITE_ONLY_OES 0x88B9
  2446. #define GL_BUFFER_ACCESS_OES 0x88BB
  2447. #define GL_BUFFER_MAPPED_OES 0x88BC
  2448. #define GL_BUFFER_MAP_POINTER_OES 0x88BD
  2449. typedef void (GLAPIENTRY * PFNGLGETBUFFERPOINTERVOESPROC) (GLenum target, GLenum pname, void** params);
  2450. typedef GLvoid * (GLAPIENTRY * PFNGLMAPBUFFEROESPROC) (GLenum target, GLenum access);
  2451. typedef GLboolean (GLAPIENTRY * PFNGLUNMAPBUFFEROESPROC) (GLenum target);
  2452. #define glGetBufferPointervOES GLEW_GET_FUN(__glewGetBufferPointervOES)
  2453. #define glMapBufferOES GLEW_GET_FUN(__glewMapBufferOES)
  2454. #define glUnmapBufferOES GLEW_GET_FUN(__glewUnmapBufferOES)
  2455. #define GLEW_OES_mapbuffer GLEW_GET_VAR(__GLEW_OES_mapbuffer)
  2456. #endif /* !GL_OES_mapbuffer */
  2457. /* --------------------------- GL_OES_matrix_get --------------------------- */
  2458. #if !defined(GL_OES_matrix_get)
  2459. #define GL_OES_matrix_get 1
  2460. #define GL_PROJECTION_MATRIX_FLOAT_AS_INT_BITS_OES 0x898
  2461. #define GL_MODELVIEW_MATRIX_FLOAT_AS_INT_BITS_OES 0x898
  2462. #define GL_TEXTURE_MATRIX_FLOAT_AS_INT_BITS_OES 0x898
  2463. #define GLEW_OES_matrix_get GLEW_GET_VAR(__GLEW_OES_matrix_get)
  2464. #endif /* !GL_OES_matrix_get */
  2465. /* ------------------------- GL_OES_matrix_palette ------------------------- */
  2466. #if !defined(GL_OES_matrix_palette)
  2467. #define GL_OES_matrix_palette 1
  2468. #define GL_MAX_VERTEX_UNITS_OES 0x86A4
  2469. #define GL_WEIGHT_ARRAY_TYPE_OES 0x86A9
  2470. #define GL_WEIGHT_ARRAY_STRIDE_OES 0x86AA
  2471. #define GL_WEIGHT_ARRAY_SIZE_OES 0x86AB
  2472. #define GL_WEIGHT_ARRAY_POINTER_OES 0x86AC
  2473. #define GL_WEIGHT_ARRAY_OES 0x86AD
  2474. #define GL_MATRIX_PALETTE_OES 0x8840
  2475. #define GL_MAX_PALETTE_MATRICES_OES 0x8842
  2476. #define GL_CURRENT_PALETTE_MATRIX_OES 0x8843
  2477. #define GL_MATRIX_INDEX_ARRAY_OES 0x8844
  2478. #define GL_MATRIX_INDEX_ARRAY_SIZE_OES 0x8846
  2479. #define GL_MATRIX_INDEX_ARRAY_TYPE_OES 0x8847
  2480. #define GL_MATRIX_INDEX_ARRAY_STRIDE_OES 0x8848
  2481. #define GL_MATRIX_INDEX_ARRAY_POINTER_OES 0x8849
  2482. #define GL_WEIGHT_ARRAY_BUFFER_BINDING_OES 0x889E
  2483. #define GL_MATRIX_INDEX_ARRAY_BUFFER_BINDING_OES 0x8B9E
  2484. typedef void (GLAPIENTRY * PFNGLCURRENTPALETTEMATRIXOESPROC) (GLuint index);
  2485. typedef void (GLAPIENTRY * PFNGLMATRIXINDEXPOINTEROESPROC) (GLint size, GLenum type, GLsizei stride, void* pointer);
  2486. typedef void (GLAPIENTRY * PFNGLWEIGHTPOINTEROESPROC) (GLint size, GLenum type, GLsizei stride, void* pointer);
  2487. #define glCurrentPaletteMatrixOES GLEW_GET_FUN(__glewCurrentPaletteMatrixOES)
  2488. #define glMatrixIndexPointerOES GLEW_GET_FUN(__glewMatrixIndexPointerOES)
  2489. #define glWeightPointerOES GLEW_GET_FUN(__glewWeightPointerOES)
  2490. #define GLEW_OES_matrix_palette GLEW_GET_VAR(__GLEW_OES_matrix_palette)
  2491. #endif /* !GL_OES_matrix_palette */
  2492. /* ---------------------- GL_OES_packed_depth_stencil ---------------------- */
  2493. #if !defined(GL_OES_packed_depth_stencil)
  2494. #define GL_OES_packed_depth_stencil 1
  2495. #define GL_DEPTH_STENCIL_OES 0x84F9
  2496. #define GL_UNSIGNED_INT_24_8_OES 0x84FA
  2497. #define GL_DEPTH24_STENCIL8_OES 0x88F0
  2498. #define GLEW_OES_packed_depth_stencil GLEW_GET_VAR(__GLEW_OES_packed_depth_stencil)
  2499. #endif /* !GL_OES_packed_depth_stencil */
  2500. /* ------------------------ GL_OES_point_size_array ------------------------ */
  2501. #if !defined(GL_OES_point_size_array)
  2502. #define GL_OES_point_size_array 1
  2503. #define GL_POINT_SIZE_ARRAY_TYPE_OES 0x898A
  2504. #define GL_POINT_SIZE_ARRAY_STRIDE_OES 0x898B
  2505. #define GL_POINT_SIZE_ARRAY_POINTER_OES 0x898C
  2506. #define GL_POINT_SIZE_ARRAY_OES 0x8B9C
  2507. #define GL_POINT_SIZE_ARRAY_BUFFER_BINDING_OES 0x8B9F
  2508. typedef void (GLAPIENTRY * PFNGLPOINTSIZEPOINTEROESPROC) (GLenum type, GLsizei stride, const void* ptr);
  2509. #define glPointSizePointerOES GLEW_GET_FUN(__glewPointSizePointerOES)
  2510. #define GLEW_OES_point_size_array GLEW_GET_VAR(__GLEW_OES_point_size_array)
  2511. #endif /* !GL_OES_point_size_array */
  2512. /* -------------------------- GL_OES_point_sprite -------------------------- */
  2513. #if !defined(GL_OES_point_sprite)
  2514. #define GL_OES_point_sprite 1
  2515. #define GL_POINT_SPRITE_OES 0x8861
  2516. #define GL_COORD_REPLACE_OES 0x8862
  2517. #define GLEW_OES_point_sprite GLEW_GET_VAR(__GLEW_OES_point_sprite)
  2518. #endif /* !GL_OES_point_sprite */
  2519. /* --------------------------- GL_OES_read_format -------------------------- */
  2520. #if !defined(GL_OES_read_format)
  2521. #define GL_OES_read_format 1
  2522. #define GL_IMPLEMENTATION_COLOR_READ_TYPE_OES 0x8B9A
  2523. #define GL_IMPLEMENTATION_COLOR_READ_FORMAT_OES 0x8B9B
  2524. #define GLEW_OES_read_format GLEW_GET_VAR(__GLEW_OES_read_format)
  2525. #endif /* !GL_OES_read_format */
  2526. /* --------------------- GL_OES_required_internalformat -------------------- */
  2527. #if !defined(GL_OES_required_internalformat)
  2528. #define GL_OES_required_internalformat 1
  2529. #define GL_ALPHA8_OES 0x803C
  2530. #define GL_LUMINANCE8_OES 0x8040
  2531. #define GL_LUMINANCE4_ALPHA4_OES 0x8043
  2532. #define GL_LUMINANCE8_ALPHA8_OES 0x8045
  2533. #define GL_RGB8_OES 0x8051
  2534. #define GL_RGB10_EXT 0x8052
  2535. #define GL_RGBA4_OES 0x8056
  2536. #define GL_RGB5_A1_OES 0x8057
  2537. #define GL_RGBA8_OES 0x8058
  2538. #define GL_RGB10_A2_EXT 0x8059
  2539. #define GL_DEPTH_COMPONENT16_OES 0x81A5
  2540. #define GL_DEPTH_COMPONENT24_OES 0x81A6
  2541. #define GL_DEPTH_COMPONENT32_OES 0x81A7
  2542. #define GL_DEPTH24_STENCIL8_OES 0x88F0
  2543. #define GL_RGB565_OES 0x8D62
  2544. #define GLEW_OES_required_internalformat GLEW_GET_VAR(__GLEW_OES_required_internalformat)
  2545. #endif /* !GL_OES_required_internalformat */
  2546. /* --------------------------- GL_OES_rgb8_rgba8 --------------------------- */
  2547. #if !defined(GL_OES_rgb8_rgba8)
  2548. #define GL_OES_rgb8_rgba8 1
  2549. #define GL_RGB8_OES 0x8051
  2550. #define GL_RGBA8_OES 0x8058
  2551. #define GLEW_OES_rgb8_rgba8 GLEW_GET_VAR(__GLEW_OES_rgb8_rgba8)
  2552. #endif /* !GL_OES_rgb8_rgba8 */
  2553. /* ------------------------ GL_OES_single_precision ------------------------ */
  2554. #if !defined(GL_OES_single_precision)
  2555. #define GL_OES_single_precision 1
  2556. typedef double GLclampd;
  2557. typedef void (GLAPIENTRY * PFNGLCLEARDEPTHFOESPROC) (GLclampd depth);
  2558. typedef void (GLAPIENTRY * PFNGLCLIPPLANEFOESPROC) (GLenum plane, const GLfloat* equation);
  2559. typedef void (GLAPIENTRY * PFNGLDEPTHRANGEFOESPROC) (GLclampf n, GLclampf f);
  2560. typedef void (GLAPIENTRY * PFNGLFRUSTUMFOESPROC) (GLfloat l, GLfloat r, GLfloat b, GLfloat t, GLfloat n, GLfloat f);
  2561. typedef void (GLAPIENTRY * PFNGLGETCLIPPLANEFOESPROC) (GLenum plane, GLfloat* equation);
  2562. typedef void (GLAPIENTRY * PFNGLORTHOFOESPROC) (GLfloat l, GLfloat r, GLfloat b, GLfloat t, GLfloat n, GLfloat f);
  2563. #define glClearDepthfOES GLEW_GET_FUN(__glewClearDepthfOES)
  2564. #define glClipPlanefOES GLEW_GET_FUN(__glewClipPlanefOES)
  2565. #define glDepthRangefOES GLEW_GET_FUN(__glewDepthRangefOES)
  2566. #define glFrustumfOES GLEW_GET_FUN(__glewFrustumfOES)
  2567. #define glGetClipPlanefOES GLEW_GET_FUN(__glewGetClipPlanefOES)
  2568. #define glOrthofOES GLEW_GET_FUN(__glewOrthofOES)
  2569. #define GLEW_OES_single_precision GLEW_GET_VAR(__GLEW_OES_single_precision)
  2570. #endif /* !GL_OES_single_precision */
  2571. /* ---------------------- GL_OES_standard_derivatives ---------------------- */
  2572. #if !defined(GL_OES_standard_derivatives)
  2573. #define GL_OES_standard_derivatives 1
  2574. #define GL_FRAGMENT_SHADER_DERIVATIVE_HINT_OES 0x8B8B
  2575. #define GLEW_OES_standard_derivatives GLEW_GET_VAR(__GLEW_OES_standard_derivatives)
  2576. #endif /* !GL_OES_standard_derivatives */
  2577. /* ---------------------------- GL_OES_stencil1 ---------------------------- */
  2578. #if !defined(GL_OES_stencil1)
  2579. #define GL_OES_stencil1 1
  2580. #define GL_STENCIL_INDEX1_OES 0x8D46
  2581. #define GLEW_OES_stencil1 GLEW_GET_VAR(__GLEW_OES_stencil1)
  2582. #endif /* !GL_OES_stencil1 */
  2583. /* ---------------------------- GL_OES_stencil4 ---------------------------- */
  2584. #if !defined(GL_OES_stencil4)
  2585. #define GL_OES_stencil4 1
  2586. #define GL_STENCIL_INDEX4_OES 0x8D47
  2587. #define GLEW_OES_stencil4 GLEW_GET_VAR(__GLEW_OES_stencil4)
  2588. #endif /* !GL_OES_stencil4 */
  2589. /* ---------------------------- GL_OES_stencil8 ---------------------------- */
  2590. #if !defined(GL_OES_stencil8)
  2591. #define GL_OES_stencil8 1
  2592. #define GL_STENCIL_INDEX8_OES 0x8D48
  2593. #define GLEW_OES_stencil8 GLEW_GET_VAR(__GLEW_OES_stencil8)
  2594. #endif /* !GL_OES_stencil8 */
  2595. /* ----------------------- GL_OES_surfaceless_context ---------------------- */
  2596. #if !defined(GL_OES_surfaceless_context)
  2597. #define GL_OES_surfaceless_context 1
  2598. #define GL_FRAMEBUFFER_UNDEFINED_OES 0x8219
  2599. #define GLEW_OES_surfaceless_context GLEW_GET_VAR(__GLEW_OES_surfaceless_context)
  2600. #endif /* !GL_OES_surfaceless_context */
  2601. /* --------------------------- GL_OES_texture_3D --------------------------- */
  2602. #if !defined(GL_OES_texture_3D)
  2603. #define GL_OES_texture_3D 1
  2604. #define GL_TEXTURE_BINDING_3D_OES 0x806A
  2605. #define GL_TEXTURE_3D_OES 0x806F
  2606. #define GL_TEXTURE_WRAP_R_OES 0x8072
  2607. #define GL_MAX_3D_TEXTURE_SIZE_OES 0x8073
  2608. #define GL_SAMPLER_3D_OES 0x8B5F
  2609. typedef void (GLAPIENTRY * PFNGLCOMPRESSEDTEXIMAGE3DOESPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void* data);
  2610. typedef void (GLAPIENTRY * PFNGLCOMPRESSEDTEXSUBIMAGE3DOESPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void* data);
  2611. typedef void (GLAPIENTRY * PFNGLCOPYTEXSUBIMAGE3DOESPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
  2612. typedef void (GLAPIENTRY * PFNGLFRAMEBUFFERTEXTURE3DOESPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
  2613. typedef void (GLAPIENTRY * PFNGLTEXIMAGE3DOESPROC) (GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void* pixels);
  2614. typedef void (GLAPIENTRY * PFNGLTEXSUBIMAGE3DOESPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void* pixels);
  2615. #define glCompressedTexImage3DOES GLEW_GET_FUN(__glewCompressedTexImage3DOES)
  2616. #define glCompressedTexSubImage3DOES GLEW_GET_FUN(__glewCompressedTexSubImage3DOES)
  2617. #define glCopyTexSubImage3DOES GLEW_GET_FUN(__glewCopyTexSubImage3DOES)
  2618. #define glFramebufferTexture3DOES GLEW_GET_FUN(__glewFramebufferTexture3DOES)
  2619. #define glTexImage3DOES GLEW_GET_FUN(__glewTexImage3DOES)
  2620. #define glTexSubImage3DOES GLEW_GET_FUN(__glewTexSubImage3DOES)
  2621. #define GLEW_OES_texture_3D GLEW_GET_VAR(__GLEW_OES_texture_3D)
  2622. #endif /* !GL_OES_texture_3D */
  2623. /* ------------------------ GL_OES_texture_cube_map ------------------------ */
  2624. #if !defined(GL_OES_texture_cube_map)
  2625. #define GL_OES_texture_cube_map 1
  2626. #define GL_TEXTURE_GEN_MODE_OES 0x2500
  2627. #define GL_NORMAL_MAP_OES 0x8511
  2628. #define GL_REFLECTION_MAP_OES 0x8512
  2629. #define GL_TEXTURE_CUBE_MAP_OES 0x8513
  2630. #define GL_TEXTURE_BINDING_CUBE_MAP_OES 0x8514
  2631. #define GL_TEXTURE_CUBE_MAP_POSITIVE_X_OES 0x8515
  2632. #define GL_TEXTURE_CUBE_MAP_NEGATIVE_X_OES 0x8516
  2633. #define GL_TEXTURE_CUBE_MAP_POSITIVE_Y_OES 0x8517
  2634. #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_OES 0x8518
  2635. #define GL_TEXTURE_CUBE_MAP_POSITIVE_Z_OES 0x8519
  2636. #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_OES 0x851A
  2637. #define GL_MAX_CUBE_MAP_TEXTURE_SIZE_OES 0x851C
  2638. #define GL_TEXTURE_GEN_STR_OES 0x8D60
  2639. typedef void (GLAPIENTRY * PFNGLGETTEXGENFVOESPROC) (GLenum coord, GLenum pname, GLfloat* params);
  2640. typedef void (GLAPIENTRY * PFNGLGETTEXGENIVOESPROC) (GLenum coord, GLenum pname, GLint* params);
  2641. typedef void (GLAPIENTRY * PFNGLGETTEXGENXVOESPROC) (GLenum coord, GLenum pname, GLfixed* params);
  2642. typedef void (GLAPIENTRY * PFNGLTEXGENFOESPROC) (GLenum coord, GLenum pname, GLfloat param);
  2643. typedef void (GLAPIENTRY * PFNGLTEXGENFVOESPROC) (GLenum coord, GLenum pname, const GLfloat* params);
  2644. typedef void (GLAPIENTRY * PFNGLTEXGENIOESPROC) (GLenum coord, GLenum pname, GLint param);
  2645. typedef void (GLAPIENTRY * PFNGLTEXGENIVOESPROC) (GLenum coord, GLenum pname, const GLint* params);
  2646. typedef void (GLAPIENTRY * PFNGLTEXGENXOESPROC) (GLenum coord, GLenum pname, GLfixed param);
  2647. typedef void (GLAPIENTRY * PFNGLTEXGENXVOESPROC) (GLenum coord, GLenum pname, const GLfixed* params);
  2648. #define glGetTexGenfvOES GLEW_GET_FUN(__glewGetTexGenfvOES)
  2649. #define glGetTexGenivOES GLEW_GET_FUN(__glewGetTexGenivOES)
  2650. #define glGetTexGenxvOES GLEW_GET_FUN(__glewGetTexGenxvOES)
  2651. #define glTexGenfOES GLEW_GET_FUN(__glewTexGenfOES)
  2652. #define glTexGenfvOES GLEW_GET_FUN(__glewTexGenfvOES)
  2653. #define glTexGeniOES GLEW_GET_FUN(__glewTexGeniOES)
  2654. #define glTexGenivOES GLEW_GET_FUN(__glewTexGenivOES)
  2655. #define glTexGenxOES GLEW_GET_FUN(__glewTexGenxOES)
  2656. #define glTexGenxvOES GLEW_GET_FUN(__glewTexGenxvOES)
  2657. #define GLEW_OES_texture_cube_map GLEW_GET_VAR(__GLEW_OES_texture_cube_map)
  2658. #endif /* !GL_OES_texture_cube_map */
  2659. /* ---------------------- GL_OES_texture_env_crossbar ---------------------- */
  2660. #if !defined(GL_OES_texture_env_crossbar)
  2661. #define GL_OES_texture_env_crossbar 1
  2662. #define GLEW_OES_texture_env_crossbar GLEW_GET_VAR(__GLEW_OES_texture_env_crossbar)
  2663. #endif /* !GL_OES_texture_env_crossbar */
  2664. /* --------------------- GL_OES_texture_mirrored_repeat -------------------- */
  2665. #if !defined(GL_OES_texture_mirrored_repeat)
  2666. #define GL_OES_texture_mirrored_repeat 1
  2667. #define GL_MIRRORED_REPEAT 0x8370
  2668. #define GLEW_OES_texture_mirrored_repeat GLEW_GET_VAR(__GLEW_OES_texture_mirrored_repeat)
  2669. #endif /* !GL_OES_texture_mirrored_repeat */
  2670. /* -------------------------- GL_OES_texture_npot -------------------------- */
  2671. #if !defined(GL_OES_texture_npot)
  2672. #define GL_OES_texture_npot 1
  2673. #define GLEW_OES_texture_npot GLEW_GET_VAR(__GLEW_OES_texture_npot)
  2674. #endif /* !GL_OES_texture_npot */
  2675. /* ----------------------- GL_OES_vertex_array_object ---------------------- */
  2676. #if !defined(GL_OES_vertex_array_object)
  2677. #define GL_OES_vertex_array_object 1
  2678. #define GL_VERTEX_ARRAY_BINDING_OES 0x85B5
  2679. typedef void (GLAPIENTRY * PFNGLBINDVERTEXARRAYOESPROC) (GLuint array);
  2680. typedef void (GLAPIENTRY * PFNGLDELETEVERTEXARRAYSOESPROC) (GLsizei n, const GLuint* arrays);
  2681. typedef void (GLAPIENTRY * PFNGLGENVERTEXARRAYSOESPROC) (GLsizei n, GLuint* arrays);
  2682. typedef GLboolean (GLAPIENTRY * PFNGLISVERTEXARRAYOESPROC) (GLuint array);
  2683. #define glBindVertexArrayOES GLEW_GET_FUN(__glewBindVertexArrayOES)
  2684. #define glDeleteVertexArraysOES GLEW_GET_FUN(__glewDeleteVertexArraysOES)
  2685. #define glGenVertexArraysOES GLEW_GET_FUN(__glewGenVertexArraysOES)
  2686. #define glIsVertexArrayOES GLEW_GET_FUN(__glewIsVertexArrayOES)
  2687. #define GLEW_OES_vertex_array_object GLEW_GET_VAR(__GLEW_OES_vertex_array_object)
  2688. #endif /* !GL_OES_vertex_array_object */
  2689. /* ------------------------ GL_OES_vertex_half_float ----------------------- */
  2690. #if !defined(GL_OES_vertex_half_float)
  2691. #define GL_OES_vertex_half_float 1
  2692. #define GL_HALF_FLOAT_OES 0x8D61
  2693. #define GLEW_OES_vertex_half_float GLEW_GET_VAR(__GLEW_OES_vertex_half_float)
  2694. #endif /* !GL_OES_vertex_half_float */
  2695. /* --------------------- GL_OES_vertex_type_10_10_10_2 --------------------- */
  2696. #if !defined(GL_OES_vertex_type_10_10_10_2)
  2697. #define GL_OES_vertex_type_10_10_10_2 1
  2698. #define GL_UNSIGNED_INT_10_10_10_2_OES 0x8DF6
  2699. #define GL_INT_10_10_10_2_OES 0x8DF7
  2700. #define GLEW_OES_vertex_type_10_10_10_2 GLEW_GET_VAR(__GLEW_OES_vertex_type_10_10_10_2)
  2701. #endif /* !GL_OES_vertex_type_10_10_10_2 */
  2702. /* --------------------------- GL_QCOM_alpha_test -------------------------- */
  2703. #if !defined(GL_QCOM_alpha_test)
  2704. #define GL_QCOM_alpha_test 1
  2705. #define GL_ALPHA_TEST_QCOM 0x0BC0
  2706. #define GL_ALPHA_TEST_FUNC_QCOM 0x0BC1
  2707. #define GL_ALPHA_TEST_REF_QCOM 0x0BC2
  2708. typedef void (GLAPIENTRY * PFNGLALPHAFUNCQCOMPROC) (GLenum func, GLclampf ref);
  2709. #define glAlphaFuncQCOM GLEW_GET_FUN(__glewAlphaFuncQCOM)
  2710. #define GLEW_QCOM_alpha_test GLEW_GET_VAR(__GLEW_QCOM_alpha_test)
  2711. #endif /* !GL_QCOM_alpha_test */
  2712. /* ------------------------ GL_QCOM_binning_control ------------------------ */
  2713. #if !defined(GL_QCOM_binning_control)
  2714. #define GL_QCOM_binning_control 1
  2715. #define GL_DONT_CARE 0x1100
  2716. #define GL_BINNING_CONTROL_HINT_QCOM 0x8FB0
  2717. #define GL_CPU_OPTIMIZED_QCOM 0x8FB1
  2718. #define GL_GPU_OPTIMIZED_QCOM 0x8FB2
  2719. #define GL_RENDER_DIRECT_TO_FRAMEBUFFER_QCOM 0x8FB3
  2720. #define GLEW_QCOM_binning_control GLEW_GET_VAR(__GLEW_QCOM_binning_control)
  2721. #endif /* !GL_QCOM_binning_control */
  2722. /* ------------------------- GL_QCOM_driver_control ------------------------ */
  2723. #if !defined(GL_QCOM_driver_control)
  2724. #define GL_QCOM_driver_control 1
  2725. typedef void (GLAPIENTRY * PFNGLDISABLEDRIVERCONTROLQCOMPROC) (GLuint driverControl);
  2726. typedef void (GLAPIENTRY * PFNGLENABLEDRIVERCONTROLQCOMPROC) (GLuint driverControl);
  2727. typedef void (GLAPIENTRY * PFNGLGETDRIVERCONTROLSTRINGQCOMPROC) (GLuint driverControl, GLsizei bufSize, GLsizei* length, char *driverControlString);
  2728. typedef void (GLAPIENTRY * PFNGLGETDRIVERCONTROLSQCOMPROC) (GLint* num, GLsizei size, GLuint *driverControls);
  2729. #define glDisableDriverControlQCOM GLEW_GET_FUN(__glewDisableDriverControlQCOM)
  2730. #define glEnableDriverControlQCOM GLEW_GET_FUN(__glewEnableDriverControlQCOM)
  2731. #define glGetDriverControlStringQCOM GLEW_GET_FUN(__glewGetDriverControlStringQCOM)
  2732. #define glGetDriverControlsQCOM GLEW_GET_FUN(__glewGetDriverControlsQCOM)
  2733. #define GLEW_QCOM_driver_control GLEW_GET_VAR(__GLEW_QCOM_driver_control)
  2734. #endif /* !GL_QCOM_driver_control */
  2735. /* -------------------------- GL_QCOM_extended_get ------------------------- */
  2736. #if !defined(GL_QCOM_extended_get)
  2737. #define GL_QCOM_extended_get 1
  2738. #define GL_TEXTURE_WIDTH_QCOM 0x8BD2
  2739. #define GL_TEXTURE_HEIGHT_QCOM 0x8BD3
  2740. #define GL_TEXTURE_DEPTH_QCOM 0x8BD4
  2741. #define GL_TEXTURE_INTERNAL_FORMAT_QCOM 0x8BD5
  2742. #define GL_TEXTURE_FORMAT_QCOM 0x8BD6
  2743. #define GL_TEXTURE_TYPE_QCOM 0x8BD7
  2744. #define GL_TEXTURE_IMAGE_VALID_QCOM 0x8BD8
  2745. #define GL_TEXTURE_NUM_LEVELS_QCOM 0x8BD9
  2746. #define GL_TEXTURE_TARGET_QCOM 0x8BDA
  2747. #define GL_TEXTURE_OBJECT_VALID_QCOM 0x8BDB
  2748. #define GL_STATE_RESTORE 0x8BDC
  2749. typedef void (GLAPIENTRY * PFNGLEXTGETBUFFERPOINTERVQCOMPROC) (GLenum target, GLvoid** params);
  2750. typedef void (GLAPIENTRY * PFNGLEXTGETBUFFERSQCOMPROC) (GLuint* buffers, GLint maxBuffers, GLint* numBuffers);
  2751. typedef void (GLAPIENTRY * PFNGLEXTGETFRAMEBUFFERSQCOMPROC) (GLuint* framebuffers, GLint maxFramebuffers, GLint* numFramebuffers);
  2752. typedef void (GLAPIENTRY * PFNGLEXTGETRENDERBUFFERSQCOMPROC) (GLuint* renderbuffers, GLint maxRenderbuffers, GLint* numRenderbuffers);
  2753. typedef void (GLAPIENTRY * PFNGLEXTGETTEXLEVELPARAMETERIVQCOMPROC) (GLuint texture, GLenum face, GLint level, GLenum pname, GLint* params);
  2754. typedef void (GLAPIENTRY * PFNGLEXTGETTEXSUBIMAGEQCOMPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, void* texels);
  2755. typedef void (GLAPIENTRY * PFNGLEXTGETTEXTURESQCOMPROC) (GLuint* textures, GLint maxTextures, GLint* numTextures);
  2756. typedef void (GLAPIENTRY * PFNGLEXTTEXOBJECTSTATEOVERRIDEIQCOMPROC) (GLenum target, GLenum pname, GLint param);
  2757. #define glExtGetBufferPointervQCOM GLEW_GET_FUN(__glewExtGetBufferPointervQCOM)
  2758. #define glExtGetBuffersQCOM GLEW_GET_FUN(__glewExtGetBuffersQCOM)
  2759. #define glExtGetFramebuffersQCOM GLEW_GET_FUN(__glewExtGetFramebuffersQCOM)
  2760. #define glExtGetRenderbuffersQCOM GLEW_GET_FUN(__glewExtGetRenderbuffersQCOM)
  2761. #define glExtGetTexLevelParameterivQCOM GLEW_GET_FUN(__glewExtGetTexLevelParameterivQCOM)
  2762. #define glExtGetTexSubImageQCOM GLEW_GET_FUN(__glewExtGetTexSubImageQCOM)
  2763. #define glExtGetTexturesQCOM GLEW_GET_FUN(__glewExtGetTexturesQCOM)
  2764. #define glExtTexObjectStateOverrideiQCOM GLEW_GET_FUN(__glewExtTexObjectStateOverrideiQCOM)
  2765. #define GLEW_QCOM_extended_get GLEW_GET_VAR(__GLEW_QCOM_extended_get)
  2766. #endif /* !GL_QCOM_extended_get */
  2767. /* ------------------------- GL_QCOM_extended_get2 ------------------------- */
  2768. #if !defined(GL_QCOM_extended_get2)
  2769. #define GL_QCOM_extended_get2 1
  2770. typedef void (GLAPIENTRY * PFNGLEXTGETPROGRAMBINARYSOURCEQCOMPROC) (GLuint program, GLenum shadertype, char* source, GLint* length);
  2771. typedef void (GLAPIENTRY * PFNGLEXTGETPROGRAMSQCOMPROC) (GLuint* programs, GLint maxPrograms, GLint* numPrograms);
  2772. typedef void (GLAPIENTRY * PFNGLEXTGETSHADERSQCOMPROC) (GLuint* shaders, GLint maxShaders, GLint* numShaders);
  2773. typedef GLboolean (GLAPIENTRY * PFNGLEXTISPROGRAMBINARYQCOMPROC) (GLuint program);
  2774. #define glExtGetProgramBinarySourceQCOM GLEW_GET_FUN(__glewExtGetProgramBinarySourceQCOM)
  2775. #define glExtGetProgramsQCOM GLEW_GET_FUN(__glewExtGetProgramsQCOM)
  2776. #define glExtGetShadersQCOM GLEW_GET_FUN(__glewExtGetShadersQCOM)
  2777. #define glExtIsProgramBinaryQCOM GLEW_GET_FUN(__glewExtIsProgramBinaryQCOM)
  2778. #define GLEW_QCOM_extended_get2 GLEW_GET_VAR(__GLEW_QCOM_extended_get2)
  2779. #endif /* !GL_QCOM_extended_get2 */
  2780. /* ---------------------- GL_QCOM_perfmon_global_mode ---------------------- */
  2781. #if !defined(GL_QCOM_perfmon_global_mode)
  2782. #define GL_QCOM_perfmon_global_mode 1
  2783. #define GL_PERFMON_GLOBAL_MODE_QCOM 0x8FA0
  2784. #define GLEW_QCOM_perfmon_global_mode GLEW_GET_VAR(__GLEW_QCOM_perfmon_global_mode)
  2785. #endif /* !GL_QCOM_perfmon_global_mode */
  2786. /* ------------------------ GL_QCOM_tiled_rendering ------------------------ */
  2787. #if !defined(GL_QCOM_tiled_rendering)
  2788. #define GL_QCOM_tiled_rendering 1
  2789. #define GL_COLOR_BUFFER_BIT0_QCOM 0x00000001
  2790. #define GL_COLOR_BUFFER_BIT1_QCOM 0x00000002
  2791. #define GL_COLOR_BUFFER_BIT2_QCOM 0x00000004
  2792. #define GL_COLOR_BUFFER_BIT3_QCOM 0x00000008
  2793. #define GL_COLOR_BUFFER_BIT4_QCOM 0x00000010
  2794. #define GL_COLOR_BUFFER_BIT5_QCOM 0x00000020
  2795. #define GL_COLOR_BUFFER_BIT6_QCOM 0x00000040
  2796. #define GL_COLOR_BUFFER_BIT7_QCOM 0x00000080
  2797. #define GL_DEPTH_BUFFER_BIT0_QCOM 0x00000100
  2798. #define GL_DEPTH_BUFFER_BIT1_QCOM 0x00000200
  2799. #define GL_DEPTH_BUFFER_BIT2_QCOM 0x00000400
  2800. #define GL_DEPTH_BUFFER_BIT3_QCOM 0x00000800
  2801. #define GL_DEPTH_BUFFER_BIT4_QCOM 0x00001000
  2802. #define GL_DEPTH_BUFFER_BIT5_QCOM 0x00002000
  2803. #define GL_DEPTH_BUFFER_BIT6_QCOM 0x00004000
  2804. #define GL_DEPTH_BUFFER_BIT7_QCOM 0x00008000
  2805. #define GL_STENCIL_BUFFER_BIT0_QCOM 0x00010000
  2806. #define GL_STENCIL_BUFFER_BIT1_QCOM 0x00020000
  2807. #define GL_STENCIL_BUFFER_BIT2_QCOM 0x00040000
  2808. #define GL_STENCIL_BUFFER_BIT3_QCOM 0x00080000
  2809. #define GL_STENCIL_BUFFER_BIT4_QCOM 0x00100000
  2810. #define GL_STENCIL_BUFFER_BIT5_QCOM 0x00200000
  2811. #define GL_STENCIL_BUFFER_BIT6_QCOM 0x00400000
  2812. #define GL_STENCIL_BUFFER_BIT7_QCOM 0x00800000
  2813. #define GL_MULTISAMPLE_BUFFER_BIT0_QCOM 0x01000000
  2814. #define GL_MULTISAMPLE_BUFFER_BIT1_QCOM 0x02000000
  2815. #define GL_MULTISAMPLE_BUFFER_BIT2_QCOM 0x04000000
  2816. #define GL_MULTISAMPLE_BUFFER_BIT3_QCOM 0x08000000
  2817. #define GL_MULTISAMPLE_BUFFER_BIT4_QCOM 0x10000000
  2818. #define GL_MULTISAMPLE_BUFFER_BIT5_QCOM 0x20000000
  2819. #define GL_MULTISAMPLE_BUFFER_BIT6_QCOM 0x40000000
  2820. #define GL_MULTISAMPLE_BUFFER_BIT7_QCOM 0x80000000
  2821. typedef void (GLAPIENTRY * PFNGLENDTILINGQCOMPROC) (GLbitfield preserveMask);
  2822. typedef void (GLAPIENTRY * PFNGLSTARTTILINGQCOMPROC) (GLuint x, GLuint y, GLuint width, GLuint height, GLbitfield preserveMask);
  2823. #define glEndTilingQCOM GLEW_GET_FUN(__glewEndTilingQCOM)
  2824. #define glStartTilingQCOM GLEW_GET_FUN(__glewStartTilingQCOM)
  2825. #define GLEW_QCOM_tiled_rendering GLEW_GET_VAR(__GLEW_QCOM_tiled_rendering)
  2826. #endif /* !GL_QCOM_tiled_rendering */
  2827. /* ---------------------- GL_QCOM_writeonly_rendering ---------------------- */
  2828. #if !defined(GL_QCOM_writeonly_rendering)
  2829. #define GL_QCOM_writeonly_rendering 1
  2830. #define GL_WRITEONLY_RENDERING_QCOM 0x8823
  2831. #define GLEW_QCOM_writeonly_rendering GLEW_GET_VAR(__GLEW_QCOM_writeonly_rendering)
  2832. #endif /* !GL_QCOM_writeonly_rendering */
  2833. /* ------------------------ GL_SUN_multi_draw_arrays ----------------------- */
  2834. #if !defined(GL_SUN_multi_draw_arrays)
  2835. #define GL_SUN_multi_draw_arrays 1
  2836. typedef void (GLAPIENTRY * PFNGLMULTIDRAWARRAYSSUNPROC) (GLenum mode, const GLint* first, const GLsizei *count, GLsizei primcount);
  2837. typedef void (GLAPIENTRY * PFNGLMULTIDRAWELEMENTSSUNPROC) (GLenum mode, GLsizei* count, GLenum type, const GLvoid **indices, GLsizei primcount);
  2838. #define glMultiDrawArraysSUN GLEW_GET_FUN(__glewMultiDrawArraysSUN)
  2839. #define glMultiDrawElementsSUN GLEW_GET_FUN(__glewMultiDrawElementsSUN)
  2840. #define GLEW_SUN_multi_draw_arrays GLEW_GET_VAR(__GLEW_SUN_multi_draw_arrays)
  2841. #endif /* !GL_SUN_multi_draw_arrays */
  2842. /* --------------------------- GL_VG_KHR_EGL_sync -------------------------- */
  2843. #if !defined(GL_VG_KHR_EGL_sync)
  2844. #define GL_VG_KHR_EGL_sync 1
  2845. #define GLEW_VG_KHR_EGL_sync GLEW_GET_VAR(__GLEW_VG_KHR_EGL_sync)
  2846. #endif /* !GL_VG_KHR_EGL_sync */
  2847. /* -------------------------- GL_VIV_shader_binary ------------------------- */
  2848. #if !defined(GL_VIV_shader_binary)
  2849. #define GL_VIV_shader_binary 1
  2850. #define GL_SHADER_BINARY_VIV 0x8FC4
  2851. #define GLEW_VIV_shader_binary GLEW_GET_VAR(__GLEW_VIV_shader_binary)
  2852. #endif /* !GL_VIV_shader_binary */
  2853. /* ------------------------------------------------------------------------- */
  2854. #if defined(GLEW_MX) && defined(_WIN32)
  2855. #define GLEW_FUN_EXPORT
  2856. #else
  2857. #define GLEW_FUN_EXPORT GLEWAPI
  2858. #endif /* GLEW_MX */
  2859. #if defined(GLEW_MX)
  2860. #define GLEW_VAR_EXPORT
  2861. #else
  2862. #define GLEW_VAR_EXPORT GLEWAPI
  2863. #endif /* GLEW_MX */
  2864. #if defined(GLEW_MX) && defined(_WIN32)
  2865. struct GLEWContextStruct
  2866. {
  2867. #endif /* GLEW_MX */
  2868. #if GL_ES_VERSION_1_0 // NOTE jwilkins: glew doesn't actually seem to be designed to let you use the extension macros
  2869. GLEW_FUN_EXPORT PFNGLACTIVETEXTUREPROC __glewActiveTexture;
  2870. GLEW_FUN_EXPORT PFNGLALPHAFUNCXPROC __glewAlphaFuncx;
  2871. GLEW_FUN_EXPORT PFNGLCLEARCOLORXPROC __glewClearColorx;
  2872. GLEW_FUN_EXPORT PFNGLCLEARDEPTHFPROC __glewClearDepthf;
  2873. GLEW_FUN_EXPORT PFNGLCLEARDEPTHXPROC __glewClearDepthx;
  2874. GLEW_FUN_EXPORT PFNGLCLIENTACTIVETEXTUREPROC __glewClientActiveTexture;
  2875. GLEW_FUN_EXPORT PFNGLCOLOR4XPROC __glewColor4x;
  2876. GLEW_FUN_EXPORT PFNGLCOMPRESSEDTEXIMAGE2DPROC __glewCompressedTexImage2D;
  2877. GLEW_FUN_EXPORT PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC __glewCompressedTexSubImage2D;
  2878. GLEW_FUN_EXPORT PFNGLDEPTHRANGEFPROC __glewDepthRangef;
  2879. GLEW_FUN_EXPORT PFNGLDEPTHRANGEXPROC __glewDepthRangex;
  2880. GLEW_FUN_EXPORT PFNGLFOGXPROC __glewFogx;
  2881. GLEW_FUN_EXPORT PFNGLFOGXVPROC __glewFogxv;
  2882. GLEW_FUN_EXPORT PFNGLFRUSTUMFPROC __glewFrustumf;
  2883. GLEW_FUN_EXPORT PFNGLFRUSTUMXPROC __glewFrustumx;
  2884. GLEW_FUN_EXPORT PFNGLLIGHTMODELXPROC __glewLightModelx;
  2885. GLEW_FUN_EXPORT PFNGLLIGHTMODELXVPROC __glewLightModelxv;
  2886. GLEW_FUN_EXPORT PFNGLLIGHTXPROC __glewLightx;
  2887. GLEW_FUN_EXPORT PFNGLLIGHTXVPROC __glewLightxv;
  2888. GLEW_FUN_EXPORT PFNGLLINEWIDTHXPROC __glewLineWidthx;
  2889. GLEW_FUN_EXPORT PFNGLLOADMATRIXXPROC __glewLoadMatrixx;
  2890. GLEW_FUN_EXPORT PFNGLMATERIALXPROC __glewMaterialx;
  2891. GLEW_FUN_EXPORT PFNGLMATERIALXVPROC __glewMaterialxv;
  2892. GLEW_FUN_EXPORT PFNGLMULTMATRIXXPROC __glewMultMatrixx;
  2893. GLEW_FUN_EXPORT PFNGLMULTITEXCOORD4FPROC __glewMultiTexCoord4f;
  2894. GLEW_FUN_EXPORT PFNGLMULTITEXCOORD4XPROC __glewMultiTexCoord4x;
  2895. GLEW_FUN_EXPORT PFNGLNORMAL3XPROC __glewNormal3x;
  2896. GLEW_FUN_EXPORT PFNGLORTHOFPROC __glewOrthof;
  2897. GLEW_FUN_EXPORT PFNGLORTHOXPROC __glewOrthox;
  2898. GLEW_FUN_EXPORT PFNGLPOINTSIZEXPROC __glewPointSizex;
  2899. GLEW_FUN_EXPORT PFNGLPOLYGONOFFSETXPROC __glewPolygonOffsetx;
  2900. GLEW_FUN_EXPORT PFNGLROTATEXPROC __glewRotatex;
  2901. GLEW_FUN_EXPORT PFNGLSAMPLECOVERAGEPROC __glewSampleCoverage;
  2902. GLEW_FUN_EXPORT PFNGLSAMPLECOVERAGEXPROC __glewSampleCoveragex;
  2903. GLEW_FUN_EXPORT PFNGLSCALEXPROC __glewScalex;
  2904. GLEW_FUN_EXPORT PFNGLTEXENVXPROC __glewTexEnvx;
  2905. GLEW_FUN_EXPORT PFNGLTEXENVXVPROC __glewTexEnvxv;
  2906. GLEW_FUN_EXPORT PFNGLTEXPARAMETERXPROC __glewTexParameterx;
  2907. GLEW_FUN_EXPORT PFNGLTRANSLATEXPROC __glewTranslatex;
  2908. #endif // NOTE jwilkins
  2909. #if GL_ES_VERSION_CL_1_1 // NOTE jwilkins
  2910. GLEW_FUN_EXPORT PFNGLBINDBUFFERPROC __glewBindBuffer;
  2911. GLEW_FUN_EXPORT PFNGLBUFFERDATAPROC __glewBufferData;
  2912. GLEW_FUN_EXPORT PFNGLBUFFERSUBDATAPROC __glewBufferSubData;
  2913. GLEW_FUN_EXPORT PFNGLCLIPPLANEXPROC __glewClipPlanex;
  2914. GLEW_FUN_EXPORT PFNGLCOLOR4UBPROC __glewColor4ub;
  2915. GLEW_FUN_EXPORT PFNGLDELETEBUFFERSPROC __glewDeleteBuffers;
  2916. GLEW_FUN_EXPORT PFNGLGENBUFFERSPROC __glewGenBuffers;
  2917. GLEW_FUN_EXPORT PFNGLGETBOOLEANVPROC __glewGetBooleanv;
  2918. GLEW_FUN_EXPORT PFNGLGETBUFFERPARAMETERIVPROC __glewGetBufferParameteriv;
  2919. GLEW_FUN_EXPORT PFNGLGETCLIPPLANEXPROC __glewGetClipPlanex;
  2920. GLEW_FUN_EXPORT PFNGLGETFIXEDVPROC __glewGetFixedv;
  2921. GLEW_FUN_EXPORT PFNGLGETLIGHTXVPROC __glewGetLightxv;
  2922. GLEW_FUN_EXPORT PFNGLGETMATERIALXVPROC __glewGetMaterialxv;
  2923. GLEW_FUN_EXPORT PFNGLGETPOINTERVPROC __glewGetPointerv;
  2924. GLEW_FUN_EXPORT PFNGLGETTEXENVIVPROC __glewGetTexEnviv;
  2925. GLEW_FUN_EXPORT PFNGLGETTEXENVXVPROC __glewGetTexEnvxv;
  2926. GLEW_FUN_EXPORT PFNGLGETTEXPARAMETERIVPROC __glewGetTexParameteriv;
  2927. GLEW_FUN_EXPORT PFNGLGETTEXPARAMETERXVPROC __glewGetTexParameterxv;
  2928. GLEW_FUN_EXPORT PFNGLISBUFFERPROC __glewIsBuffer;
  2929. GLEW_FUN_EXPORT PFNGLISENABLEDPROC __glewIsEnabled;
  2930. GLEW_FUN_EXPORT PFNGLISTEXTUREPROC __glewIsTexture;
  2931. GLEW_FUN_EXPORT PFNGLPOINTPARAMETERXPROC __glewPointParameterx;
  2932. GLEW_FUN_EXPORT PFNGLPOINTPARAMETERXVPROC __glewPointParameterxv;
  2933. GLEW_FUN_EXPORT PFNGLTEXENVIPROC __glewTexEnvi;
  2934. GLEW_FUN_EXPORT PFNGLTEXENVIVPROC __glewTexEnviv;
  2935. GLEW_FUN_EXPORT PFNGLTEXPARAMETERIPROC __glewTexParameteri;
  2936. GLEW_FUN_EXPORT PFNGLTEXPARAMETERIVPROC __glewTexParameteriv;
  2937. GLEW_FUN_EXPORT PFNGLTEXPARAMETERXVPROC __glewTexParameterxv;
  2938. #endif // NOTE jwilkins
  2939. #if GL_ES_VERSION_CM_1_1 // XXX
  2940. GLEW_FUN_EXPORT PFNGLCLIPPLANEFPROC __glewClipPlanef;
  2941. GLEW_FUN_EXPORT PFNGLGETCLIPPLANEFPROC __glewGetClipPlanef;
  2942. GLEW_FUN_EXPORT PFNGLGETFLOATVPROC __glewGetFloatv;
  2943. GLEW_FUN_EXPORT PFNGLGETLIGHTFVPROC __glewGetLightfv;
  2944. GLEW_FUN_EXPORT PFNGLGETMATERIALFVPROC __glewGetMaterialfv;
  2945. GLEW_FUN_EXPORT PFNGLGETTEXENVFVPROC __glewGetTexEnvfv;
  2946. GLEW_FUN_EXPORT PFNGLGETTEXPARAMETERFVPROC __glewGetTexParameterfv;
  2947. GLEW_FUN_EXPORT PFNGLPOINTPARAMETERFPROC __glewPointParameterf;
  2948. GLEW_FUN_EXPORT PFNGLPOINTPARAMETERFVPROC __glewPointParameterfv;
  2949. GLEW_FUN_EXPORT PFNGLTEXPARAMETERFVPROC __glewTexParameterfv;
  2950. #endif // NOTE jwilkins
  2951. GLEW_FUN_EXPORT PFNGLATTACHSHADERPROC __glewAttachShader;
  2952. GLEW_FUN_EXPORT PFNGLBINDATTRIBLOCATIONPROC __glewBindAttribLocation;
  2953. GLEW_FUN_EXPORT PFNGLBINDFRAMEBUFFERPROC __glewBindFramebuffer;
  2954. GLEW_FUN_EXPORT PFNGLBINDRENDERBUFFERPROC __glewBindRenderbuffer;
  2955. GLEW_FUN_EXPORT PFNGLBLENDCOLORPROC __glewBlendColor;
  2956. GLEW_FUN_EXPORT PFNGLBLENDEQUATIONPROC __glewBlendEquation;
  2957. GLEW_FUN_EXPORT PFNGLBLENDEQUATIONSEPARATEPROC __glewBlendEquationSeparate;
  2958. GLEW_FUN_EXPORT PFNGLBLENDFUNCSEPARATEPROC __glewBlendFuncSeparate;
  2959. GLEW_FUN_EXPORT PFNGLCHECKFRAMEBUFFERSTATUSPROC __glewCheckFramebufferStatus;
  2960. GLEW_FUN_EXPORT PFNGLCOMPILESHADERPROC __glewCompileShader;
  2961. GLEW_FUN_EXPORT PFNGLCREATEPROGRAMPROC __glewCreateProgram;
  2962. GLEW_FUN_EXPORT PFNGLCREATESHADERPROC __glewCreateShader;
  2963. GLEW_FUN_EXPORT PFNGLDELETEFRAMEBUFFERSPROC __glewDeleteFramebuffers;
  2964. GLEW_FUN_EXPORT PFNGLDELETEPROGRAMPROC __glewDeleteProgram;
  2965. GLEW_FUN_EXPORT PFNGLDELETERENDERBUFFERSPROC __glewDeleteRenderbuffers;
  2966. GLEW_FUN_EXPORT PFNGLDELETESHADERPROC __glewDeleteShader;
  2967. GLEW_FUN_EXPORT PFNGLDETACHSHADERPROC __glewDetachShader;
  2968. GLEW_FUN_EXPORT PFNGLDISABLEVERTEXATTRIBARRAYPROC __glewDisableVertexAttribArray;
  2969. GLEW_FUN_EXPORT PFNGLENABLEVERTEXATTRIBARRAYPROC __glewEnableVertexAttribArray;
  2970. GLEW_FUN_EXPORT PFNGLFRAMEBUFFERRENDERBUFFERPROC __glewFramebufferRenderbuffer;
  2971. GLEW_FUN_EXPORT PFNGLFRAMEBUFFERTEXTURE2DPROC __glewFramebufferTexture2D;
  2972. GLEW_FUN_EXPORT PFNGLGENFRAMEBUFFERSPROC __glewGenFramebuffers;
  2973. GLEW_FUN_EXPORT PFNGLGENRENDERBUFFERSPROC __glewGenRenderbuffers;
  2974. GLEW_FUN_EXPORT PFNGLGENERATEMIPMAPPROC __glewGenerateMipmap;
  2975. GLEW_FUN_EXPORT PFNGLGETACTIVEATTRIBPROC __glewGetActiveAttrib;
  2976. GLEW_FUN_EXPORT PFNGLGETACTIVEUNIFORMPROC __glewGetActiveUniform;
  2977. GLEW_FUN_EXPORT PFNGLGETATTACHEDSHADERSPROC __glewGetAttachedShaders;
  2978. GLEW_FUN_EXPORT PFNGLGETATTRIBLOCATIONPROC __glewGetAttribLocation;
  2979. GLEW_FUN_EXPORT PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC __glewGetFramebufferAttachmentParameteriv;
  2980. GLEW_FUN_EXPORT PFNGLGETPROGRAMINFOLOGPROC __glewGetProgramInfoLog;
  2981. GLEW_FUN_EXPORT PFNGLGETPROGRAMIVPROC __glewGetProgramiv;
  2982. GLEW_FUN_EXPORT PFNGLGETRENDERBUFFERPARAMETERIVPROC __glewGetRenderbufferParameteriv;
  2983. GLEW_FUN_EXPORT PFNGLGETSHADERINFOLOGPROC __glewGetShaderInfoLog;
  2984. GLEW_FUN_EXPORT PFNGLGETSHADERPRECISIONFORMATPROC __glewGetShaderPrecisionFormat;
  2985. GLEW_FUN_EXPORT PFNGLGETSHADERSOURCEPROC __glewGetShaderSource;
  2986. GLEW_FUN_EXPORT PFNGLGETSHADERIVPROC __glewGetShaderiv;
  2987. GLEW_FUN_EXPORT PFNGLGETUNIFORMLOCATIONPROC __glewGetUniformLocation;
  2988. GLEW_FUN_EXPORT PFNGLGETUNIFORMFVPROC __glewGetUniformfv;
  2989. GLEW_FUN_EXPORT PFNGLGETUNIFORMIVPROC __glewGetUniformiv;
  2990. GLEW_FUN_EXPORT PFNGLGETVERTEXATTRIBPOINTERVPROC __glewGetVertexAttribPointerv;
  2991. GLEW_FUN_EXPORT PFNGLGETVERTEXATTRIBFVPROC __glewGetVertexAttribfv;
  2992. GLEW_FUN_EXPORT PFNGLGETVERTEXATTRIBIVPROC __glewGetVertexAttribiv;
  2993. GLEW_FUN_EXPORT PFNGLISFRAMEBUFFERPROC __glewIsFramebuffer;
  2994. GLEW_FUN_EXPORT PFNGLISPROGRAMPROC __glewIsProgram;
  2995. GLEW_FUN_EXPORT PFNGLISRENDERBUFFERPROC __glewIsRenderbuffer;
  2996. GLEW_FUN_EXPORT PFNGLISSHADERPROC __glewIsShader;
  2997. GLEW_FUN_EXPORT PFNGLLINKPROGRAMPROC __glewLinkProgram;
  2998. GLEW_FUN_EXPORT PFNGLRELEASESHADERCOMPILERPROC __glewReleaseShaderCompiler;
  2999. GLEW_FUN_EXPORT PFNGLRENDERBUFFERSTORAGEPROC __glewRenderbufferStorage;
  3000. GLEW_FUN_EXPORT PFNGLSHADERBINARYPROC __glewShaderBinary;
  3001. GLEW_FUN_EXPORT PFNGLSHADERSOURCEPROC __glewShaderSource;
  3002. GLEW_FUN_EXPORT PFNGLSTENCILFUNCSEPARATEPROC __glewStencilFuncSeparate;
  3003. GLEW_FUN_EXPORT PFNGLSTENCILMASKSEPARATEPROC __glewStencilMaskSeparate;
  3004. GLEW_FUN_EXPORT PFNGLSTENCILOPSEPARATEPROC __glewStencilOpSeparate;
  3005. GLEW_FUN_EXPORT PFNGLUNIFORM1FPROC __glewUniform1f;
  3006. GLEW_FUN_EXPORT PFNGLUNIFORM1FVPROC __glewUniform1fv;
  3007. GLEW_FUN_EXPORT PFNGLUNIFORM1IPROC __glewUniform1i;
  3008. GLEW_FUN_EXPORT PFNGLUNIFORM1IVPROC __glewUniform1iv;
  3009. GLEW_FUN_EXPORT PFNGLUNIFORM2FPROC __glewUniform2f;
  3010. GLEW_FUN_EXPORT PFNGLUNIFORM2FVPROC __glewUniform2fv;
  3011. GLEW_FUN_EXPORT PFNGLUNIFORM2IPROC __glewUniform2i;
  3012. GLEW_FUN_EXPORT PFNGLUNIFORM2IVPROC __glewUniform2iv;
  3013. GLEW_FUN_EXPORT PFNGLUNIFORM3FPROC __glewUniform3f;
  3014. GLEW_FUN_EXPORT PFNGLUNIFORM3FVPROC __glewUniform3fv;
  3015. GLEW_FUN_EXPORT PFNGLUNIFORM3IPROC __glewUniform3i;
  3016. GLEW_FUN_EXPORT PFNGLUNIFORM3IVPROC __glewUniform3iv;
  3017. GLEW_FUN_EXPORT PFNGLUNIFORM4FPROC __glewUniform4f;
  3018. GLEW_FUN_EXPORT PFNGLUNIFORM4FVPROC __glewUniform4fv;
  3019. GLEW_FUN_EXPORT PFNGLUNIFORM4IPROC __glewUniform4i;
  3020. GLEW_FUN_EXPORT PFNGLUNIFORM4IVPROC __glewUniform4iv;
  3021. GLEW_FUN_EXPORT PFNGLUNIFORMMATRIX2FVPROC __glewUniformMatrix2fv;
  3022. GLEW_FUN_EXPORT PFNGLUNIFORMMATRIX3FVPROC __glewUniformMatrix3fv;
  3023. GLEW_FUN_EXPORT PFNGLUNIFORMMATRIX4FVPROC __glewUniformMatrix4fv;
  3024. GLEW_FUN_EXPORT PFNGLUSEPROGRAMPROC __glewUseProgram;
  3025. GLEW_FUN_EXPORT PFNGLVALIDATEPROGRAMPROC __glewValidateProgram;
  3026. GLEW_FUN_EXPORT PFNGLVERTEXATTRIB1FPROC __glewVertexAttrib1f;
  3027. GLEW_FUN_EXPORT PFNGLVERTEXATTRIB1FVPROC __glewVertexAttrib1fv;
  3028. GLEW_FUN_EXPORT PFNGLVERTEXATTRIB2FPROC __glewVertexAttrib2f;
  3029. GLEW_FUN_EXPORT PFNGLVERTEXATTRIB2FVPROC __glewVertexAttrib2fv;
  3030. GLEW_FUN_EXPORT PFNGLVERTEXATTRIB3FPROC __glewVertexAttrib3f;
  3031. GLEW_FUN_EXPORT PFNGLVERTEXATTRIB3FVPROC __glewVertexAttrib3fv;
  3032. GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4FPROC __glewVertexAttrib4f;
  3033. GLEW_FUN_EXPORT PFNGLVERTEXATTRIB4FVPROC __glewVertexAttrib4fv;
  3034. GLEW_FUN_EXPORT PFNGLVERTEXATTRIBPOINTERPROC __glewVertexAttribPointer;
  3035. #if !GL_ES_VERSION_CL_1_1 // NOTE jwilkins
  3036. GLEW_FUN_EXPORT PFNGLBINDBUFFERPROC __glewBindBuffer; // NOTE jwilkins: missing function
  3037. GLEW_FUN_EXPORT PFNGLBUFFERDATAPROC __glewBufferData; // NOTE jwilkins: missing function
  3038. GLEW_FUN_EXPORT PFNGLBUFFERSUBDATAPROC __glewBufferSubData; // NOTE jwilkins: missing function
  3039. GLEW_FUN_EXPORT PFNGLDELETEBUFFERSPROC __glewDeleteBuffers; // NOTE jwilkins: missing function
  3040. GLEW_FUN_EXPORT PFNGLGENBUFFERSPROC __glewGenBuffers; // NOTE jwilkins: missing function
  3041. GLEW_FUN_EXPORT PFNGLTEXPARAMETERIPROC __glewTexParameteri; // NOTE jwilkins: missing function
  3042. GLEW_FUN_EXPORT PFNGLISENABLEDPROC __glewIsEnabled; // NOTE jwilkins: missing function
  3043. GLEW_FUN_EXPORT PFNGLGETFLOATVPROC __glewGetFloatv; // NOTE jwilkins: missing function
  3044. GLEW_FUN_EXPORT PFNGLDEPTHRANGEFPROC __glewDepthRangef; // NOTE jwilkins: missing function
  3045. GLEW_FUN_EXPORT PFNGLACTIVETEXTUREPROC __glewActiveTexture; // NOTE jwilkins: missing function
  3046. GLEW_FUN_EXPORT PFNGLGETBOOLEANVPROC __glewGetBooleanv; // NOTE jwilkins: missing function
  3047. #endif // XXX
  3048. GLEW_FUN_EXPORT PFNGLBEGINPERFMONITORAMDPROC __glewBeginPerfMonitorAMD;
  3049. GLEW_FUN_EXPORT PFNGLDELETEPERFMONITORSAMDPROC __glewDeletePerfMonitorsAMD;
  3050. GLEW_FUN_EXPORT PFNGLENDPERFMONITORAMDPROC __glewEndPerfMonitorAMD;
  3051. GLEW_FUN_EXPORT PFNGLGENPERFMONITORSAMDPROC __glewGenPerfMonitorsAMD;
  3052. GLEW_FUN_EXPORT PFNGLGETPERFMONITORCOUNTERDATAAMDPROC __glewGetPerfMonitorCounterDataAMD;
  3053. GLEW_FUN_EXPORT PFNGLGETPERFMONITORCOUNTERINFOAMDPROC __glewGetPerfMonitorCounterInfoAMD;
  3054. GLEW_FUN_EXPORT PFNGLGETPERFMONITORCOUNTERSTRINGAMDPROC __glewGetPerfMonitorCounterStringAMD;
  3055. GLEW_FUN_EXPORT PFNGLGETPERFMONITORCOUNTERSAMDPROC __glewGetPerfMonitorCountersAMD;
  3056. GLEW_FUN_EXPORT PFNGLGETPERFMONITORGROUPSTRINGAMDPROC __glewGetPerfMonitorGroupStringAMD;
  3057. GLEW_FUN_EXPORT PFNGLGETPERFMONITORGROUPSAMDPROC __glewGetPerfMonitorGroupsAMD;
  3058. GLEW_FUN_EXPORT PFNGLSELECTPERFMONITORCOUNTERSAMDPROC __glewSelectPerfMonitorCountersAMD;
  3059. GLEW_FUN_EXPORT PFNGLBLITFRAMEBUFFERANGLEPROC __glewBlitFramebufferANGLE;
  3060. GLEW_FUN_EXPORT PFNGLRENDERBUFFERSTORAGEMULTISAMPLEANGLEPROC __glewRenderbufferStorageMultisampleANGLE;
  3061. GLEW_FUN_EXPORT PFNGLDRAWARRAYSINSTANCEDANGLEPROC __glewDrawArraysInstancedANGLE;
  3062. GLEW_FUN_EXPORT PFNGLDRAWELEMENTSINSTANCEDANGLEPROC __glewDrawElementsInstancedANGLE;
  3063. GLEW_FUN_EXPORT PFNGLVERTEXATTRIBDIVISORANGLEPROC __glewVertexAttribDivisorANGLE;
  3064. GLEW_FUN_EXPORT PFNGLGETTRANSLATEDSHADERSOURCEANGLEPROC __glewGetTranslatedShaderSourceANGLE;
  3065. GLEW_FUN_EXPORT PFNGLCOPYTEXTURELEVELSAPPLEPROC __glewCopyTextureLevelsAPPLE;
  3066. GLEW_FUN_EXPORT PFNGLRENDERBUFFERSTORAGEMULTISAMPLEAPPLEPROC __glewRenderbufferStorageMultisampleAPPLE;
  3067. GLEW_FUN_EXPORT PFNGLRESOLVEMULTISAMPLEFRAMEBUFFERAPPLEPROC __glewResolveMultisampleFramebufferAPPLE;
  3068. GLEW_FUN_EXPORT PFNGLCLIENTWAITSYNCAPPLEPROC __glewClientWaitSyncAPPLE;
  3069. GLEW_FUN_EXPORT PFNGLDELETESYNCAPPLEPROC __glewDeleteSyncAPPLE;
  3070. GLEW_FUN_EXPORT PFNGLFENCESYNCAPPLEPROC __glewFenceSyncAPPLE;
  3071. GLEW_FUN_EXPORT PFNGLGETINTEGER64VAPPLEPROC __glewGetInteger64vAPPLE;
  3072. GLEW_FUN_EXPORT PFNGLGETSYNCIVAPPLEPROC __glewGetSyncivAPPLE;
  3073. GLEW_FUN_EXPORT PFNGLISSYNCAPPLEPROC __glewIsSyncAPPLE;
  3074. GLEW_FUN_EXPORT PFNGLWAITSYNCAPPLEPROC __glewWaitSyncAPPLE;
  3075. GLEW_FUN_EXPORT PFNGLBLENDEQUATIONEXTPROC __glewBlendEquationEXT;
  3076. GLEW_FUN_EXPORT PFNGLGETOBJECTLABELEXTPROC __glewGetObjectLabelEXT;
  3077. GLEW_FUN_EXPORT PFNGLLABELOBJECTEXTPROC __glewLabelObjectEXT;
  3078. GLEW_FUN_EXPORT PFNGLINSERTEVENTMARKEREXTPROC __glewInsertEventMarkerEXT;
  3079. GLEW_FUN_EXPORT PFNGLPUSHGROUPMARKEREXTPROC __glewPushGroupMarkerEXT;
  3080. GLEW_FUN_EXPORT PFNGLDISCARDFRAMEBUFFEREXTPROC __glewDiscardFramebufferEXT;
  3081. GLEW_FUN_EXPORT PFNGLFLUSHMAPPEDBUFFERRANGEEXTPROC __glewFlushMappedBufferRangeEXT;
  3082. GLEW_FUN_EXPORT PFNGLMAPBUFFERRANGEEXTPROC __glewMapBufferRangeEXT;
  3083. GLEW_FUN_EXPORT PFNGLMULTIDRAWARRAYSEXTPROC __glewMultiDrawArraysEXT;
  3084. GLEW_FUN_EXPORT PFNGLMULTIDRAWELEMENTSEXTPROC __glewMultiDrawElementsEXT;
  3085. GLEW_FUN_EXPORT PFNGLFRAMEBUFFERTEXTURE2DMULTISAMPLEEXTPROC __glewFramebufferTexture2DMultisampleEXT;
  3086. GLEW_FUN_EXPORT PFNGLRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC __glewRenderbufferStorageMultisampleEXT;
  3087. GLEW_FUN_EXPORT PFNGLDRAWBUFFERSINDEXEDEXTPROC __glewDrawBuffersIndexedEXT;
  3088. GLEW_FUN_EXPORT PFNGLGETINTEGERI_VEXTPROC __glewGetIntegeri_vEXT;
  3089. GLEW_FUN_EXPORT PFNGLREADBUFFERINDEXEDEXTPROC __glewReadBufferIndexedEXT;
  3090. GLEW_FUN_EXPORT PFNGLBEGINQUERYEXTPROC __glewBeginQueryEXT;
  3091. GLEW_FUN_EXPORT PFNGLDELETEQUERIESEXTPROC __glewDeleteQueriesEXT;
  3092. GLEW_FUN_EXPORT PFNGLENDQUERYEXTPROC __glewEndQueryEXT;
  3093. GLEW_FUN_EXPORT PFNGLGENQUERIESEXTPROC __glewGenQueriesEXT;
  3094. GLEW_FUN_EXPORT PFNGLGETQUERYOBJECTUIVEXTPROC __glewGetQueryObjectuivEXT;
  3095. GLEW_FUN_EXPORT PFNGLGETQUERYIVEXTPROC __glewGetQueryivEXT;
  3096. GLEW_FUN_EXPORT PFNGLISQUERYEXTPROC __glewIsQueryEXT;
  3097. GLEW_FUN_EXPORT PFNGLGETNUNIFORMFVEXTPROC __glewGetnUniformfvEXT;
  3098. GLEW_FUN_EXPORT PFNGLGETNUNIFORMIVEXTPROC __glewGetnUniformivEXT;
  3099. GLEW_FUN_EXPORT PFNGLREADNPIXELSEXTPROC __glewReadnPixelsEXT;
  3100. #if 0 // NOTE jwilkins: there is an inconsistency between the ES and Non-ES versions of this extension??
  3101. GLEW_FUN_EXPORT PFNGLACTIVESHADERPROGRAMEXTPROC __glewActiveShaderProgramEXT;
  3102. GLEW_FUN_EXPORT PFNGLBINDPROGRAMPIPELINEEXTPROC __glewBindProgramPipelineEXT;
  3103. GLEW_FUN_EXPORT PFNGLCREATESHADERPROGRAMVEXTPROC __glewCreateShaderProgramvEXT;
  3104. GLEW_FUN_EXPORT PFNGLDELETEPROGRAMPIPELINESEXTPROC __glewDeleteProgramPipelinesEXT;
  3105. GLEW_FUN_EXPORT PFNGLGENPROGRAMPIPELINESEXTPROC __glewGenProgramPipelinesEXT;
  3106. GLEW_FUN_EXPORT PFNGLGETPROGRAMPIPELINEINFOLOGEXTPROC __glewGetProgramPipelineInfoLogEXT;
  3107. GLEW_FUN_EXPORT PFNGLGETPROGRAMPIPELINEIVEXTPROC __glewGetProgramPipelineivEXT;
  3108. GLEW_FUN_EXPORT PFNGLISPROGRAMPIPELINEEXTPROC __glewIsProgramPipelineEXT;
  3109. GLEW_FUN_EXPORT PFNGLPROGRAMPARAMETERIEXTPROC __glewProgramParameteriEXT;
  3110. GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM1FEXTPROC __glewProgramUniform1fEXT;
  3111. GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM1FVEXTPROC __glewProgramUniform1fvEXT;
  3112. GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM1IEXTPROC __glewProgramUniform1iEXT;
  3113. GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM1IVEXTPROC __glewProgramUniform1ivEXT;
  3114. GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM2FEXTPROC __glewProgramUniform2fEXT;
  3115. GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM2FVEXTPROC __glewProgramUniform2fvEXT;
  3116. GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM2IEXTPROC __glewProgramUniform2iEXT;
  3117. GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM2IVEXTPROC __glewProgramUniform2ivEXT;
  3118. GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM3FEXTPROC __glewProgramUniform3fEXT;
  3119. GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM3FVEXTPROC __glewProgramUniform3fvEXT;
  3120. GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM3IEXTPROC __glewProgramUniform3iEXT;
  3121. GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM3IVEXTPROC __glewProgramUniform3ivEXT;
  3122. GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM4FEXTPROC __glewProgramUniform4fEXT;
  3123. GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM4FVEXTPROC __glewProgramUniform4fvEXT;
  3124. GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM4IEXTPROC __glewProgramUniform4iEXT;
  3125. GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORM4IVEXTPROC __glewProgramUniform4ivEXT;
  3126. GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX2FVEXTPROC __glewProgramUniformMatrix2fvEXT;
  3127. GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX3FVEXTPROC __glewProgramUniformMatrix3fvEXT;
  3128. GLEW_FUN_EXPORT PFNGLPROGRAMUNIFORMMATRIX4FVEXTPROC __glewProgramUniformMatrix4fvEXT;
  3129. GLEW_FUN_EXPORT PFNGLUSEPROGRAMSTAGESEXTPROC __glewUseProgramStagesEXT;
  3130. GLEW_FUN_EXPORT PFNGLVALIDATEPROGRAMPIPELINEEXTPROC __glewValidateProgramPipelineEXT;
  3131. #endif // XXX
  3132. GLEW_FUN_EXPORT PFNGLTEXSTORAGE1DEXTPROC __glewTexStorage1DEXT;
  3133. GLEW_FUN_EXPORT PFNGLTEXSTORAGE2DEXTPROC __glewTexStorage2DEXT;
  3134. GLEW_FUN_EXPORT PFNGLTEXSTORAGE3DEXTPROC __glewTexStorage3DEXT;
  3135. GLEW_FUN_EXPORT PFNGLTEXTURESTORAGE1DEXTPROC __glewTextureStorage1DEXT;
  3136. GLEW_FUN_EXPORT PFNGLTEXTURESTORAGE2DEXTPROC __glewTextureStorage2DEXT;
  3137. GLEW_FUN_EXPORT PFNGLTEXTURESTORAGE3DEXTPROC __glewTextureStorage3DEXT;
  3138. GLEW_FUN_EXPORT PFNGLFRAMEBUFFERTEXTURE2DMULTISAMPLEIMGPROC __glewFramebufferTexture2DMultisampleIMG;
  3139. GLEW_FUN_EXPORT PFNGLRENDERBUFFERSTORAGEMULTISAMPLEIMGPROC __glewRenderbufferStorageMultisampleIMG;
  3140. GLEW_FUN_EXPORT PFNGLCLIPPLANEFIMGPROC __glewClipPlanefIMG;
  3141. GLEW_FUN_EXPORT PFNGLDEBUGMESSAGECALLBACKPROC __glewDebugMessageCallback;
  3142. GLEW_FUN_EXPORT PFNGLDEBUGMESSAGECONTROLPROC __glewDebugMessageControl;
  3143. GLEW_FUN_EXPORT PFNGLDEBUGMESSAGEINSERTPROC __glewDebugMessageInsert;
  3144. GLEW_FUN_EXPORT PFNGLGETDEBUGMESSAGELOGPROC __glewGetDebugMessageLog;
  3145. GLEW_FUN_EXPORT PFNGLGETOBJECTLABELPROC __glewGetObjectLabel;
  3146. GLEW_FUN_EXPORT PFNGLGETOBJECTPTRLABELPROC __glewGetObjectPtrLabel;
  3147. GLEW_FUN_EXPORT PFNGLGETPOINTERVPROC __glewGetPointerv;
  3148. GLEW_FUN_EXPORT PFNGLOBJECTLABELPROC __glewObjectLabel;
  3149. GLEW_FUN_EXPORT PFNGLOBJECTPTRLABELPROC __glewObjectPtrLabel;
  3150. GLEW_FUN_EXPORT PFNGLPOPDEBUGGROUPPROC __glewPopDebugGroup;
  3151. GLEW_FUN_EXPORT PFNGLPUSHDEBUGGROUPPROC __glewPushDebugGroup;
  3152. GLEW_FUN_EXPORT PFNGLSTEREOPARAMETERFNVPROC __glewStereoParameterfNV;
  3153. GLEW_FUN_EXPORT PFNGLSTEREOPARAMETERINVPROC __glewStereoParameteriNV;
  3154. GLEW_FUN_EXPORT PFNGLCOVERAGEMASKNVPROC __glewCoverageMaskNV;
  3155. GLEW_FUN_EXPORT PFNGLCOVERAGEOPERATIONNVPROC __glewCoverageOperationNV;
  3156. GLEW_FUN_EXPORT PFNGLDRAWBUFFERSNVPROC __glewDrawBuffersNV;
  3157. GLEW_FUN_EXPORT PFNGLDRAWTEXTURENVPROC __glewDrawTextureNV;
  3158. GLEW_FUN_EXPORT PFNGLDELETEFENCESNVPROC __glewDeleteFencesNV;
  3159. GLEW_FUN_EXPORT PFNGLFINISHFENCENVPROC __glewFinishFenceNV;
  3160. GLEW_FUN_EXPORT PFNGLGENFENCESNVPROC __glewGenFencesNV;
  3161. GLEW_FUN_EXPORT PFNGLGETFENCEIVNVPROC __glewGetFenceivNV;
  3162. GLEW_FUN_EXPORT PFNGLISFENCENVPROC __glewIsFenceNV;
  3163. GLEW_FUN_EXPORT PFNGLSETFENCENVPROC __glewSetFenceNV;
  3164. GLEW_FUN_EXPORT PFNGLTESTFENCENVPROC __glewTestFenceNV;
  3165. GLEW_FUN_EXPORT PFNGLREADBUFFERNVPROC __glewReadBufferNV;
  3166. GLEW_FUN_EXPORT PFNGLCOMPRESSEDTEXIMAGE3DNVPROC __glewCompressedTexImage3DNV;
  3167. GLEW_FUN_EXPORT PFNGLCOMPRESSEDTEXSUBIMAGE3DNVPROC __glewCompressedTexSubImage3DNV;
  3168. GLEW_FUN_EXPORT PFNGLCOPYTEXSUBIMAGE3DNVPROC __glewCopyTexSubImage3DNV;
  3169. GLEW_FUN_EXPORT PFNGLFRAMEBUFFERTEXTURELAYERNVPROC __glewFramebufferTextureLayerNV;
  3170. GLEW_FUN_EXPORT PFNGLTEXIMAGE3DNVPROC __glewTexImage3DNV;
  3171. GLEW_FUN_EXPORT PFNGLTEXSUBIMAGE3DNVPROC __glewTexSubImage3DNV;
  3172. GLEW_FUN_EXPORT PFNGLEGLIMAGETARGETRENDERBUFFERSTORAGEOESPROC __glewEGLImageTargetRenderbufferStorageOES;
  3173. GLEW_FUN_EXPORT PFNGLEGLIMAGETARGETTEXTURE2DOESPROC __glewEGLImageTargetTexture2DOES;
  3174. GLEW_FUN_EXPORT PFNGLBLENDEQUATIONSEPARATEOESPROC __glewBlendEquationSeparateOES;
  3175. GLEW_FUN_EXPORT PFNGLBLENDFUNCSEPARATEOESPROC __glewBlendFuncSeparateOES;
  3176. GLEW_FUN_EXPORT PFNGLBLENDEQUATIONOESPROC __glewBlendEquationOES;
  3177. GLEW_FUN_EXPORT PFNGLBINDFRAMEBUFFEROESPROC __glewBindFramebufferOES;
  3178. GLEW_FUN_EXPORT PFNGLBINDRENDERBUFFEROESPROC __glewBindRenderbufferOES;
  3179. GLEW_FUN_EXPORT PFNGLCHECKFRAMEBUFFERSTATUSOESPROC __glewCheckFramebufferStatusOES;
  3180. GLEW_FUN_EXPORT PFNGLDELETEFRAMEBUFFERSOESPROC __glewDeleteFramebuffersOES;
  3181. GLEW_FUN_EXPORT PFNGLDELETERENDERBUFFERSOESPROC __glewDeleteRenderbuffersOES;
  3182. GLEW_FUN_EXPORT PFNGLFRAMEBUFFERRENDERBUFFEROESPROC __glewFramebufferRenderbufferOES;
  3183. GLEW_FUN_EXPORT PFNGLFRAMEBUFFERTEXTURE2DOESPROC __glewFramebufferTexture2DOES;
  3184. GLEW_FUN_EXPORT PFNGLGENFRAMEBUFFERSOESPROC __glewGenFramebuffersOES;
  3185. GLEW_FUN_EXPORT PFNGLGENRENDERBUFFERSOESPROC __glewGenRenderbuffersOES;
  3186. GLEW_FUN_EXPORT PFNGLGENERATEMIPMAPOESPROC __glewGenerateMipmapOES;
  3187. GLEW_FUN_EXPORT PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVOESPROC __glewGetFramebufferAttachmentParameterivOES;
  3188. GLEW_FUN_EXPORT PFNGLGETRENDERBUFFERPARAMETERIVOESPROC __glewGetRenderbufferParameterivOES;
  3189. GLEW_FUN_EXPORT PFNGLISFRAMEBUFFEROESPROC __glewIsFramebufferOES;
  3190. GLEW_FUN_EXPORT PFNGLISRENDERBUFFEROESPROC __glewIsRenderbufferOES;
  3191. GLEW_FUN_EXPORT PFNGLRENDERBUFFERSTORAGEOESPROC __glewRenderbufferStorageOES;
  3192. GLEW_FUN_EXPORT PFNGLGETPROGRAMBINARYOESPROC __glewGetProgramBinaryOES;
  3193. GLEW_FUN_EXPORT PFNGLPROGRAMBINARYOESPROC __glewProgramBinaryOES;
  3194. GLEW_FUN_EXPORT PFNGLGETBUFFERPOINTERVOESPROC __glewGetBufferPointervOES;
  3195. GLEW_FUN_EXPORT PFNGLMAPBUFFEROESPROC __glewMapBufferOES;
  3196. GLEW_FUN_EXPORT PFNGLUNMAPBUFFEROESPROC __glewUnmapBufferOES;
  3197. GLEW_FUN_EXPORT PFNGLCURRENTPALETTEMATRIXOESPROC __glewCurrentPaletteMatrixOES;
  3198. GLEW_FUN_EXPORT PFNGLMATRIXINDEXPOINTEROESPROC __glewMatrixIndexPointerOES;
  3199. GLEW_FUN_EXPORT PFNGLWEIGHTPOINTEROESPROC __glewWeightPointerOES;
  3200. GLEW_FUN_EXPORT PFNGLPOINTSIZEPOINTEROESPROC __glewPointSizePointerOES;
  3201. GLEW_FUN_EXPORT PFNGLCLEARDEPTHFOESPROC __glewClearDepthfOES;
  3202. GLEW_FUN_EXPORT PFNGLCLIPPLANEFOESPROC __glewClipPlanefOES;
  3203. GLEW_FUN_EXPORT PFNGLDEPTHRANGEFOESPROC __glewDepthRangefOES;
  3204. GLEW_FUN_EXPORT PFNGLFRUSTUMFOESPROC __glewFrustumfOES;
  3205. GLEW_FUN_EXPORT PFNGLGETCLIPPLANEFOESPROC __glewGetClipPlanefOES;
  3206. GLEW_FUN_EXPORT PFNGLORTHOFOESPROC __glewOrthofOES;
  3207. GLEW_FUN_EXPORT PFNGLCOMPRESSEDTEXIMAGE3DOESPROC __glewCompressedTexImage3DOES;
  3208. GLEW_FUN_EXPORT PFNGLCOMPRESSEDTEXSUBIMAGE3DOESPROC __glewCompressedTexSubImage3DOES;
  3209. GLEW_FUN_EXPORT PFNGLCOPYTEXSUBIMAGE3DOESPROC __glewCopyTexSubImage3DOES;
  3210. GLEW_FUN_EXPORT PFNGLFRAMEBUFFERTEXTURE3DOESPROC __glewFramebufferTexture3DOES;
  3211. GLEW_FUN_EXPORT PFNGLTEXIMAGE3DOESPROC __glewTexImage3DOES;
  3212. GLEW_FUN_EXPORT PFNGLTEXSUBIMAGE3DOESPROC __glewTexSubImage3DOES;
  3213. GLEW_FUN_EXPORT PFNGLGETTEXGENFVOESPROC __glewGetTexGenfvOES;
  3214. GLEW_FUN_EXPORT PFNGLGETTEXGENIVOESPROC __glewGetTexGenivOES;
  3215. GLEW_FUN_EXPORT PFNGLGETTEXGENXVOESPROC __glewGetTexGenxvOES;
  3216. GLEW_FUN_EXPORT PFNGLTEXGENFOESPROC __glewTexGenfOES;
  3217. GLEW_FUN_EXPORT PFNGLTEXGENFVOESPROC __glewTexGenfvOES;
  3218. GLEW_FUN_EXPORT PFNGLTEXGENIOESPROC __glewTexGeniOES;
  3219. GLEW_FUN_EXPORT PFNGLTEXGENIVOESPROC __glewTexGenivOES;
  3220. GLEW_FUN_EXPORT PFNGLTEXGENXOESPROC __glewTexGenxOES;
  3221. GLEW_FUN_EXPORT PFNGLTEXGENXVOESPROC __glewTexGenxvOES;
  3222. GLEW_FUN_EXPORT PFNGLBINDVERTEXARRAYOESPROC __glewBindVertexArrayOES;
  3223. GLEW_FUN_EXPORT PFNGLDELETEVERTEXARRAYSOESPROC __glewDeleteVertexArraysOES;
  3224. GLEW_FUN_EXPORT PFNGLGENVERTEXARRAYSOESPROC __glewGenVertexArraysOES;
  3225. GLEW_FUN_EXPORT PFNGLISVERTEXARRAYOESPROC __glewIsVertexArrayOES;
  3226. GLEW_FUN_EXPORT PFNGLALPHAFUNCQCOMPROC __glewAlphaFuncQCOM;
  3227. GLEW_FUN_EXPORT PFNGLDISABLEDRIVERCONTROLQCOMPROC __glewDisableDriverControlQCOM;
  3228. GLEW_FUN_EXPORT PFNGLENABLEDRIVERCONTROLQCOMPROC __glewEnableDriverControlQCOM;
  3229. GLEW_FUN_EXPORT PFNGLGETDRIVERCONTROLSTRINGQCOMPROC __glewGetDriverControlStringQCOM;
  3230. GLEW_FUN_EXPORT PFNGLGETDRIVERCONTROLSQCOMPROC __glewGetDriverControlsQCOM;
  3231. GLEW_FUN_EXPORT PFNGLEXTGETBUFFERPOINTERVQCOMPROC __glewExtGetBufferPointervQCOM;
  3232. GLEW_FUN_EXPORT PFNGLEXTGETBUFFERSQCOMPROC __glewExtGetBuffersQCOM;
  3233. GLEW_FUN_EXPORT PFNGLEXTGETFRAMEBUFFERSQCOMPROC __glewExtGetFramebuffersQCOM;
  3234. GLEW_FUN_EXPORT PFNGLEXTGETRENDERBUFFERSQCOMPROC __glewExtGetRenderbuffersQCOM;
  3235. GLEW_FUN_EXPORT PFNGLEXTGETTEXLEVELPARAMETERIVQCOMPROC __glewExtGetTexLevelParameterivQCOM;
  3236. GLEW_FUN_EXPORT PFNGLEXTGETTEXSUBIMAGEQCOMPROC __glewExtGetTexSubImageQCOM;
  3237. GLEW_FUN_EXPORT PFNGLEXTGETTEXTURESQCOMPROC __glewExtGetTexturesQCOM;
  3238. GLEW_FUN_EXPORT PFNGLEXTTEXOBJECTSTATEOVERRIDEIQCOMPROC __glewExtTexObjectStateOverrideiQCOM;
  3239. GLEW_FUN_EXPORT PFNGLEXTGETPROGRAMBINARYSOURCEQCOMPROC __glewExtGetProgramBinarySourceQCOM;
  3240. GLEW_FUN_EXPORT PFNGLEXTGETPROGRAMSQCOMPROC __glewExtGetProgramsQCOM;
  3241. GLEW_FUN_EXPORT PFNGLEXTGETSHADERSQCOMPROC __glewExtGetShadersQCOM;
  3242. GLEW_FUN_EXPORT PFNGLEXTISPROGRAMBINARYQCOMPROC __glewExtIsProgramBinaryQCOM;
  3243. GLEW_FUN_EXPORT PFNGLENDTILINGQCOMPROC __glewEndTilingQCOM;
  3244. GLEW_FUN_EXPORT PFNGLSTARTTILINGQCOMPROC __glewStartTilingQCOM;
  3245. GLEW_FUN_EXPORT PFNGLMULTIDRAWARRAYSSUNPROC __glewMultiDrawArraysSUN;
  3246. GLEW_FUN_EXPORT PFNGLMULTIDRAWELEMENTSSUNPROC __glewMultiDrawElementsSUN;
  3247. #if defined(GLEW_MX) && !defined(_WIN32)
  3248. struct GLEWContextStruct
  3249. {
  3250. #endif /* GLEW_MX */
  3251. GLEW_VAR_EXPORT GLboolean __GLEW_ES_VERSION_1_0;
  3252. GLEW_VAR_EXPORT GLboolean __GLEW_ES_VERSION_CL_1_1;
  3253. GLEW_VAR_EXPORT GLboolean __GLEW_ES_VERSION_CM_1_1;
  3254. GLEW_VAR_EXPORT GLboolean __GLEW_ES_VERSION_2_0;
  3255. GLEW_VAR_EXPORT GLboolean __GLEW_AMD_compressed_3DC_texture;
  3256. GLEW_VAR_EXPORT GLboolean __GLEW_AMD_compressed_ATC_texture;
  3257. GLEW_VAR_EXPORT GLboolean __GLEW_AMD_performance_monitor;
  3258. GLEW_VAR_EXPORT GLboolean __GLEW_AMD_program_binary_Z400;
  3259. GLEW_VAR_EXPORT GLboolean __GLEW_ANGLE_framebuffer_blit;
  3260. GLEW_VAR_EXPORT GLboolean __GLEW_ANGLE_framebuffer_multisample;
  3261. GLEW_VAR_EXPORT GLboolean __GLEW_ANGLE_instanced_arrays;
  3262. GLEW_VAR_EXPORT GLboolean __GLEW_ANGLE_pack_reverse_row_order;
  3263. GLEW_VAR_EXPORT GLboolean __GLEW_ANGLE_texture_compression_dxt3;
  3264. GLEW_VAR_EXPORT GLboolean __GLEW_ANGLE_texture_compression_dxt5;
  3265. GLEW_VAR_EXPORT GLboolean __GLEW_ANGLE_texture_usage;
  3266. GLEW_VAR_EXPORT GLboolean __GLEW_ANGLE_translated_shader_source;
  3267. GLEW_VAR_EXPORT GLboolean __GLEW_APPLE_copy_texture_levels;
  3268. GLEW_VAR_EXPORT GLboolean __GLEW_APPLE_framebuffer_multisample;
  3269. GLEW_VAR_EXPORT GLboolean __GLEW_APPLE_rgb_422;
  3270. GLEW_VAR_EXPORT GLboolean __GLEW_APPLE_sync;
  3271. GLEW_VAR_EXPORT GLboolean __GLEW_APPLE_texture_2D_limited_npot;
  3272. GLEW_VAR_EXPORT GLboolean __GLEW_APPLE_texture_format_BGRA8888;
  3273. GLEW_VAR_EXPORT GLboolean __GLEW_APPLE_texture_max_level;
  3274. GLEW_VAR_EXPORT GLboolean __GLEW_ARM_mali_program_binary;
  3275. GLEW_VAR_EXPORT GLboolean __GLEW_ARM_mali_shader_binary;
  3276. GLEW_VAR_EXPORT GLboolean __GLEW_ARM_rgba8;
  3277. GLEW_VAR_EXPORT GLboolean __GLEW_DMP_shader_binary;
  3278. GLEW_VAR_EXPORT GLboolean __GLEW_EXT_blend_minmax;
  3279. GLEW_VAR_EXPORT GLboolean __GLEW_EXT_color_buffer_half_float;
  3280. GLEW_VAR_EXPORT GLboolean __GLEW_EXT_debug_label;
  3281. GLEW_VAR_EXPORT GLboolean __GLEW_EXT_debug_marker;
  3282. GLEW_VAR_EXPORT GLboolean __GLEW_EXT_discard_framebuffer;
  3283. GLEW_VAR_EXPORT GLboolean __GLEW_EXT_frag_depth;
  3284. GLEW_VAR_EXPORT GLboolean __GLEW_EXT_map_buffer_range;
  3285. GLEW_VAR_EXPORT GLboolean __GLEW_EXT_multi_draw_arrays;
  3286. GLEW_VAR_EXPORT GLboolean __GLEW_EXT_multisampled_render_to_texture;
  3287. GLEW_VAR_EXPORT GLboolean __GLEW_EXT_multiview_draw_buffers;
  3288. GLEW_VAR_EXPORT GLboolean __GLEW_EXT_occlusion_query_boolean;
  3289. GLEW_VAR_EXPORT GLboolean __GLEW_EXT_read_format_bgra;
  3290. GLEW_VAR_EXPORT GLboolean __GLEW_EXT_robustness;
  3291. GLEW_VAR_EXPORT GLboolean __GLEW_EXT_sRGB;
  3292. GLEW_VAR_EXPORT GLboolean __GLEW_EXT_separate_shader_objects;
  3293. GLEW_VAR_EXPORT GLboolean __GLEW_EXT_shader_framebuffer_fetch;
  3294. GLEW_VAR_EXPORT GLboolean __GLEW_EXT_shader_texture_lod;
  3295. GLEW_VAR_EXPORT GLboolean __GLEW_EXT_shadow_samplers;
  3296. GLEW_VAR_EXPORT GLboolean __GLEW_EXT_texture_compression_dxt1;
  3297. GLEW_VAR_EXPORT GLboolean __GLEW_EXT_texture_filter_anisotropic;
  3298. GLEW_VAR_EXPORT GLboolean __GLEW_EXT_texture_format_BGRA8888;
  3299. GLEW_VAR_EXPORT GLboolean __GLEW_EXT_texture_lod_bias;
  3300. GLEW_VAR_EXPORT GLboolean __GLEW_EXT_texture_rg;
  3301. GLEW_VAR_EXPORT GLboolean __GLEW_EXT_texture_storage;
  3302. GLEW_VAR_EXPORT GLboolean __GLEW_EXT_texture_type_2_10_10_10_REV;
  3303. GLEW_VAR_EXPORT GLboolean __GLEW_EXT_unpack_subimage;
  3304. GLEW_VAR_EXPORT GLboolean __GLEW_FJ_shader_binary_GCCSO;
  3305. GLEW_VAR_EXPORT GLboolean __GLEW_IMG_multisampled_render_to_texture;
  3306. GLEW_VAR_EXPORT GLboolean __GLEW_IMG_program_binary;
  3307. GLEW_VAR_EXPORT GLboolean __GLEW_IMG_read_format;
  3308. GLEW_VAR_EXPORT GLboolean __GLEW_IMG_shader_binary;
  3309. GLEW_VAR_EXPORT GLboolean __GLEW_IMG_texture_compression_pvrtc;
  3310. GLEW_VAR_EXPORT GLboolean __GLEW_IMG_texture_env_enhanced_fixed_function;
  3311. GLEW_VAR_EXPORT GLboolean __GLEW_IMG_user_clip_plane;
  3312. GLEW_VAR_EXPORT GLboolean __GLEW_KHR_debug;
  3313. GLEW_VAR_EXPORT GLboolean __GLEW_KHR_texture_compression_astc_ldr;
  3314. GLEW_VAR_EXPORT GLboolean __GLEW_NV_3dvision_settings;
  3315. GLEW_VAR_EXPORT GLboolean __GLEW_NV_EGL_stream_consumer_external;
  3316. GLEW_VAR_EXPORT GLboolean __GLEW_NV_bgr;
  3317. GLEW_VAR_EXPORT GLboolean __GLEW_NV_coverage_sample;
  3318. GLEW_VAR_EXPORT GLboolean __GLEW_NV_depth_nonlinear;
  3319. GLEW_VAR_EXPORT GLboolean __GLEW_NV_draw_buffers;
  3320. GLEW_VAR_EXPORT GLboolean __GLEW_NV_draw_texture;
  3321. GLEW_VAR_EXPORT GLboolean __GLEW_NV_fbo_color_attachments;
  3322. GLEW_VAR_EXPORT GLboolean __GLEW_NV_fence;
  3323. GLEW_VAR_EXPORT GLboolean __GLEW_NV_pack_subimage;
  3324. GLEW_VAR_EXPORT GLboolean __GLEW_NV_packed_float;
  3325. GLEW_VAR_EXPORT GLboolean __GLEW_NV_packed_float_linear;
  3326. GLEW_VAR_EXPORT GLboolean __GLEW_NV_pixel_buffer_object;
  3327. GLEW_VAR_EXPORT GLboolean __GLEW_NV_platform_binary;
  3328. GLEW_VAR_EXPORT GLboolean __GLEW_NV_read_buffer;
  3329. GLEW_VAR_EXPORT GLboolean __GLEW_NV_read_buffer_front;
  3330. GLEW_VAR_EXPORT GLboolean __GLEW_NV_read_depth;
  3331. GLEW_VAR_EXPORT GLboolean __GLEW_NV_read_depth_stencil;
  3332. GLEW_VAR_EXPORT GLboolean __GLEW_NV_read_stencil;
  3333. GLEW_VAR_EXPORT GLboolean __GLEW_NV_texture_array;
  3334. GLEW_VAR_EXPORT GLboolean __GLEW_NV_texture_compression_latc;
  3335. GLEW_VAR_EXPORT GLboolean __GLEW_NV_texture_compression_s3tc;
  3336. GLEW_VAR_EXPORT GLboolean __GLEW_NV_texture_compression_s3tc_update;
  3337. GLEW_VAR_EXPORT GLboolean __GLEW_NV_texture_npot_2D_mipmap;
  3338. GLEW_VAR_EXPORT GLboolean __GLEW_OES_EGL_image;
  3339. GLEW_VAR_EXPORT GLboolean __GLEW_OES_EGL_image_external;
  3340. GLEW_VAR_EXPORT GLboolean __GLEW_OES_EGL_sync;
  3341. GLEW_VAR_EXPORT GLboolean __GLEW_OES_blend_equation_separate;
  3342. GLEW_VAR_EXPORT GLboolean __GLEW_OES_blend_func_separate;
  3343. GLEW_VAR_EXPORT GLboolean __GLEW_OES_blend_subtract;
  3344. GLEW_VAR_EXPORT GLboolean __GLEW_OES_byte_coordinates;
  3345. GLEW_VAR_EXPORT GLboolean __GLEW_OES_compressed_ETC1_RGB8_texture;
  3346. GLEW_VAR_EXPORT GLboolean __GLEW_OES_compressed_paletted_texture;
  3347. GLEW_VAR_EXPORT GLboolean __GLEW_OES_depth24;
  3348. GLEW_VAR_EXPORT GLboolean __GLEW_OES_depth32;
  3349. GLEW_VAR_EXPORT GLboolean __GLEW_OES_depth_texture;
  3350. GLEW_VAR_EXPORT GLboolean __GLEW_OES_depth_texture_cube_map;
  3351. GLEW_VAR_EXPORT GLboolean __GLEW_OES_draw_texture;
  3352. GLEW_VAR_EXPORT GLboolean __GLEW_OES_element_index_uint;
  3353. GLEW_VAR_EXPORT GLboolean __GLEW_OES_extended_matrix_palette;
  3354. GLEW_VAR_EXPORT GLboolean __GLEW_OES_fbo_render_mipmap;
  3355. GLEW_VAR_EXPORT GLboolean __GLEW_OES_fragment_precision_high;
  3356. GLEW_VAR_EXPORT GLboolean __GLEW_OES_framebuffer_object;
  3357. GLEW_VAR_EXPORT GLboolean __GLEW_OES_get_program_binary;
  3358. GLEW_VAR_EXPORT GLboolean __GLEW_OES_mapbuffer;
  3359. GLEW_VAR_EXPORT GLboolean __GLEW_OES_matrix_get;
  3360. GLEW_VAR_EXPORT GLboolean __GLEW_OES_matrix_palette;
  3361. GLEW_VAR_EXPORT GLboolean __GLEW_OES_packed_depth_stencil;
  3362. GLEW_VAR_EXPORT GLboolean __GLEW_OES_point_size_array;
  3363. GLEW_VAR_EXPORT GLboolean __GLEW_OES_point_sprite;
  3364. GLEW_VAR_EXPORT GLboolean __GLEW_OES_read_format;
  3365. GLEW_VAR_EXPORT GLboolean __GLEW_OES_required_internalformat;
  3366. GLEW_VAR_EXPORT GLboolean __GLEW_OES_rgb8_rgba8;
  3367. GLEW_VAR_EXPORT GLboolean __GLEW_OES_single_precision;
  3368. GLEW_VAR_EXPORT GLboolean __GLEW_OES_standard_derivatives;
  3369. GLEW_VAR_EXPORT GLboolean __GLEW_OES_stencil1;
  3370. GLEW_VAR_EXPORT GLboolean __GLEW_OES_stencil4;
  3371. GLEW_VAR_EXPORT GLboolean __GLEW_OES_stencil8;
  3372. GLEW_VAR_EXPORT GLboolean __GLEW_OES_surfaceless_context;
  3373. GLEW_VAR_EXPORT GLboolean __GLEW_OES_texture_3D;
  3374. GLEW_VAR_EXPORT GLboolean __GLEW_OES_texture_cube_map;
  3375. GLEW_VAR_EXPORT GLboolean __GLEW_OES_texture_env_crossbar;
  3376. GLEW_VAR_EXPORT GLboolean __GLEW_OES_texture_mirrored_repeat;
  3377. GLEW_VAR_EXPORT GLboolean __GLEW_OES_texture_npot;
  3378. GLEW_VAR_EXPORT GLboolean __GLEW_OES_vertex_array_object;
  3379. GLEW_VAR_EXPORT GLboolean __GLEW_OES_vertex_half_float;
  3380. GLEW_VAR_EXPORT GLboolean __GLEW_OES_vertex_type_10_10_10_2;
  3381. GLEW_VAR_EXPORT GLboolean __GLEW_QCOM_alpha_test;
  3382. GLEW_VAR_EXPORT GLboolean __GLEW_QCOM_binning_control;
  3383. GLEW_VAR_EXPORT GLboolean __GLEW_QCOM_driver_control;
  3384. GLEW_VAR_EXPORT GLboolean __GLEW_QCOM_extended_get;
  3385. GLEW_VAR_EXPORT GLboolean __GLEW_QCOM_extended_get2;
  3386. GLEW_VAR_EXPORT GLboolean __GLEW_QCOM_perfmon_global_mode;
  3387. GLEW_VAR_EXPORT GLboolean __GLEW_QCOM_tiled_rendering;
  3388. GLEW_VAR_EXPORT GLboolean __GLEW_QCOM_writeonly_rendering;
  3389. GLEW_VAR_EXPORT GLboolean __GLEW_SUN_multi_draw_arrays;
  3390. GLEW_VAR_EXPORT GLboolean __GLEW_VG_KHR_EGL_sync;
  3391. GLEW_VAR_EXPORT GLboolean __GLEW_VIV_shader_binary;
  3392. #ifdef GLEW_MX
  3393. }; /* GLEWContextStruct */
  3394. #endif /* GLEW_MX */
  3395. #endif /* __glesew_h__ */