glcorearb.h 242 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533
  1. #ifndef __glcorearb_h_
  2. #define __glcorearb_h_
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. /*
  7. ** Copyright (c) 2007-2012 The Khronos Group Inc.
  8. **
  9. ** Permission is hereby granted, free of charge, to any person obtaining a
  10. ** copy of this software and/or associated documentation files (the
  11. ** "Materials"), to deal in the Materials without restriction, including
  12. ** without limitation the rights to use, copy, modify, merge, publish,
  13. ** distribute, sublicense, and/or sell copies of the Materials, and to
  14. ** permit persons to whom the Materials are furnished to do so, subject to
  15. ** the following conditions:
  16. **
  17. ** The above copyright notice and this permission notice shall be included
  18. ** in all copies or substantial portions of the Materials.
  19. **
  20. ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  21. ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  22. ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  23. ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
  24. ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  25. ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
  26. ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
  27. */
  28. /* glcorearb.h replaces gl3.h. It is for use with OpenGL core
  29. * profile implementations.
  30. *
  31. * glcorearb.h last updated on $Date: 2012-09-19 19:02:24 -0700 (Wed, 19 Sep 2012) $
  32. *
  33. * RELEASE NOTES - 2012/09/19
  34. *
  35. * glcorearb.h should be placed in the same directory as gl.h and
  36. * included as
  37. * '<GL/glcorearb.h>'.
  38. *
  39. * glcorearb.h includes only APIs in the latest OpenGL core profile
  40. * implementation together with APIs in newer ARB extensions which can be
  41. * can be supported by the core profile. It does not, and never will
  42. * include functionality removed from the core profile, such as
  43. * fixed-function vertex and fragment processing.
  44. *
  45. * It is not possible to #include both <GL/glcorearb.h> and either of
  46. * <GL/gl.h> or <GL/glext.h> in the same source file.
  47. *
  48. * Feedback can be given by registering for the Khronos Bugzilla
  49. * (www.khronos.org/bugzilla) and filing issues there under product
  50. * "OpenGL", category "Registry".
  51. */
  52. /* Function declaration macros - to move into glplatform.h */
  53. #if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__)
  54. #define WIN32_LEAN_AND_MEAN 1
  55. #include <windows.h>
  56. #endif
  57. #ifndef APIENTRY
  58. #define APIENTRY
  59. #endif
  60. #ifndef APIENTRYP
  61. #define APIENTRYP APIENTRY *
  62. #endif
  63. #ifndef GLAPI
  64. #define GLAPI extern
  65. #endif
  66. /* Base GL types */
  67. typedef unsigned int GLenum;
  68. typedef unsigned char GLboolean;
  69. typedef unsigned int GLbitfield;
  70. typedef signed char GLbyte;
  71. typedef short GLshort;
  72. typedef int GLint;
  73. typedef int GLsizei;
  74. typedef unsigned char GLubyte;
  75. typedef unsigned short GLushort;
  76. typedef unsigned int GLuint;
  77. typedef unsigned short GLhalf;
  78. typedef float GLfloat;
  79. typedef float GLclampf;
  80. typedef double GLdouble;
  81. typedef double GLclampd;
  82. typedef void GLvoid;
  83. /*************************************************************/
  84. #ifndef GL_VERSION_1_1
  85. /* AttribMask */
  86. #define GL_DEPTH_BUFFER_BIT 0x00000100
  87. #define GL_STENCIL_BUFFER_BIT 0x00000400
  88. #define GL_COLOR_BUFFER_BIT 0x00004000
  89. /* Boolean */
  90. #define GL_FALSE 0
  91. #define GL_TRUE 1
  92. /* BeginMode */
  93. #define GL_POINTS 0x0000
  94. #define GL_LINES 0x0001
  95. #define GL_LINE_LOOP 0x0002
  96. #define GL_LINE_STRIP 0x0003
  97. #define GL_TRIANGLES 0x0004
  98. #define GL_TRIANGLE_STRIP 0x0005
  99. #define GL_TRIANGLE_FAN 0x0006
  100. #define GL_QUADS 0x0007
  101. /* AlphaFunction */
  102. #define GL_NEVER 0x0200
  103. #define GL_LESS 0x0201
  104. #define GL_EQUAL 0x0202
  105. #define GL_LEQUAL 0x0203
  106. #define GL_GREATER 0x0204
  107. #define GL_NOTEQUAL 0x0205
  108. #define GL_GEQUAL 0x0206
  109. #define GL_ALWAYS 0x0207
  110. /* BlendingFactorDest */
  111. #define GL_ZERO 0
  112. #define GL_ONE 1
  113. #define GL_SRC_COLOR 0x0300
  114. #define GL_ONE_MINUS_SRC_COLOR 0x0301
  115. #define GL_SRC_ALPHA 0x0302
  116. #define GL_ONE_MINUS_SRC_ALPHA 0x0303
  117. #define GL_DST_ALPHA 0x0304
  118. #define GL_ONE_MINUS_DST_ALPHA 0x0305
  119. /* BlendingFactorSrc */
  120. #define GL_DST_COLOR 0x0306
  121. #define GL_ONE_MINUS_DST_COLOR 0x0307
  122. #define GL_SRC_ALPHA_SATURATE 0x0308
  123. /* DrawBufferMode */
  124. #define GL_NONE 0
  125. #define GL_FRONT_LEFT 0x0400
  126. #define GL_FRONT_RIGHT 0x0401
  127. #define GL_BACK_LEFT 0x0402
  128. #define GL_BACK_RIGHT 0x0403
  129. #define GL_FRONT 0x0404
  130. #define GL_BACK 0x0405
  131. #define GL_LEFT 0x0406
  132. #define GL_RIGHT 0x0407
  133. #define GL_FRONT_AND_BACK 0x0408
  134. /* ErrorCode */
  135. #define GL_NO_ERROR 0
  136. #define GL_INVALID_ENUM 0x0500
  137. #define GL_INVALID_VALUE 0x0501
  138. #define GL_INVALID_OPERATION 0x0502
  139. #define GL_OUT_OF_MEMORY 0x0505
  140. /* FrontFaceDirection */
  141. #define GL_CW 0x0900
  142. #define GL_CCW 0x0901
  143. /* GetPName */
  144. #define GL_POINT_SIZE 0x0B11
  145. #define GL_POINT_SIZE_RANGE 0x0B12
  146. #define GL_POINT_SIZE_GRANULARITY 0x0B13
  147. #define GL_LINE_SMOOTH 0x0B20
  148. #define GL_LINE_WIDTH 0x0B21
  149. #define GL_LINE_WIDTH_RANGE 0x0B22
  150. #define GL_LINE_WIDTH_GRANULARITY 0x0B23
  151. #define GL_POLYGON_MODE 0x0B40
  152. #define GL_POLYGON_SMOOTH 0x0B41
  153. #define GL_CULL_FACE 0x0B44
  154. #define GL_CULL_FACE_MODE 0x0B45
  155. #define GL_FRONT_FACE 0x0B46
  156. #define GL_DEPTH_RANGE 0x0B70
  157. #define GL_DEPTH_TEST 0x0B71
  158. #define GL_DEPTH_WRITEMASK 0x0B72
  159. #define GL_DEPTH_CLEAR_VALUE 0x0B73
  160. #define GL_DEPTH_FUNC 0x0B74
  161. #define GL_STENCIL_TEST 0x0B90
  162. #define GL_STENCIL_CLEAR_VALUE 0x0B91
  163. #define GL_STENCIL_FUNC 0x0B92
  164. #define GL_STENCIL_VALUE_MASK 0x0B93
  165. #define GL_STENCIL_FAIL 0x0B94
  166. #define GL_STENCIL_PASS_DEPTH_FAIL 0x0B95
  167. #define GL_STENCIL_PASS_DEPTH_PASS 0x0B96
  168. #define GL_STENCIL_REF 0x0B97
  169. #define GL_STENCIL_WRITEMASK 0x0B98
  170. #define GL_VIEWPORT 0x0BA2
  171. #define GL_DITHER 0x0BD0
  172. #define GL_BLEND_DST 0x0BE0
  173. #define GL_BLEND_SRC 0x0BE1
  174. #define GL_BLEND 0x0BE2
  175. #define GL_LOGIC_OP_MODE 0x0BF0
  176. #define GL_COLOR_LOGIC_OP 0x0BF2
  177. #define GL_DRAW_BUFFER 0x0C01
  178. #define GL_READ_BUFFER 0x0C02
  179. #define GL_SCISSOR_BOX 0x0C10
  180. #define GL_SCISSOR_TEST 0x0C11
  181. #define GL_COLOR_CLEAR_VALUE 0x0C22
  182. #define GL_COLOR_WRITEMASK 0x0C23
  183. #define GL_DOUBLEBUFFER 0x0C32
  184. #define GL_STEREO 0x0C33
  185. #define GL_LINE_SMOOTH_HINT 0x0C52
  186. #define GL_POLYGON_SMOOTH_HINT 0x0C53
  187. #define GL_UNPACK_SWAP_BYTES 0x0CF0
  188. #define GL_UNPACK_LSB_FIRST 0x0CF1
  189. #define GL_UNPACK_ROW_LENGTH 0x0CF2
  190. #define GL_UNPACK_SKIP_ROWS 0x0CF3
  191. #define GL_UNPACK_SKIP_PIXELS 0x0CF4
  192. #define GL_UNPACK_ALIGNMENT 0x0CF5
  193. #define GL_PACK_SWAP_BYTES 0x0D00
  194. #define GL_PACK_LSB_FIRST 0x0D01
  195. #define GL_PACK_ROW_LENGTH 0x0D02
  196. #define GL_PACK_SKIP_ROWS 0x0D03
  197. #define GL_PACK_SKIP_PIXELS 0x0D04
  198. #define GL_PACK_ALIGNMENT 0x0D05
  199. #define GL_MAX_TEXTURE_SIZE 0x0D33
  200. #define GL_MAX_VIEWPORT_DIMS 0x0D3A
  201. #define GL_SUBPIXEL_BITS 0x0D50
  202. #define GL_TEXTURE_1D 0x0DE0
  203. #define GL_TEXTURE_2D 0x0DE1
  204. #define GL_POLYGON_OFFSET_UNITS 0x2A00
  205. #define GL_POLYGON_OFFSET_POINT 0x2A01
  206. #define GL_POLYGON_OFFSET_LINE 0x2A02
  207. #define GL_POLYGON_OFFSET_FILL 0x8037
  208. #define GL_POLYGON_OFFSET_FACTOR 0x8038
  209. #define GL_TEXTURE_BINDING_1D 0x8068
  210. #define GL_TEXTURE_BINDING_2D 0x8069
  211. /* GetTextureParameter */
  212. #define GL_TEXTURE_WIDTH 0x1000
  213. #define GL_TEXTURE_HEIGHT 0x1001
  214. #define GL_TEXTURE_INTERNAL_FORMAT 0x1003
  215. #define GL_TEXTURE_BORDER_COLOR 0x1004
  216. #define GL_TEXTURE_RED_SIZE 0x805C
  217. #define GL_TEXTURE_GREEN_SIZE 0x805D
  218. #define GL_TEXTURE_BLUE_SIZE 0x805E
  219. #define GL_TEXTURE_ALPHA_SIZE 0x805F
  220. /* HintMode */
  221. #define GL_DONT_CARE 0x1100
  222. #define GL_FASTEST 0x1101
  223. #define GL_NICEST 0x1102
  224. /* DataType */
  225. #define GL_BYTE 0x1400
  226. #define GL_UNSIGNED_BYTE 0x1401
  227. #define GL_SHORT 0x1402
  228. #define GL_UNSIGNED_SHORT 0x1403
  229. #define GL_INT 0x1404
  230. #define GL_UNSIGNED_INT 0x1405
  231. #define GL_FLOAT 0x1406
  232. #define GL_DOUBLE 0x140A
  233. /* ErrorCode */
  234. #define GL_STACK_OVERFLOW 0x0503
  235. #define GL_STACK_UNDERFLOW 0x0504
  236. /* LogicOp */
  237. #define GL_CLEAR 0x1500
  238. #define GL_AND 0x1501
  239. #define GL_AND_REVERSE 0x1502
  240. #define GL_COPY 0x1503
  241. #define GL_AND_INVERTED 0x1504
  242. #define GL_NOOP 0x1505
  243. #define GL_XOR 0x1506
  244. #define GL_OR 0x1507
  245. #define GL_NOR 0x1508
  246. #define GL_EQUIV 0x1509
  247. #define GL_INVERT 0x150A
  248. #define GL_OR_REVERSE 0x150B
  249. #define GL_COPY_INVERTED 0x150C
  250. #define GL_OR_INVERTED 0x150D
  251. #define GL_NAND 0x150E
  252. #define GL_SET 0x150F
  253. /* MatrixMode (for gl3.h, FBO attachment type) */
  254. #define GL_TEXTURE 0x1702
  255. /* PixelCopyType */
  256. #define GL_COLOR 0x1800
  257. #define GL_DEPTH 0x1801
  258. #define GL_STENCIL 0x1802
  259. /* PixelFormat */
  260. #define GL_STENCIL_INDEX 0x1901
  261. #define GL_DEPTH_COMPONENT 0x1902
  262. #define GL_RED 0x1903
  263. #define GL_GREEN 0x1904
  264. #define GL_BLUE 0x1905
  265. #define GL_ALPHA 0x1906
  266. #define GL_RGB 0x1907
  267. #define GL_RGBA 0x1908
  268. /* PolygonMode */
  269. #define GL_POINT 0x1B00
  270. #define GL_LINE 0x1B01
  271. #define GL_FILL 0x1B02
  272. /* StencilOp */
  273. #define GL_KEEP 0x1E00
  274. #define GL_REPLACE 0x1E01
  275. #define GL_INCR 0x1E02
  276. #define GL_DECR 0x1E03
  277. /* StringName */
  278. #define GL_VENDOR 0x1F00
  279. #define GL_RENDERER 0x1F01
  280. #define GL_VERSION 0x1F02
  281. #define GL_EXTENSIONS 0x1F03
  282. /* TextureMagFilter */
  283. #define GL_NEAREST 0x2600
  284. #define GL_LINEAR 0x2601
  285. /* TextureMinFilter */
  286. #define GL_NEAREST_MIPMAP_NEAREST 0x2700
  287. #define GL_LINEAR_MIPMAP_NEAREST 0x2701
  288. #define GL_NEAREST_MIPMAP_LINEAR 0x2702
  289. #define GL_LINEAR_MIPMAP_LINEAR 0x2703
  290. /* TextureParameterName */
  291. #define GL_TEXTURE_MAG_FILTER 0x2800
  292. #define GL_TEXTURE_MIN_FILTER 0x2801
  293. #define GL_TEXTURE_WRAP_S 0x2802
  294. #define GL_TEXTURE_WRAP_T 0x2803
  295. /* TextureTarget */
  296. #define GL_PROXY_TEXTURE_1D 0x8063
  297. #define GL_PROXY_TEXTURE_2D 0x8064
  298. /* TextureWrapMode */
  299. #define GL_REPEAT 0x2901
  300. /* PixelInternalFormat */
  301. #define GL_R3_G3_B2 0x2A10
  302. #define GL_RGB4 0x804F
  303. #define GL_RGB5 0x8050
  304. #define GL_RGB8 0x8051
  305. #define GL_RGB10 0x8052
  306. #define GL_RGB12 0x8053
  307. #define GL_RGB16 0x8054
  308. #define GL_RGBA2 0x8055
  309. #define GL_RGBA4 0x8056
  310. #define GL_RGB5_A1 0x8057
  311. #define GL_RGBA8 0x8058
  312. #define GL_RGB10_A2 0x8059
  313. #define GL_RGBA12 0x805A
  314. #define GL_RGBA16 0x805B
  315. #endif
  316. #ifndef GL_VERSION_1_2
  317. #define GL_UNSIGNED_BYTE_3_3_2 0x8032
  318. #define GL_UNSIGNED_SHORT_4_4_4_4 0x8033
  319. #define GL_UNSIGNED_SHORT_5_5_5_1 0x8034
  320. #define GL_UNSIGNED_INT_8_8_8_8 0x8035
  321. #define GL_UNSIGNED_INT_10_10_10_2 0x8036
  322. #define GL_TEXTURE_BINDING_3D 0x806A
  323. #define GL_PACK_SKIP_IMAGES 0x806B
  324. #define GL_PACK_IMAGE_HEIGHT 0x806C
  325. #define GL_UNPACK_SKIP_IMAGES 0x806D
  326. #define GL_UNPACK_IMAGE_HEIGHT 0x806E
  327. #define GL_TEXTURE_3D 0x806F
  328. #define GL_PROXY_TEXTURE_3D 0x8070
  329. #define GL_TEXTURE_DEPTH 0x8071
  330. #define GL_TEXTURE_WRAP_R 0x8072
  331. #define GL_MAX_3D_TEXTURE_SIZE 0x8073
  332. #define GL_UNSIGNED_BYTE_2_3_3_REV 0x8362
  333. #define GL_UNSIGNED_SHORT_5_6_5 0x8363
  334. #define GL_UNSIGNED_SHORT_5_6_5_REV 0x8364
  335. #define GL_UNSIGNED_SHORT_4_4_4_4_REV 0x8365
  336. #define GL_UNSIGNED_SHORT_1_5_5_5_REV 0x8366
  337. #define GL_UNSIGNED_INT_8_8_8_8_REV 0x8367
  338. #define GL_UNSIGNED_INT_2_10_10_10_REV 0x8368
  339. #define GL_BGR 0x80E0
  340. #define GL_BGRA 0x80E1
  341. #define GL_MAX_ELEMENTS_VERTICES 0x80E8
  342. #define GL_MAX_ELEMENTS_INDICES 0x80E9
  343. #define GL_CLAMP_TO_EDGE 0x812F
  344. #define GL_TEXTURE_MIN_LOD 0x813A
  345. #define GL_TEXTURE_MAX_LOD 0x813B
  346. #define GL_TEXTURE_BASE_LEVEL 0x813C
  347. #define GL_TEXTURE_MAX_LEVEL 0x813D
  348. #define GL_SMOOTH_POINT_SIZE_RANGE 0x0B12
  349. #define GL_SMOOTH_POINT_SIZE_GRANULARITY 0x0B13
  350. #define GL_SMOOTH_LINE_WIDTH_RANGE 0x0B22
  351. #define GL_SMOOTH_LINE_WIDTH_GRANULARITY 0x0B23
  352. #define GL_ALIASED_LINE_WIDTH_RANGE 0x846E
  353. #endif
  354. #ifndef GL_ARB_imaging
  355. #define GL_CONSTANT_COLOR 0x8001
  356. #define GL_ONE_MINUS_CONSTANT_COLOR 0x8002
  357. #define GL_CONSTANT_ALPHA 0x8003
  358. #define GL_ONE_MINUS_CONSTANT_ALPHA 0x8004
  359. #define GL_BLEND_COLOR 0x8005
  360. #define GL_FUNC_ADD 0x8006
  361. #define GL_MIN 0x8007
  362. #define GL_MAX 0x8008
  363. #define GL_BLEND_EQUATION 0x8009
  364. #define GL_FUNC_SUBTRACT 0x800A
  365. #define GL_FUNC_REVERSE_SUBTRACT 0x800B
  366. #endif
  367. #ifndef GL_VERSION_1_3
  368. #define GL_TEXTURE0 0x84C0
  369. #define GL_TEXTURE1 0x84C1
  370. #define GL_TEXTURE2 0x84C2
  371. #define GL_TEXTURE3 0x84C3
  372. #define GL_TEXTURE4 0x84C4
  373. #define GL_TEXTURE5 0x84C5
  374. #define GL_TEXTURE6 0x84C6
  375. #define GL_TEXTURE7 0x84C7
  376. #define GL_TEXTURE8 0x84C8
  377. #define GL_TEXTURE9 0x84C9
  378. #define GL_TEXTURE10 0x84CA
  379. #define GL_TEXTURE11 0x84CB
  380. #define GL_TEXTURE12 0x84CC
  381. #define GL_TEXTURE13 0x84CD
  382. #define GL_TEXTURE14 0x84CE
  383. #define GL_TEXTURE15 0x84CF
  384. #define GL_TEXTURE16 0x84D0
  385. #define GL_TEXTURE17 0x84D1
  386. #define GL_TEXTURE18 0x84D2
  387. #define GL_TEXTURE19 0x84D3
  388. #define GL_TEXTURE20 0x84D4
  389. #define GL_TEXTURE21 0x84D5
  390. #define GL_TEXTURE22 0x84D6
  391. #define GL_TEXTURE23 0x84D7
  392. #define GL_TEXTURE24 0x84D8
  393. #define GL_TEXTURE25 0x84D9
  394. #define GL_TEXTURE26 0x84DA
  395. #define GL_TEXTURE27 0x84DB
  396. #define GL_TEXTURE28 0x84DC
  397. #define GL_TEXTURE29 0x84DD
  398. #define GL_TEXTURE30 0x84DE
  399. #define GL_TEXTURE31 0x84DF
  400. #define GL_ACTIVE_TEXTURE 0x84E0
  401. #define GL_MULTISAMPLE 0x809D
  402. #define GL_SAMPLE_ALPHA_TO_COVERAGE 0x809E
  403. #define GL_SAMPLE_ALPHA_TO_ONE 0x809F
  404. #define GL_SAMPLE_COVERAGE 0x80A0
  405. #define GL_SAMPLE_BUFFERS 0x80A8
  406. #define GL_SAMPLES 0x80A9
  407. #define GL_SAMPLE_COVERAGE_VALUE 0x80AA
  408. #define GL_SAMPLE_COVERAGE_INVERT 0x80AB
  409. #define GL_TEXTURE_CUBE_MAP 0x8513
  410. #define GL_TEXTURE_BINDING_CUBE_MAP 0x8514
  411. #define GL_TEXTURE_CUBE_MAP_POSITIVE_X 0x8515
  412. #define GL_TEXTURE_CUBE_MAP_NEGATIVE_X 0x8516
  413. #define GL_TEXTURE_CUBE_MAP_POSITIVE_Y 0x8517
  414. #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y 0x8518
  415. #define GL_TEXTURE_CUBE_MAP_POSITIVE_Z 0x8519
  416. #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z 0x851A
  417. #define GL_PROXY_TEXTURE_CUBE_MAP 0x851B
  418. #define GL_MAX_CUBE_MAP_TEXTURE_SIZE 0x851C
  419. #define GL_COMPRESSED_RGB 0x84ED
  420. #define GL_COMPRESSED_RGBA 0x84EE
  421. #define GL_TEXTURE_COMPRESSION_HINT 0x84EF
  422. #define GL_TEXTURE_COMPRESSED_IMAGE_SIZE 0x86A0
  423. #define GL_TEXTURE_COMPRESSED 0x86A1
  424. #define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2
  425. #define GL_COMPRESSED_TEXTURE_FORMATS 0x86A3
  426. #define GL_CLAMP_TO_BORDER 0x812D
  427. #endif
  428. #ifndef GL_VERSION_1_4
  429. #define GL_BLEND_DST_RGB 0x80C8
  430. #define GL_BLEND_SRC_RGB 0x80C9
  431. #define GL_BLEND_DST_ALPHA 0x80CA
  432. #define GL_BLEND_SRC_ALPHA 0x80CB
  433. #define GL_POINT_FADE_THRESHOLD_SIZE 0x8128
  434. #define GL_DEPTH_COMPONENT16 0x81A5
  435. #define GL_DEPTH_COMPONENT24 0x81A6
  436. #define GL_DEPTH_COMPONENT32 0x81A7
  437. #define GL_MIRRORED_REPEAT 0x8370
  438. #define GL_MAX_TEXTURE_LOD_BIAS 0x84FD
  439. #define GL_TEXTURE_LOD_BIAS 0x8501
  440. #define GL_INCR_WRAP 0x8507
  441. #define GL_DECR_WRAP 0x8508
  442. #define GL_TEXTURE_DEPTH_SIZE 0x884A
  443. #define GL_TEXTURE_COMPARE_MODE 0x884C
  444. #define GL_TEXTURE_COMPARE_FUNC 0x884D
  445. #endif
  446. #ifndef GL_VERSION_1_5
  447. #define GL_BUFFER_SIZE 0x8764
  448. #define GL_BUFFER_USAGE 0x8765
  449. #define GL_QUERY_COUNTER_BITS 0x8864
  450. #define GL_CURRENT_QUERY 0x8865
  451. #define GL_QUERY_RESULT 0x8866
  452. #define GL_QUERY_RESULT_AVAILABLE 0x8867
  453. #define GL_ARRAY_BUFFER 0x8892
  454. #define GL_ELEMENT_ARRAY_BUFFER 0x8893
  455. #define GL_ARRAY_BUFFER_BINDING 0x8894
  456. #define GL_ELEMENT_ARRAY_BUFFER_BINDING 0x8895
  457. #define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING 0x889F
  458. #define GL_READ_ONLY 0x88B8
  459. #define GL_WRITE_ONLY 0x88B9
  460. #define GL_READ_WRITE 0x88BA
  461. #define GL_BUFFER_ACCESS 0x88BB
  462. #define GL_BUFFER_MAPPED 0x88BC
  463. #define GL_BUFFER_MAP_POINTER 0x88BD
  464. #define GL_STREAM_DRAW 0x88E0
  465. #define GL_STREAM_READ 0x88E1
  466. #define GL_STREAM_COPY 0x88E2
  467. #define GL_STATIC_DRAW 0x88E4
  468. #define GL_STATIC_READ 0x88E5
  469. #define GL_STATIC_COPY 0x88E6
  470. #define GL_DYNAMIC_DRAW 0x88E8
  471. #define GL_DYNAMIC_READ 0x88E9
  472. #define GL_DYNAMIC_COPY 0x88EA
  473. #define GL_SAMPLES_PASSED 0x8914
  474. #define GL_SRC1_ALPHA 0x8589
  475. #endif
  476. #ifndef GL_VERSION_2_0
  477. #define GL_BLEND_EQUATION_RGB 0x8009
  478. #define GL_VERTEX_ATTRIB_ARRAY_ENABLED 0x8622
  479. #define GL_VERTEX_ATTRIB_ARRAY_SIZE 0x8623
  480. #define GL_VERTEX_ATTRIB_ARRAY_STRIDE 0x8624
  481. #define GL_VERTEX_ATTRIB_ARRAY_TYPE 0x8625
  482. #define GL_CURRENT_VERTEX_ATTRIB 0x8626
  483. #define GL_VERTEX_PROGRAM_POINT_SIZE 0x8642
  484. #define GL_VERTEX_ATTRIB_ARRAY_POINTER 0x8645
  485. #define GL_STENCIL_BACK_FUNC 0x8800
  486. #define GL_STENCIL_BACK_FAIL 0x8801
  487. #define GL_STENCIL_BACK_PASS_DEPTH_FAIL 0x8802
  488. #define GL_STENCIL_BACK_PASS_DEPTH_PASS 0x8803
  489. #define GL_MAX_DRAW_BUFFERS 0x8824
  490. #define GL_DRAW_BUFFER0 0x8825
  491. #define GL_DRAW_BUFFER1 0x8826
  492. #define GL_DRAW_BUFFER2 0x8827
  493. #define GL_DRAW_BUFFER3 0x8828
  494. #define GL_DRAW_BUFFER4 0x8829
  495. #define GL_DRAW_BUFFER5 0x882A
  496. #define GL_DRAW_BUFFER6 0x882B
  497. #define GL_DRAW_BUFFER7 0x882C
  498. #define GL_DRAW_BUFFER8 0x882D
  499. #define GL_DRAW_BUFFER9 0x882E
  500. #define GL_DRAW_BUFFER10 0x882F
  501. #define GL_DRAW_BUFFER11 0x8830
  502. #define GL_DRAW_BUFFER12 0x8831
  503. #define GL_DRAW_BUFFER13 0x8832
  504. #define GL_DRAW_BUFFER14 0x8833
  505. #define GL_DRAW_BUFFER15 0x8834
  506. #define GL_BLEND_EQUATION_ALPHA 0x883D
  507. #define GL_MAX_VERTEX_ATTRIBS 0x8869
  508. #define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED 0x886A
  509. #define GL_MAX_TEXTURE_IMAGE_UNITS 0x8872
  510. #define GL_FRAGMENT_SHADER 0x8B30
  511. #define GL_VERTEX_SHADER 0x8B31
  512. #define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS 0x8B49
  513. #define GL_MAX_VERTEX_UNIFORM_COMPONENTS 0x8B4A
  514. #define GL_MAX_VARYING_FLOATS 0x8B4B
  515. #define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS 0x8B4C
  516. #define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS 0x8B4D
  517. #define GL_SHADER_TYPE 0x8B4F
  518. #define GL_FLOAT_VEC2 0x8B50
  519. #define GL_FLOAT_VEC3 0x8B51
  520. #define GL_FLOAT_VEC4 0x8B52
  521. #define GL_INT_VEC2 0x8B53
  522. #define GL_INT_VEC3 0x8B54
  523. #define GL_INT_VEC4 0x8B55
  524. #define GL_BOOL 0x8B56
  525. #define GL_BOOL_VEC2 0x8B57
  526. #define GL_BOOL_VEC3 0x8B58
  527. #define GL_BOOL_VEC4 0x8B59
  528. #define GL_FLOAT_MAT2 0x8B5A
  529. #define GL_FLOAT_MAT3 0x8B5B
  530. #define GL_FLOAT_MAT4 0x8B5C
  531. #define GL_SAMPLER_1D 0x8B5D
  532. #define GL_SAMPLER_2D 0x8B5E
  533. #define GL_SAMPLER_3D 0x8B5F
  534. #define GL_SAMPLER_CUBE 0x8B60
  535. #define GL_SAMPLER_1D_SHADOW 0x8B61
  536. #define GL_SAMPLER_2D_SHADOW 0x8B62
  537. #define GL_DELETE_STATUS 0x8B80
  538. #define GL_COMPILE_STATUS 0x8B81
  539. #define GL_LINK_STATUS 0x8B82
  540. #define GL_VALIDATE_STATUS 0x8B83
  541. #define GL_INFO_LOG_LENGTH 0x8B84
  542. #define GL_ATTACHED_SHADERS 0x8B85
  543. #define GL_ACTIVE_UNIFORMS 0x8B86
  544. #define GL_ACTIVE_UNIFORM_MAX_LENGTH 0x8B87
  545. #define GL_SHADER_SOURCE_LENGTH 0x8B88
  546. #define GL_ACTIVE_ATTRIBUTES 0x8B89
  547. #define GL_ACTIVE_ATTRIBUTE_MAX_LENGTH 0x8B8A
  548. #define GL_FRAGMENT_SHADER_DERIVATIVE_HINT 0x8B8B
  549. #define GL_SHADING_LANGUAGE_VERSION 0x8B8C
  550. #define GL_CURRENT_PROGRAM 0x8B8D
  551. #define GL_POINT_SPRITE_COORD_ORIGIN 0x8CA0
  552. #define GL_LOWER_LEFT 0x8CA1
  553. #define GL_UPPER_LEFT 0x8CA2
  554. #define GL_STENCIL_BACK_REF 0x8CA3
  555. #define GL_STENCIL_BACK_VALUE_MASK 0x8CA4
  556. #define GL_STENCIL_BACK_WRITEMASK 0x8CA5
  557. #endif
  558. #ifndef GL_VERSION_2_1
  559. #define GL_PIXEL_PACK_BUFFER 0x88EB
  560. #define GL_PIXEL_UNPACK_BUFFER 0x88EC
  561. #define GL_PIXEL_PACK_BUFFER_BINDING 0x88ED
  562. #define GL_PIXEL_UNPACK_BUFFER_BINDING 0x88EF
  563. #define GL_FLOAT_MAT2x3 0x8B65
  564. #define GL_FLOAT_MAT2x4 0x8B66
  565. #define GL_FLOAT_MAT3x2 0x8B67
  566. #define GL_FLOAT_MAT3x4 0x8B68
  567. #define GL_FLOAT_MAT4x2 0x8B69
  568. #define GL_FLOAT_MAT4x3 0x8B6A
  569. #define GL_SRGB 0x8C40
  570. #define GL_SRGB8 0x8C41
  571. #define GL_SRGB_ALPHA 0x8C42
  572. #define GL_SRGB8_ALPHA8 0x8C43
  573. #define GL_COMPRESSED_SRGB 0x8C48
  574. #define GL_COMPRESSED_SRGB_ALPHA 0x8C49
  575. #endif
  576. #ifndef GL_VERSION_3_0
  577. #define GL_COMPARE_REF_TO_TEXTURE 0x884E
  578. #define GL_CLIP_DISTANCE0 0x3000
  579. #define GL_CLIP_DISTANCE1 0x3001
  580. #define GL_CLIP_DISTANCE2 0x3002
  581. #define GL_CLIP_DISTANCE3 0x3003
  582. #define GL_CLIP_DISTANCE4 0x3004
  583. #define GL_CLIP_DISTANCE5 0x3005
  584. #define GL_CLIP_DISTANCE6 0x3006
  585. #define GL_CLIP_DISTANCE7 0x3007
  586. #define GL_MAX_CLIP_DISTANCES 0x0D32
  587. #define GL_MAJOR_VERSION 0x821B
  588. #define GL_MINOR_VERSION 0x821C
  589. #define GL_NUM_EXTENSIONS 0x821D
  590. #define GL_CONTEXT_FLAGS 0x821E
  591. #define GL_COMPRESSED_RED 0x8225
  592. #define GL_COMPRESSED_RG 0x8226
  593. #define GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT 0x0001
  594. #define GL_RGBA32F 0x8814
  595. #define GL_RGB32F 0x8815
  596. #define GL_RGBA16F 0x881A
  597. #define GL_RGB16F 0x881B
  598. #define GL_VERTEX_ATTRIB_ARRAY_INTEGER 0x88FD
  599. #define GL_MAX_ARRAY_TEXTURE_LAYERS 0x88FF
  600. #define GL_MIN_PROGRAM_TEXEL_OFFSET 0x8904
  601. #define GL_MAX_PROGRAM_TEXEL_OFFSET 0x8905
  602. #define GL_CLAMP_READ_COLOR 0x891C
  603. #define GL_FIXED_ONLY 0x891D
  604. #define GL_MAX_VARYING_COMPONENTS 0x8B4B
  605. #define GL_TEXTURE_1D_ARRAY 0x8C18
  606. #define GL_PROXY_TEXTURE_1D_ARRAY 0x8C19
  607. #define GL_TEXTURE_2D_ARRAY 0x8C1A
  608. #define GL_PROXY_TEXTURE_2D_ARRAY 0x8C1B
  609. #define GL_TEXTURE_BINDING_1D_ARRAY 0x8C1C
  610. #define GL_TEXTURE_BINDING_2D_ARRAY 0x8C1D
  611. #define GL_R11F_G11F_B10F 0x8C3A
  612. #define GL_UNSIGNED_INT_10F_11F_11F_REV 0x8C3B
  613. #define GL_RGB9_E5 0x8C3D
  614. #define GL_UNSIGNED_INT_5_9_9_9_REV 0x8C3E
  615. #define GL_TEXTURE_SHARED_SIZE 0x8C3F
  616. #define GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH 0x8C76
  617. #define GL_TRANSFORM_FEEDBACK_BUFFER_MODE 0x8C7F
  618. #define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS 0x8C80
  619. #define GL_TRANSFORM_FEEDBACK_VARYINGS 0x8C83
  620. #define GL_TRANSFORM_FEEDBACK_BUFFER_START 0x8C84
  621. #define GL_TRANSFORM_FEEDBACK_BUFFER_SIZE 0x8C85
  622. #define GL_PRIMITIVES_GENERATED 0x8C87
  623. #define GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN 0x8C88
  624. #define GL_RASTERIZER_DISCARD 0x8C89
  625. #define GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS 0x8C8A
  626. #define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS 0x8C8B
  627. #define GL_INTERLEAVED_ATTRIBS 0x8C8C
  628. #define GL_SEPARATE_ATTRIBS 0x8C8D
  629. #define GL_TRANSFORM_FEEDBACK_BUFFER 0x8C8E
  630. #define GL_TRANSFORM_FEEDBACK_BUFFER_BINDING 0x8C8F
  631. #define GL_RGBA32UI 0x8D70
  632. #define GL_RGB32UI 0x8D71
  633. #define GL_RGBA16UI 0x8D76
  634. #define GL_RGB16UI 0x8D77
  635. #define GL_RGBA8UI 0x8D7C
  636. #define GL_RGB8UI 0x8D7D
  637. #define GL_RGBA32I 0x8D82
  638. #define GL_RGB32I 0x8D83
  639. #define GL_RGBA16I 0x8D88
  640. #define GL_RGB16I 0x8D89
  641. #define GL_RGBA8I 0x8D8E
  642. #define GL_RGB8I 0x8D8F
  643. #define GL_RED_INTEGER 0x8D94
  644. #define GL_GREEN_INTEGER 0x8D95
  645. #define GL_BLUE_INTEGER 0x8D96
  646. #define GL_RGB_INTEGER 0x8D98
  647. #define GL_RGBA_INTEGER 0x8D99
  648. #define GL_BGR_INTEGER 0x8D9A
  649. #define GL_BGRA_INTEGER 0x8D9B
  650. #define GL_SAMPLER_1D_ARRAY 0x8DC0
  651. #define GL_SAMPLER_2D_ARRAY 0x8DC1
  652. #define GL_SAMPLER_1D_ARRAY_SHADOW 0x8DC3
  653. #define GL_SAMPLER_2D_ARRAY_SHADOW 0x8DC4
  654. #define GL_SAMPLER_CUBE_SHADOW 0x8DC5
  655. #define GL_UNSIGNED_INT_VEC2 0x8DC6
  656. #define GL_UNSIGNED_INT_VEC3 0x8DC7
  657. #define GL_UNSIGNED_INT_VEC4 0x8DC8
  658. #define GL_INT_SAMPLER_1D 0x8DC9
  659. #define GL_INT_SAMPLER_2D 0x8DCA
  660. #define GL_INT_SAMPLER_3D 0x8DCB
  661. #define GL_INT_SAMPLER_CUBE 0x8DCC
  662. #define GL_INT_SAMPLER_1D_ARRAY 0x8DCE
  663. #define GL_INT_SAMPLER_2D_ARRAY 0x8DCF
  664. #define GL_UNSIGNED_INT_SAMPLER_1D 0x8DD1
  665. #define GL_UNSIGNED_INT_SAMPLER_2D 0x8DD2
  666. #define GL_UNSIGNED_INT_SAMPLER_3D 0x8DD3
  667. #define GL_UNSIGNED_INT_SAMPLER_CUBE 0x8DD4
  668. #define GL_UNSIGNED_INT_SAMPLER_1D_ARRAY 0x8DD6
  669. #define GL_UNSIGNED_INT_SAMPLER_2D_ARRAY 0x8DD7
  670. #define GL_QUERY_WAIT 0x8E13
  671. #define GL_QUERY_NO_WAIT 0x8E14
  672. #define GL_QUERY_BY_REGION_WAIT 0x8E15
  673. #define GL_QUERY_BY_REGION_NO_WAIT 0x8E16
  674. #define GL_BUFFER_ACCESS_FLAGS 0x911F
  675. #define GL_BUFFER_MAP_LENGTH 0x9120
  676. #define GL_BUFFER_MAP_OFFSET 0x9121
  677. /* Reuse tokens from ARB_depth_buffer_float */
  678. /* reuse GL_DEPTH_COMPONENT32F */
  679. /* reuse GL_DEPTH32F_STENCIL8 */
  680. /* reuse GL_FLOAT_32_UNSIGNED_INT_24_8_REV */
  681. /* Reuse tokens from ARB_framebuffer_object */
  682. /* reuse GL_INVALID_FRAMEBUFFER_OPERATION */
  683. /* reuse GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING */
  684. /* reuse GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE */
  685. /* reuse GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE */
  686. /* reuse GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE */
  687. /* reuse GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE */
  688. /* reuse GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE */
  689. /* reuse GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE */
  690. /* reuse GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE */
  691. /* reuse GL_FRAMEBUFFER_DEFAULT */
  692. /* reuse GL_FRAMEBUFFER_UNDEFINED */
  693. /* reuse GL_DEPTH_STENCIL_ATTACHMENT */
  694. /* reuse GL_INDEX */
  695. /* reuse GL_MAX_RENDERBUFFER_SIZE */
  696. /* reuse GL_DEPTH_STENCIL */
  697. /* reuse GL_UNSIGNED_INT_24_8 */
  698. /* reuse GL_DEPTH24_STENCIL8 */
  699. /* reuse GL_TEXTURE_STENCIL_SIZE */
  700. /* reuse GL_TEXTURE_RED_TYPE */
  701. /* reuse GL_TEXTURE_GREEN_TYPE */
  702. /* reuse GL_TEXTURE_BLUE_TYPE */
  703. /* reuse GL_TEXTURE_ALPHA_TYPE */
  704. /* reuse GL_TEXTURE_DEPTH_TYPE */
  705. /* reuse GL_UNSIGNED_NORMALIZED */
  706. /* reuse GL_FRAMEBUFFER_BINDING */
  707. /* reuse GL_DRAW_FRAMEBUFFER_BINDING */
  708. /* reuse GL_RENDERBUFFER_BINDING */
  709. /* reuse GL_READ_FRAMEBUFFER */
  710. /* reuse GL_DRAW_FRAMEBUFFER */
  711. /* reuse GL_READ_FRAMEBUFFER_BINDING */
  712. /* reuse GL_RENDERBUFFER_SAMPLES */
  713. /* reuse GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE */
  714. /* reuse GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME */
  715. /* reuse GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL */
  716. /* reuse GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE */
  717. /* reuse GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER */
  718. /* reuse GL_FRAMEBUFFER_COMPLETE */
  719. /* reuse GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT */
  720. /* reuse GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT */
  721. /* reuse GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER */
  722. /* reuse GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER */
  723. /* reuse GL_FRAMEBUFFER_UNSUPPORTED */
  724. /* reuse GL_MAX_COLOR_ATTACHMENTS */
  725. /* reuse GL_COLOR_ATTACHMENT0 */
  726. /* reuse GL_COLOR_ATTACHMENT1 */
  727. /* reuse GL_COLOR_ATTACHMENT2 */
  728. /* reuse GL_COLOR_ATTACHMENT3 */
  729. /* reuse GL_COLOR_ATTACHMENT4 */
  730. /* reuse GL_COLOR_ATTACHMENT5 */
  731. /* reuse GL_COLOR_ATTACHMENT6 */
  732. /* reuse GL_COLOR_ATTACHMENT7 */
  733. /* reuse GL_COLOR_ATTACHMENT8 */
  734. /* reuse GL_COLOR_ATTACHMENT9 */
  735. /* reuse GL_COLOR_ATTACHMENT10 */
  736. /* reuse GL_COLOR_ATTACHMENT11 */
  737. /* reuse GL_COLOR_ATTACHMENT12 */
  738. /* reuse GL_COLOR_ATTACHMENT13 */
  739. /* reuse GL_COLOR_ATTACHMENT14 */
  740. /* reuse GL_COLOR_ATTACHMENT15 */
  741. /* reuse GL_DEPTH_ATTACHMENT */
  742. /* reuse GL_STENCIL_ATTACHMENT */
  743. /* reuse GL_FRAMEBUFFER */
  744. /* reuse GL_RENDERBUFFER */
  745. /* reuse GL_RENDERBUFFER_WIDTH */
  746. /* reuse GL_RENDERBUFFER_HEIGHT */
  747. /* reuse GL_RENDERBUFFER_INTERNAL_FORMAT */
  748. /* reuse GL_STENCIL_INDEX1 */
  749. /* reuse GL_STENCIL_INDEX4 */
  750. /* reuse GL_STENCIL_INDEX8 */
  751. /* reuse GL_STENCIL_INDEX16 */
  752. /* reuse GL_RENDERBUFFER_RED_SIZE */
  753. /* reuse GL_RENDERBUFFER_GREEN_SIZE */
  754. /* reuse GL_RENDERBUFFER_BLUE_SIZE */
  755. /* reuse GL_RENDERBUFFER_ALPHA_SIZE */
  756. /* reuse GL_RENDERBUFFER_DEPTH_SIZE */
  757. /* reuse GL_RENDERBUFFER_STENCIL_SIZE */
  758. /* reuse GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE */
  759. /* reuse GL_MAX_SAMPLES */
  760. /* Reuse tokens from ARB_framebuffer_sRGB */
  761. /* reuse GL_FRAMEBUFFER_SRGB */
  762. /* Reuse tokens from ARB_half_float_vertex */
  763. /* reuse GL_HALF_FLOAT */
  764. /* Reuse tokens from ARB_map_buffer_range */
  765. /* reuse GL_MAP_READ_BIT */
  766. /* reuse GL_MAP_WRITE_BIT */
  767. /* reuse GL_MAP_INVALIDATE_RANGE_BIT */
  768. /* reuse GL_MAP_INVALIDATE_BUFFER_BIT */
  769. /* reuse GL_MAP_FLUSH_EXPLICIT_BIT */
  770. /* reuse GL_MAP_UNSYNCHRONIZED_BIT */
  771. /* Reuse tokens from ARB_texture_compression_rgtc */
  772. /* reuse GL_COMPRESSED_RED_RGTC1 */
  773. /* reuse GL_COMPRESSED_SIGNED_RED_RGTC1 */
  774. /* reuse GL_COMPRESSED_RG_RGTC2 */
  775. /* reuse GL_COMPRESSED_SIGNED_RG_RGTC2 */
  776. /* Reuse tokens from ARB_texture_rg */
  777. /* reuse GL_RG */
  778. /* reuse GL_RG_INTEGER */
  779. /* reuse GL_R8 */
  780. /* reuse GL_R16 */
  781. /* reuse GL_RG8 */
  782. /* reuse GL_RG16 */
  783. /* reuse GL_R16F */
  784. /* reuse GL_R32F */
  785. /* reuse GL_RG16F */
  786. /* reuse GL_RG32F */
  787. /* reuse GL_R8I */
  788. /* reuse GL_R8UI */
  789. /* reuse GL_R16I */
  790. /* reuse GL_R16UI */
  791. /* reuse GL_R32I */
  792. /* reuse GL_R32UI */
  793. /* reuse GL_RG8I */
  794. /* reuse GL_RG8UI */
  795. /* reuse GL_RG16I */
  796. /* reuse GL_RG16UI */
  797. /* reuse GL_RG32I */
  798. /* reuse GL_RG32UI */
  799. /* Reuse tokens from ARB_vertex_array_object */
  800. /* reuse GL_VERTEX_ARRAY_BINDING */
  801. #endif
  802. #ifndef GL_VERSION_3_1
  803. #define GL_SAMPLER_2D_RECT 0x8B63
  804. #define GL_SAMPLER_2D_RECT_SHADOW 0x8B64
  805. #define GL_SAMPLER_BUFFER 0x8DC2
  806. #define GL_INT_SAMPLER_2D_RECT 0x8DCD
  807. #define GL_INT_SAMPLER_BUFFER 0x8DD0
  808. #define GL_UNSIGNED_INT_SAMPLER_2D_RECT 0x8DD5
  809. #define GL_UNSIGNED_INT_SAMPLER_BUFFER 0x8DD8
  810. #define GL_TEXTURE_BUFFER 0x8C2A
  811. #define GL_MAX_TEXTURE_BUFFER_SIZE 0x8C2B
  812. #define GL_TEXTURE_BINDING_BUFFER 0x8C2C
  813. #define GL_TEXTURE_BUFFER_DATA_STORE_BINDING 0x8C2D
  814. #define GL_TEXTURE_RECTANGLE 0x84F5
  815. #define GL_TEXTURE_BINDING_RECTANGLE 0x84F6
  816. #define GL_PROXY_TEXTURE_RECTANGLE 0x84F7
  817. #define GL_MAX_RECTANGLE_TEXTURE_SIZE 0x84F8
  818. #define GL_RED_SNORM 0x8F90
  819. #define GL_RG_SNORM 0x8F91
  820. #define GL_RGB_SNORM 0x8F92
  821. #define GL_RGBA_SNORM 0x8F93
  822. #define GL_R8_SNORM 0x8F94
  823. #define GL_RG8_SNORM 0x8F95
  824. #define GL_RGB8_SNORM 0x8F96
  825. #define GL_RGBA8_SNORM 0x8F97
  826. #define GL_R16_SNORM 0x8F98
  827. #define GL_RG16_SNORM 0x8F99
  828. #define GL_RGB16_SNORM 0x8F9A
  829. #define GL_RGBA16_SNORM 0x8F9B
  830. #define GL_SIGNED_NORMALIZED 0x8F9C
  831. #define GL_PRIMITIVE_RESTART 0x8F9D
  832. #define GL_PRIMITIVE_RESTART_INDEX 0x8F9E
  833. /* Reuse tokens from ARB_copy_buffer */
  834. /* reuse GL_COPY_READ_BUFFER */
  835. /* reuse GL_COPY_WRITE_BUFFER */
  836. /* Reuse tokens from ARB_draw_instanced (none) */
  837. /* Reuse tokens from ARB_uniform_buffer_object */
  838. /* reuse GL_UNIFORM_BUFFER */
  839. /* reuse GL_UNIFORM_BUFFER_BINDING */
  840. /* reuse GL_UNIFORM_BUFFER_START */
  841. /* reuse GL_UNIFORM_BUFFER_SIZE */
  842. /* reuse GL_MAX_VERTEX_UNIFORM_BLOCKS */
  843. /* reuse GL_MAX_FRAGMENT_UNIFORM_BLOCKS */
  844. /* reuse GL_MAX_COMBINED_UNIFORM_BLOCKS */
  845. /* reuse GL_MAX_UNIFORM_BUFFER_BINDINGS */
  846. /* reuse GL_MAX_UNIFORM_BLOCK_SIZE */
  847. /* reuse GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS */
  848. /* reuse GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS */
  849. /* reuse GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT */
  850. /* reuse GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH */
  851. /* reuse GL_ACTIVE_UNIFORM_BLOCKS */
  852. /* reuse GL_UNIFORM_TYPE */
  853. /* reuse GL_UNIFORM_SIZE */
  854. /* reuse GL_UNIFORM_NAME_LENGTH */
  855. /* reuse GL_UNIFORM_BLOCK_INDEX */
  856. /* reuse GL_UNIFORM_OFFSET */
  857. /* reuse GL_UNIFORM_ARRAY_STRIDE */
  858. /* reuse GL_UNIFORM_MATRIX_STRIDE */
  859. /* reuse GL_UNIFORM_IS_ROW_MAJOR */
  860. /* reuse GL_UNIFORM_BLOCK_BINDING */
  861. /* reuse GL_UNIFORM_BLOCK_DATA_SIZE */
  862. /* reuse GL_UNIFORM_BLOCK_NAME_LENGTH */
  863. /* reuse GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS */
  864. /* reuse GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES */
  865. /* reuse GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER */
  866. /* reuse GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER */
  867. /* reuse GL_INVALID_INDEX */
  868. #endif
  869. #ifndef GL_VERSION_3_2
  870. #define GL_CONTEXT_CORE_PROFILE_BIT 0x00000001
  871. #define GL_CONTEXT_COMPATIBILITY_PROFILE_BIT 0x00000002
  872. #define GL_LINES_ADJACENCY 0x000A
  873. #define GL_LINE_STRIP_ADJACENCY 0x000B
  874. #define GL_TRIANGLES_ADJACENCY 0x000C
  875. #define GL_TRIANGLE_STRIP_ADJACENCY 0x000D
  876. #define GL_PROGRAM_POINT_SIZE 0x8642
  877. #define GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS 0x8C29
  878. #define GL_FRAMEBUFFER_ATTACHMENT_LAYERED 0x8DA7
  879. #define GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS 0x8DA8
  880. #define GL_GEOMETRY_SHADER 0x8DD9
  881. #define GL_GEOMETRY_VERTICES_OUT 0x8916
  882. #define GL_GEOMETRY_INPUT_TYPE 0x8917
  883. #define GL_GEOMETRY_OUTPUT_TYPE 0x8918
  884. #define GL_MAX_GEOMETRY_UNIFORM_COMPONENTS 0x8DDF
  885. #define GL_MAX_GEOMETRY_OUTPUT_VERTICES 0x8DE0
  886. #define GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS 0x8DE1
  887. #define GL_MAX_VERTEX_OUTPUT_COMPONENTS 0x9122
  888. #define GL_MAX_GEOMETRY_INPUT_COMPONENTS 0x9123
  889. #define GL_MAX_GEOMETRY_OUTPUT_COMPONENTS 0x9124
  890. #define GL_MAX_FRAGMENT_INPUT_COMPONENTS 0x9125
  891. #define GL_CONTEXT_PROFILE_MASK 0x9126
  892. /* reuse GL_MAX_VARYING_COMPONENTS */
  893. /* reuse GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER */
  894. /* Reuse tokens from ARB_depth_clamp */
  895. /* reuse GL_DEPTH_CLAMP */
  896. /* Reuse tokens from ARB_draw_elements_base_vertex (none) */
  897. /* Reuse tokens from ARB_fragment_coord_conventions (none) */
  898. /* Reuse tokens from ARB_provoking_vertex */
  899. /* reuse GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION */
  900. /* reuse GL_FIRST_VERTEX_CONVENTION */
  901. /* reuse GL_LAST_VERTEX_CONVENTION */
  902. /* reuse GL_PROVOKING_VERTEX */
  903. /* Reuse tokens from ARB_seamless_cube_map */
  904. /* reuse GL_TEXTURE_CUBE_MAP_SEAMLESS */
  905. /* Reuse tokens from ARB_sync */
  906. /* reuse GL_MAX_SERVER_WAIT_TIMEOUT */
  907. /* reuse GL_OBJECT_TYPE */
  908. /* reuse GL_SYNC_CONDITION */
  909. /* reuse GL_SYNC_STATUS */
  910. /* reuse GL_SYNC_FLAGS */
  911. /* reuse GL_SYNC_FENCE */
  912. /* reuse GL_SYNC_GPU_COMMANDS_COMPLETE */
  913. /* reuse GL_UNSIGNALED */
  914. /* reuse GL_SIGNALED */
  915. /* reuse GL_ALREADY_SIGNALED */
  916. /* reuse GL_TIMEOUT_EXPIRED */
  917. /* reuse GL_CONDITION_SATISFIED */
  918. /* reuse GL_WAIT_FAILED */
  919. /* reuse GL_TIMEOUT_IGNORED */
  920. /* reuse GL_SYNC_FLUSH_COMMANDS_BIT */
  921. /* reuse GL_TIMEOUT_IGNORED */
  922. /* Reuse tokens from ARB_texture_multisample */
  923. /* reuse GL_SAMPLE_POSITION */
  924. /* reuse GL_SAMPLE_MASK */
  925. /* reuse GL_SAMPLE_MASK_VALUE */
  926. /* reuse GL_MAX_SAMPLE_MASK_WORDS */
  927. /* reuse GL_TEXTURE_2D_MULTISAMPLE */
  928. /* reuse GL_PROXY_TEXTURE_2D_MULTISAMPLE */
  929. /* reuse GL_TEXTURE_2D_MULTISAMPLE_ARRAY */
  930. /* reuse GL_PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY */
  931. /* reuse GL_TEXTURE_BINDING_2D_MULTISAMPLE */
  932. /* reuse GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY */
  933. /* reuse GL_TEXTURE_SAMPLES */
  934. /* reuse GL_TEXTURE_FIXED_SAMPLE_LOCATIONS */
  935. /* reuse GL_SAMPLER_2D_MULTISAMPLE */
  936. /* reuse GL_INT_SAMPLER_2D_MULTISAMPLE */
  937. /* reuse GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE */
  938. /* reuse GL_SAMPLER_2D_MULTISAMPLE_ARRAY */
  939. /* reuse GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY */
  940. /* reuse GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY */
  941. /* reuse GL_MAX_COLOR_TEXTURE_SAMPLES */
  942. /* reuse GL_MAX_DEPTH_TEXTURE_SAMPLES */
  943. /* reuse GL_MAX_INTEGER_SAMPLES */
  944. /* Don't need to reuse tokens from ARB_vertex_array_bgra since they're already in 1.2 core */
  945. #endif
  946. #ifndef GL_VERSION_3_3
  947. #define GL_VERTEX_ATTRIB_ARRAY_DIVISOR 0x88FE
  948. /* Reuse tokens from ARB_blend_func_extended */
  949. /* reuse GL_SRC1_COLOR */
  950. /* reuse GL_ONE_MINUS_SRC1_COLOR */
  951. /* reuse GL_ONE_MINUS_SRC1_ALPHA */
  952. /* reuse GL_MAX_DUAL_SOURCE_DRAW_BUFFERS */
  953. /* Reuse tokens from ARB_explicit_attrib_location (none) */
  954. /* Reuse tokens from ARB_occlusion_query2 */
  955. /* reuse GL_ANY_SAMPLES_PASSED */
  956. /* Reuse tokens from ARB_sampler_objects */
  957. /* reuse GL_SAMPLER_BINDING */
  958. /* Reuse tokens from ARB_shader_bit_encoding (none) */
  959. /* Reuse tokens from ARB_texture_rgb10_a2ui */
  960. /* reuse GL_RGB10_A2UI */
  961. /* Reuse tokens from ARB_texture_swizzle */
  962. /* reuse GL_TEXTURE_SWIZZLE_R */
  963. /* reuse GL_TEXTURE_SWIZZLE_G */
  964. /* reuse GL_TEXTURE_SWIZZLE_B */
  965. /* reuse GL_TEXTURE_SWIZZLE_A */
  966. /* reuse GL_TEXTURE_SWIZZLE_RGBA */
  967. /* Reuse tokens from ARB_timer_query */
  968. /* reuse GL_TIME_ELAPSED */
  969. /* reuse GL_TIMESTAMP */
  970. /* Reuse tokens from ARB_vertex_type_2_10_10_10_rev */
  971. /* reuse GL_INT_2_10_10_10_REV */
  972. #endif
  973. #ifndef GL_VERSION_4_0
  974. #define GL_SAMPLE_SHADING 0x8C36
  975. #define GL_MIN_SAMPLE_SHADING_VALUE 0x8C37
  976. #define GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET 0x8E5E
  977. #define GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET 0x8E5F
  978. #define GL_TEXTURE_CUBE_MAP_ARRAY 0x9009
  979. #define GL_TEXTURE_BINDING_CUBE_MAP_ARRAY 0x900A
  980. #define GL_PROXY_TEXTURE_CUBE_MAP_ARRAY 0x900B
  981. #define GL_SAMPLER_CUBE_MAP_ARRAY 0x900C
  982. #define GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW 0x900D
  983. #define GL_INT_SAMPLER_CUBE_MAP_ARRAY 0x900E
  984. #define GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY 0x900F
  985. /* Reuse tokens from ARB_texture_query_lod (none) */
  986. /* Reuse tokens from ARB_draw_buffers_blend (none) */
  987. /* Reuse tokens from ARB_draw_indirect */
  988. /* reuse GL_DRAW_INDIRECT_BUFFER */
  989. /* reuse GL_DRAW_INDIRECT_BUFFER_BINDING */
  990. /* Reuse tokens from ARB_gpu_shader5 */
  991. /* reuse GL_GEOMETRY_SHADER_INVOCATIONS */
  992. /* reuse GL_MAX_GEOMETRY_SHADER_INVOCATIONS */
  993. /* reuse GL_MIN_FRAGMENT_INTERPOLATION_OFFSET */
  994. /* reuse GL_MAX_FRAGMENT_INTERPOLATION_OFFSET */
  995. /* reuse GL_FRAGMENT_INTERPOLATION_OFFSET_BITS */
  996. /* reuse GL_MAX_VERTEX_STREAMS */
  997. /* Reuse tokens from ARB_gpu_shader_fp64 */
  998. /* reuse GL_DOUBLE_VEC2 */
  999. /* reuse GL_DOUBLE_VEC3 */
  1000. /* reuse GL_DOUBLE_VEC4 */
  1001. /* reuse GL_DOUBLE_MAT2 */
  1002. /* reuse GL_DOUBLE_MAT3 */
  1003. /* reuse GL_DOUBLE_MAT4 */
  1004. /* reuse GL_DOUBLE_MAT2x3 */
  1005. /* reuse GL_DOUBLE_MAT2x4 */
  1006. /* reuse GL_DOUBLE_MAT3x2 */
  1007. /* reuse GL_DOUBLE_MAT3x4 */
  1008. /* reuse GL_DOUBLE_MAT4x2 */
  1009. /* reuse GL_DOUBLE_MAT4x3 */
  1010. /* Reuse tokens from ARB_shader_subroutine */
  1011. /* reuse GL_ACTIVE_SUBROUTINES */
  1012. /* reuse GL_ACTIVE_SUBROUTINE_UNIFORMS */
  1013. /* reuse GL_ACTIVE_SUBROUTINE_UNIFORM_LOCATIONS */
  1014. /* reuse GL_ACTIVE_SUBROUTINE_MAX_LENGTH */
  1015. /* reuse GL_ACTIVE_SUBROUTINE_UNIFORM_MAX_LENGTH */
  1016. /* reuse GL_MAX_SUBROUTINES */
  1017. /* reuse GL_MAX_SUBROUTINE_UNIFORM_LOCATIONS */
  1018. /* reuse GL_NUM_COMPATIBLE_SUBROUTINES */
  1019. /* reuse GL_COMPATIBLE_SUBROUTINES */
  1020. /* Reuse tokens from ARB_tessellation_shader */
  1021. /* reuse GL_PATCHES */
  1022. /* reuse GL_PATCH_VERTICES */
  1023. /* reuse GL_PATCH_DEFAULT_INNER_LEVEL */
  1024. /* reuse GL_PATCH_DEFAULT_OUTER_LEVEL */
  1025. /* reuse GL_TESS_CONTROL_OUTPUT_VERTICES */
  1026. /* reuse GL_TESS_GEN_MODE */
  1027. /* reuse GL_TESS_GEN_SPACING */
  1028. /* reuse GL_TESS_GEN_VERTEX_ORDER */
  1029. /* reuse GL_TESS_GEN_POINT_MODE */
  1030. /* reuse GL_ISOLINES */
  1031. /* reuse GL_FRACTIONAL_ODD */
  1032. /* reuse GL_FRACTIONAL_EVEN */
  1033. /* reuse GL_MAX_PATCH_VERTICES */
  1034. /* reuse GL_MAX_TESS_GEN_LEVEL */
  1035. /* reuse GL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS */
  1036. /* reuse GL_MAX_TESS_EVALUATION_UNIFORM_COMPONENTS */
  1037. /* reuse GL_MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS */
  1038. /* reuse GL_MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS */
  1039. /* reuse GL_MAX_TESS_CONTROL_OUTPUT_COMPONENTS */
  1040. /* reuse GL_MAX_TESS_PATCH_COMPONENTS */
  1041. /* reuse GL_MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS */
  1042. /* reuse GL_MAX_TESS_EVALUATION_OUTPUT_COMPONENTS */
  1043. /* reuse GL_MAX_TESS_CONTROL_UNIFORM_BLOCKS */
  1044. /* reuse GL_MAX_TESS_EVALUATION_UNIFORM_BLOCKS */
  1045. /* reuse GL_MAX_TESS_CONTROL_INPUT_COMPONENTS */
  1046. /* reuse GL_MAX_TESS_EVALUATION_INPUT_COMPONENTS */
  1047. /* reuse GL_MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS */
  1048. /* reuse GL_MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS */
  1049. /* reuse GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_CONTROL_SHADER */
  1050. /* reuse GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_EVALUATION_SHADER */
  1051. /* reuse GL_TESS_EVALUATION_SHADER */
  1052. /* reuse GL_TESS_CONTROL_SHADER */
  1053. /* Reuse tokens from ARB_texture_buffer_object_rgb32 (none) */
  1054. /* Reuse tokens from ARB_transform_feedback2 */
  1055. /* reuse GL_TRANSFORM_FEEDBACK */
  1056. /* reuse GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED */
  1057. /* reuse GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE */
  1058. /* reuse GL_TRANSFORM_FEEDBACK_BINDING */
  1059. /* Reuse tokens from ARB_transform_feedback3 */
  1060. /* reuse GL_MAX_TRANSFORM_FEEDBACK_BUFFERS */
  1061. /* reuse GL_MAX_VERTEX_STREAMS */
  1062. #endif
  1063. #ifndef GL_VERSION_4_1
  1064. /* Reuse tokens from ARB_ES2_compatibility */
  1065. /* reuse GL_FIXED */
  1066. /* reuse GL_IMPLEMENTATION_COLOR_READ_TYPE */
  1067. /* reuse GL_IMPLEMENTATION_COLOR_READ_FORMAT */
  1068. /* reuse GL_LOW_FLOAT */
  1069. /* reuse GL_MEDIUM_FLOAT */
  1070. /* reuse GL_HIGH_FLOAT */
  1071. /* reuse GL_LOW_INT */
  1072. /* reuse GL_MEDIUM_INT */
  1073. /* reuse GL_HIGH_INT */
  1074. /* reuse GL_SHADER_COMPILER */
  1075. /* reuse GL_SHADER_BINARY_FORMATS */
  1076. /* reuse GL_NUM_SHADER_BINARY_FORMATS */
  1077. /* reuse GL_MAX_VERTEX_UNIFORM_VECTORS */
  1078. /* reuse GL_MAX_VARYING_VECTORS */
  1079. /* reuse GL_MAX_FRAGMENT_UNIFORM_VECTORS */
  1080. /* reuse GL_RGB565 */
  1081. /* Reuse tokens from ARB_get_program_binary */
  1082. /* reuse GL_PROGRAM_BINARY_RETRIEVABLE_HINT */
  1083. /* reuse GL_PROGRAM_BINARY_LENGTH */
  1084. /* reuse GL_NUM_PROGRAM_BINARY_FORMATS */
  1085. /* reuse GL_PROGRAM_BINARY_FORMATS */
  1086. /* Reuse tokens from ARB_separate_shader_objects */
  1087. /* reuse GL_VERTEX_SHADER_BIT */
  1088. /* reuse GL_FRAGMENT_SHADER_BIT */
  1089. /* reuse GL_GEOMETRY_SHADER_BIT */
  1090. /* reuse GL_TESS_CONTROL_SHADER_BIT */
  1091. /* reuse GL_TESS_EVALUATION_SHADER_BIT */
  1092. /* reuse GL_ALL_SHADER_BITS */
  1093. /* reuse GL_PROGRAM_SEPARABLE */
  1094. /* reuse GL_ACTIVE_PROGRAM */
  1095. /* reuse GL_PROGRAM_PIPELINE_BINDING */
  1096. /* Reuse tokens from ARB_shader_precision (none) */
  1097. /* Reuse tokens from ARB_vertex_attrib_64bit - all are in GL 3.0 and 4.0 already */
  1098. /* Reuse tokens from ARB_viewport_array - some are in GL 1.1 and ARB_provoking_vertex already */
  1099. /* reuse GL_MAX_VIEWPORTS */
  1100. /* reuse GL_VIEWPORT_SUBPIXEL_BITS */
  1101. /* reuse GL_VIEWPORT_BOUNDS_RANGE */
  1102. /* reuse GL_LAYER_PROVOKING_VERTEX */
  1103. /* reuse GL_VIEWPORT_INDEX_PROVOKING_VERTEX */
  1104. /* reuse GL_UNDEFINED_VERTEX */
  1105. #endif
  1106. #ifndef GL_VERSION_4_2
  1107. /* Reuse tokens from ARB_base_instance (none) */
  1108. /* Reuse tokens from ARB_shading_language_420pack (none) */
  1109. /* Reuse tokens from ARB_transform_feedback_instanced (none) */
  1110. /* Reuse tokens from ARB_compressed_texture_pixel_storage */
  1111. /* reuse GL_UNPACK_COMPRESSED_BLOCK_WIDTH */
  1112. /* reuse GL_UNPACK_COMPRESSED_BLOCK_HEIGHT */
  1113. /* reuse GL_UNPACK_COMPRESSED_BLOCK_DEPTH */
  1114. /* reuse GL_UNPACK_COMPRESSED_BLOCK_SIZE */
  1115. /* reuse GL_PACK_COMPRESSED_BLOCK_WIDTH */
  1116. /* reuse GL_PACK_COMPRESSED_BLOCK_HEIGHT */
  1117. /* reuse GL_PACK_COMPRESSED_BLOCK_DEPTH */
  1118. /* reuse GL_PACK_COMPRESSED_BLOCK_SIZE */
  1119. /* Reuse tokens from ARB_conservative_depth (none) */
  1120. /* Reuse tokens from ARB_internalformat_query */
  1121. /* reuse GL_NUM_SAMPLE_COUNTS */
  1122. /* Reuse tokens from ARB_map_buffer_alignment */
  1123. /* reuse GL_MIN_MAP_BUFFER_ALIGNMENT */
  1124. /* Reuse tokens from ARB_shader_atomic_counters */
  1125. /* reuse GL_ATOMIC_COUNTER_BUFFER */
  1126. /* reuse GL_ATOMIC_COUNTER_BUFFER_BINDING */
  1127. /* reuse GL_ATOMIC_COUNTER_BUFFER_START */
  1128. /* reuse GL_ATOMIC_COUNTER_BUFFER_SIZE */
  1129. /* reuse GL_ATOMIC_COUNTER_BUFFER_DATA_SIZE */
  1130. /* reuse GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTERS */
  1131. /* reuse GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTER_INDICES */
  1132. /* reuse GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_VERTEX_SHADER */
  1133. /* reuse GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_CONTROL_SHADER */
  1134. /* reuse GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_EVALUATION_SHADER */
  1135. /* reuse GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_GEOMETRY_SHADER */
  1136. /* reuse GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_FRAGMENT_SHADER */
  1137. /* reuse GL_MAX_VERTEX_ATOMIC_COUNTER_BUFFERS */
  1138. /* reuse GL_MAX_TESS_CONTROL_ATOMIC_COUNTER_BUFFERS */
  1139. /* reuse GL_MAX_TESS_EVALUATION_ATOMIC_COUNTER_BUFFERS */
  1140. /* reuse GL_MAX_GEOMETRY_ATOMIC_COUNTER_BUFFERS */
  1141. /* reuse GL_MAX_FRAGMENT_ATOMIC_COUNTER_BUFFERS */
  1142. /* reuse GL_MAX_COMBINED_ATOMIC_COUNTER_BUFFERS */
  1143. /* reuse GL_MAX_VERTEX_ATOMIC_COUNTERS */
  1144. /* reuse GL_MAX_TESS_CONTROL_ATOMIC_COUNTERS */
  1145. /* reuse GL_MAX_TESS_EVALUATION_ATOMIC_COUNTERS */
  1146. /* reuse GL_MAX_GEOMETRY_ATOMIC_COUNTERS */
  1147. /* reuse GL_MAX_FRAGMENT_ATOMIC_COUNTERS */
  1148. /* reuse GL_MAX_COMBINED_ATOMIC_COUNTERS */
  1149. /* reuse GL_MAX_ATOMIC_COUNTER_BUFFER_SIZE */
  1150. /* reuse GL_MAX_ATOMIC_COUNTER_BUFFER_BINDINGS */
  1151. /* reuse GL_ACTIVE_ATOMIC_COUNTER_BUFFERS */
  1152. /* reuse GL_UNIFORM_ATOMIC_COUNTER_BUFFER_INDEX */
  1153. /* reuse GL_UNSIGNED_INT_ATOMIC_COUNTER */
  1154. /* Reuse tokens from ARB_shader_image_load_store */
  1155. /* reuse GL_VERTEX_ATTRIB_ARRAY_BARRIER_BIT */
  1156. /* reuse GL_ELEMENT_ARRAY_BARRIER_BIT */
  1157. /* reuse GL_UNIFORM_BARRIER_BIT */
  1158. /* reuse GL_TEXTURE_FETCH_BARRIER_BIT */
  1159. /* reuse GL_SHADER_IMAGE_ACCESS_BARRIER_BIT */
  1160. /* reuse GL_COMMAND_BARRIER_BIT */
  1161. /* reuse GL_PIXEL_BUFFER_BARRIER_BIT */
  1162. /* reuse GL_TEXTURE_UPDATE_BARRIER_BIT */
  1163. /* reuse GL_BUFFER_UPDATE_BARRIER_BIT */
  1164. /* reuse GL_FRAMEBUFFER_BARRIER_BIT */
  1165. /* reuse GL_TRANSFORM_FEEDBACK_BARRIER_BIT */
  1166. /* reuse GL_ATOMIC_COUNTER_BARRIER_BIT */
  1167. /* reuse GL_ALL_BARRIER_BITS */
  1168. /* reuse GL_MAX_IMAGE_UNITS */
  1169. /* reuse GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS */
  1170. /* reuse GL_IMAGE_BINDING_NAME */
  1171. /* reuse GL_IMAGE_BINDING_LEVEL */
  1172. /* reuse GL_IMAGE_BINDING_LAYERED */
  1173. /* reuse GL_IMAGE_BINDING_LAYER */
  1174. /* reuse GL_IMAGE_BINDING_ACCESS */
  1175. /* reuse GL_IMAGE_1D */
  1176. /* reuse GL_IMAGE_2D */
  1177. /* reuse GL_IMAGE_3D */
  1178. /* reuse GL_IMAGE_2D_RECT */
  1179. /* reuse GL_IMAGE_CUBE */
  1180. /* reuse GL_IMAGE_BUFFER */
  1181. /* reuse GL_IMAGE_1D_ARRAY */
  1182. /* reuse GL_IMAGE_2D_ARRAY */
  1183. /* reuse GL_IMAGE_CUBE_MAP_ARRAY */
  1184. /* reuse GL_IMAGE_2D_MULTISAMPLE */
  1185. /* reuse GL_IMAGE_2D_MULTISAMPLE_ARRAY */
  1186. /* reuse GL_INT_IMAGE_1D */
  1187. /* reuse GL_INT_IMAGE_2D */
  1188. /* reuse GL_INT_IMAGE_3D */
  1189. /* reuse GL_INT_IMAGE_2D_RECT */
  1190. /* reuse GL_INT_IMAGE_CUBE */
  1191. /* reuse GL_INT_IMAGE_BUFFER */
  1192. /* reuse GL_INT_IMAGE_1D_ARRAY */
  1193. /* reuse GL_INT_IMAGE_2D_ARRAY */
  1194. /* reuse GL_INT_IMAGE_CUBE_MAP_ARRAY */
  1195. /* reuse GL_INT_IMAGE_2D_MULTISAMPLE */
  1196. /* reuse GL_INT_IMAGE_2D_MULTISAMPLE_ARRAY */
  1197. /* reuse GL_UNSIGNED_INT_IMAGE_1D */
  1198. /* reuse GL_UNSIGNED_INT_IMAGE_2D */
  1199. /* reuse GL_UNSIGNED_INT_IMAGE_3D */
  1200. /* reuse GL_UNSIGNED_INT_IMAGE_2D_RECT */
  1201. /* reuse GL_UNSIGNED_INT_IMAGE_CUBE */
  1202. /* reuse GL_UNSIGNED_INT_IMAGE_BUFFER */
  1203. /* reuse GL_UNSIGNED_INT_IMAGE_1D_ARRAY */
  1204. /* reuse GL_UNSIGNED_INT_IMAGE_2D_ARRAY */
  1205. /* reuse GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY */
  1206. /* reuse GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE */
  1207. /* reuse GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_ARRAY */
  1208. /* reuse GL_MAX_IMAGE_SAMPLES */
  1209. /* reuse GL_IMAGE_BINDING_FORMAT */
  1210. /* reuse GL_IMAGE_FORMAT_COMPATIBILITY_TYPE */
  1211. /* reuse GL_IMAGE_FORMAT_COMPATIBILITY_BY_SIZE */
  1212. /* reuse GL_IMAGE_FORMAT_COMPATIBILITY_BY_CLASS */
  1213. /* reuse GL_MAX_VERTEX_IMAGE_UNIFORMS */
  1214. /* reuse GL_MAX_TESS_CONTROL_IMAGE_UNIFORMS */
  1215. /* reuse GL_MAX_TESS_EVALUATION_IMAGE_UNIFORMS */
  1216. /* reuse GL_MAX_GEOMETRY_IMAGE_UNIFORMS */
  1217. /* reuse GL_MAX_FRAGMENT_IMAGE_UNIFORMS */
  1218. /* reuse GL_MAX_COMBINED_IMAGE_UNIFORMS */
  1219. /* Reuse tokens from ARB_shading_language_packing (none) */
  1220. /* Reuse tokens from ARB_texture_storage */
  1221. /* reuse GL_TEXTURE_IMMUTABLE_FORMAT */
  1222. #endif
  1223. #ifndef GL_VERSION_4_3
  1224. #define GL_NUM_SHADING_LANGUAGE_VERSIONS 0x82E9
  1225. #define GL_VERTEX_ATTRIB_ARRAY_LONG 0x874E
  1226. /* Reuse tokens from ARB_arrays_of_arrays (none, GLSL only) */
  1227. /* Reuse tokens from ARB_fragment_layer_viewport (none, GLSL only) */
  1228. /* Reuse tokens from ARB_shader_image_size (none, GLSL only) */
  1229. /* Reuse tokens from ARB_ES3_compatibility */
  1230. /* reuse GL_COMPRESSED_RGB8_ETC2 */
  1231. /* reuse GL_COMPRESSED_SRGB8_ETC2 */
  1232. /* reuse GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2 */
  1233. /* reuse GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2 */
  1234. /* reuse GL_COMPRESSED_RGBA8_ETC2_EAC */
  1235. /* reuse GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC */
  1236. /* reuse GL_COMPRESSED_R11_EAC */
  1237. /* reuse GL_COMPRESSED_SIGNED_R11_EAC */
  1238. /* reuse GL_COMPRESSED_RG11_EAC */
  1239. /* reuse GL_COMPRESSED_SIGNED_RG11_EAC */
  1240. /* reuse GL_PRIMITIVE_RESTART_FIXED_INDEX */
  1241. /* reuse GL_ANY_SAMPLES_PASSED_CONSERVATIVE */
  1242. /* reuse GL_MAX_ELEMENT_INDEX */
  1243. /* Reuse tokens from ARB_clear_buffer_object (none) */
  1244. /* Reuse tokens from ARB_compute_shader */
  1245. /* reuse GL_COMPUTE_SHADER */
  1246. /* reuse GL_MAX_COMPUTE_UNIFORM_BLOCKS */
  1247. /* reuse GL_MAX_COMPUTE_TEXTURE_IMAGE_UNITS */
  1248. /* reuse GL_MAX_COMPUTE_IMAGE_UNIFORMS */
  1249. /* reuse GL_MAX_COMPUTE_SHARED_MEMORY_SIZE */
  1250. /* reuse GL_MAX_COMPUTE_UNIFORM_COMPONENTS */
  1251. /* reuse GL_MAX_COMPUTE_ATOMIC_COUNTER_BUFFERS */
  1252. /* reuse GL_MAX_COMPUTE_ATOMIC_COUNTERS */
  1253. /* reuse GL_MAX_COMBINED_COMPUTE_UNIFORM_COMPONENTS */
  1254. /* reuse GL_MAX_COMPUTE_LOCAL_INVOCATIONS */
  1255. /* reuse GL_MAX_COMPUTE_WORK_GROUP_COUNT */
  1256. /* reuse GL_MAX_COMPUTE_WORK_GROUP_SIZE */
  1257. /* reuse GL_COMPUTE_LOCAL_WORK_SIZE */
  1258. /* reuse GL_UNIFORM_BLOCK_REFERENCED_BY_COMPUTE_SHADER */
  1259. /* reuse GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_COMPUTE_SHADER */
  1260. /* reuse GL_DISPATCH_INDIRECT_BUFFER */
  1261. /* reuse GL_DISPATCH_INDIRECT_BUFFER_BINDING */
  1262. /* Reuse tokens from ARB_copy_image (none) */
  1263. /* Reuse tokens from KHR_debug */
  1264. /* reuse GL_DEBUG_OUTPUT_SYNCHRONOUS */
  1265. /* reuse GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH */
  1266. /* reuse GL_DEBUG_CALLBACK_FUNCTION */
  1267. /* reuse GL_DEBUG_CALLBACK_USER_PARAM */
  1268. /* reuse GL_DEBUG_SOURCE_API */
  1269. /* reuse GL_DEBUG_SOURCE_WINDOW_SYSTEM */
  1270. /* reuse GL_DEBUG_SOURCE_SHADER_COMPILER */
  1271. /* reuse GL_DEBUG_SOURCE_THIRD_PARTY */
  1272. /* reuse GL_DEBUG_SOURCE_APPLICATION */
  1273. /* reuse GL_DEBUG_SOURCE_OTHER */
  1274. /* reuse GL_DEBUG_TYPE_ERROR */
  1275. /* reuse GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR */
  1276. /* reuse GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR */
  1277. /* reuse GL_DEBUG_TYPE_PORTABILITY */
  1278. /* reuse GL_DEBUG_TYPE_PERFORMANCE */
  1279. /* reuse GL_DEBUG_TYPE_OTHER */
  1280. /* reuse GL_MAX_DEBUG_MESSAGE_LENGTH */
  1281. /* reuse GL_MAX_DEBUG_LOGGED_MESSAGES */
  1282. /* reuse GL_DEBUG_LOGGED_MESSAGES */
  1283. /* reuse GL_DEBUG_SEVERITY_HIGH */
  1284. /* reuse GL_DEBUG_SEVERITY_MEDIUM */
  1285. /* reuse GL_DEBUG_SEVERITY_LOW */
  1286. /* reuse GL_DEBUG_TYPE_MARKER */
  1287. /* reuse GL_DEBUG_TYPE_PUSH_GROUP */
  1288. /* reuse GL_DEBUG_TYPE_POP_GROUP */
  1289. /* reuse GL_DEBUG_SEVERITY_NOTIFICATION */
  1290. /* reuse GL_MAX_DEBUG_GROUP_STACK_DEPTH */
  1291. /* reuse GL_DEBUG_GROUP_STACK_DEPTH */
  1292. /* reuse GL_BUFFER */
  1293. /* reuse GL_SHADER */
  1294. /* reuse GL_PROGRAM */
  1295. /* reuse GL_QUERY */
  1296. /* reuse GL_PROGRAM_PIPELINE */
  1297. /* reuse GL_SAMPLER */
  1298. /* reuse GL_DISPLAY_LIST */
  1299. /* reuse GL_MAX_LABEL_LENGTH */
  1300. /* reuse GL_DEBUG_OUTPUT */
  1301. /* reuse GL_CONTEXT_FLAG_DEBUG_BIT */
  1302. /* reuse GL_STACK_UNDERFLOW */
  1303. /* reuse GL_STACK_OVERFLOW */
  1304. /* Reuse tokens from ARB_explicit_uniform_location */
  1305. /* reuse GL_MAX_UNIFORM_LOCATIONS */
  1306. /* Reuse tokens from ARB_framebuffer_no_attachments */
  1307. /* reuse GL_FRAMEBUFFER_DEFAULT_WIDTH */
  1308. /* reuse GL_FRAMEBUFFER_DEFAULT_HEIGHT */
  1309. /* reuse GL_FRAMEBUFFER_DEFAULT_LAYERS */
  1310. /* reuse GL_FRAMEBUFFER_DEFAULT_SAMPLES */
  1311. /* reuse GL_FRAMEBUFFER_DEFAULT_FIXED_SAMPLE_LOCATIONS */
  1312. /* reuse GL_MAX_FRAMEBUFFER_WIDTH */
  1313. /* reuse GL_MAX_FRAMEBUFFER_HEIGHT */
  1314. /* reuse GL_MAX_FRAMEBUFFER_LAYERS */
  1315. /* reuse GL_MAX_FRAMEBUFFER_SAMPLES */
  1316. /* Reuse tokens from ARB_internalformat_query2 */
  1317. /* reuse GL_INTERNALFORMAT_SUPPORTED */
  1318. /* reuse GL_INTERNALFORMAT_PREFERRED */
  1319. /* reuse GL_INTERNALFORMAT_RED_SIZE */
  1320. /* reuse GL_INTERNALFORMAT_GREEN_SIZE */
  1321. /* reuse GL_INTERNALFORMAT_BLUE_SIZE */
  1322. /* reuse GL_INTERNALFORMAT_ALPHA_SIZE */
  1323. /* reuse GL_INTERNALFORMAT_DEPTH_SIZE */
  1324. /* reuse GL_INTERNALFORMAT_STENCIL_SIZE */
  1325. /* reuse GL_INTERNALFORMAT_SHARED_SIZE */
  1326. /* reuse GL_INTERNALFORMAT_RED_TYPE */
  1327. /* reuse GL_INTERNALFORMAT_GREEN_TYPE */
  1328. /* reuse GL_INTERNALFORMAT_BLUE_TYPE */
  1329. /* reuse GL_INTERNALFORMAT_ALPHA_TYPE */
  1330. /* reuse GL_INTERNALFORMAT_DEPTH_TYPE */
  1331. /* reuse GL_INTERNALFORMAT_STENCIL_TYPE */
  1332. /* reuse GL_MAX_WIDTH */
  1333. /* reuse GL_MAX_HEIGHT */
  1334. /* reuse GL_MAX_DEPTH */
  1335. /* reuse GL_MAX_LAYERS */
  1336. /* reuse GL_MAX_COMBINED_DIMENSIONS */
  1337. /* reuse GL_COLOR_COMPONENTS */
  1338. /* reuse GL_DEPTH_COMPONENTS */
  1339. /* reuse GL_STENCIL_COMPONENTS */
  1340. /* reuse GL_COLOR_RENDERABLE */
  1341. /* reuse GL_DEPTH_RENDERABLE */
  1342. /* reuse GL_STENCIL_RENDERABLE */
  1343. /* reuse GL_FRAMEBUFFER_RENDERABLE */
  1344. /* reuse GL_FRAMEBUFFER_RENDERABLE_LAYERED */
  1345. /* reuse GL_FRAMEBUFFER_BLEND */
  1346. /* reuse GL_READ_PIXELS */
  1347. /* reuse GL_READ_PIXELS_FORMAT */
  1348. /* reuse GL_READ_PIXELS_TYPE */
  1349. /* reuse GL_TEXTURE_IMAGE_FORMAT */
  1350. /* reuse GL_TEXTURE_IMAGE_TYPE */
  1351. /* reuse GL_GET_TEXTURE_IMAGE_FORMAT */
  1352. /* reuse GL_GET_TEXTURE_IMAGE_TYPE */
  1353. /* reuse GL_MIPMAP */
  1354. /* reuse GL_MANUAL_GENERATE_MIPMAP */
  1355. /* reuse GL_AUTO_GENERATE_MIPMAP */
  1356. /* reuse GL_COLOR_ENCODING */
  1357. /* reuse GL_SRGB_READ */
  1358. /* reuse GL_SRGB_WRITE */
  1359. /* reuse GL_FILTER */
  1360. /* reuse GL_VERTEX_TEXTURE */
  1361. /* reuse GL_TESS_CONTROL_TEXTURE */
  1362. /* reuse GL_TESS_EVALUATION_TEXTURE */
  1363. /* reuse GL_GEOMETRY_TEXTURE */
  1364. /* reuse GL_FRAGMENT_TEXTURE */
  1365. /* reuse GL_COMPUTE_TEXTURE */
  1366. /* reuse GL_TEXTURE_SHADOW */
  1367. /* reuse GL_TEXTURE_GATHER */
  1368. /* reuse GL_TEXTURE_GATHER_SHADOW */
  1369. /* reuse GL_SHADER_IMAGE_LOAD */
  1370. /* reuse GL_SHADER_IMAGE_STORE */
  1371. /* reuse GL_SHADER_IMAGE_ATOMIC */
  1372. /* reuse GL_IMAGE_TEXEL_SIZE */
  1373. /* reuse GL_IMAGE_COMPATIBILITY_CLASS */
  1374. /* reuse GL_IMAGE_PIXEL_FORMAT */
  1375. /* reuse GL_IMAGE_PIXEL_TYPE */
  1376. /* reuse GL_SIMULTANEOUS_TEXTURE_AND_DEPTH_TEST */
  1377. /* reuse GL_SIMULTANEOUS_TEXTURE_AND_STENCIL_TEST */
  1378. /* reuse GL_SIMULTANEOUS_TEXTURE_AND_DEPTH_WRITE */
  1379. /* reuse GL_SIMULTANEOUS_TEXTURE_AND_STENCIL_WRITE */
  1380. /* reuse GL_TEXTURE_COMPRESSED_BLOCK_WIDTH */
  1381. /* reuse GL_TEXTURE_COMPRESSED_BLOCK_HEIGHT */
  1382. /* reuse GL_TEXTURE_COMPRESSED_BLOCK_SIZE */
  1383. /* reuse GL_CLEAR_BUFFER */
  1384. /* reuse GL_TEXTURE_VIEW */
  1385. /* reuse GL_VIEW_COMPATIBILITY_CLASS */
  1386. /* reuse GL_FULL_SUPPORT */
  1387. /* reuse GL_CAVEAT_SUPPORT */
  1388. /* reuse GL_IMAGE_CLASS_4_X_32 */
  1389. /* reuse GL_IMAGE_CLASS_2_X_32 */
  1390. /* reuse GL_IMAGE_CLASS_1_X_32 */
  1391. /* reuse GL_IMAGE_CLASS_4_X_16 */
  1392. /* reuse GL_IMAGE_CLASS_2_X_16 */
  1393. /* reuse GL_IMAGE_CLASS_1_X_16 */
  1394. /* reuse GL_IMAGE_CLASS_4_X_8 */
  1395. /* reuse GL_IMAGE_CLASS_2_X_8 */
  1396. /* reuse GL_IMAGE_CLASS_1_X_8 */
  1397. /* reuse GL_IMAGE_CLASS_11_11_10 */
  1398. /* reuse GL_IMAGE_CLASS_10_10_10_2 */
  1399. /* reuse GL_VIEW_CLASS_128_BITS */
  1400. /* reuse GL_VIEW_CLASS_96_BITS */
  1401. /* reuse GL_VIEW_CLASS_64_BITS */
  1402. /* reuse GL_VIEW_CLASS_48_BITS */
  1403. /* reuse GL_VIEW_CLASS_32_BITS */
  1404. /* reuse GL_VIEW_CLASS_24_BITS */
  1405. /* reuse GL_VIEW_CLASS_16_BITS */
  1406. /* reuse GL_VIEW_CLASS_8_BITS */
  1407. /* reuse GL_VIEW_CLASS_S3TC_DXT1_RGB */
  1408. /* reuse GL_VIEW_CLASS_S3TC_DXT1_RGBA */
  1409. /* reuse GL_VIEW_CLASS_S3TC_DXT3_RGBA */
  1410. /* reuse GL_VIEW_CLASS_S3TC_DXT5_RGBA */
  1411. /* reuse GL_VIEW_CLASS_RGTC1_RED */
  1412. /* reuse GL_VIEW_CLASS_RGTC2_RG */
  1413. /* reuse GL_VIEW_CLASS_BPTC_UNORM */
  1414. /* reuse GL_VIEW_CLASS_BPTC_FLOAT */
  1415. /* Reuse tokens from ARB_invalidate_subdata (none) */
  1416. /* Reuse tokens from ARB_multi_draw_indirect (none) */
  1417. /* Reuse tokens from ARB_program_interface_query */
  1418. /* reuse GL_UNIFORM */
  1419. /* reuse GL_UNIFORM_BLOCK */
  1420. /* reuse GL_PROGRAM_INPUT */
  1421. /* reuse GL_PROGRAM_OUTPUT */
  1422. /* reuse GL_BUFFER_VARIABLE */
  1423. /* reuse GL_SHADER_STORAGE_BLOCK */
  1424. /* reuse GL_VERTEX_SUBROUTINE */
  1425. /* reuse GL_TESS_CONTROL_SUBROUTINE */
  1426. /* reuse GL_TESS_EVALUATION_SUBROUTINE */
  1427. /* reuse GL_GEOMETRY_SUBROUTINE */
  1428. /* reuse GL_FRAGMENT_SUBROUTINE */
  1429. /* reuse GL_COMPUTE_SUBROUTINE */
  1430. /* reuse GL_VERTEX_SUBROUTINE_UNIFORM */
  1431. /* reuse GL_TESS_CONTROL_SUBROUTINE_UNIFORM */
  1432. /* reuse GL_TESS_EVALUATION_SUBROUTINE_UNIFORM */
  1433. /* reuse GL_GEOMETRY_SUBROUTINE_UNIFORM */
  1434. /* reuse GL_FRAGMENT_SUBROUTINE_UNIFORM */
  1435. /* reuse GL_COMPUTE_SUBROUTINE_UNIFORM */
  1436. /* reuse GL_TRANSFORM_FEEDBACK_VARYING */
  1437. /* reuse GL_ACTIVE_RESOURCES */
  1438. /* reuse GL_MAX_NAME_LENGTH */
  1439. /* reuse GL_MAX_NUM_ACTIVE_VARIABLES */
  1440. /* reuse GL_MAX_NUM_COMPATIBLE_SUBROUTINES */
  1441. /* reuse GL_NAME_LENGTH */
  1442. /* reuse GL_TYPE */
  1443. /* reuse GL_ARRAY_SIZE */
  1444. /* reuse GL_OFFSET */
  1445. /* reuse GL_BLOCK_INDEX */
  1446. /* reuse GL_ARRAY_STRIDE */
  1447. /* reuse GL_MATRIX_STRIDE */
  1448. /* reuse GL_IS_ROW_MAJOR */
  1449. /* reuse GL_ATOMIC_COUNTER_BUFFER_INDEX */
  1450. /* reuse GL_BUFFER_BINDING */
  1451. /* reuse GL_BUFFER_DATA_SIZE */
  1452. /* reuse GL_NUM_ACTIVE_VARIABLES */
  1453. /* reuse GL_ACTIVE_VARIABLES */
  1454. /* reuse GL_REFERENCED_BY_VERTEX_SHADER */
  1455. /* reuse GL_REFERENCED_BY_TESS_CONTROL_SHADER */
  1456. /* reuse GL_REFERENCED_BY_TESS_EVALUATION_SHADER */
  1457. /* reuse GL_REFERENCED_BY_GEOMETRY_SHADER */
  1458. /* reuse GL_REFERENCED_BY_FRAGMENT_SHADER */
  1459. /* reuse GL_REFERENCED_BY_COMPUTE_SHADER */
  1460. /* reuse GL_TOP_LEVEL_ARRAY_SIZE */
  1461. /* reuse GL_TOP_LEVEL_ARRAY_STRIDE */
  1462. /* reuse GL_LOCATION */
  1463. /* reuse GL_LOCATION_INDEX */
  1464. /* reuse GL_IS_PER_PATCH */
  1465. /* Reuse tokens from ARB_robust_buffer_access_behavior (none) */
  1466. /* Reuse tokens from ARB_shader_storage_buffer_object */
  1467. /* reuse GL_SHADER_STORAGE_BUFFER */
  1468. /* reuse GL_SHADER_STORAGE_BUFFER_BINDING */
  1469. /* reuse GL_SHADER_STORAGE_BUFFER_START */
  1470. /* reuse GL_SHADER_STORAGE_BUFFER_SIZE */
  1471. /* reuse GL_MAX_VERTEX_SHADER_STORAGE_BLOCKS */
  1472. /* reuse GL_MAX_GEOMETRY_SHADER_STORAGE_BLOCKS */
  1473. /* reuse GL_MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS */
  1474. /* reuse GL_MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS */
  1475. /* reuse GL_MAX_FRAGMENT_SHADER_STORAGE_BLOCKS */
  1476. /* reuse GL_MAX_COMPUTE_SHADER_STORAGE_BLOCKS */
  1477. /* reuse GL_MAX_COMBINED_SHADER_STORAGE_BLOCKS */
  1478. /* reuse GL_MAX_SHADER_STORAGE_BUFFER_BINDINGS */
  1479. /* reuse GL_MAX_SHADER_STORAGE_BLOCK_SIZE */
  1480. /* reuse GL_SHADER_STORAGE_BUFFER_OFFSET_ALIGNMENT */
  1481. /* reuse GL_SHADER_STORAGE_BARRIER_BIT */
  1482. /* reuse GL_MAX_COMBINED_SHADER_OUTPUT_RESOURCES */
  1483. /* Reuse tokens from ARB_stencil_texturing */
  1484. /* reuse GL_DEPTH_STENCIL_TEXTURE_MODE */
  1485. /* Reuse tokens from ARB_texture_buffer_range */
  1486. /* reuse GL_TEXTURE_BUFFER_OFFSET */
  1487. /* reuse GL_TEXTURE_BUFFER_SIZE */
  1488. /* reuse GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT */
  1489. /* Reuse tokens from ARB_texture_query_levels (none) */
  1490. /* Reuse tokens from ARB_texture_storage_multisample (none) */
  1491. /* Reuse tokens from ARB_texture_view */
  1492. /* reuse GL_TEXTURE_VIEW_MIN_LEVEL */
  1493. /* reuse GL_TEXTURE_VIEW_NUM_LEVELS */
  1494. /* reuse GL_TEXTURE_VIEW_MIN_LAYER */
  1495. /* reuse GL_TEXTURE_VIEW_NUM_LAYERS */
  1496. /* reuse GL_TEXTURE_IMMUTABLE_LEVELS */
  1497. /* Reuse tokens from ARB_vertex_attrib_binding */
  1498. /* reuse GL_VERTEX_ATTRIB_BINDING */
  1499. /* reuse GL_VERTEX_ATTRIB_RELATIVE_OFFSET */
  1500. /* reuse GL_VERTEX_BINDING_DIVISOR */
  1501. /* reuse GL_VERTEX_BINDING_OFFSET */
  1502. /* reuse GL_VERTEX_BINDING_STRIDE */
  1503. /* reuse GL_MAX_VERTEX_ATTRIB_RELATIVE_OFFSET */
  1504. /* reuse GL_MAX_VERTEX_ATTRIB_BINDINGS */
  1505. #endif
  1506. #ifndef GL_ARB_depth_buffer_float
  1507. #define GL_DEPTH_COMPONENT32F 0x8CAC
  1508. #define GL_DEPTH32F_STENCIL8 0x8CAD
  1509. #define GL_FLOAT_32_UNSIGNED_INT_24_8_REV 0x8DAD
  1510. #endif
  1511. #ifndef GL_ARB_framebuffer_object
  1512. #define GL_INVALID_FRAMEBUFFER_OPERATION 0x0506
  1513. #define GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING 0x8210
  1514. #define GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE 0x8211
  1515. #define GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE 0x8212
  1516. #define GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE 0x8213
  1517. #define GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE 0x8214
  1518. #define GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE 0x8215
  1519. #define GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE 0x8216
  1520. #define GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE 0x8217
  1521. #define GL_FRAMEBUFFER_DEFAULT 0x8218
  1522. #define GL_FRAMEBUFFER_UNDEFINED 0x8219
  1523. #define GL_DEPTH_STENCIL_ATTACHMENT 0x821A
  1524. #define GL_MAX_RENDERBUFFER_SIZE 0x84E8
  1525. #define GL_DEPTH_STENCIL 0x84F9
  1526. #define GL_UNSIGNED_INT_24_8 0x84FA
  1527. #define GL_DEPTH24_STENCIL8 0x88F0
  1528. #define GL_TEXTURE_STENCIL_SIZE 0x88F1
  1529. #define GL_TEXTURE_RED_TYPE 0x8C10
  1530. #define GL_TEXTURE_GREEN_TYPE 0x8C11
  1531. #define GL_TEXTURE_BLUE_TYPE 0x8C12
  1532. #define GL_TEXTURE_ALPHA_TYPE 0x8C13
  1533. #define GL_TEXTURE_DEPTH_TYPE 0x8C16
  1534. #define GL_UNSIGNED_NORMALIZED 0x8C17
  1535. #define GL_FRAMEBUFFER_BINDING 0x8CA6
  1536. #define GL_DRAW_FRAMEBUFFER_BINDING GL_FRAMEBUFFER_BINDING
  1537. #define GL_RENDERBUFFER_BINDING 0x8CA7
  1538. #define GL_READ_FRAMEBUFFER 0x8CA8
  1539. #define GL_DRAW_FRAMEBUFFER 0x8CA9
  1540. #define GL_READ_FRAMEBUFFER_BINDING 0x8CAA
  1541. #define GL_RENDERBUFFER_SAMPLES 0x8CAB
  1542. #define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE 0x8CD0
  1543. #define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME 0x8CD1
  1544. #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL 0x8CD2
  1545. #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE 0x8CD3
  1546. #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER 0x8CD4
  1547. #define GL_FRAMEBUFFER_COMPLETE 0x8CD5
  1548. #define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT 0x8CD6
  1549. #define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT 0x8CD7
  1550. #define GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER 0x8CDB
  1551. #define GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER 0x8CDC
  1552. #define GL_FRAMEBUFFER_UNSUPPORTED 0x8CDD
  1553. #define GL_MAX_COLOR_ATTACHMENTS 0x8CDF
  1554. #define GL_COLOR_ATTACHMENT0 0x8CE0
  1555. #define GL_COLOR_ATTACHMENT1 0x8CE1
  1556. #define GL_COLOR_ATTACHMENT2 0x8CE2
  1557. #define GL_COLOR_ATTACHMENT3 0x8CE3
  1558. #define GL_COLOR_ATTACHMENT4 0x8CE4
  1559. #define GL_COLOR_ATTACHMENT5 0x8CE5
  1560. #define GL_COLOR_ATTACHMENT6 0x8CE6
  1561. #define GL_COLOR_ATTACHMENT7 0x8CE7
  1562. #define GL_COLOR_ATTACHMENT8 0x8CE8
  1563. #define GL_COLOR_ATTACHMENT9 0x8CE9
  1564. #define GL_COLOR_ATTACHMENT10 0x8CEA
  1565. #define GL_COLOR_ATTACHMENT11 0x8CEB
  1566. #define GL_COLOR_ATTACHMENT12 0x8CEC
  1567. #define GL_COLOR_ATTACHMENT13 0x8CED
  1568. #define GL_COLOR_ATTACHMENT14 0x8CEE
  1569. #define GL_COLOR_ATTACHMENT15 0x8CEF
  1570. #define GL_DEPTH_ATTACHMENT 0x8D00
  1571. #define GL_STENCIL_ATTACHMENT 0x8D20
  1572. #define GL_FRAMEBUFFER 0x8D40
  1573. #define GL_RENDERBUFFER 0x8D41
  1574. #define GL_RENDERBUFFER_WIDTH 0x8D42
  1575. #define GL_RENDERBUFFER_HEIGHT 0x8D43
  1576. #define GL_RENDERBUFFER_INTERNAL_FORMAT 0x8D44
  1577. #define GL_STENCIL_INDEX1 0x8D46
  1578. #define GL_STENCIL_INDEX4 0x8D47
  1579. #define GL_STENCIL_INDEX8 0x8D48
  1580. #define GL_STENCIL_INDEX16 0x8D49
  1581. #define GL_RENDERBUFFER_RED_SIZE 0x8D50
  1582. #define GL_RENDERBUFFER_GREEN_SIZE 0x8D51
  1583. #define GL_RENDERBUFFER_BLUE_SIZE 0x8D52
  1584. #define GL_RENDERBUFFER_ALPHA_SIZE 0x8D53
  1585. #define GL_RENDERBUFFER_DEPTH_SIZE 0x8D54
  1586. #define GL_RENDERBUFFER_STENCIL_SIZE 0x8D55
  1587. #define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE 0x8D56
  1588. #define GL_MAX_SAMPLES 0x8D57
  1589. #endif
  1590. #ifndef GL_ARB_framebuffer_sRGB
  1591. #define GL_FRAMEBUFFER_SRGB 0x8DB9
  1592. #endif
  1593. #ifndef GL_ARB_half_float_vertex
  1594. #define GL_HALF_FLOAT 0x140B
  1595. #endif
  1596. #ifndef GL_ARB_map_buffer_range
  1597. #define GL_MAP_READ_BIT 0x0001
  1598. #define GL_MAP_WRITE_BIT 0x0002
  1599. #define GL_MAP_INVALIDATE_RANGE_BIT 0x0004
  1600. #define GL_MAP_INVALIDATE_BUFFER_BIT 0x0008
  1601. #define GL_MAP_FLUSH_EXPLICIT_BIT 0x0010
  1602. #define GL_MAP_UNSYNCHRONIZED_BIT 0x0020
  1603. #endif
  1604. #ifndef GL_ARB_texture_compression_rgtc
  1605. #define GL_COMPRESSED_RED_RGTC1 0x8DBB
  1606. #define GL_COMPRESSED_SIGNED_RED_RGTC1 0x8DBC
  1607. #define GL_COMPRESSED_RG_RGTC2 0x8DBD
  1608. #define GL_COMPRESSED_SIGNED_RG_RGTC2 0x8DBE
  1609. #endif
  1610. #ifndef GL_ARB_texture_rg
  1611. #define GL_RG 0x8227
  1612. #define GL_RG_INTEGER 0x8228
  1613. #define GL_R8 0x8229
  1614. #define GL_R16 0x822A
  1615. #define GL_RG8 0x822B
  1616. #define GL_RG16 0x822C
  1617. #define GL_R16F 0x822D
  1618. #define GL_R32F 0x822E
  1619. #define GL_RG16F 0x822F
  1620. #define GL_RG32F 0x8230
  1621. #define GL_R8I 0x8231
  1622. #define GL_R8UI 0x8232
  1623. #define GL_R16I 0x8233
  1624. #define GL_R16UI 0x8234
  1625. #define GL_R32I 0x8235
  1626. #define GL_R32UI 0x8236
  1627. #define GL_RG8I 0x8237
  1628. #define GL_RG8UI 0x8238
  1629. #define GL_RG16I 0x8239
  1630. #define GL_RG16UI 0x823A
  1631. #define GL_RG32I 0x823B
  1632. #define GL_RG32UI 0x823C
  1633. #endif
  1634. #ifndef GL_ARB_vertex_array_object
  1635. #define GL_VERTEX_ARRAY_BINDING 0x85B5
  1636. #endif
  1637. #ifndef GL_ARB_uniform_buffer_object
  1638. #define GL_UNIFORM_BUFFER 0x8A11
  1639. #define GL_UNIFORM_BUFFER_BINDING 0x8A28
  1640. #define GL_UNIFORM_BUFFER_START 0x8A29
  1641. #define GL_UNIFORM_BUFFER_SIZE 0x8A2A
  1642. #define GL_MAX_VERTEX_UNIFORM_BLOCKS 0x8A2B
  1643. #define GL_MAX_GEOMETRY_UNIFORM_BLOCKS 0x8A2C
  1644. #define GL_MAX_FRAGMENT_UNIFORM_BLOCKS 0x8A2D
  1645. #define GL_MAX_COMBINED_UNIFORM_BLOCKS 0x8A2E
  1646. #define GL_MAX_UNIFORM_BUFFER_BINDINGS 0x8A2F
  1647. #define GL_MAX_UNIFORM_BLOCK_SIZE 0x8A30
  1648. #define GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS 0x8A31
  1649. #define GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS 0x8A32
  1650. #define GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS 0x8A33
  1651. #define GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT 0x8A34
  1652. #define GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH 0x8A35
  1653. #define GL_ACTIVE_UNIFORM_BLOCKS 0x8A36
  1654. #define GL_UNIFORM_TYPE 0x8A37
  1655. #define GL_UNIFORM_SIZE 0x8A38
  1656. #define GL_UNIFORM_NAME_LENGTH 0x8A39
  1657. #define GL_UNIFORM_BLOCK_INDEX 0x8A3A
  1658. #define GL_UNIFORM_OFFSET 0x8A3B
  1659. #define GL_UNIFORM_ARRAY_STRIDE 0x8A3C
  1660. #define GL_UNIFORM_MATRIX_STRIDE 0x8A3D
  1661. #define GL_UNIFORM_IS_ROW_MAJOR 0x8A3E
  1662. #define GL_UNIFORM_BLOCK_BINDING 0x8A3F
  1663. #define GL_UNIFORM_BLOCK_DATA_SIZE 0x8A40
  1664. #define GL_UNIFORM_BLOCK_NAME_LENGTH 0x8A41
  1665. #define GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS 0x8A42
  1666. #define GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES 0x8A43
  1667. #define GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER 0x8A44
  1668. #define GL_UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER 0x8A45
  1669. #define GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER 0x8A46
  1670. #define GL_INVALID_INDEX 0xFFFFFFFFu
  1671. #endif
  1672. #ifndef GL_ARB_copy_buffer
  1673. #define GL_COPY_READ_BUFFER_BINDING 0x8F36
  1674. #define GL_COPY_READ_BUFFER GL_COPY_READ_BUFFER_BINDING
  1675. #define GL_COPY_WRITE_BUFFER_BINDING 0x8F37
  1676. #define GL_COPY_WRITE_BUFFER GL_COPY_WRITE_BUFFER_BINDING
  1677. #endif
  1678. #ifndef GL_ARB_depth_clamp
  1679. #define GL_DEPTH_CLAMP 0x864F
  1680. #endif
  1681. #ifndef GL_ARB_draw_elements_base_vertex
  1682. #endif
  1683. #ifndef GL_ARB_fragment_coord_conventions
  1684. #endif
  1685. #ifndef GL_ARB_provoking_vertex
  1686. #define GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION 0x8E4C
  1687. #define GL_FIRST_VERTEX_CONVENTION 0x8E4D
  1688. #define GL_LAST_VERTEX_CONVENTION 0x8E4E
  1689. #define GL_PROVOKING_VERTEX 0x8E4F
  1690. #endif
  1691. #ifndef GL_ARB_seamless_cube_map
  1692. #define GL_TEXTURE_CUBE_MAP_SEAMLESS 0x884F
  1693. #endif
  1694. #ifndef GL_ARB_sync
  1695. #define GL_MAX_SERVER_WAIT_TIMEOUT 0x9111
  1696. #define GL_OBJECT_TYPE 0x9112
  1697. #define GL_SYNC_CONDITION 0x9113
  1698. #define GL_SYNC_STATUS 0x9114
  1699. #define GL_SYNC_FLAGS 0x9115
  1700. #define GL_SYNC_FENCE 0x9116
  1701. #define GL_SYNC_GPU_COMMANDS_COMPLETE 0x9117
  1702. #define GL_UNSIGNALED 0x9118
  1703. #define GL_SIGNALED 0x9119
  1704. #define GL_ALREADY_SIGNALED 0x911A
  1705. #define GL_TIMEOUT_EXPIRED 0x911B
  1706. #define GL_CONDITION_SATISFIED 0x911C
  1707. #define GL_WAIT_FAILED 0x911D
  1708. #define GL_SYNC_FLUSH_COMMANDS_BIT 0x00000001
  1709. #define GL_TIMEOUT_IGNORED 0xFFFFFFFFFFFFFFFFull
  1710. #endif
  1711. #ifndef GL_ARB_texture_multisample
  1712. #define GL_SAMPLE_POSITION 0x8E50
  1713. #define GL_SAMPLE_MASK 0x8E51
  1714. #define GL_SAMPLE_MASK_VALUE 0x8E52
  1715. #define GL_MAX_SAMPLE_MASK_WORDS 0x8E59
  1716. #define GL_TEXTURE_2D_MULTISAMPLE 0x9100
  1717. #define GL_PROXY_TEXTURE_2D_MULTISAMPLE 0x9101
  1718. #define GL_TEXTURE_2D_MULTISAMPLE_ARRAY 0x9102
  1719. #define GL_PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY 0x9103
  1720. #define GL_TEXTURE_BINDING_2D_MULTISAMPLE 0x9104
  1721. #define GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY 0x9105
  1722. #define GL_TEXTURE_SAMPLES 0x9106
  1723. #define GL_TEXTURE_FIXED_SAMPLE_LOCATIONS 0x9107
  1724. #define GL_SAMPLER_2D_MULTISAMPLE 0x9108
  1725. #define GL_INT_SAMPLER_2D_MULTISAMPLE 0x9109
  1726. #define GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE 0x910A
  1727. #define GL_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910B
  1728. #define GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910C
  1729. #define GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910D
  1730. #define GL_MAX_COLOR_TEXTURE_SAMPLES 0x910E
  1731. #define GL_MAX_DEPTH_TEXTURE_SAMPLES 0x910F
  1732. #define GL_MAX_INTEGER_SAMPLES 0x9110
  1733. #endif
  1734. #ifndef GL_ARB_vertex_array_bgra
  1735. /* reuse GL_BGRA */
  1736. #endif
  1737. #ifndef GL_ARB_draw_buffers_blend
  1738. #endif
  1739. #ifndef GL_ARB_sample_shading
  1740. #define GL_SAMPLE_SHADING_ARB 0x8C36
  1741. #define GL_MIN_SAMPLE_SHADING_VALUE_ARB 0x8C37
  1742. #endif
  1743. #ifndef GL_ARB_texture_cube_map_array
  1744. #define GL_TEXTURE_CUBE_MAP_ARRAY_ARB 0x9009
  1745. #define GL_TEXTURE_BINDING_CUBE_MAP_ARRAY_ARB 0x900A
  1746. #define GL_PROXY_TEXTURE_CUBE_MAP_ARRAY_ARB 0x900B
  1747. #define GL_SAMPLER_CUBE_MAP_ARRAY_ARB 0x900C
  1748. #define GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW_ARB 0x900D
  1749. #define GL_INT_SAMPLER_CUBE_MAP_ARRAY_ARB 0x900E
  1750. #define GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY_ARB 0x900F
  1751. #endif
  1752. #ifndef GL_ARB_texture_gather
  1753. #define GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET_ARB 0x8E5E
  1754. #define GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET_ARB 0x8E5F
  1755. #define GL_MAX_PROGRAM_TEXTURE_GATHER_COMPONENTS_ARB 0x8F9F
  1756. #endif
  1757. #ifndef GL_ARB_texture_query_lod
  1758. #endif
  1759. #ifndef GL_ARB_shading_language_include
  1760. #define GL_SHADER_INCLUDE_ARB 0x8DAE
  1761. #define GL_NAMED_STRING_LENGTH_ARB 0x8DE9
  1762. #define GL_NAMED_STRING_TYPE_ARB 0x8DEA
  1763. #endif
  1764. #ifndef GL_ARB_texture_compression_bptc
  1765. #define GL_COMPRESSED_RGBA_BPTC_UNORM_ARB 0x8E8C
  1766. #define GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM_ARB 0x8E8D
  1767. #define GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT_ARB 0x8E8E
  1768. #define GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_ARB 0x8E8F
  1769. #endif
  1770. #ifndef GL_ARB_blend_func_extended
  1771. #define GL_SRC1_COLOR 0x88F9
  1772. /* reuse GL_SRC1_ALPHA */
  1773. #define GL_ONE_MINUS_SRC1_COLOR 0x88FA
  1774. #define GL_ONE_MINUS_SRC1_ALPHA 0x88FB
  1775. #define GL_MAX_DUAL_SOURCE_DRAW_BUFFERS 0x88FC
  1776. #endif
  1777. #ifndef GL_ARB_explicit_attrib_location
  1778. #endif
  1779. #ifndef GL_ARB_occlusion_query2
  1780. #define GL_ANY_SAMPLES_PASSED 0x8C2F
  1781. #endif
  1782. #ifndef GL_ARB_sampler_objects
  1783. #define GL_SAMPLER_BINDING 0x8919
  1784. #endif
  1785. #ifndef GL_ARB_shader_bit_encoding
  1786. #endif
  1787. #ifndef GL_ARB_texture_rgb10_a2ui
  1788. #define GL_RGB10_A2UI 0x906F
  1789. #endif
  1790. #ifndef GL_ARB_texture_swizzle
  1791. #define GL_TEXTURE_SWIZZLE_R 0x8E42
  1792. #define GL_TEXTURE_SWIZZLE_G 0x8E43
  1793. #define GL_TEXTURE_SWIZZLE_B 0x8E44
  1794. #define GL_TEXTURE_SWIZZLE_A 0x8E45
  1795. #define GL_TEXTURE_SWIZZLE_RGBA 0x8E46
  1796. #endif
  1797. #ifndef GL_ARB_timer_query
  1798. #define GL_TIME_ELAPSED 0x88BF
  1799. #define GL_TIMESTAMP 0x8E28
  1800. #endif
  1801. #ifndef GL_ARB_vertex_type_2_10_10_10_rev
  1802. /* reuse GL_UNSIGNED_INT_2_10_10_10_REV */
  1803. #define GL_INT_2_10_10_10_REV 0x8D9F
  1804. #endif
  1805. #ifndef GL_ARB_draw_indirect
  1806. #define GL_DRAW_INDIRECT_BUFFER 0x8F3F
  1807. #define GL_DRAW_INDIRECT_BUFFER_BINDING 0x8F43
  1808. #endif
  1809. #ifndef GL_ARB_gpu_shader5
  1810. #define GL_GEOMETRY_SHADER_INVOCATIONS 0x887F
  1811. #define GL_MAX_GEOMETRY_SHADER_INVOCATIONS 0x8E5A
  1812. #define GL_MIN_FRAGMENT_INTERPOLATION_OFFSET 0x8E5B
  1813. #define GL_MAX_FRAGMENT_INTERPOLATION_OFFSET 0x8E5C
  1814. #define GL_FRAGMENT_INTERPOLATION_OFFSET_BITS 0x8E5D
  1815. /* reuse GL_MAX_VERTEX_STREAMS */
  1816. #endif
  1817. #ifndef GL_ARB_gpu_shader_fp64
  1818. /* reuse GL_DOUBLE */
  1819. #define GL_DOUBLE_VEC2 0x8FFC
  1820. #define GL_DOUBLE_VEC3 0x8FFD
  1821. #define GL_DOUBLE_VEC4 0x8FFE
  1822. #define GL_DOUBLE_MAT2 0x8F46
  1823. #define GL_DOUBLE_MAT3 0x8F47
  1824. #define GL_DOUBLE_MAT4 0x8F48
  1825. #define GL_DOUBLE_MAT2x3 0x8F49
  1826. #define GL_DOUBLE_MAT2x4 0x8F4A
  1827. #define GL_DOUBLE_MAT3x2 0x8F4B
  1828. #define GL_DOUBLE_MAT3x4 0x8F4C
  1829. #define GL_DOUBLE_MAT4x2 0x8F4D
  1830. #define GL_DOUBLE_MAT4x3 0x8F4E
  1831. #endif
  1832. #ifndef GL_ARB_shader_subroutine
  1833. #define GL_ACTIVE_SUBROUTINES 0x8DE5
  1834. #define GL_ACTIVE_SUBROUTINE_UNIFORMS 0x8DE6
  1835. #define GL_ACTIVE_SUBROUTINE_UNIFORM_LOCATIONS 0x8E47
  1836. #define GL_ACTIVE_SUBROUTINE_MAX_LENGTH 0x8E48
  1837. #define GL_ACTIVE_SUBROUTINE_UNIFORM_MAX_LENGTH 0x8E49
  1838. #define GL_MAX_SUBROUTINES 0x8DE7
  1839. #define GL_MAX_SUBROUTINE_UNIFORM_LOCATIONS 0x8DE8
  1840. #define GL_NUM_COMPATIBLE_SUBROUTINES 0x8E4A
  1841. #define GL_COMPATIBLE_SUBROUTINES 0x8E4B
  1842. /* reuse GL_UNIFORM_SIZE */
  1843. /* reuse GL_UNIFORM_NAME_LENGTH */
  1844. #endif
  1845. #ifndef GL_ARB_tessellation_shader
  1846. #define GL_PATCHES 0x000E
  1847. #define GL_PATCH_VERTICES 0x8E72
  1848. #define GL_PATCH_DEFAULT_INNER_LEVEL 0x8E73
  1849. #define GL_PATCH_DEFAULT_OUTER_LEVEL 0x8E74
  1850. #define GL_TESS_CONTROL_OUTPUT_VERTICES 0x8E75
  1851. #define GL_TESS_GEN_MODE 0x8E76
  1852. #define GL_TESS_GEN_SPACING 0x8E77
  1853. #define GL_TESS_GEN_VERTEX_ORDER 0x8E78
  1854. #define GL_TESS_GEN_POINT_MODE 0x8E79
  1855. /* reuse GL_TRIANGLES */
  1856. /* reuse GL_QUADS */
  1857. #define GL_ISOLINES 0x8E7A
  1858. /* reuse GL_EQUAL */
  1859. #define GL_FRACTIONAL_ODD 0x8E7B
  1860. #define GL_FRACTIONAL_EVEN 0x8E7C
  1861. /* reuse GL_CCW */
  1862. /* reuse GL_CW */
  1863. #define GL_MAX_PATCH_VERTICES 0x8E7D
  1864. #define GL_MAX_TESS_GEN_LEVEL 0x8E7E
  1865. #define GL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS 0x8E7F
  1866. #define GL_MAX_TESS_EVALUATION_UNIFORM_COMPONENTS 0x8E80
  1867. #define GL_MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS 0x8E81
  1868. #define GL_MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS 0x8E82
  1869. #define GL_MAX_TESS_CONTROL_OUTPUT_COMPONENTS 0x8E83
  1870. #define GL_MAX_TESS_PATCH_COMPONENTS 0x8E84
  1871. #define GL_MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS 0x8E85
  1872. #define GL_MAX_TESS_EVALUATION_OUTPUT_COMPONENTS 0x8E86
  1873. #define GL_MAX_TESS_CONTROL_UNIFORM_BLOCKS 0x8E89
  1874. #define GL_MAX_TESS_EVALUATION_UNIFORM_BLOCKS 0x8E8A
  1875. #define GL_MAX_TESS_CONTROL_INPUT_COMPONENTS 0x886C
  1876. #define GL_MAX_TESS_EVALUATION_INPUT_COMPONENTS 0x886D
  1877. #define GL_MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS 0x8E1E
  1878. #define GL_MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS 0x8E1F
  1879. #define GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_CONTROL_SHADER 0x84F0
  1880. #define GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_EVALUATION_SHADER 0x84F1
  1881. #define GL_TESS_EVALUATION_SHADER 0x8E87
  1882. #define GL_TESS_CONTROL_SHADER 0x8E88
  1883. #endif
  1884. #ifndef GL_ARB_texture_buffer_object_rgb32
  1885. /* reuse GL_RGB32F */
  1886. /* reuse GL_RGB32UI */
  1887. /* reuse GL_RGB32I */
  1888. #endif
  1889. #ifndef GL_ARB_transform_feedback2
  1890. #define GL_TRANSFORM_FEEDBACK 0x8E22
  1891. #define GL_TRANSFORM_FEEDBACK_PAUSED 0x8E23
  1892. #define GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED GL_TRANSFORM_FEEDBACK_PAUSED
  1893. #define GL_TRANSFORM_FEEDBACK_ACTIVE 0x8E24
  1894. #define GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE GL_TRANSFORM_FEEDBACK_ACTIVE
  1895. #define GL_TRANSFORM_FEEDBACK_BINDING 0x8E25
  1896. #endif
  1897. #ifndef GL_ARB_transform_feedback3
  1898. #define GL_MAX_TRANSFORM_FEEDBACK_BUFFERS 0x8E70
  1899. #define GL_MAX_VERTEX_STREAMS 0x8E71
  1900. #endif
  1901. #ifndef GL_ARB_ES2_compatibility
  1902. #define GL_FIXED 0x140C
  1903. #define GL_IMPLEMENTATION_COLOR_READ_TYPE 0x8B9A
  1904. #define GL_IMPLEMENTATION_COLOR_READ_FORMAT 0x8B9B
  1905. #define GL_LOW_FLOAT 0x8DF0
  1906. #define GL_MEDIUM_FLOAT 0x8DF1
  1907. #define GL_HIGH_FLOAT 0x8DF2
  1908. #define GL_LOW_INT 0x8DF3
  1909. #define GL_MEDIUM_INT 0x8DF4
  1910. #define GL_HIGH_INT 0x8DF5
  1911. #define GL_SHADER_COMPILER 0x8DFA
  1912. #define GL_SHADER_BINARY_FORMATS 0x8DF8
  1913. #define GL_NUM_SHADER_BINARY_FORMATS 0x8DF9
  1914. #define GL_MAX_VERTEX_UNIFORM_VECTORS 0x8DFB
  1915. #define GL_MAX_VARYING_VECTORS 0x8DFC
  1916. #define GL_MAX_FRAGMENT_UNIFORM_VECTORS 0x8DFD
  1917. #define GL_RGB565 0x8D62
  1918. #endif
  1919. #ifndef GL_ARB_get_program_binary
  1920. #define GL_PROGRAM_BINARY_RETRIEVABLE_HINT 0x8257
  1921. #define GL_PROGRAM_BINARY_LENGTH 0x8741
  1922. #define GL_NUM_PROGRAM_BINARY_FORMATS 0x87FE
  1923. #define GL_PROGRAM_BINARY_FORMATS 0x87FF
  1924. #endif
  1925. #ifndef GL_ARB_separate_shader_objects
  1926. #define GL_VERTEX_SHADER_BIT 0x00000001
  1927. #define GL_FRAGMENT_SHADER_BIT 0x00000002
  1928. #define GL_GEOMETRY_SHADER_BIT 0x00000004
  1929. #define GL_TESS_CONTROL_SHADER_BIT 0x00000008
  1930. #define GL_TESS_EVALUATION_SHADER_BIT 0x00000010
  1931. #define GL_ALL_SHADER_BITS 0xFFFFFFFF
  1932. #define GL_PROGRAM_SEPARABLE 0x8258
  1933. #define GL_ACTIVE_PROGRAM 0x8259
  1934. #define GL_PROGRAM_PIPELINE_BINDING 0x825A
  1935. #endif
  1936. #ifndef GL_ARB_shader_precision
  1937. #endif
  1938. #ifndef GL_ARB_vertex_attrib_64bit
  1939. /* reuse GL_RGB32I */
  1940. /* reuse GL_DOUBLE_VEC2 */
  1941. /* reuse GL_DOUBLE_VEC3 */
  1942. /* reuse GL_DOUBLE_VEC4 */
  1943. /* reuse GL_DOUBLE_MAT2 */
  1944. /* reuse GL_DOUBLE_MAT3 */
  1945. /* reuse GL_DOUBLE_MAT4 */
  1946. /* reuse GL_DOUBLE_MAT2x3 */
  1947. /* reuse GL_DOUBLE_MAT2x4 */
  1948. /* reuse GL_DOUBLE_MAT3x2 */
  1949. /* reuse GL_DOUBLE_MAT3x4 */
  1950. /* reuse GL_DOUBLE_MAT4x2 */
  1951. /* reuse GL_DOUBLE_MAT4x3 */
  1952. #endif
  1953. #ifndef GL_ARB_viewport_array
  1954. /* reuse GL_SCISSOR_BOX */
  1955. /* reuse GL_VIEWPORT */
  1956. /* reuse GL_DEPTH_RANGE */
  1957. /* reuse GL_SCISSOR_TEST */
  1958. #define GL_MAX_VIEWPORTS 0x825B
  1959. #define GL_VIEWPORT_SUBPIXEL_BITS 0x825C
  1960. #define GL_VIEWPORT_BOUNDS_RANGE 0x825D
  1961. #define GL_LAYER_PROVOKING_VERTEX 0x825E
  1962. #define GL_VIEWPORT_INDEX_PROVOKING_VERTEX 0x825F
  1963. #define GL_UNDEFINED_VERTEX 0x8260
  1964. /* reuse GL_FIRST_VERTEX_CONVENTION */
  1965. /* reuse GL_LAST_VERTEX_CONVENTION */
  1966. /* reuse GL_PROVOKING_VERTEX */
  1967. #endif
  1968. #ifndef GL_ARB_cl_event
  1969. #define GL_SYNC_CL_EVENT_ARB 0x8240
  1970. #define GL_SYNC_CL_EVENT_COMPLETE_ARB 0x8241
  1971. #endif
  1972. #ifndef GL_ARB_debug_output
  1973. #define GL_DEBUG_OUTPUT_SYNCHRONOUS_ARB 0x8242
  1974. #define GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH_ARB 0x8243
  1975. #define GL_DEBUG_CALLBACK_FUNCTION_ARB 0x8244
  1976. #define GL_DEBUG_CALLBACK_USER_PARAM_ARB 0x8245
  1977. #define GL_DEBUG_SOURCE_API_ARB 0x8246
  1978. #define GL_DEBUG_SOURCE_WINDOW_SYSTEM_ARB 0x8247
  1979. #define GL_DEBUG_SOURCE_SHADER_COMPILER_ARB 0x8248
  1980. #define GL_DEBUG_SOURCE_THIRD_PARTY_ARB 0x8249
  1981. #define GL_DEBUG_SOURCE_APPLICATION_ARB 0x824A
  1982. #define GL_DEBUG_SOURCE_OTHER_ARB 0x824B
  1983. #define GL_DEBUG_TYPE_ERROR_ARB 0x824C
  1984. #define GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR_ARB 0x824D
  1985. #define GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR_ARB 0x824E
  1986. #define GL_DEBUG_TYPE_PORTABILITY_ARB 0x824F
  1987. #define GL_DEBUG_TYPE_PERFORMANCE_ARB 0x8250
  1988. #define GL_DEBUG_TYPE_OTHER_ARB 0x8251
  1989. #define GL_MAX_DEBUG_MESSAGE_LENGTH_ARB 0x9143
  1990. #define GL_MAX_DEBUG_LOGGED_MESSAGES_ARB 0x9144
  1991. #define GL_DEBUG_LOGGED_MESSAGES_ARB 0x9145
  1992. #define GL_DEBUG_SEVERITY_HIGH_ARB 0x9146
  1993. #define GL_DEBUG_SEVERITY_MEDIUM_ARB 0x9147
  1994. #define GL_DEBUG_SEVERITY_LOW_ARB 0x9148
  1995. #endif
  1996. #ifndef GL_ARB_robustness
  1997. /* reuse GL_NO_ERROR */
  1998. #define GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT_ARB 0x00000004
  1999. #define GL_LOSE_CONTEXT_ON_RESET_ARB 0x8252
  2000. #define GL_GUILTY_CONTEXT_RESET_ARB 0x8253
  2001. #define GL_INNOCENT_CONTEXT_RESET_ARB 0x8254
  2002. #define GL_UNKNOWN_CONTEXT_RESET_ARB 0x8255
  2003. #define GL_RESET_NOTIFICATION_STRATEGY_ARB 0x8256
  2004. #define GL_NO_RESET_NOTIFICATION_ARB 0x8261
  2005. #endif
  2006. #ifndef GL_ARB_shader_stencil_export
  2007. #endif
  2008. #ifndef GL_ARB_base_instance
  2009. #endif
  2010. #ifndef GL_ARB_shading_language_420pack
  2011. #endif
  2012. #ifndef GL_ARB_transform_feedback_instanced
  2013. #endif
  2014. #ifndef GL_ARB_compressed_texture_pixel_storage
  2015. #define GL_UNPACK_COMPRESSED_BLOCK_WIDTH 0x9127
  2016. #define GL_UNPACK_COMPRESSED_BLOCK_HEIGHT 0x9128
  2017. #define GL_UNPACK_COMPRESSED_BLOCK_DEPTH 0x9129
  2018. #define GL_UNPACK_COMPRESSED_BLOCK_SIZE 0x912A
  2019. #define GL_PACK_COMPRESSED_BLOCK_WIDTH 0x912B
  2020. #define GL_PACK_COMPRESSED_BLOCK_HEIGHT 0x912C
  2021. #define GL_PACK_COMPRESSED_BLOCK_DEPTH 0x912D
  2022. #define GL_PACK_COMPRESSED_BLOCK_SIZE 0x912E
  2023. #endif
  2024. #ifndef GL_ARB_conservative_depth
  2025. #endif
  2026. #ifndef GL_ARB_internalformat_query
  2027. #define GL_NUM_SAMPLE_COUNTS 0x9380
  2028. #endif
  2029. #ifndef GL_ARB_map_buffer_alignment
  2030. #define GL_MIN_MAP_BUFFER_ALIGNMENT 0x90BC
  2031. #endif
  2032. #ifndef GL_ARB_shader_atomic_counters
  2033. #define GL_ATOMIC_COUNTER_BUFFER 0x92C0
  2034. #define GL_ATOMIC_COUNTER_BUFFER_BINDING 0x92C1
  2035. #define GL_ATOMIC_COUNTER_BUFFER_START 0x92C2
  2036. #define GL_ATOMIC_COUNTER_BUFFER_SIZE 0x92C3
  2037. #define GL_ATOMIC_COUNTER_BUFFER_DATA_SIZE 0x92C4
  2038. #define GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTERS 0x92C5
  2039. #define GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTER_INDICES 0x92C6
  2040. #define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_VERTEX_SHADER 0x92C7
  2041. #define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_CONTROL_SHADER 0x92C8
  2042. #define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_EVALUATION_SHADER 0x92C9
  2043. #define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_GEOMETRY_SHADER 0x92CA
  2044. #define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_FRAGMENT_SHADER 0x92CB
  2045. #define GL_MAX_VERTEX_ATOMIC_COUNTER_BUFFERS 0x92CC
  2046. #define GL_MAX_TESS_CONTROL_ATOMIC_COUNTER_BUFFERS 0x92CD
  2047. #define GL_MAX_TESS_EVALUATION_ATOMIC_COUNTER_BUFFERS 0x92CE
  2048. #define GL_MAX_GEOMETRY_ATOMIC_COUNTER_BUFFERS 0x92CF
  2049. #define GL_MAX_FRAGMENT_ATOMIC_COUNTER_BUFFERS 0x92D0
  2050. #define GL_MAX_COMBINED_ATOMIC_COUNTER_BUFFERS 0x92D1
  2051. #define GL_MAX_VERTEX_ATOMIC_COUNTERS 0x92D2
  2052. #define GL_MAX_TESS_CONTROL_ATOMIC_COUNTERS 0x92D3
  2053. #define GL_MAX_TESS_EVALUATION_ATOMIC_COUNTERS 0x92D4
  2054. #define GL_MAX_GEOMETRY_ATOMIC_COUNTERS 0x92D5
  2055. #define GL_MAX_FRAGMENT_ATOMIC_COUNTERS 0x92D6
  2056. #define GL_MAX_COMBINED_ATOMIC_COUNTERS 0x92D7
  2057. #define GL_MAX_ATOMIC_COUNTER_BUFFER_SIZE 0x92D8
  2058. #define GL_MAX_ATOMIC_COUNTER_BUFFER_BINDINGS 0x92DC
  2059. #define GL_ACTIVE_ATOMIC_COUNTER_BUFFERS 0x92D9
  2060. #define GL_UNIFORM_ATOMIC_COUNTER_BUFFER_INDEX 0x92DA
  2061. #define GL_UNSIGNED_INT_ATOMIC_COUNTER 0x92DB
  2062. #endif
  2063. #ifndef GL_ARB_shader_image_load_store
  2064. #define GL_VERTEX_ATTRIB_ARRAY_BARRIER_BIT 0x00000001
  2065. #define GL_ELEMENT_ARRAY_BARRIER_BIT 0x00000002
  2066. #define GL_UNIFORM_BARRIER_BIT 0x00000004
  2067. #define GL_TEXTURE_FETCH_BARRIER_BIT 0x00000008
  2068. #define GL_SHADER_IMAGE_ACCESS_BARRIER_BIT 0x00000020
  2069. #define GL_COMMAND_BARRIER_BIT 0x00000040
  2070. #define GL_PIXEL_BUFFER_BARRIER_BIT 0x00000080
  2071. #define GL_TEXTURE_UPDATE_BARRIER_BIT 0x00000100
  2072. #define GL_BUFFER_UPDATE_BARRIER_BIT 0x00000200
  2073. #define GL_FRAMEBUFFER_BARRIER_BIT 0x00000400
  2074. #define GL_TRANSFORM_FEEDBACK_BARRIER_BIT 0x00000800
  2075. #define GL_ATOMIC_COUNTER_BARRIER_BIT 0x00001000
  2076. #define GL_ALL_BARRIER_BITS 0xFFFFFFFF
  2077. #define GL_MAX_IMAGE_UNITS 0x8F38
  2078. #define GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS 0x8F39
  2079. #define GL_IMAGE_BINDING_NAME 0x8F3A
  2080. #define GL_IMAGE_BINDING_LEVEL 0x8F3B
  2081. #define GL_IMAGE_BINDING_LAYERED 0x8F3C
  2082. #define GL_IMAGE_BINDING_LAYER 0x8F3D
  2083. #define GL_IMAGE_BINDING_ACCESS 0x8F3E
  2084. #define GL_IMAGE_1D 0x904C
  2085. #define GL_IMAGE_2D 0x904D
  2086. #define GL_IMAGE_3D 0x904E
  2087. #define GL_IMAGE_2D_RECT 0x904F
  2088. #define GL_IMAGE_CUBE 0x9050
  2089. #define GL_IMAGE_BUFFER 0x9051
  2090. #define GL_IMAGE_1D_ARRAY 0x9052
  2091. #define GL_IMAGE_2D_ARRAY 0x9053
  2092. #define GL_IMAGE_CUBE_MAP_ARRAY 0x9054
  2093. #define GL_IMAGE_2D_MULTISAMPLE 0x9055
  2094. #define GL_IMAGE_2D_MULTISAMPLE_ARRAY 0x9056
  2095. #define GL_INT_IMAGE_1D 0x9057
  2096. #define GL_INT_IMAGE_2D 0x9058
  2097. #define GL_INT_IMAGE_3D 0x9059
  2098. #define GL_INT_IMAGE_2D_RECT 0x905A
  2099. #define GL_INT_IMAGE_CUBE 0x905B
  2100. #define GL_INT_IMAGE_BUFFER 0x905C
  2101. #define GL_INT_IMAGE_1D_ARRAY 0x905D
  2102. #define GL_INT_IMAGE_2D_ARRAY 0x905E
  2103. #define GL_INT_IMAGE_CUBE_MAP_ARRAY 0x905F
  2104. #define GL_INT_IMAGE_2D_MULTISAMPLE 0x9060
  2105. #define GL_INT_IMAGE_2D_MULTISAMPLE_ARRAY 0x9061
  2106. #define GL_UNSIGNED_INT_IMAGE_1D 0x9062
  2107. #define GL_UNSIGNED_INT_IMAGE_2D 0x9063
  2108. #define GL_UNSIGNED_INT_IMAGE_3D 0x9064
  2109. #define GL_UNSIGNED_INT_IMAGE_2D_RECT 0x9065
  2110. #define GL_UNSIGNED_INT_IMAGE_CUBE 0x9066
  2111. #define GL_UNSIGNED_INT_IMAGE_BUFFER 0x9067
  2112. #define GL_UNSIGNED_INT_IMAGE_1D_ARRAY 0x9068
  2113. #define GL_UNSIGNED_INT_IMAGE_2D_ARRAY 0x9069
  2114. #define GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY 0x906A
  2115. #define GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE 0x906B
  2116. #define GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_ARRAY 0x906C
  2117. #define GL_MAX_IMAGE_SAMPLES 0x906D
  2118. #define GL_IMAGE_BINDING_FORMAT 0x906E
  2119. #define GL_IMAGE_FORMAT_COMPATIBILITY_TYPE 0x90C7
  2120. #define GL_IMAGE_FORMAT_COMPATIBILITY_BY_SIZE 0x90C8
  2121. #define GL_IMAGE_FORMAT_COMPATIBILITY_BY_CLASS 0x90C9
  2122. #define GL_MAX_VERTEX_IMAGE_UNIFORMS 0x90CA
  2123. #define GL_MAX_TESS_CONTROL_IMAGE_UNIFORMS 0x90CB
  2124. #define GL_MAX_TESS_EVALUATION_IMAGE_UNIFORMS 0x90CC
  2125. #define GL_MAX_GEOMETRY_IMAGE_UNIFORMS 0x90CD
  2126. #define GL_MAX_FRAGMENT_IMAGE_UNIFORMS 0x90CE
  2127. #define GL_MAX_COMBINED_IMAGE_UNIFORMS 0x90CF
  2128. #endif
  2129. #ifndef GL_ARB_shading_language_packing
  2130. #endif
  2131. #ifndef GL_ARB_texture_storage
  2132. #define GL_TEXTURE_IMMUTABLE_FORMAT 0x912F
  2133. #endif
  2134. #ifndef GL_KHR_texture_compression_astc_ldr
  2135. #define GL_COMPRESSED_RGBA_ASTC_4x4_KHR 0x93B0
  2136. #define GL_COMPRESSED_RGBA_ASTC_5x4_KHR 0x93B1
  2137. #define GL_COMPRESSED_RGBA_ASTC_5x5_KHR 0x93B2
  2138. #define GL_COMPRESSED_RGBA_ASTC_6x5_KHR 0x93B3
  2139. #define GL_COMPRESSED_RGBA_ASTC_6x6_KHR 0x93B4
  2140. #define GL_COMPRESSED_RGBA_ASTC_8x5_KHR 0x93B5
  2141. #define GL_COMPRESSED_RGBA_ASTC_8x6_KHR 0x93B6
  2142. #define GL_COMPRESSED_RGBA_ASTC_8x8_KHR 0x93B7
  2143. #define GL_COMPRESSED_RGBA_ASTC_10x5_KHR 0x93B8
  2144. #define GL_COMPRESSED_RGBA_ASTC_10x6_KHR 0x93B9
  2145. #define GL_COMPRESSED_RGBA_ASTC_10x8_KHR 0x93BA
  2146. #define GL_COMPRESSED_RGBA_ASTC_10x10_KHR 0x93BB
  2147. #define GL_COMPRESSED_RGBA_ASTC_12x10_KHR 0x93BC
  2148. #define GL_COMPRESSED_RGBA_ASTC_12x12_KHR 0x93BD
  2149. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR 0x93D0
  2150. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR 0x93D1
  2151. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR 0x93D2
  2152. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR 0x93D3
  2153. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR 0x93D4
  2154. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR 0x93D5
  2155. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR 0x93D6
  2156. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR 0x93D7
  2157. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR 0x93D8
  2158. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR 0x93D9
  2159. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR 0x93DA
  2160. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR 0x93DB
  2161. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR 0x93DC
  2162. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR 0x93DD
  2163. #endif
  2164. #ifndef GL_KHR_debug
  2165. #define GL_DEBUG_OUTPUT_SYNCHRONOUS 0x8242
  2166. #define GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH 0x8243
  2167. #define GL_DEBUG_CALLBACK_FUNCTION 0x8244
  2168. #define GL_DEBUG_CALLBACK_USER_PARAM 0x8245
  2169. #define GL_DEBUG_SOURCE_API 0x8246
  2170. #define GL_DEBUG_SOURCE_WINDOW_SYSTEM 0x8247
  2171. #define GL_DEBUG_SOURCE_SHADER_COMPILER 0x8248
  2172. #define GL_DEBUG_SOURCE_THIRD_PARTY 0x8249
  2173. #define GL_DEBUG_SOURCE_APPLICATION 0x824A
  2174. #define GL_DEBUG_SOURCE_OTHER 0x824B
  2175. #define GL_DEBUG_TYPE_ERROR 0x824C
  2176. #define GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR 0x824D
  2177. #define GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR 0x824E
  2178. #define GL_DEBUG_TYPE_PORTABILITY 0x824F
  2179. #define GL_DEBUG_TYPE_PERFORMANCE 0x8250
  2180. #define GL_DEBUG_TYPE_OTHER 0x8251
  2181. #define GL_DEBUG_TYPE_MARKER 0x8268
  2182. #define GL_DEBUG_TYPE_PUSH_GROUP 0x8269
  2183. #define GL_DEBUG_TYPE_POP_GROUP 0x826A
  2184. #define GL_DEBUG_SEVERITY_NOTIFICATION 0x826B
  2185. #define GL_MAX_DEBUG_GROUP_STACK_DEPTH 0x826C
  2186. #define GL_DEBUG_GROUP_STACK_DEPTH 0x826D
  2187. #define GL_BUFFER 0x82E0
  2188. #define GL_SHADER 0x82E1
  2189. #define GL_PROGRAM 0x82E2
  2190. #define GL_QUERY 0x82E3
  2191. #define GL_PROGRAM_PIPELINE 0x82E4
  2192. #define GL_SAMPLER 0x82E6
  2193. #define GL_DISPLAY_LIST 0x82E7
  2194. /* DISPLAY_LIST used in compatibility profile only */
  2195. #define GL_MAX_LABEL_LENGTH 0x82E8
  2196. #define GL_MAX_DEBUG_MESSAGE_LENGTH 0x9143
  2197. #define GL_MAX_DEBUG_LOGGED_MESSAGES 0x9144
  2198. #define GL_DEBUG_LOGGED_MESSAGES 0x9145
  2199. #define GL_DEBUG_SEVERITY_HIGH 0x9146
  2200. #define GL_DEBUG_SEVERITY_MEDIUM 0x9147
  2201. #define GL_DEBUG_SEVERITY_LOW 0x9148
  2202. #define GL_DEBUG_OUTPUT 0x92E0
  2203. #define GL_CONTEXT_FLAG_DEBUG_BIT 0x00000002
  2204. /* reuse GL_STACK_UNDERFLOW */
  2205. /* reuse GL_STACK_OVERFLOW */
  2206. #endif
  2207. #ifndef GL_ARB_arrays_of_arrays
  2208. #endif
  2209. #ifndef GL_ARB_clear_buffer_object
  2210. #endif
  2211. #ifndef GL_ARB_compute_shader
  2212. #define GL_COMPUTE_SHADER 0x91B9
  2213. #define GL_MAX_COMPUTE_UNIFORM_BLOCKS 0x91BB
  2214. #define GL_MAX_COMPUTE_TEXTURE_IMAGE_UNITS 0x91BC
  2215. #define GL_MAX_COMPUTE_IMAGE_UNIFORMS 0x91BD
  2216. #define GL_MAX_COMPUTE_SHARED_MEMORY_SIZE 0x8262
  2217. #define GL_MAX_COMPUTE_UNIFORM_COMPONENTS 0x8263
  2218. #define GL_MAX_COMPUTE_ATOMIC_COUNTER_BUFFERS 0x8264
  2219. #define GL_MAX_COMPUTE_ATOMIC_COUNTERS 0x8265
  2220. #define GL_MAX_COMBINED_COMPUTE_UNIFORM_COMPONENTS 0x8266
  2221. #define GL_MAX_COMPUTE_LOCAL_INVOCATIONS 0x90EB
  2222. #define GL_MAX_COMPUTE_WORK_GROUP_COUNT 0x91BE
  2223. #define GL_MAX_COMPUTE_WORK_GROUP_SIZE 0x91BF
  2224. #define GL_COMPUTE_LOCAL_WORK_SIZE 0x8267
  2225. #define GL_UNIFORM_BLOCK_REFERENCED_BY_COMPUTE_SHADER 0x90EC
  2226. #define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_COMPUTE_SHADER 0x90ED
  2227. #define GL_DISPATCH_INDIRECT_BUFFER 0x90EE
  2228. #define GL_DISPATCH_INDIRECT_BUFFER_BINDING 0x90EF
  2229. #define GL_COMPUTE_SHADER_BIT 0x00000020
  2230. #endif
  2231. #ifndef GL_ARB_copy_image
  2232. #endif
  2233. #ifndef GL_ARB_texture_view
  2234. #define GL_TEXTURE_VIEW_MIN_LEVEL 0x82DB
  2235. #define GL_TEXTURE_VIEW_NUM_LEVELS 0x82DC
  2236. #define GL_TEXTURE_VIEW_MIN_LAYER 0x82DD
  2237. #define GL_TEXTURE_VIEW_NUM_LAYERS 0x82DE
  2238. #define GL_TEXTURE_IMMUTABLE_LEVELS 0x82DF
  2239. #endif
  2240. #ifndef GL_ARB_vertex_attrib_binding
  2241. #define GL_VERTEX_ATTRIB_BINDING 0x82D4
  2242. #define GL_VERTEX_ATTRIB_RELATIVE_OFFSET 0x82D5
  2243. #define GL_VERTEX_BINDING_DIVISOR 0x82D6
  2244. #define GL_VERTEX_BINDING_OFFSET 0x82D7
  2245. #define GL_VERTEX_BINDING_STRIDE 0x82D8
  2246. #define GL_MAX_VERTEX_ATTRIB_RELATIVE_OFFSET 0x82D9
  2247. #define GL_MAX_VERTEX_ATTRIB_BINDINGS 0x82DA
  2248. #endif
  2249. #ifndef GL_ARB_robustness_isolation
  2250. #endif
  2251. #ifndef GL_ARB_ES3_compatibility
  2252. #define GL_COMPRESSED_RGB8_ETC2 0x9274
  2253. #define GL_COMPRESSED_SRGB8_ETC2 0x9275
  2254. #define GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2 0x9276
  2255. #define GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2 0x9277
  2256. #define GL_COMPRESSED_RGBA8_ETC2_EAC 0x9278
  2257. #define GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC 0x9279
  2258. #define GL_COMPRESSED_R11_EAC 0x9270
  2259. #define GL_COMPRESSED_SIGNED_R11_EAC 0x9271
  2260. #define GL_COMPRESSED_RG11_EAC 0x9272
  2261. #define GL_COMPRESSED_SIGNED_RG11_EAC 0x9273
  2262. #define GL_PRIMITIVE_RESTART_FIXED_INDEX 0x8D69
  2263. #define GL_ANY_SAMPLES_PASSED_CONSERVATIVE 0x8D6A
  2264. #define GL_MAX_ELEMENT_INDEX 0x8D6B
  2265. #endif
  2266. #ifndef GL_ARB_explicit_uniform_location
  2267. #define GL_MAX_UNIFORM_LOCATIONS 0x826E
  2268. #endif
  2269. #ifndef GL_ARB_fragment_layer_viewport
  2270. #endif
  2271. #ifndef GL_ARB_framebuffer_no_attachments
  2272. #define GL_FRAMEBUFFER_DEFAULT_WIDTH 0x9310
  2273. #define GL_FRAMEBUFFER_DEFAULT_HEIGHT 0x9311
  2274. #define GL_FRAMEBUFFER_DEFAULT_LAYERS 0x9312
  2275. #define GL_FRAMEBUFFER_DEFAULT_SAMPLES 0x9313
  2276. #define GL_FRAMEBUFFER_DEFAULT_FIXED_SAMPLE_LOCATIONS 0x9314
  2277. #define GL_MAX_FRAMEBUFFER_WIDTH 0x9315
  2278. #define GL_MAX_FRAMEBUFFER_HEIGHT 0x9316
  2279. #define GL_MAX_FRAMEBUFFER_LAYERS 0x9317
  2280. #define GL_MAX_FRAMEBUFFER_SAMPLES 0x9318
  2281. #endif
  2282. #ifndef GL_ARB_internalformat_query2
  2283. /* reuse GL_IMAGE_FORMAT_COMPATIBILITY_TYPE */
  2284. /* reuse GL_NUM_SAMPLE_COUNTS */
  2285. /* reuse GL_RENDERBUFFER */
  2286. /* reuse GL_SAMPLES */
  2287. /* reuse GL_TEXTURE_1D */
  2288. /* reuse GL_TEXTURE_1D_ARRAY */
  2289. /* reuse GL_TEXTURE_2D */
  2290. /* reuse GL_TEXTURE_2D_ARRAY */
  2291. /* reuse GL_TEXTURE_3D */
  2292. /* reuse GL_TEXTURE_CUBE_MAP */
  2293. /* reuse GL_TEXTURE_CUBE_MAP_ARRAY */
  2294. /* reuse GL_TEXTURE_RECTANGLE */
  2295. /* reuse GL_TEXTURE_BUFFER */
  2296. /* reuse GL_TEXTURE_2D_MULTISAMPLE */
  2297. /* reuse GL_TEXTURE_2D_MULTISAMPLE_ARRAY */
  2298. /* reuse GL_TEXTURE_COMPRESSED */
  2299. #define GL_INTERNALFORMAT_SUPPORTED 0x826F
  2300. #define GL_INTERNALFORMAT_PREFERRED 0x8270
  2301. #define GL_INTERNALFORMAT_RED_SIZE 0x8271
  2302. #define GL_INTERNALFORMAT_GREEN_SIZE 0x8272
  2303. #define GL_INTERNALFORMAT_BLUE_SIZE 0x8273
  2304. #define GL_INTERNALFORMAT_ALPHA_SIZE 0x8274
  2305. #define GL_INTERNALFORMAT_DEPTH_SIZE 0x8275
  2306. #define GL_INTERNALFORMAT_STENCIL_SIZE 0x8276
  2307. #define GL_INTERNALFORMAT_SHARED_SIZE 0x8277
  2308. #define GL_INTERNALFORMAT_RED_TYPE 0x8278
  2309. #define GL_INTERNALFORMAT_GREEN_TYPE 0x8279
  2310. #define GL_INTERNALFORMAT_BLUE_TYPE 0x827A
  2311. #define GL_INTERNALFORMAT_ALPHA_TYPE 0x827B
  2312. #define GL_INTERNALFORMAT_DEPTH_TYPE 0x827C
  2313. #define GL_INTERNALFORMAT_STENCIL_TYPE 0x827D
  2314. #define GL_MAX_WIDTH 0x827E
  2315. #define GL_MAX_HEIGHT 0x827F
  2316. #define GL_MAX_DEPTH 0x8280
  2317. #define GL_MAX_LAYERS 0x8281
  2318. #define GL_MAX_COMBINED_DIMENSIONS 0x8282
  2319. #define GL_COLOR_COMPONENTS 0x8283
  2320. #define GL_DEPTH_COMPONENTS 0x8284
  2321. #define GL_STENCIL_COMPONENTS 0x8285
  2322. #define GL_COLOR_RENDERABLE 0x8286
  2323. #define GL_DEPTH_RENDERABLE 0x8287
  2324. #define GL_STENCIL_RENDERABLE 0x8288
  2325. #define GL_FRAMEBUFFER_RENDERABLE 0x8289
  2326. #define GL_FRAMEBUFFER_RENDERABLE_LAYERED 0x828A
  2327. #define GL_FRAMEBUFFER_BLEND 0x828B
  2328. #define GL_READ_PIXELS 0x828C
  2329. #define GL_READ_PIXELS_FORMAT 0x828D
  2330. #define GL_READ_PIXELS_TYPE 0x828E
  2331. #define GL_TEXTURE_IMAGE_FORMAT 0x828F
  2332. #define GL_TEXTURE_IMAGE_TYPE 0x8290
  2333. #define GL_GET_TEXTURE_IMAGE_FORMAT 0x8291
  2334. #define GL_GET_TEXTURE_IMAGE_TYPE 0x8292
  2335. #define GL_MIPMAP 0x8293
  2336. #define GL_MANUAL_GENERATE_MIPMAP 0x8294
  2337. #define GL_AUTO_GENERATE_MIPMAP 0x8295
  2338. #define GL_COLOR_ENCODING 0x8296
  2339. #define GL_SRGB_READ 0x8297
  2340. #define GL_SRGB_WRITE 0x8298
  2341. #define GL_SRGB_DECODE_ARB 0x8299
  2342. #define GL_FILTER 0x829A
  2343. #define GL_VERTEX_TEXTURE 0x829B
  2344. #define GL_TESS_CONTROL_TEXTURE 0x829C
  2345. #define GL_TESS_EVALUATION_TEXTURE 0x829D
  2346. #define GL_GEOMETRY_TEXTURE 0x829E
  2347. #define GL_FRAGMENT_TEXTURE 0x829F
  2348. #define GL_COMPUTE_TEXTURE 0x82A0
  2349. #define GL_TEXTURE_SHADOW 0x82A1
  2350. #define GL_TEXTURE_GATHER 0x82A2
  2351. #define GL_TEXTURE_GATHER_SHADOW 0x82A3
  2352. #define GL_SHADER_IMAGE_LOAD 0x82A4
  2353. #define GL_SHADER_IMAGE_STORE 0x82A5
  2354. #define GL_SHADER_IMAGE_ATOMIC 0x82A6
  2355. #define GL_IMAGE_TEXEL_SIZE 0x82A7
  2356. #define GL_IMAGE_COMPATIBILITY_CLASS 0x82A8
  2357. #define GL_IMAGE_PIXEL_FORMAT 0x82A9
  2358. #define GL_IMAGE_PIXEL_TYPE 0x82AA
  2359. #define GL_SIMULTANEOUS_TEXTURE_AND_DEPTH_TEST 0x82AC
  2360. #define GL_SIMULTANEOUS_TEXTURE_AND_STENCIL_TEST 0x82AD
  2361. #define GL_SIMULTANEOUS_TEXTURE_AND_DEPTH_WRITE 0x82AE
  2362. #define GL_SIMULTANEOUS_TEXTURE_AND_STENCIL_WRITE 0x82AF
  2363. #define GL_TEXTURE_COMPRESSED_BLOCK_WIDTH 0x82B1
  2364. #define GL_TEXTURE_COMPRESSED_BLOCK_HEIGHT 0x82B2
  2365. #define GL_TEXTURE_COMPRESSED_BLOCK_SIZE 0x82B3
  2366. #define GL_CLEAR_BUFFER 0x82B4
  2367. #define GL_TEXTURE_VIEW 0x82B5
  2368. #define GL_VIEW_COMPATIBILITY_CLASS 0x82B6
  2369. #define GL_FULL_SUPPORT 0x82B7
  2370. #define GL_CAVEAT_SUPPORT 0x82B8
  2371. #define GL_IMAGE_CLASS_4_X_32 0x82B9
  2372. #define GL_IMAGE_CLASS_2_X_32 0x82BA
  2373. #define GL_IMAGE_CLASS_1_X_32 0x82BB
  2374. #define GL_IMAGE_CLASS_4_X_16 0x82BC
  2375. #define GL_IMAGE_CLASS_2_X_16 0x82BD
  2376. #define GL_IMAGE_CLASS_1_X_16 0x82BE
  2377. #define GL_IMAGE_CLASS_4_X_8 0x82BF
  2378. #define GL_IMAGE_CLASS_2_X_8 0x82C0
  2379. #define GL_IMAGE_CLASS_1_X_8 0x82C1
  2380. #define GL_IMAGE_CLASS_11_11_10 0x82C2
  2381. #define GL_IMAGE_CLASS_10_10_10_2 0x82C3
  2382. #define GL_VIEW_CLASS_128_BITS 0x82C4
  2383. #define GL_VIEW_CLASS_96_BITS 0x82C5
  2384. #define GL_VIEW_CLASS_64_BITS 0x82C6
  2385. #define GL_VIEW_CLASS_48_BITS 0x82C7
  2386. #define GL_VIEW_CLASS_32_BITS 0x82C8
  2387. #define GL_VIEW_CLASS_24_BITS 0x82C9
  2388. #define GL_VIEW_CLASS_16_BITS 0x82CA
  2389. #define GL_VIEW_CLASS_8_BITS 0x82CB
  2390. #define GL_VIEW_CLASS_S3TC_DXT1_RGB 0x82CC
  2391. #define GL_VIEW_CLASS_S3TC_DXT1_RGBA 0x82CD
  2392. #define GL_VIEW_CLASS_S3TC_DXT3_RGBA 0x82CE
  2393. #define GL_VIEW_CLASS_S3TC_DXT5_RGBA 0x82CF
  2394. #define GL_VIEW_CLASS_RGTC1_RED 0x82D0
  2395. #define GL_VIEW_CLASS_RGTC2_RG 0x82D1
  2396. #define GL_VIEW_CLASS_BPTC_UNORM 0x82D2
  2397. #define GL_VIEW_CLASS_BPTC_FLOAT 0x82D3
  2398. #endif
  2399. #ifndef GL_ARB_invalidate_subdata
  2400. #endif
  2401. #ifndef GL_ARB_multi_draw_indirect
  2402. #endif
  2403. #ifndef GL_ARB_program_interface_query
  2404. #define GL_UNIFORM 0x92E1
  2405. #define GL_UNIFORM_BLOCK 0x92E2
  2406. #define GL_PROGRAM_INPUT 0x92E3
  2407. #define GL_PROGRAM_OUTPUT 0x92E4
  2408. #define GL_BUFFER_VARIABLE 0x92E5
  2409. #define GL_SHADER_STORAGE_BLOCK 0x92E6
  2410. /* reuse GL_ATOMIC_COUNTER_BUFFER */
  2411. #define GL_VERTEX_SUBROUTINE 0x92E8
  2412. #define GL_TESS_CONTROL_SUBROUTINE 0x92E9
  2413. #define GL_TESS_EVALUATION_SUBROUTINE 0x92EA
  2414. #define GL_GEOMETRY_SUBROUTINE 0x92EB
  2415. #define GL_FRAGMENT_SUBROUTINE 0x92EC
  2416. #define GL_COMPUTE_SUBROUTINE 0x92ED
  2417. #define GL_VERTEX_SUBROUTINE_UNIFORM 0x92EE
  2418. #define GL_TESS_CONTROL_SUBROUTINE_UNIFORM 0x92EF
  2419. #define GL_TESS_EVALUATION_SUBROUTINE_UNIFORM 0x92F0
  2420. #define GL_GEOMETRY_SUBROUTINE_UNIFORM 0x92F1
  2421. #define GL_FRAGMENT_SUBROUTINE_UNIFORM 0x92F2
  2422. #define GL_COMPUTE_SUBROUTINE_UNIFORM 0x92F3
  2423. #define GL_TRANSFORM_FEEDBACK_VARYING 0x92F4
  2424. #define GL_ACTIVE_RESOURCES 0x92F5
  2425. #define GL_MAX_NAME_LENGTH 0x92F6
  2426. #define GL_MAX_NUM_ACTIVE_VARIABLES 0x92F7
  2427. #define GL_MAX_NUM_COMPATIBLE_SUBROUTINES 0x92F8
  2428. #define GL_NAME_LENGTH 0x92F9
  2429. #define GL_TYPE 0x92FA
  2430. #define GL_ARRAY_SIZE 0x92FB
  2431. #define GL_OFFSET 0x92FC
  2432. #define GL_BLOCK_INDEX 0x92FD
  2433. #define GL_ARRAY_STRIDE 0x92FE
  2434. #define GL_MATRIX_STRIDE 0x92FF
  2435. #define GL_IS_ROW_MAJOR 0x9300
  2436. #define GL_ATOMIC_COUNTER_BUFFER_INDEX 0x9301
  2437. #define GL_BUFFER_BINDING 0x9302
  2438. #define GL_BUFFER_DATA_SIZE 0x9303
  2439. #define GL_NUM_ACTIVE_VARIABLES 0x9304
  2440. #define GL_ACTIVE_VARIABLES 0x9305
  2441. #define GL_REFERENCED_BY_VERTEX_SHADER 0x9306
  2442. #define GL_REFERENCED_BY_TESS_CONTROL_SHADER 0x9307
  2443. #define GL_REFERENCED_BY_TESS_EVALUATION_SHADER 0x9308
  2444. #define GL_REFERENCED_BY_GEOMETRY_SHADER 0x9309
  2445. #define GL_REFERENCED_BY_FRAGMENT_SHADER 0x930A
  2446. #define GL_REFERENCED_BY_COMPUTE_SHADER 0x930B
  2447. #define GL_TOP_LEVEL_ARRAY_SIZE 0x930C
  2448. #define GL_TOP_LEVEL_ARRAY_STRIDE 0x930D
  2449. #define GL_LOCATION 0x930E
  2450. #define GL_LOCATION_INDEX 0x930F
  2451. #define GL_IS_PER_PATCH 0x92E7
  2452. /* reuse GL_NUM_COMPATIBLE_SUBROUTINES */
  2453. /* reuse GL_COMPATIBLE_SUBROUTINES */
  2454. #endif
  2455. #ifndef GL_ARB_robust_buffer_access_behavior
  2456. #endif
  2457. #ifndef GL_ARB_shader_image_size
  2458. #endif
  2459. #ifndef GL_ARB_shader_storage_buffer_object
  2460. #define GL_SHADER_STORAGE_BUFFER 0x90D2
  2461. #define GL_SHADER_STORAGE_BUFFER_BINDING 0x90D3
  2462. #define GL_SHADER_STORAGE_BUFFER_START 0x90D4
  2463. #define GL_SHADER_STORAGE_BUFFER_SIZE 0x90D5
  2464. #define GL_MAX_VERTEX_SHADER_STORAGE_BLOCKS 0x90D6
  2465. #define GL_MAX_GEOMETRY_SHADER_STORAGE_BLOCKS 0x90D7
  2466. #define GL_MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS 0x90D8
  2467. #define GL_MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS 0x90D9
  2468. #define GL_MAX_FRAGMENT_SHADER_STORAGE_BLOCKS 0x90DA
  2469. #define GL_MAX_COMPUTE_SHADER_STORAGE_BLOCKS 0x90DB
  2470. #define GL_MAX_COMBINED_SHADER_STORAGE_BLOCKS 0x90DC
  2471. #define GL_MAX_SHADER_STORAGE_BUFFER_BINDINGS 0x90DD
  2472. #define GL_MAX_SHADER_STORAGE_BLOCK_SIZE 0x90DE
  2473. #define GL_SHADER_STORAGE_BUFFER_OFFSET_ALIGNMENT 0x90DF
  2474. #define GL_SHADER_STORAGE_BARRIER_BIT 0x2000
  2475. #define GL_MAX_COMBINED_SHADER_OUTPUT_RESOURCES GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS
  2476. /* reuse GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS */
  2477. #endif
  2478. #ifndef GL_ARB_stencil_texturing
  2479. #define GL_DEPTH_STENCIL_TEXTURE_MODE 0x90EA
  2480. #endif
  2481. #ifndef GL_ARB_texture_buffer_range
  2482. #define GL_TEXTURE_BUFFER_OFFSET 0x919D
  2483. #define GL_TEXTURE_BUFFER_SIZE 0x919E
  2484. #define GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT 0x919F
  2485. #endif
  2486. #ifndef GL_ARB_texture_query_levels
  2487. #endif
  2488. #ifndef GL_ARB_texture_storage_multisample
  2489. #endif
  2490. /*************************************************************/
  2491. #include <stddef.h>
  2492. #ifndef GL_VERSION_2_0
  2493. /* GL type for program/shader text */
  2494. typedef char GLchar;
  2495. #endif
  2496. #ifndef GL_VERSION_1_5
  2497. /* GL types for handling large vertex buffer objects */
  2498. typedef ptrdiff_t GLintptr;
  2499. typedef ptrdiff_t GLsizeiptr;
  2500. #endif
  2501. #ifndef GL_ARB_vertex_buffer_object
  2502. /* GL types for handling large vertex buffer objects */
  2503. typedef ptrdiff_t GLintptrARB;
  2504. typedef ptrdiff_t GLsizeiptrARB;
  2505. #endif
  2506. #ifndef GL_ARB_shader_objects
  2507. /* GL types for program/shader text and shader object handles */
  2508. typedef char GLcharARB;
  2509. typedef unsigned int GLhandleARB;
  2510. #endif
  2511. /* GL type for "half" precision (s10e5) float data in host memory */
  2512. #ifndef GL_ARB_half_float_pixel
  2513. typedef unsigned short GLhalfARB;
  2514. #endif
  2515. #ifndef GL_NV_half_float
  2516. typedef unsigned short GLhalfNV;
  2517. #endif
  2518. #ifndef GLEXT_64_TYPES_DEFINED
  2519. /* This code block is duplicated in glxext.h, so must be protected */
  2520. #define GLEXT_64_TYPES_DEFINED
  2521. /* Define int32_t, int64_t, and uint64_t types for UST/MSC */
  2522. /* (as used in the GL_EXT_timer_query extension). */
  2523. #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
  2524. #include <inttypes.h>
  2525. #elif defined(__sun__) || defined(__digital__)
  2526. #include <inttypes.h>
  2527. #if defined(__STDC__)
  2528. #if defined(__arch64__) || defined(_LP64)
  2529. typedef long int int64_t;
  2530. typedef unsigned long int uint64_t;
  2531. #else
  2532. typedef long long int int64_t;
  2533. typedef unsigned long long int uint64_t;
  2534. #endif /* __arch64__ */
  2535. #endif /* __STDC__ */
  2536. #elif defined( __VMS ) || defined(__sgi)
  2537. #include <inttypes.h>
  2538. #elif defined(__SCO__) || defined(__USLC__)
  2539. #include <stdint.h>
  2540. #elif defined(__UNIXOS2__) || defined(__SOL64__)
  2541. typedef long int int32_t;
  2542. typedef long long int int64_t;
  2543. typedef unsigned long long int uint64_t;
  2544. #elif defined(_WIN32) && defined(__GNUC__)
  2545. #include <stdint.h>
  2546. #elif defined(_WIN32)
  2547. typedef __int32 int32_t;
  2548. typedef __int64 int64_t;
  2549. typedef unsigned __int64 uint64_t;
  2550. #else
  2551. /* Fallback if nothing above works */
  2552. #include <inttypes.h>
  2553. #endif
  2554. #endif
  2555. #ifndef GL_EXT_timer_query
  2556. typedef int64_t GLint64EXT;
  2557. typedef uint64_t GLuint64EXT;
  2558. #endif
  2559. #ifndef GL_ARB_sync
  2560. typedef int64_t GLint64;
  2561. typedef uint64_t GLuint64;
  2562. typedef struct __GLsync *GLsync;
  2563. #endif
  2564. #ifndef GL_ARB_cl_event
  2565. /* These incomplete types let us declare types compatible with OpenCL's cl_context and cl_event */
  2566. struct _cl_context;
  2567. struct _cl_event;
  2568. #endif
  2569. #ifndef GL_ARB_debug_output
  2570. typedef void (APIENTRY *GLDEBUGPROCARB)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,GLvoid *userParam);
  2571. #endif
  2572. #ifndef GL_AMD_debug_output
  2573. typedef void (APIENTRY *GLDEBUGPROCAMD)(GLuint id,GLenum category,GLenum severity,GLsizei length,const GLchar *message,GLvoid *userParam);
  2574. #endif
  2575. #ifndef GL_KHR_debug
  2576. typedef void (APIENTRY *GLDEBUGPROC)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,GLvoid *userParam);
  2577. #endif
  2578. #ifndef GL_NV_vdpau_interop
  2579. typedef GLintptr GLvdpauSurfaceNV;
  2580. #endif
  2581. #ifndef GL_VERSION_1_0
  2582. #define GL_VERSION_1_0 1
  2583. #ifdef GLCOREARB_PROTOTYPES
  2584. GLAPI void APIENTRY glCullFace (GLenum mode);
  2585. GLAPI void APIENTRY glFrontFace (GLenum mode);
  2586. GLAPI void APIENTRY glHint (GLenum target, GLenum mode);
  2587. GLAPI void APIENTRY glLineWidth (GLfloat width);
  2588. GLAPI void APIENTRY glPointSize (GLfloat size);
  2589. GLAPI void APIENTRY glPolygonMode (GLenum face, GLenum mode);
  2590. GLAPI void APIENTRY glScissor (GLint x, GLint y, GLsizei width, GLsizei height);
  2591. GLAPI void APIENTRY glTexParameterf (GLenum target, GLenum pname, GLfloat param);
  2592. GLAPI void APIENTRY glTexParameterfv (GLenum target, GLenum pname, const GLfloat *params);
  2593. GLAPI void APIENTRY glTexParameteri (GLenum target, GLenum pname, GLint param);
  2594. GLAPI void APIENTRY glTexParameteriv (GLenum target, GLenum pname, const GLint *params);
  2595. GLAPI void APIENTRY glTexImage1D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
  2596. GLAPI void APIENTRY glTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
  2597. GLAPI void APIENTRY glDrawBuffer (GLenum mode);
  2598. GLAPI void APIENTRY glClear (GLbitfield mask);
  2599. GLAPI void APIENTRY glClearColor (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
  2600. GLAPI void APIENTRY glClearStencil (GLint s);
  2601. GLAPI void APIENTRY glClearDepth (GLdouble depth);
  2602. GLAPI void APIENTRY glStencilMask (GLuint mask);
  2603. GLAPI void APIENTRY glColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
  2604. GLAPI void APIENTRY glDepthMask (GLboolean flag);
  2605. GLAPI void APIENTRY glDisable (GLenum cap);
  2606. GLAPI void APIENTRY glEnable (GLenum cap);
  2607. GLAPI void APIENTRY glFinish (void);
  2608. GLAPI void APIENTRY glFlush (void);
  2609. GLAPI void APIENTRY glBlendFunc (GLenum sfactor, GLenum dfactor);
  2610. GLAPI void APIENTRY glLogicOp (GLenum opcode);
  2611. GLAPI void APIENTRY glStencilFunc (GLenum func, GLint ref, GLuint mask);
  2612. GLAPI void APIENTRY glStencilOp (GLenum fail, GLenum zfail, GLenum zpass);
  2613. GLAPI void APIENTRY glDepthFunc (GLenum func);
  2614. GLAPI void APIENTRY glPixelStoref (GLenum pname, GLfloat param);
  2615. GLAPI void APIENTRY glPixelStorei (GLenum pname, GLint param);
  2616. GLAPI void APIENTRY glReadBuffer (GLenum mode);
  2617. GLAPI void APIENTRY glReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels);
  2618. GLAPI void APIENTRY glGetBooleanv (GLenum pname, GLboolean *params);
  2619. GLAPI void APIENTRY glGetDoublev (GLenum pname, GLdouble *params);
  2620. GLAPI GLenum APIENTRY glGetError (void);
  2621. GLAPI void APIENTRY glGetFloatv (GLenum pname, GLfloat *params);
  2622. GLAPI void APIENTRY glGetIntegerv (GLenum pname, GLint *params);
  2623. GLAPI const GLubyte * APIENTRY glGetString (GLenum name);
  2624. GLAPI void APIENTRY glGetTexImage (GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels);
  2625. GLAPI void APIENTRY glGetTexParameterfv (GLenum target, GLenum pname, GLfloat *params);
  2626. GLAPI void APIENTRY glGetTexParameteriv (GLenum target, GLenum pname, GLint *params);
  2627. GLAPI void APIENTRY glGetTexLevelParameterfv (GLenum target, GLint level, GLenum pname, GLfloat *params);
  2628. GLAPI void APIENTRY glGetTexLevelParameteriv (GLenum target, GLint level, GLenum pname, GLint *params);
  2629. GLAPI GLboolean APIENTRY glIsEnabled (GLenum cap);
  2630. GLAPI void APIENTRY glDepthRange (GLdouble near, GLdouble far);
  2631. GLAPI void APIENTRY glViewport (GLint x, GLint y, GLsizei width, GLsizei height);
  2632. #endif /* GLCOREARB_PROTOTYPES */
  2633. typedef void (APIENTRYP PFNGLCULLFACEPROC) (GLenum mode);
  2634. typedef void (APIENTRYP PFNGLFRONTFACEPROC) (GLenum mode);
  2635. typedef void (APIENTRYP PFNGLHINTPROC) (GLenum target, GLenum mode);
  2636. typedef void (APIENTRYP PFNGLLINEWIDTHPROC) (GLfloat width);
  2637. typedef void (APIENTRYP PFNGLPOINTSIZEPROC) (GLfloat size);
  2638. typedef void (APIENTRYP PFNGLPOLYGONMODEPROC) (GLenum face, GLenum mode);
  2639. typedef void (APIENTRYP PFNGLSCISSORPROC) (GLint x, GLint y, GLsizei width, GLsizei height);
  2640. typedef void (APIENTRYP PFNGLTEXPARAMETERFPROC) (GLenum target, GLenum pname, GLfloat param);
  2641. typedef void (APIENTRYP PFNGLTEXPARAMETERFVPROC) (GLenum target, GLenum pname, const GLfloat *params);
  2642. typedef void (APIENTRYP PFNGLTEXPARAMETERIPROC) (GLenum target, GLenum pname, GLint param);
  2643. typedef void (APIENTRYP PFNGLTEXPARAMETERIVPROC) (GLenum target, GLenum pname, const GLint *params);
  2644. typedef void (APIENTRYP PFNGLTEXIMAGE1DPROC) (GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
  2645. typedef void (APIENTRYP PFNGLTEXIMAGE2DPROC) (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
  2646. typedef void (APIENTRYP PFNGLDRAWBUFFERPROC) (GLenum mode);
  2647. typedef void (APIENTRYP PFNGLCLEARPROC) (GLbitfield mask);
  2648. typedef void (APIENTRYP PFNGLCLEARCOLORPROC) (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
  2649. typedef void (APIENTRYP PFNGLCLEARSTENCILPROC) (GLint s);
  2650. typedef void (APIENTRYP PFNGLCLEARDEPTHPROC) (GLdouble depth);
  2651. typedef void (APIENTRYP PFNGLSTENCILMASKPROC) (GLuint mask);
  2652. typedef void (APIENTRYP PFNGLCOLORMASKPROC) (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
  2653. typedef void (APIENTRYP PFNGLDEPTHMASKPROC) (GLboolean flag);
  2654. typedef void (APIENTRYP PFNGLDISABLEPROC) (GLenum cap);
  2655. typedef void (APIENTRYP PFNGLENABLEPROC) (GLenum cap);
  2656. typedef void (APIENTRYP PFNGLFINISHPROC) (void);
  2657. typedef void (APIENTRYP PFNGLFLUSHPROC) (void);
  2658. typedef void (APIENTRYP PFNGLBLENDFUNCPROC) (GLenum sfactor, GLenum dfactor);
  2659. typedef void (APIENTRYP PFNGLLOGICOPPROC) (GLenum opcode);
  2660. typedef void (APIENTRYP PFNGLSTENCILFUNCPROC) (GLenum func, GLint ref, GLuint mask);
  2661. typedef void (APIENTRYP PFNGLSTENCILOPPROC) (GLenum fail, GLenum zfail, GLenum zpass);
  2662. typedef void (APIENTRYP PFNGLDEPTHFUNCPROC) (GLenum func);
  2663. typedef void (APIENTRYP PFNGLPIXELSTOREFPROC) (GLenum pname, GLfloat param);
  2664. typedef void (APIENTRYP PFNGLPIXELSTOREIPROC) (GLenum pname, GLint param);
  2665. typedef void (APIENTRYP PFNGLREADBUFFERPROC) (GLenum mode);
  2666. typedef void (APIENTRYP PFNGLREADPIXELSPROC) (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels);
  2667. typedef void (APIENTRYP PFNGLGETBOOLEANVPROC) (GLenum pname, GLboolean *params);
  2668. typedef void (APIENTRYP PFNGLGETDOUBLEVPROC) (GLenum pname, GLdouble *params);
  2669. typedef GLenum (APIENTRYP PFNGLGETERRORPROC) (void);
  2670. typedef void (APIENTRYP PFNGLGETFLOATVPROC) (GLenum pname, GLfloat *params);
  2671. typedef void (APIENTRYP PFNGLGETINTEGERVPROC) (GLenum pname, GLint *params);
  2672. typedef const GLubyte * (APIENTRYP PFNGLGETSTRINGPROC) (GLenum name);
  2673. typedef void (APIENTRYP PFNGLGETTEXIMAGEPROC) (GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels);
  2674. typedef void (APIENTRYP PFNGLGETTEXPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params);
  2675. typedef void (APIENTRYP PFNGLGETTEXPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
  2676. typedef void (APIENTRYP PFNGLGETTEXLEVELPARAMETERFVPROC) (GLenum target, GLint level, GLenum pname, GLfloat *params);
  2677. typedef void (APIENTRYP PFNGLGETTEXLEVELPARAMETERIVPROC) (GLenum target, GLint level, GLenum pname, GLint *params);
  2678. typedef GLboolean (APIENTRYP PFNGLISENABLEDPROC) (GLenum cap);
  2679. typedef void (APIENTRYP PFNGLDEPTHRANGEPROC) (GLdouble near, GLdouble far);
  2680. typedef void (APIENTRYP PFNGLVIEWPORTPROC) (GLint x, GLint y, GLsizei width, GLsizei height);
  2681. #endif
  2682. #ifndef GL_VERSION_1_1
  2683. #define GL_VERSION_1_1 1
  2684. #ifdef GLCOREARB_PROTOTYPES
  2685. GLAPI void APIENTRY glDrawArrays (GLenum mode, GLint first, GLsizei count);
  2686. GLAPI void APIENTRY glDrawElements (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices);
  2687. GLAPI void APIENTRY glGetPointerv (GLenum pname, GLvoid* *params);
  2688. GLAPI void APIENTRY glPolygonOffset (GLfloat factor, GLfloat units);
  2689. GLAPI void APIENTRY glCopyTexImage1D (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border);
  2690. GLAPI void APIENTRY glCopyTexImage2D (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
  2691. GLAPI void APIENTRY glCopyTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
  2692. GLAPI void APIENTRY glCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
  2693. GLAPI void APIENTRY glTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels);
  2694. GLAPI void APIENTRY glTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
  2695. GLAPI void APIENTRY glBindTexture (GLenum target, GLuint texture);
  2696. GLAPI void APIENTRY glDeleteTextures (GLsizei n, const GLuint *textures);
  2697. GLAPI void APIENTRY glGenTextures (GLsizei n, GLuint *textures);
  2698. GLAPI GLboolean APIENTRY glIsTexture (GLuint texture);
  2699. #endif /* GLCOREARB_PROTOTYPES */
  2700. typedef void (APIENTRYP PFNGLDRAWARRAYSPROC) (GLenum mode, GLint first, GLsizei count);
  2701. typedef void (APIENTRYP PFNGLDRAWELEMENTSPROC) (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices);
  2702. typedef void (APIENTRYP PFNGLGETPOINTERVPROC) (GLenum pname, GLvoid* *params);
  2703. typedef void (APIENTRYP PFNGLPOLYGONOFFSETPROC) (GLfloat factor, GLfloat units);
  2704. typedef void (APIENTRYP PFNGLCOPYTEXIMAGE1DPROC) (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border);
  2705. typedef void (APIENTRYP PFNGLCOPYTEXIMAGE2DPROC) (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
  2706. typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE1DPROC) (GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
  2707. typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
  2708. typedef void (APIENTRYP PFNGLTEXSUBIMAGE1DPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels);
  2709. typedef void (APIENTRYP PFNGLTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
  2710. typedef void (APIENTRYP PFNGLBINDTEXTUREPROC) (GLenum target, GLuint texture);
  2711. typedef void (APIENTRYP PFNGLDELETETEXTURESPROC) (GLsizei n, const GLuint *textures);
  2712. typedef void (APIENTRYP PFNGLGENTEXTURESPROC) (GLsizei n, GLuint *textures);
  2713. typedef GLboolean (APIENTRYP PFNGLISTEXTUREPROC) (GLuint texture);
  2714. #endif
  2715. #ifndef GL_VERSION_1_2
  2716. #define GL_VERSION_1_2 1
  2717. #ifdef GLCOREARB_PROTOTYPES
  2718. GLAPI void APIENTRY glBlendColor (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
  2719. GLAPI void APIENTRY glBlendEquation (GLenum mode);
  2720. GLAPI void APIENTRY glDrawRangeElements (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices);
  2721. GLAPI void APIENTRY glTexImage3D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
  2722. GLAPI void APIENTRY glTexSubImage3D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels);
  2723. GLAPI void APIENTRY glCopyTexSubImage3D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
  2724. #endif /* GLCOREARB_PROTOTYPES */
  2725. typedef void (APIENTRYP PFNGLBLENDCOLORPROC) (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
  2726. typedef void (APIENTRYP PFNGLBLENDEQUATIONPROC) (GLenum mode);
  2727. typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTSPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices);
  2728. typedef void (APIENTRYP PFNGLTEXIMAGE3DPROC) (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
  2729. typedef void (APIENTRYP PFNGLTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels);
  2730. typedef void (APIENTRYP PFNGLCOPYTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
  2731. #endif
  2732. #ifndef GL_VERSION_1_3
  2733. #define GL_VERSION_1_3 1
  2734. #ifdef GLCOREARB_PROTOTYPES
  2735. GLAPI void APIENTRY glActiveTexture (GLenum texture);
  2736. GLAPI void APIENTRY glSampleCoverage (GLfloat value, GLboolean invert);
  2737. GLAPI void APIENTRY glCompressedTexImage3D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data);
  2738. GLAPI void APIENTRY glCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data);
  2739. GLAPI void APIENTRY glCompressedTexImage1D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data);
  2740. GLAPI void APIENTRY glCompressedTexSubImage3D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *data);
  2741. GLAPI void APIENTRY glCompressedTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data);
  2742. GLAPI void APIENTRY glCompressedTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data);
  2743. GLAPI void APIENTRY glGetCompressedTexImage (GLenum target, GLint level, GLvoid *img);
  2744. #endif /* GLCOREARB_PROTOTYPES */
  2745. typedef void (APIENTRYP PFNGLACTIVETEXTUREPROC) (GLenum texture);
  2746. typedef void (APIENTRYP PFNGLSAMPLECOVERAGEPROC) (GLfloat value, GLboolean invert);
  2747. typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE3DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data);
  2748. typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE2DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data);
  2749. typedef void (APIENTRYP PFNGLCOMPRESSEDTEXIMAGE1DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data);
  2750. typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *data);
  2751. typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data);
  2752. typedef void (APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data);
  2753. typedef void (APIENTRYP PFNGLGETCOMPRESSEDTEXIMAGEPROC) (GLenum target, GLint level, GLvoid *img);
  2754. #endif
  2755. #ifndef GL_VERSION_1_4
  2756. #define GL_VERSION_1_4 1
  2757. #ifdef GLCOREARB_PROTOTYPES
  2758. GLAPI void APIENTRY glBlendFuncSeparate (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
  2759. GLAPI void APIENTRY glMultiDrawArrays (GLenum mode, const GLint *first, const GLsizei *count, GLsizei drawcount);
  2760. GLAPI void APIENTRY glMultiDrawElements (GLenum mode, const GLsizei *count, GLenum type, const GLvoid* const *indices, GLsizei drawcount);
  2761. GLAPI void APIENTRY glPointParameterf (GLenum pname, GLfloat param);
  2762. GLAPI void APIENTRY glPointParameterfv (GLenum pname, const GLfloat *params);
  2763. GLAPI void APIENTRY glPointParameteri (GLenum pname, GLint param);
  2764. GLAPI void APIENTRY glPointParameteriv (GLenum pname, const GLint *params);
  2765. #endif /* GLCOREARB_PROTOTYPES */
  2766. typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
  2767. typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSPROC) (GLenum mode, const GLint *first, const GLsizei *count, GLsizei drawcount);
  2768. typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSPROC) (GLenum mode, const GLsizei *count, GLenum type, const GLvoid* const *indices, GLsizei drawcount);
  2769. typedef void (APIENTRYP PFNGLPOINTPARAMETERFPROC) (GLenum pname, GLfloat param);
  2770. typedef void (APIENTRYP PFNGLPOINTPARAMETERFVPROC) (GLenum pname, const GLfloat *params);
  2771. typedef void (APIENTRYP PFNGLPOINTPARAMETERIPROC) (GLenum pname, GLint param);
  2772. typedef void (APIENTRYP PFNGLPOINTPARAMETERIVPROC) (GLenum pname, const GLint *params);
  2773. #endif
  2774. #ifndef GL_VERSION_1_5
  2775. #define GL_VERSION_1_5 1
  2776. #ifdef GLCOREARB_PROTOTYPES
  2777. GLAPI void APIENTRY glGenQueries (GLsizei n, GLuint *ids);
  2778. GLAPI void APIENTRY glDeleteQueries (GLsizei n, const GLuint *ids);
  2779. GLAPI GLboolean APIENTRY glIsQuery (GLuint id);
  2780. GLAPI void APIENTRY glBeginQuery (GLenum target, GLuint id);
  2781. GLAPI void APIENTRY glEndQuery (GLenum target);
  2782. GLAPI void APIENTRY glGetQueryiv (GLenum target, GLenum pname, GLint *params);
  2783. GLAPI void APIENTRY glGetQueryObjectiv (GLuint id, GLenum pname, GLint *params);
  2784. GLAPI void APIENTRY glGetQueryObjectuiv (GLuint id, GLenum pname, GLuint *params);
  2785. GLAPI void APIENTRY glBindBuffer (GLenum target, GLuint buffer);
  2786. GLAPI void APIENTRY glDeleteBuffers (GLsizei n, const GLuint *buffers);
  2787. GLAPI void APIENTRY glGenBuffers (GLsizei n, GLuint *buffers);
  2788. GLAPI GLboolean APIENTRY glIsBuffer (GLuint buffer);
  2789. GLAPI void APIENTRY glBufferData (GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage);
  2790. GLAPI void APIENTRY glBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid *data);
  2791. GLAPI void APIENTRY glGetBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, GLvoid *data);
  2792. GLAPI GLvoid* APIENTRY glMapBuffer (GLenum target, GLenum access);
  2793. GLAPI GLboolean APIENTRY glUnmapBuffer (GLenum target);
  2794. GLAPI void APIENTRY glGetBufferParameteriv (GLenum target, GLenum pname, GLint *params);
  2795. GLAPI void APIENTRY glGetBufferPointerv (GLenum target, GLenum pname, GLvoid* *params);
  2796. #endif /* GLCOREARB_PROTOTYPES */
  2797. typedef void (APIENTRYP PFNGLGENQUERIESPROC) (GLsizei n, GLuint *ids);
  2798. typedef void (APIENTRYP PFNGLDELETEQUERIESPROC) (GLsizei n, const GLuint *ids);
  2799. typedef GLboolean (APIENTRYP PFNGLISQUERYPROC) (GLuint id);
  2800. typedef void (APIENTRYP PFNGLBEGINQUERYPROC) (GLenum target, GLuint id);
  2801. typedef void (APIENTRYP PFNGLENDQUERYPROC) (GLenum target);
  2802. typedef void (APIENTRYP PFNGLGETQUERYIVPROC) (GLenum target, GLenum pname, GLint *params);
  2803. typedef void (APIENTRYP PFNGLGETQUERYOBJECTIVPROC) (GLuint id, GLenum pname, GLint *params);
  2804. typedef void (APIENTRYP PFNGLGETQUERYOBJECTUIVPROC) (GLuint id, GLenum pname, GLuint *params);
  2805. typedef void (APIENTRYP PFNGLBINDBUFFERPROC) (GLenum target, GLuint buffer);
  2806. typedef void (APIENTRYP PFNGLDELETEBUFFERSPROC) (GLsizei n, const GLuint *buffers);
  2807. typedef void (APIENTRYP PFNGLGENBUFFERSPROC) (GLsizei n, GLuint *buffers);
  2808. typedef GLboolean (APIENTRYP PFNGLISBUFFERPROC) (GLuint buffer);
  2809. typedef void (APIENTRYP PFNGLBUFFERDATAPROC) (GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage);
  2810. typedef void (APIENTRYP PFNGLBUFFERSUBDATAPROC) (GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid *data);
  2811. typedef void (APIENTRYP PFNGLGETBUFFERSUBDATAPROC) (GLenum target, GLintptr offset, GLsizeiptr size, GLvoid *data);
  2812. typedef GLvoid* (APIENTRYP PFNGLMAPBUFFERPROC) (GLenum target, GLenum access);
  2813. typedef GLboolean (APIENTRYP PFNGLUNMAPBUFFERPROC) (GLenum target);
  2814. typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
  2815. typedef void (APIENTRYP PFNGLGETBUFFERPOINTERVPROC) (GLenum target, GLenum pname, GLvoid* *params);
  2816. #endif
  2817. #ifndef GL_VERSION_2_0
  2818. #define GL_VERSION_2_0 1
  2819. #ifdef GLCOREARB_PROTOTYPES
  2820. GLAPI void APIENTRY glBlendEquationSeparate (GLenum modeRGB, GLenum modeAlpha);
  2821. GLAPI void APIENTRY glDrawBuffers (GLsizei n, const GLenum *bufs);
  2822. GLAPI void APIENTRY glStencilOpSeparate (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
  2823. GLAPI void APIENTRY glStencilFuncSeparate (GLenum face, GLenum func, GLint ref, GLuint mask);
  2824. GLAPI void APIENTRY glStencilMaskSeparate (GLenum face, GLuint mask);
  2825. GLAPI void APIENTRY glAttachShader (GLuint program, GLuint shader);
  2826. GLAPI void APIENTRY glBindAttribLocation (GLuint program, GLuint index, const GLchar *name);
  2827. GLAPI void APIENTRY glCompileShader (GLuint shader);
  2828. GLAPI GLuint APIENTRY glCreateProgram (void);
  2829. GLAPI GLuint APIENTRY glCreateShader (GLenum type);
  2830. GLAPI void APIENTRY glDeleteProgram (GLuint program);
  2831. GLAPI void APIENTRY glDeleteShader (GLuint shader);
  2832. GLAPI void APIENTRY glDetachShader (GLuint program, GLuint shader);
  2833. GLAPI void APIENTRY glDisableVertexAttribArray (GLuint index);
  2834. GLAPI void APIENTRY glEnableVertexAttribArray (GLuint index);
  2835. GLAPI void APIENTRY glGetActiveAttrib (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
  2836. GLAPI void APIENTRY glGetActiveUniform (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
  2837. GLAPI void APIENTRY glGetAttachedShaders (GLuint program, GLsizei maxCount, GLsizei *count, GLuint *obj);
  2838. GLAPI GLint APIENTRY glGetAttribLocation (GLuint program, const GLchar *name);
  2839. GLAPI void APIENTRY glGetProgramiv (GLuint program, GLenum pname, GLint *params);
  2840. GLAPI void APIENTRY glGetProgramInfoLog (GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
  2841. GLAPI void APIENTRY glGetShaderiv (GLuint shader, GLenum pname, GLint *params);
  2842. GLAPI void APIENTRY glGetShaderInfoLog (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
  2843. GLAPI void APIENTRY glGetShaderSource (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source);
  2844. GLAPI GLint APIENTRY glGetUniformLocation (GLuint program, const GLchar *name);
  2845. GLAPI void APIENTRY glGetUniformfv (GLuint program, GLint location, GLfloat *params);
  2846. GLAPI void APIENTRY glGetUniformiv (GLuint program, GLint location, GLint *params);
  2847. GLAPI void APIENTRY glGetVertexAttribdv (GLuint index, GLenum pname, GLdouble *params);
  2848. GLAPI void APIENTRY glGetVertexAttribfv (GLuint index, GLenum pname, GLfloat *params);
  2849. GLAPI void APIENTRY glGetVertexAttribiv (GLuint index, GLenum pname, GLint *params);
  2850. GLAPI void APIENTRY glGetVertexAttribPointerv (GLuint index, GLenum pname, GLvoid* *pointer);
  2851. GLAPI GLboolean APIENTRY glIsProgram (GLuint program);
  2852. GLAPI GLboolean APIENTRY glIsShader (GLuint shader);
  2853. GLAPI void APIENTRY glLinkProgram (GLuint program);
  2854. GLAPI void APIENTRY glShaderSource (GLuint shader, GLsizei count, const GLchar* const *string, const GLint *length);
  2855. GLAPI void APIENTRY glUseProgram (GLuint program);
  2856. GLAPI void APIENTRY glUniform1f (GLint location, GLfloat v0);
  2857. GLAPI void APIENTRY glUniform2f (GLint location, GLfloat v0, GLfloat v1);
  2858. GLAPI void APIENTRY glUniform3f (GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
  2859. GLAPI void APIENTRY glUniform4f (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
  2860. GLAPI void APIENTRY glUniform1i (GLint location, GLint v0);
  2861. GLAPI void APIENTRY glUniform2i (GLint location, GLint v0, GLint v1);
  2862. GLAPI void APIENTRY glUniform3i (GLint location, GLint v0, GLint v1, GLint v2);
  2863. GLAPI void APIENTRY glUniform4i (GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
  2864. GLAPI void APIENTRY glUniform1fv (GLint location, GLsizei count, const GLfloat *value);
  2865. GLAPI void APIENTRY glUniform2fv (GLint location, GLsizei count, const GLfloat *value);
  2866. GLAPI void APIENTRY glUniform3fv (GLint location, GLsizei count, const GLfloat *value);
  2867. GLAPI void APIENTRY glUniform4fv (GLint location, GLsizei count, const GLfloat *value);
  2868. GLAPI void APIENTRY glUniform1iv (GLint location, GLsizei count, const GLint *value);
  2869. GLAPI void APIENTRY glUniform2iv (GLint location, GLsizei count, const GLint *value);
  2870. GLAPI void APIENTRY glUniform3iv (GLint location, GLsizei count, const GLint *value);
  2871. GLAPI void APIENTRY glUniform4iv (GLint location, GLsizei count, const GLint *value);
  2872. GLAPI void APIENTRY glUniformMatrix2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  2873. GLAPI void APIENTRY glUniformMatrix3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  2874. GLAPI void APIENTRY glUniformMatrix4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  2875. GLAPI void APIENTRY glValidateProgram (GLuint program);
  2876. GLAPI void APIENTRY glVertexAttrib1d (GLuint index, GLdouble x);
  2877. GLAPI void APIENTRY glVertexAttrib1dv (GLuint index, const GLdouble *v);
  2878. GLAPI void APIENTRY glVertexAttrib1f (GLuint index, GLfloat x);
  2879. GLAPI void APIENTRY glVertexAttrib1fv (GLuint index, const GLfloat *v);
  2880. GLAPI void APIENTRY glVertexAttrib1s (GLuint index, GLshort x);
  2881. GLAPI void APIENTRY glVertexAttrib1sv (GLuint index, const GLshort *v);
  2882. GLAPI void APIENTRY glVertexAttrib2d (GLuint index, GLdouble x, GLdouble y);
  2883. GLAPI void APIENTRY glVertexAttrib2dv (GLuint index, const GLdouble *v);
  2884. GLAPI void APIENTRY glVertexAttrib2f (GLuint index, GLfloat x, GLfloat y);
  2885. GLAPI void APIENTRY glVertexAttrib2fv (GLuint index, const GLfloat *v);
  2886. GLAPI void APIENTRY glVertexAttrib2s (GLuint index, GLshort x, GLshort y);
  2887. GLAPI void APIENTRY glVertexAttrib2sv (GLuint index, const GLshort *v);
  2888. GLAPI void APIENTRY glVertexAttrib3d (GLuint index, GLdouble x, GLdouble y, GLdouble z);
  2889. GLAPI void APIENTRY glVertexAttrib3dv (GLuint index, const GLdouble *v);
  2890. GLAPI void APIENTRY glVertexAttrib3f (GLuint index, GLfloat x, GLfloat y, GLfloat z);
  2891. GLAPI void APIENTRY glVertexAttrib3fv (GLuint index, const GLfloat *v);
  2892. GLAPI void APIENTRY glVertexAttrib3s (GLuint index, GLshort x, GLshort y, GLshort z);
  2893. GLAPI void APIENTRY glVertexAttrib3sv (GLuint index, const GLshort *v);
  2894. GLAPI void APIENTRY glVertexAttrib4Nbv (GLuint index, const GLbyte *v);
  2895. GLAPI void APIENTRY glVertexAttrib4Niv (GLuint index, const GLint *v);
  2896. GLAPI void APIENTRY glVertexAttrib4Nsv (GLuint index, const GLshort *v);
  2897. GLAPI void APIENTRY glVertexAttrib4Nub (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
  2898. GLAPI void APIENTRY glVertexAttrib4Nubv (GLuint index, const GLubyte *v);
  2899. GLAPI void APIENTRY glVertexAttrib4Nuiv (GLuint index, const GLuint *v);
  2900. GLAPI void APIENTRY glVertexAttrib4Nusv (GLuint index, const GLushort *v);
  2901. GLAPI void APIENTRY glVertexAttrib4bv (GLuint index, const GLbyte *v);
  2902. GLAPI void APIENTRY glVertexAttrib4d (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
  2903. GLAPI void APIENTRY glVertexAttrib4dv (GLuint index, const GLdouble *v);
  2904. GLAPI void APIENTRY glVertexAttrib4f (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
  2905. GLAPI void APIENTRY glVertexAttrib4fv (GLuint index, const GLfloat *v);
  2906. GLAPI void APIENTRY glVertexAttrib4iv (GLuint index, const GLint *v);
  2907. GLAPI void APIENTRY glVertexAttrib4s (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
  2908. GLAPI void APIENTRY glVertexAttrib4sv (GLuint index, const GLshort *v);
  2909. GLAPI void APIENTRY glVertexAttrib4ubv (GLuint index, const GLubyte *v);
  2910. GLAPI void APIENTRY glVertexAttrib4uiv (GLuint index, const GLuint *v);
  2911. GLAPI void APIENTRY glVertexAttrib4usv (GLuint index, const GLushort *v);
  2912. GLAPI void APIENTRY glVertexAttribPointer (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer);
  2913. #endif /* GLCOREARB_PROTOTYPES */
  2914. typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEPROC) (GLenum modeRGB, GLenum modeAlpha);
  2915. typedef void (APIENTRYP PFNGLDRAWBUFFERSPROC) (GLsizei n, const GLenum *bufs);
  2916. typedef void (APIENTRYP PFNGLSTENCILOPSEPARATEPROC) (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
  2917. typedef void (APIENTRYP PFNGLSTENCILFUNCSEPARATEPROC) (GLenum face, GLenum func, GLint ref, GLuint mask);
  2918. typedef void (APIENTRYP PFNGLSTENCILMASKSEPARATEPROC) (GLenum face, GLuint mask);
  2919. typedef void (APIENTRYP PFNGLATTACHSHADERPROC) (GLuint program, GLuint shader);
  2920. typedef void (APIENTRYP PFNGLBINDATTRIBLOCATIONPROC) (GLuint program, GLuint index, const GLchar *name);
  2921. typedef void (APIENTRYP PFNGLCOMPILESHADERPROC) (GLuint shader);
  2922. typedef GLuint (APIENTRYP PFNGLCREATEPROGRAMPROC) (void);
  2923. typedef GLuint (APIENTRYP PFNGLCREATESHADERPROC) (GLenum type);
  2924. typedef void (APIENTRYP PFNGLDELETEPROGRAMPROC) (GLuint program);
  2925. typedef void (APIENTRYP PFNGLDELETESHADERPROC) (GLuint shader);
  2926. typedef void (APIENTRYP PFNGLDETACHSHADERPROC) (GLuint program, GLuint shader);
  2927. typedef void (APIENTRYP PFNGLDISABLEVERTEXATTRIBARRAYPROC) (GLuint index);
  2928. typedef void (APIENTRYP PFNGLENABLEVERTEXATTRIBARRAYPROC) (GLuint index);
  2929. typedef void (APIENTRYP PFNGLGETACTIVEATTRIBPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
  2930. typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
  2931. typedef void (APIENTRYP PFNGLGETATTACHEDSHADERSPROC) (GLuint program, GLsizei maxCount, GLsizei *count, GLuint *obj);
  2932. typedef GLint (APIENTRYP PFNGLGETATTRIBLOCATIONPROC) (GLuint program, const GLchar *name);
  2933. typedef void (APIENTRYP PFNGLGETPROGRAMIVPROC) (GLuint program, GLenum pname, GLint *params);
  2934. typedef void (APIENTRYP PFNGLGETPROGRAMINFOLOGPROC) (GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
  2935. typedef void (APIENTRYP PFNGLGETSHADERIVPROC) (GLuint shader, GLenum pname, GLint *params);
  2936. typedef void (APIENTRYP PFNGLGETSHADERINFOLOGPROC) (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
  2937. typedef void (APIENTRYP PFNGLGETSHADERSOURCEPROC) (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source);
  2938. typedef GLint (APIENTRYP PFNGLGETUNIFORMLOCATIONPROC) (GLuint program, const GLchar *name);
  2939. typedef void (APIENTRYP PFNGLGETUNIFORMFVPROC) (GLuint program, GLint location, GLfloat *params);
  2940. typedef void (APIENTRYP PFNGLGETUNIFORMIVPROC) (GLuint program, GLint location, GLint *params);
  2941. typedef void (APIENTRYP PFNGLGETVERTEXATTRIBDVPROC) (GLuint index, GLenum pname, GLdouble *params);
  2942. typedef void (APIENTRYP PFNGLGETVERTEXATTRIBFVPROC) (GLuint index, GLenum pname, GLfloat *params);
  2943. typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIVPROC) (GLuint index, GLenum pname, GLint *params);
  2944. typedef void (APIENTRYP PFNGLGETVERTEXATTRIBPOINTERVPROC) (GLuint index, GLenum pname, GLvoid* *pointer);
  2945. typedef GLboolean (APIENTRYP PFNGLISPROGRAMPROC) (GLuint program);
  2946. typedef GLboolean (APIENTRYP PFNGLISSHADERPROC) (GLuint shader);
  2947. typedef void (APIENTRYP PFNGLLINKPROGRAMPROC) (GLuint program);
  2948. typedef void (APIENTRYP PFNGLSHADERSOURCEPROC) (GLuint shader, GLsizei count, const GLchar* const *string, const GLint *length);
  2949. typedef void (APIENTRYP PFNGLUSEPROGRAMPROC) (GLuint program);
  2950. typedef void (APIENTRYP PFNGLUNIFORM1FPROC) (GLint location, GLfloat v0);
  2951. typedef void (APIENTRYP PFNGLUNIFORM2FPROC) (GLint location, GLfloat v0, GLfloat v1);
  2952. typedef void (APIENTRYP PFNGLUNIFORM3FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
  2953. typedef void (APIENTRYP PFNGLUNIFORM4FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
  2954. typedef void (APIENTRYP PFNGLUNIFORM1IPROC) (GLint location, GLint v0);
  2955. typedef void (APIENTRYP PFNGLUNIFORM2IPROC) (GLint location, GLint v0, GLint v1);
  2956. typedef void (APIENTRYP PFNGLUNIFORM3IPROC) (GLint location, GLint v0, GLint v1, GLint v2);
  2957. typedef void (APIENTRYP PFNGLUNIFORM4IPROC) (GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
  2958. typedef void (APIENTRYP PFNGLUNIFORM1FVPROC) (GLint location, GLsizei count, const GLfloat *value);
  2959. typedef void (APIENTRYP PFNGLUNIFORM2FVPROC) (GLint location, GLsizei count, const GLfloat *value);
  2960. typedef void (APIENTRYP PFNGLUNIFORM3FVPROC) (GLint location, GLsizei count, const GLfloat *value);
  2961. typedef void (APIENTRYP PFNGLUNIFORM4FVPROC) (GLint location, GLsizei count, const GLfloat *value);
  2962. typedef void (APIENTRYP PFNGLUNIFORM1IVPROC) (GLint location, GLsizei count, const GLint *value);
  2963. typedef void (APIENTRYP PFNGLUNIFORM2IVPROC) (GLint location, GLsizei count, const GLint *value);
  2964. typedef void (APIENTRYP PFNGLUNIFORM3IVPROC) (GLint location, GLsizei count, const GLint *value);
  2965. typedef void (APIENTRYP PFNGLUNIFORM4IVPROC) (GLint location, GLsizei count, const GLint *value);
  2966. typedef void (APIENTRYP PFNGLUNIFORMMATRIX2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  2967. typedef void (APIENTRYP PFNGLUNIFORMMATRIX3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  2968. typedef void (APIENTRYP PFNGLUNIFORMMATRIX4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  2969. typedef void (APIENTRYP PFNGLVALIDATEPROGRAMPROC) (GLuint program);
  2970. typedef void (APIENTRYP PFNGLVERTEXATTRIB1DPROC) (GLuint index, GLdouble x);
  2971. typedef void (APIENTRYP PFNGLVERTEXATTRIB1DVPROC) (GLuint index, const GLdouble *v);
  2972. typedef void (APIENTRYP PFNGLVERTEXATTRIB1FPROC) (GLuint index, GLfloat x);
  2973. typedef void (APIENTRYP PFNGLVERTEXATTRIB1FVPROC) (GLuint index, const GLfloat *v);
  2974. typedef void (APIENTRYP PFNGLVERTEXATTRIB1SPROC) (GLuint index, GLshort x);
  2975. typedef void (APIENTRYP PFNGLVERTEXATTRIB1SVPROC) (GLuint index, const GLshort *v);
  2976. typedef void (APIENTRYP PFNGLVERTEXATTRIB2DPROC) (GLuint index, GLdouble x, GLdouble y);
  2977. typedef void (APIENTRYP PFNGLVERTEXATTRIB2DVPROC) (GLuint index, const GLdouble *v);
  2978. typedef void (APIENTRYP PFNGLVERTEXATTRIB2FPROC) (GLuint index, GLfloat x, GLfloat y);
  2979. typedef void (APIENTRYP PFNGLVERTEXATTRIB2FVPROC) (GLuint index, const GLfloat *v);
  2980. typedef void (APIENTRYP PFNGLVERTEXATTRIB2SPROC) (GLuint index, GLshort x, GLshort y);
  2981. typedef void (APIENTRYP PFNGLVERTEXATTRIB2SVPROC) (GLuint index, const GLshort *v);
  2982. typedef void (APIENTRYP PFNGLVERTEXATTRIB3DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z);
  2983. typedef void (APIENTRYP PFNGLVERTEXATTRIB3DVPROC) (GLuint index, const GLdouble *v);
  2984. typedef void (APIENTRYP PFNGLVERTEXATTRIB3FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z);
  2985. typedef void (APIENTRYP PFNGLVERTEXATTRIB3FVPROC) (GLuint index, const GLfloat *v);
  2986. typedef void (APIENTRYP PFNGLVERTEXATTRIB3SPROC) (GLuint index, GLshort x, GLshort y, GLshort z);
  2987. typedef void (APIENTRYP PFNGLVERTEXATTRIB3SVPROC) (GLuint index, const GLshort *v);
  2988. typedef void (APIENTRYP PFNGLVERTEXATTRIB4NBVPROC) (GLuint index, const GLbyte *v);
  2989. typedef void (APIENTRYP PFNGLVERTEXATTRIB4NIVPROC) (GLuint index, const GLint *v);
  2990. typedef void (APIENTRYP PFNGLVERTEXATTRIB4NSVPROC) (GLuint index, const GLshort *v);
  2991. typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
  2992. typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUBVPROC) (GLuint index, const GLubyte *v);
  2993. typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUIVPROC) (GLuint index, const GLuint *v);
  2994. typedef void (APIENTRYP PFNGLVERTEXATTRIB4NUSVPROC) (GLuint index, const GLushort *v);
  2995. typedef void (APIENTRYP PFNGLVERTEXATTRIB4BVPROC) (GLuint index, const GLbyte *v);
  2996. typedef void (APIENTRYP PFNGLVERTEXATTRIB4DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
  2997. typedef void (APIENTRYP PFNGLVERTEXATTRIB4DVPROC) (GLuint index, const GLdouble *v);
  2998. typedef void (APIENTRYP PFNGLVERTEXATTRIB4FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
  2999. typedef void (APIENTRYP PFNGLVERTEXATTRIB4FVPROC) (GLuint index, const GLfloat *v);
  3000. typedef void (APIENTRYP PFNGLVERTEXATTRIB4IVPROC) (GLuint index, const GLint *v);
  3001. typedef void (APIENTRYP PFNGLVERTEXATTRIB4SPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
  3002. typedef void (APIENTRYP PFNGLVERTEXATTRIB4SVPROC) (GLuint index, const GLshort *v);
  3003. typedef void (APIENTRYP PFNGLVERTEXATTRIB4UBVPROC) (GLuint index, const GLubyte *v);
  3004. typedef void (APIENTRYP PFNGLVERTEXATTRIB4UIVPROC) (GLuint index, const GLuint *v);
  3005. typedef void (APIENTRYP PFNGLVERTEXATTRIB4USVPROC) (GLuint index, const GLushort *v);
  3006. typedef void (APIENTRYP PFNGLVERTEXATTRIBPOINTERPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer);
  3007. #endif
  3008. #ifndef GL_VERSION_2_1
  3009. #define GL_VERSION_2_1 1
  3010. #ifdef GLCOREARB_PROTOTYPES
  3011. GLAPI void APIENTRY glUniformMatrix2x3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  3012. GLAPI void APIENTRY glUniformMatrix3x2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  3013. GLAPI void APIENTRY glUniformMatrix2x4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  3014. GLAPI void APIENTRY glUniformMatrix4x2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  3015. GLAPI void APIENTRY glUniformMatrix3x4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  3016. GLAPI void APIENTRY glUniformMatrix4x3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  3017. #endif /* GLCOREARB_PROTOTYPES */
  3018. typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  3019. typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  3020. typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  3021. typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  3022. typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  3023. typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  3024. #endif
  3025. #ifndef GL_VERSION_3_0
  3026. #define GL_VERSION_3_0 1
  3027. /* OpenGL 3.0 also reuses entry points from these extensions: */
  3028. /* ARB_framebuffer_object */
  3029. /* ARB_map_buffer_range */
  3030. /* ARB_vertex_array_object */
  3031. #ifdef GLCOREARB_PROTOTYPES
  3032. GLAPI void APIENTRY glColorMaski (GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a);
  3033. GLAPI void APIENTRY glGetBooleani_v (GLenum target, GLuint index, GLboolean *data);
  3034. GLAPI void APIENTRY glGetIntegeri_v (GLenum target, GLuint index, GLint *data);
  3035. GLAPI void APIENTRY glEnablei (GLenum target, GLuint index);
  3036. GLAPI void APIENTRY glDisablei (GLenum target, GLuint index);
  3037. GLAPI GLboolean APIENTRY glIsEnabledi (GLenum target, GLuint index);
  3038. GLAPI void APIENTRY glBeginTransformFeedback (GLenum primitiveMode);
  3039. GLAPI void APIENTRY glEndTransformFeedback (void);
  3040. GLAPI void APIENTRY glBindBufferRange (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);
  3041. GLAPI void APIENTRY glBindBufferBase (GLenum target, GLuint index, GLuint buffer);
  3042. GLAPI void APIENTRY glTransformFeedbackVaryings (GLuint program, GLsizei count, const GLchar* const *varyings, GLenum bufferMode);
  3043. GLAPI void APIENTRY glGetTransformFeedbackVarying (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name);
  3044. GLAPI void APIENTRY glClampColor (GLenum target, GLenum clamp);
  3045. GLAPI void APIENTRY glBeginConditionalRender (GLuint id, GLenum mode);
  3046. GLAPI void APIENTRY glEndConditionalRender (void);
  3047. GLAPI void APIENTRY glVertexAttribIPointer (GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
  3048. GLAPI void APIENTRY glGetVertexAttribIiv (GLuint index, GLenum pname, GLint *params);
  3049. GLAPI void APIENTRY glGetVertexAttribIuiv (GLuint index, GLenum pname, GLuint *params);
  3050. GLAPI void APIENTRY glVertexAttribI1i (GLuint index, GLint x);
  3051. GLAPI void APIENTRY glVertexAttribI2i (GLuint index, GLint x, GLint y);
  3052. GLAPI void APIENTRY glVertexAttribI3i (GLuint index, GLint x, GLint y, GLint z);
  3053. GLAPI void APIENTRY glVertexAttribI4i (GLuint index, GLint x, GLint y, GLint z, GLint w);
  3054. GLAPI void APIENTRY glVertexAttribI1ui (GLuint index, GLuint x);
  3055. GLAPI void APIENTRY glVertexAttribI2ui (GLuint index, GLuint x, GLuint y);
  3056. GLAPI void APIENTRY glVertexAttribI3ui (GLuint index, GLuint x, GLuint y, GLuint z);
  3057. GLAPI void APIENTRY glVertexAttribI4ui (GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
  3058. GLAPI void APIENTRY glVertexAttribI1iv (GLuint index, const GLint *v);
  3059. GLAPI void APIENTRY glVertexAttribI2iv (GLuint index, const GLint *v);
  3060. GLAPI void APIENTRY glVertexAttribI3iv (GLuint index, const GLint *v);
  3061. GLAPI void APIENTRY glVertexAttribI4iv (GLuint index, const GLint *v);
  3062. GLAPI void APIENTRY glVertexAttribI1uiv (GLuint index, const GLuint *v);
  3063. GLAPI void APIENTRY glVertexAttribI2uiv (GLuint index, const GLuint *v);
  3064. GLAPI void APIENTRY glVertexAttribI3uiv (GLuint index, const GLuint *v);
  3065. GLAPI void APIENTRY glVertexAttribI4uiv (GLuint index, const GLuint *v);
  3066. GLAPI void APIENTRY glVertexAttribI4bv (GLuint index, const GLbyte *v);
  3067. GLAPI void APIENTRY glVertexAttribI4sv (GLuint index, const GLshort *v);
  3068. GLAPI void APIENTRY glVertexAttribI4ubv (GLuint index, const GLubyte *v);
  3069. GLAPI void APIENTRY glVertexAttribI4usv (GLuint index, const GLushort *v);
  3070. GLAPI void APIENTRY glGetUniformuiv (GLuint program, GLint location, GLuint *params);
  3071. GLAPI void APIENTRY glBindFragDataLocation (GLuint program, GLuint color, const GLchar *name);
  3072. GLAPI GLint APIENTRY glGetFragDataLocation (GLuint program, const GLchar *name);
  3073. GLAPI void APIENTRY glUniform1ui (GLint location, GLuint v0);
  3074. GLAPI void APIENTRY glUniform2ui (GLint location, GLuint v0, GLuint v1);
  3075. GLAPI void APIENTRY glUniform3ui (GLint location, GLuint v0, GLuint v1, GLuint v2);
  3076. GLAPI void APIENTRY glUniform4ui (GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
  3077. GLAPI void APIENTRY glUniform1uiv (GLint location, GLsizei count, const GLuint *value);
  3078. GLAPI void APIENTRY glUniform2uiv (GLint location, GLsizei count, const GLuint *value);
  3079. GLAPI void APIENTRY glUniform3uiv (GLint location, GLsizei count, const GLuint *value);
  3080. GLAPI void APIENTRY glUniform4uiv (GLint location, GLsizei count, const GLuint *value);
  3081. GLAPI void APIENTRY glTexParameterIiv (GLenum target, GLenum pname, const GLint *params);
  3082. GLAPI void APIENTRY glTexParameterIuiv (GLenum target, GLenum pname, const GLuint *params);
  3083. GLAPI void APIENTRY glGetTexParameterIiv (GLenum target, GLenum pname, GLint *params);
  3084. GLAPI void APIENTRY glGetTexParameterIuiv (GLenum target, GLenum pname, GLuint *params);
  3085. GLAPI void APIENTRY glClearBufferiv (GLenum buffer, GLint drawbuffer, const GLint *value);
  3086. GLAPI void APIENTRY glClearBufferuiv (GLenum buffer, GLint drawbuffer, const GLuint *value);
  3087. GLAPI void APIENTRY glClearBufferfv (GLenum buffer, GLint drawbuffer, const GLfloat *value);
  3088. GLAPI void APIENTRY glClearBufferfi (GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil);
  3089. GLAPI const GLubyte * APIENTRY glGetStringi (GLenum name, GLuint index);
  3090. #endif /* GLCOREARB_PROTOTYPES */
  3091. typedef void (APIENTRYP PFNGLCOLORMASKIPROC) (GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a);
  3092. typedef void (APIENTRYP PFNGLGETBOOLEANI_VPROC) (GLenum target, GLuint index, GLboolean *data);
  3093. typedef void (APIENTRYP PFNGLGETINTEGERI_VPROC) (GLenum target, GLuint index, GLint *data);
  3094. typedef void (APIENTRYP PFNGLENABLEIPROC) (GLenum target, GLuint index);
  3095. typedef void (APIENTRYP PFNGLDISABLEIPROC) (GLenum target, GLuint index);
  3096. typedef GLboolean (APIENTRYP PFNGLISENABLEDIPROC) (GLenum target, GLuint index);
  3097. typedef void (APIENTRYP PFNGLBEGINTRANSFORMFEEDBACKPROC) (GLenum primitiveMode);
  3098. typedef void (APIENTRYP PFNGLENDTRANSFORMFEEDBACKPROC) (void);
  3099. typedef void (APIENTRYP PFNGLBINDBUFFERRANGEPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);
  3100. typedef void (APIENTRYP PFNGLBINDBUFFERBASEPROC) (GLenum target, GLuint index, GLuint buffer);
  3101. typedef void (APIENTRYP PFNGLTRANSFORMFEEDBACKVARYINGSPROC) (GLuint program, GLsizei count, const GLchar* const *varyings, GLenum bufferMode);
  3102. typedef void (APIENTRYP PFNGLGETTRANSFORMFEEDBACKVARYINGPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name);
  3103. typedef void (APIENTRYP PFNGLCLAMPCOLORPROC) (GLenum target, GLenum clamp);
  3104. typedef void (APIENTRYP PFNGLBEGINCONDITIONALRENDERPROC) (GLuint id, GLenum mode);
  3105. typedef void (APIENTRYP PFNGLENDCONDITIONALRENDERPROC) (void);
  3106. typedef void (APIENTRYP PFNGLVERTEXATTRIBIPOINTERPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
  3107. typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIIVPROC) (GLuint index, GLenum pname, GLint *params);
  3108. typedef void (APIENTRYP PFNGLGETVERTEXATTRIBIUIVPROC) (GLuint index, GLenum pname, GLuint *params);
  3109. typedef void (APIENTRYP PFNGLVERTEXATTRIBI1IPROC) (GLuint index, GLint x);
  3110. typedef void (APIENTRYP PFNGLVERTEXATTRIBI2IPROC) (GLuint index, GLint x, GLint y);
  3111. typedef void (APIENTRYP PFNGLVERTEXATTRIBI3IPROC) (GLuint index, GLint x, GLint y, GLint z);
  3112. typedef void (APIENTRYP PFNGLVERTEXATTRIBI4IPROC) (GLuint index, GLint x, GLint y, GLint z, GLint w);
  3113. typedef void (APIENTRYP PFNGLVERTEXATTRIBI1UIPROC) (GLuint index, GLuint x);
  3114. typedef void (APIENTRYP PFNGLVERTEXATTRIBI2UIPROC) (GLuint index, GLuint x, GLuint y);
  3115. typedef void (APIENTRYP PFNGLVERTEXATTRIBI3UIPROC) (GLuint index, GLuint x, GLuint y, GLuint z);
  3116. typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UIPROC) (GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
  3117. typedef void (APIENTRYP PFNGLVERTEXATTRIBI1IVPROC) (GLuint index, const GLint *v);
  3118. typedef void (APIENTRYP PFNGLVERTEXATTRIBI2IVPROC) (GLuint index, const GLint *v);
  3119. typedef void (APIENTRYP PFNGLVERTEXATTRIBI3IVPROC) (GLuint index, const GLint *v);
  3120. typedef void (APIENTRYP PFNGLVERTEXATTRIBI4IVPROC) (GLuint index, const GLint *v);
  3121. typedef void (APIENTRYP PFNGLVERTEXATTRIBI1UIVPROC) (GLuint index, const GLuint *v);
  3122. typedef void (APIENTRYP PFNGLVERTEXATTRIBI2UIVPROC) (GLuint index, const GLuint *v);
  3123. typedef void (APIENTRYP PFNGLVERTEXATTRIBI3UIVPROC) (GLuint index, const GLuint *v);
  3124. typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UIVPROC) (GLuint index, const GLuint *v);
  3125. typedef void (APIENTRYP PFNGLVERTEXATTRIBI4BVPROC) (GLuint index, const GLbyte *v);
  3126. typedef void (APIENTRYP PFNGLVERTEXATTRIBI4SVPROC) (GLuint index, const GLshort *v);
  3127. typedef void (APIENTRYP PFNGLVERTEXATTRIBI4UBVPROC) (GLuint index, const GLubyte *v);
  3128. typedef void (APIENTRYP PFNGLVERTEXATTRIBI4USVPROC) (GLuint index, const GLushort *v);
  3129. typedef void (APIENTRYP PFNGLGETUNIFORMUIVPROC) (GLuint program, GLint location, GLuint *params);
  3130. typedef void (APIENTRYP PFNGLBINDFRAGDATALOCATIONPROC) (GLuint program, GLuint color, const GLchar *name);
  3131. typedef GLint (APIENTRYP PFNGLGETFRAGDATALOCATIONPROC) (GLuint program, const GLchar *name);
  3132. typedef void (APIENTRYP PFNGLUNIFORM1UIPROC) (GLint location, GLuint v0);
  3133. typedef void (APIENTRYP PFNGLUNIFORM2UIPROC) (GLint location, GLuint v0, GLuint v1);
  3134. typedef void (APIENTRYP PFNGLUNIFORM3UIPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2);
  3135. typedef void (APIENTRYP PFNGLUNIFORM4UIPROC) (GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
  3136. typedef void (APIENTRYP PFNGLUNIFORM1UIVPROC) (GLint location, GLsizei count, const GLuint *value);
  3137. typedef void (APIENTRYP PFNGLUNIFORM2UIVPROC) (GLint location, GLsizei count, const GLuint *value);
  3138. typedef void (APIENTRYP PFNGLUNIFORM3UIVPROC) (GLint location, GLsizei count, const GLuint *value);
  3139. typedef void (APIENTRYP PFNGLUNIFORM4UIVPROC) (GLint location, GLsizei count, const GLuint *value);
  3140. typedef void (APIENTRYP PFNGLTEXPARAMETERIIVPROC) (GLenum target, GLenum pname, const GLint *params);
  3141. typedef void (APIENTRYP PFNGLTEXPARAMETERIUIVPROC) (GLenum target, GLenum pname, const GLuint *params);
  3142. typedef void (APIENTRYP PFNGLGETTEXPARAMETERIIVPROC) (GLenum target, GLenum pname, GLint *params);
  3143. typedef void (APIENTRYP PFNGLGETTEXPARAMETERIUIVPROC) (GLenum target, GLenum pname, GLuint *params);
  3144. typedef void (APIENTRYP PFNGLCLEARBUFFERIVPROC) (GLenum buffer, GLint drawbuffer, const GLint *value);
  3145. typedef void (APIENTRYP PFNGLCLEARBUFFERUIVPROC) (GLenum buffer, GLint drawbuffer, const GLuint *value);
  3146. typedef void (APIENTRYP PFNGLCLEARBUFFERFVPROC) (GLenum buffer, GLint drawbuffer, const GLfloat *value);
  3147. typedef void (APIENTRYP PFNGLCLEARBUFFERFIPROC) (GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil);
  3148. typedef const GLubyte * (APIENTRYP PFNGLGETSTRINGIPROC) (GLenum name, GLuint index);
  3149. #endif
  3150. #ifndef GL_VERSION_3_1
  3151. #define GL_VERSION_3_1 1
  3152. /* OpenGL 3.1 also reuses entry points from these extensions: */
  3153. /* ARB_copy_buffer */
  3154. /* ARB_uniform_buffer_object */
  3155. #ifdef GLCOREARB_PROTOTYPES
  3156. GLAPI void APIENTRY glDrawArraysInstanced (GLenum mode, GLint first, GLsizei count, GLsizei instancecount);
  3157. GLAPI void APIENTRY glDrawElementsInstanced (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei instancecount);
  3158. GLAPI void APIENTRY glTexBuffer (GLenum target, GLenum internalformat, GLuint buffer);
  3159. GLAPI void APIENTRY glPrimitiveRestartIndex (GLuint index);
  3160. #endif /* GLCOREARB_PROTOTYPES */
  3161. typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDPROC) (GLenum mode, GLint first, GLsizei count, GLsizei instancecount);
  3162. typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDPROC) (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei instancecount);
  3163. typedef void (APIENTRYP PFNGLTEXBUFFERPROC) (GLenum target, GLenum internalformat, GLuint buffer);
  3164. typedef void (APIENTRYP PFNGLPRIMITIVERESTARTINDEXPROC) (GLuint index);
  3165. #endif
  3166. #ifndef GL_VERSION_3_2
  3167. #define GL_VERSION_3_2 1
  3168. /* OpenGL 3.2 also reuses entry points from these extensions: */
  3169. /* ARB_draw_elements_base_vertex */
  3170. /* ARB_provoking_vertex */
  3171. /* ARB_sync */
  3172. /* ARB_texture_multisample */
  3173. #ifdef GLCOREARB_PROTOTYPES
  3174. GLAPI void APIENTRY glGetInteger64i_v (GLenum target, GLuint index, GLint64 *data);
  3175. GLAPI void APIENTRY glGetBufferParameteri64v (GLenum target, GLenum pname, GLint64 *params);
  3176. GLAPI void APIENTRY glFramebufferTexture (GLenum target, GLenum attachment, GLuint texture, GLint level);
  3177. #endif /* GLCOREARB_PROTOTYPES */
  3178. typedef void (APIENTRYP PFNGLGETINTEGER64I_VPROC) (GLenum target, GLuint index, GLint64 *data);
  3179. typedef void (APIENTRYP PFNGLGETBUFFERPARAMETERI64VPROC) (GLenum target, GLenum pname, GLint64 *params);
  3180. typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTUREPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level);
  3181. #endif
  3182. #ifndef GL_VERSION_3_3
  3183. #define GL_VERSION_3_3 1
  3184. /* OpenGL 3.3 also reuses entry points from these extensions: */
  3185. /* ARB_blend_func_extended */
  3186. /* ARB_sampler_objects */
  3187. /* ARB_explicit_attrib_location, but it has none */
  3188. /* ARB_occlusion_query2 (no entry points) */
  3189. /* ARB_shader_bit_encoding (no entry points) */
  3190. /* ARB_texture_rgb10_a2ui (no entry points) */
  3191. /* ARB_texture_swizzle (no entry points) */
  3192. /* ARB_timer_query */
  3193. /* ARB_vertex_type_2_10_10_10_rev */
  3194. #ifdef GLCOREARB_PROTOTYPES
  3195. GLAPI void APIENTRY glVertexAttribDivisor (GLuint index, GLuint divisor);
  3196. #endif /* GLCOREARB_PROTOTYPES */
  3197. typedef void (APIENTRYP PFNGLVERTEXATTRIBDIVISORPROC) (GLuint index, GLuint divisor);
  3198. #endif
  3199. #ifndef GL_VERSION_4_0
  3200. #define GL_VERSION_4_0 1
  3201. /* OpenGL 4.0 also reuses entry points from these extensions: */
  3202. /* ARB_texture_query_lod (no entry points) */
  3203. /* ARB_draw_indirect */
  3204. /* ARB_gpu_shader5 (no entry points) */
  3205. /* ARB_gpu_shader_fp64 */
  3206. /* ARB_shader_subroutine */
  3207. /* ARB_tessellation_shader */
  3208. /* ARB_texture_buffer_object_rgb32 (no entry points) */
  3209. /* ARB_texture_cube_map_array (no entry points) */
  3210. /* ARB_texture_gather (no entry points) */
  3211. /* ARB_transform_feedback2 */
  3212. /* ARB_transform_feedback3 */
  3213. #ifdef GLCOREARB_PROTOTYPES
  3214. GLAPI void APIENTRY glMinSampleShading (GLfloat value);
  3215. GLAPI void APIENTRY glBlendEquationi (GLuint buf, GLenum mode);
  3216. GLAPI void APIENTRY glBlendEquationSeparatei (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
  3217. GLAPI void APIENTRY glBlendFunci (GLuint buf, GLenum src, GLenum dst);
  3218. GLAPI void APIENTRY glBlendFuncSeparatei (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
  3219. #endif /* GLCOREARB_PROTOTYPES */
  3220. typedef void (APIENTRYP PFNGLMINSAMPLESHADINGPROC) (GLfloat value);
  3221. typedef void (APIENTRYP PFNGLBLENDEQUATIONIPROC) (GLuint buf, GLenum mode);
  3222. typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEIPROC) (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
  3223. typedef void (APIENTRYP PFNGLBLENDFUNCIPROC) (GLuint buf, GLenum src, GLenum dst);
  3224. typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEIPROC) (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
  3225. #endif
  3226. #ifndef GL_VERSION_4_1
  3227. #define GL_VERSION_4_1 1
  3228. /* OpenGL 4.1 reuses entry points from these extensions: */
  3229. /* ARB_ES2_compatibility */
  3230. /* ARB_get_program_binary */
  3231. /* ARB_separate_shader_objects */
  3232. /* ARB_shader_precision (no entry points) */
  3233. /* ARB_vertex_attrib_64bit */
  3234. /* ARB_viewport_array */
  3235. #endif
  3236. #ifndef GL_VERSION_4_2
  3237. #define GL_VERSION_4_2 1
  3238. /* OpenGL 4.2 reuses entry points from these extensions: */
  3239. /* ARB_base_instance */
  3240. /* ARB_shading_language_420pack (no entry points) */
  3241. /* ARB_transform_feedback_instanced */
  3242. /* ARB_compressed_texture_pixel_storage (no entry points) */
  3243. /* ARB_conservative_depth (no entry points) */
  3244. /* ARB_internalformat_query */
  3245. /* ARB_map_buffer_alignment (no entry points) */
  3246. /* ARB_shader_atomic_counters */
  3247. /* ARB_shader_image_load_store */
  3248. /* ARB_shading_language_packing (no entry points) */
  3249. /* ARB_texture_storage */
  3250. #endif
  3251. #ifndef GL_VERSION_4_3
  3252. #define GL_VERSION_4_3 1
  3253. /* OpenGL 4.3 reuses entry points from these extensions: */
  3254. /* ARB_arrays_of_arrays (no entry points, GLSL only) */
  3255. /* ARB_fragment_layer_viewport (no entry points, GLSL only) */
  3256. /* ARB_shader_image_size (no entry points, GLSL only) */
  3257. /* ARB_ES3_compatibility (no entry points) */
  3258. /* ARB_clear_buffer_object */
  3259. /* ARB_compute_shader */
  3260. /* ARB_copy_image */
  3261. /* KHR_debug (includes ARB_debug_output commands promoted to KHR without suffixes) */
  3262. /* ARB_explicit_uniform_location (no entry points) */
  3263. /* ARB_framebuffer_no_attachments */
  3264. /* ARB_internalformat_query2 */
  3265. /* ARB_invalidate_subdata */
  3266. /* ARB_multi_draw_indirect */
  3267. /* ARB_program_interface_query */
  3268. /* ARB_robust_buffer_access_behavior (no entry points) */
  3269. /* ARB_shader_storage_buffer_object */
  3270. /* ARB_stencil_texturing (no entry points) */
  3271. /* ARB_texture_buffer_range */
  3272. /* ARB_texture_query_levels (no entry points) */
  3273. /* ARB_texture_storage_multisample */
  3274. /* ARB_texture_view */
  3275. /* ARB_vertex_attrib_binding */
  3276. #endif
  3277. #ifndef GL_ARB_depth_buffer_float
  3278. #define GL_ARB_depth_buffer_float 1
  3279. #endif
  3280. #ifndef GL_ARB_framebuffer_object
  3281. #define GL_ARB_framebuffer_object 1
  3282. #ifdef GLCOREARB_PROTOTYPES
  3283. GLAPI GLboolean APIENTRY glIsRenderbuffer (GLuint renderbuffer);
  3284. GLAPI void APIENTRY glBindRenderbuffer (GLenum target, GLuint renderbuffer);
  3285. GLAPI void APIENTRY glDeleteRenderbuffers (GLsizei n, const GLuint *renderbuffers);
  3286. GLAPI void APIENTRY glGenRenderbuffers (GLsizei n, GLuint *renderbuffers);
  3287. GLAPI void APIENTRY glRenderbufferStorage (GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
  3288. GLAPI void APIENTRY glGetRenderbufferParameteriv (GLenum target, GLenum pname, GLint *params);
  3289. GLAPI GLboolean APIENTRY glIsFramebuffer (GLuint framebuffer);
  3290. GLAPI void APIENTRY glBindFramebuffer (GLenum target, GLuint framebuffer);
  3291. GLAPI void APIENTRY glDeleteFramebuffers (GLsizei n, const GLuint *framebuffers);
  3292. GLAPI void APIENTRY glGenFramebuffers (GLsizei n, GLuint *framebuffers);
  3293. GLAPI GLenum APIENTRY glCheckFramebufferStatus (GLenum target);
  3294. GLAPI void APIENTRY glFramebufferTexture1D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
  3295. GLAPI void APIENTRY glFramebufferTexture2D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
  3296. GLAPI void APIENTRY glFramebufferTexture3D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
  3297. GLAPI void APIENTRY glFramebufferRenderbuffer (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
  3298. GLAPI void APIENTRY glGetFramebufferAttachmentParameteriv (GLenum target, GLenum attachment, GLenum pname, GLint *params);
  3299. GLAPI void APIENTRY glGenerateMipmap (GLenum target);
  3300. GLAPI void APIENTRY glBlitFramebuffer (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
  3301. GLAPI void APIENTRY glRenderbufferStorageMultisample (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
  3302. GLAPI void APIENTRY glFramebufferTextureLayer (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer);
  3303. #endif /* GLCOREARB_PROTOTYPES */
  3304. typedef GLboolean (APIENTRYP PFNGLISRENDERBUFFERPROC) (GLuint renderbuffer);
  3305. typedef void (APIENTRYP PFNGLBINDRENDERBUFFERPROC) (GLenum target, GLuint renderbuffer);
  3306. typedef void (APIENTRYP PFNGLDELETERENDERBUFFERSPROC) (GLsizei n, const GLuint *renderbuffers);
  3307. typedef void (APIENTRYP PFNGLGENRENDERBUFFERSPROC) (GLsizei n, GLuint *renderbuffers);
  3308. typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
  3309. typedef void (APIENTRYP PFNGLGETRENDERBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
  3310. typedef GLboolean (APIENTRYP PFNGLISFRAMEBUFFERPROC) (GLuint framebuffer);
  3311. typedef void (APIENTRYP PFNGLBINDFRAMEBUFFERPROC) (GLenum target, GLuint framebuffer);
  3312. typedef void (APIENTRYP PFNGLDELETEFRAMEBUFFERSPROC) (GLsizei n, const GLuint *framebuffers);
  3313. typedef void (APIENTRYP PFNGLGENFRAMEBUFFERSPROC) (GLsizei n, GLuint *framebuffers);
  3314. typedef GLenum (APIENTRYP PFNGLCHECKFRAMEBUFFERSTATUSPROC) (GLenum target);
  3315. typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE1DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
  3316. typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
  3317. typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURE3DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
  3318. typedef void (APIENTRYP PFNGLFRAMEBUFFERRENDERBUFFERPROC) (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
  3319. typedef void (APIENTRYP PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC) (GLenum target, GLenum attachment, GLenum pname, GLint *params);
  3320. typedef void (APIENTRYP PFNGLGENERATEMIPMAPPROC) (GLenum target);
  3321. typedef void (APIENTRYP PFNGLBLITFRAMEBUFFERPROC) (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
  3322. typedef void (APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
  3323. typedef void (APIENTRYP PFNGLFRAMEBUFFERTEXTURELAYERPROC) (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer);
  3324. #endif
  3325. #ifndef GL_ARB_framebuffer_sRGB
  3326. #define GL_ARB_framebuffer_sRGB 1
  3327. #endif
  3328. #ifndef GL_ARB_half_float_vertex
  3329. #define GL_ARB_half_float_vertex 1
  3330. #endif
  3331. #ifndef GL_ARB_map_buffer_range
  3332. #define GL_ARB_map_buffer_range 1
  3333. #ifdef GLCOREARB_PROTOTYPES
  3334. GLAPI GLvoid* APIENTRY glMapBufferRange (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access);
  3335. GLAPI void APIENTRY glFlushMappedBufferRange (GLenum target, GLintptr offset, GLsizeiptr length);
  3336. #endif /* GLCOREARB_PROTOTYPES */
  3337. typedef GLvoid* (APIENTRYP PFNGLMAPBUFFERRANGEPROC) (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access);
  3338. typedef void (APIENTRYP PFNGLFLUSHMAPPEDBUFFERRANGEPROC) (GLenum target, GLintptr offset, GLsizeiptr length);
  3339. #endif
  3340. #ifndef GL_ARB_texture_compression_rgtc
  3341. #define GL_ARB_texture_compression_rgtc 1
  3342. #endif
  3343. #ifndef GL_ARB_texture_rg
  3344. #define GL_ARB_texture_rg 1
  3345. #endif
  3346. #ifndef GL_ARB_vertex_array_object
  3347. #define GL_ARB_vertex_array_object 1
  3348. #ifdef GLCOREARB_PROTOTYPES
  3349. GLAPI void APIENTRY glBindVertexArray (GLuint array);
  3350. GLAPI void APIENTRY glDeleteVertexArrays (GLsizei n, const GLuint *arrays);
  3351. GLAPI void APIENTRY glGenVertexArrays (GLsizei n, GLuint *arrays);
  3352. GLAPI GLboolean APIENTRY glIsVertexArray (GLuint array);
  3353. #endif /* GLCOREARB_PROTOTYPES */
  3354. typedef void (APIENTRYP PFNGLBINDVERTEXARRAYPROC) (GLuint array);
  3355. typedef void (APIENTRYP PFNGLDELETEVERTEXARRAYSPROC) (GLsizei n, const GLuint *arrays);
  3356. typedef void (APIENTRYP PFNGLGENVERTEXARRAYSPROC) (GLsizei n, GLuint *arrays);
  3357. typedef GLboolean (APIENTRYP PFNGLISVERTEXARRAYPROC) (GLuint array);
  3358. #endif
  3359. #ifndef GL_ARB_uniform_buffer_object
  3360. #define GL_ARB_uniform_buffer_object 1
  3361. #ifdef GLCOREARB_PROTOTYPES
  3362. GLAPI void APIENTRY glGetUniformIndices (GLuint program, GLsizei uniformCount, const GLchar* const *uniformNames, GLuint *uniformIndices);
  3363. GLAPI void APIENTRY glGetActiveUniformsiv (GLuint program, GLsizei uniformCount, const GLuint *uniformIndices, GLenum pname, GLint *params);
  3364. GLAPI void APIENTRY glGetActiveUniformName (GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformName);
  3365. GLAPI GLuint APIENTRY glGetUniformBlockIndex (GLuint program, const GLchar *uniformBlockName);
  3366. GLAPI void APIENTRY glGetActiveUniformBlockiv (GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint *params);
  3367. GLAPI void APIENTRY glGetActiveUniformBlockName (GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformBlockName);
  3368. GLAPI void APIENTRY glUniformBlockBinding (GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding);
  3369. #endif /* GLCOREARB_PROTOTYPES */
  3370. typedef void (APIENTRYP PFNGLGETUNIFORMINDICESPROC) (GLuint program, GLsizei uniformCount, const GLchar* const *uniformNames, GLuint *uniformIndices);
  3371. typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMSIVPROC) (GLuint program, GLsizei uniformCount, const GLuint *uniformIndices, GLenum pname, GLint *params);
  3372. typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMNAMEPROC) (GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformName);
  3373. typedef GLuint (APIENTRYP PFNGLGETUNIFORMBLOCKINDEXPROC) (GLuint program, const GLchar *uniformBlockName);
  3374. typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMBLOCKIVPROC) (GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint *params);
  3375. typedef void (APIENTRYP PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC) (GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformBlockName);
  3376. typedef void (APIENTRYP PFNGLUNIFORMBLOCKBINDINGPROC) (GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding);
  3377. #endif
  3378. #ifndef GL_ARB_copy_buffer
  3379. #define GL_ARB_copy_buffer 1
  3380. #ifdef GLCOREARB_PROTOTYPES
  3381. GLAPI void APIENTRY glCopyBufferSubData (GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
  3382. #endif /* GLCOREARB_PROTOTYPES */
  3383. typedef void (APIENTRYP PFNGLCOPYBUFFERSUBDATAPROC) (GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
  3384. #endif
  3385. #ifndef GL_ARB_depth_clamp
  3386. #define GL_ARB_depth_clamp 1
  3387. #endif
  3388. #ifndef GL_ARB_draw_elements_base_vertex
  3389. #define GL_ARB_draw_elements_base_vertex 1
  3390. #ifdef GLCOREARB_PROTOTYPES
  3391. GLAPI void APIENTRY glDrawElementsBaseVertex (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLint basevertex);
  3392. GLAPI void APIENTRY glDrawRangeElementsBaseVertex (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices, GLint basevertex);
  3393. GLAPI void APIENTRY glDrawElementsInstancedBaseVertex (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei instancecount, GLint basevertex);
  3394. GLAPI void APIENTRY glMultiDrawElementsBaseVertex (GLenum mode, const GLsizei *count, GLenum type, const GLvoid* const *indices, GLsizei drawcount, const GLint *basevertex);
  3395. #endif /* GLCOREARB_PROTOTYPES */
  3396. typedef void (APIENTRYP PFNGLDRAWELEMENTSBASEVERTEXPROC) (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLint basevertex);
  3397. typedef void (APIENTRYP PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices, GLint basevertex);
  3398. typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC) (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei instancecount, GLint basevertex);
  3399. typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC) (GLenum mode, const GLsizei *count, GLenum type, const GLvoid* const *indices, GLsizei drawcount, const GLint *basevertex);
  3400. #endif
  3401. #ifndef GL_ARB_fragment_coord_conventions
  3402. #define GL_ARB_fragment_coord_conventions 1
  3403. #endif
  3404. #ifndef GL_ARB_provoking_vertex
  3405. #define GL_ARB_provoking_vertex 1
  3406. #ifdef GLCOREARB_PROTOTYPES
  3407. GLAPI void APIENTRY glProvokingVertex (GLenum mode);
  3408. #endif /* GLCOREARB_PROTOTYPES */
  3409. typedef void (APIENTRYP PFNGLPROVOKINGVERTEXPROC) (GLenum mode);
  3410. #endif
  3411. #ifndef GL_ARB_seamless_cube_map
  3412. #define GL_ARB_seamless_cube_map 1
  3413. #endif
  3414. #ifndef GL_ARB_sync
  3415. #define GL_ARB_sync 1
  3416. #ifdef GLCOREARB_PROTOTYPES
  3417. GLAPI GLsync APIENTRY glFenceSync (GLenum condition, GLbitfield flags);
  3418. GLAPI GLboolean APIENTRY glIsSync (GLsync sync);
  3419. GLAPI void APIENTRY glDeleteSync (GLsync sync);
  3420. GLAPI GLenum APIENTRY glClientWaitSync (GLsync sync, GLbitfield flags, GLuint64 timeout);
  3421. GLAPI void APIENTRY glWaitSync (GLsync sync, GLbitfield flags, GLuint64 timeout);
  3422. GLAPI void APIENTRY glGetInteger64v (GLenum pname, GLint64 *params);
  3423. GLAPI void APIENTRY glGetSynciv (GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values);
  3424. #endif /* GLCOREARB_PROTOTYPES */
  3425. typedef GLsync (APIENTRYP PFNGLFENCESYNCPROC) (GLenum condition, GLbitfield flags);
  3426. typedef GLboolean (APIENTRYP PFNGLISSYNCPROC) (GLsync sync);
  3427. typedef void (APIENTRYP PFNGLDELETESYNCPROC) (GLsync sync);
  3428. typedef GLenum (APIENTRYP PFNGLCLIENTWAITSYNCPROC) (GLsync sync, GLbitfield flags, GLuint64 timeout);
  3429. typedef void (APIENTRYP PFNGLWAITSYNCPROC) (GLsync sync, GLbitfield flags, GLuint64 timeout);
  3430. typedef void (APIENTRYP PFNGLGETINTEGER64VPROC) (GLenum pname, GLint64 *params);
  3431. typedef void (APIENTRYP PFNGLGETSYNCIVPROC) (GLsync sync, GLenum pname, GLsizei bufSize, GLsizei *length, GLint *values);
  3432. #endif
  3433. #ifndef GL_ARB_texture_multisample
  3434. #define GL_ARB_texture_multisample 1
  3435. #ifdef GLCOREARB_PROTOTYPES
  3436. GLAPI void APIENTRY glTexImage2DMultisample (GLenum target, GLsizei samples, GLint internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
  3437. GLAPI void APIENTRY glTexImage3DMultisample (GLenum target, GLsizei samples, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
  3438. GLAPI void APIENTRY glGetMultisamplefv (GLenum pname, GLuint index, GLfloat *val);
  3439. GLAPI void APIENTRY glSampleMaski (GLuint index, GLbitfield mask);
  3440. #endif /* GLCOREARB_PROTOTYPES */
  3441. typedef void (APIENTRYP PFNGLTEXIMAGE2DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLint internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
  3442. typedef void (APIENTRYP PFNGLTEXIMAGE3DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
  3443. typedef void (APIENTRYP PFNGLGETMULTISAMPLEFVPROC) (GLenum pname, GLuint index, GLfloat *val);
  3444. typedef void (APIENTRYP PFNGLSAMPLEMASKIPROC) (GLuint index, GLbitfield mask);
  3445. #endif
  3446. #ifndef GL_ARB_vertex_array_bgra
  3447. #define GL_ARB_vertex_array_bgra 1
  3448. #endif
  3449. #ifndef GL_ARB_draw_buffers_blend
  3450. #define GL_ARB_draw_buffers_blend 1
  3451. #ifdef GLCOREARB_PROTOTYPES
  3452. GLAPI void APIENTRY glBlendEquationiARB (GLuint buf, GLenum mode);
  3453. GLAPI void APIENTRY glBlendEquationSeparateiARB (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
  3454. GLAPI void APIENTRY glBlendFunciARB (GLuint buf, GLenum src, GLenum dst);
  3455. GLAPI void APIENTRY glBlendFuncSeparateiARB (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
  3456. #endif /* GLCOREARB_PROTOTYPES */
  3457. typedef void (APIENTRYP PFNGLBLENDEQUATIONIARBPROC) (GLuint buf, GLenum mode);
  3458. typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEIARBPROC) (GLuint buf, GLenum modeRGB, GLenum modeAlpha);
  3459. typedef void (APIENTRYP PFNGLBLENDFUNCIARBPROC) (GLuint buf, GLenum src, GLenum dst);
  3460. typedef void (APIENTRYP PFNGLBLENDFUNCSEPARATEIARBPROC) (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
  3461. #endif
  3462. #ifndef GL_ARB_sample_shading
  3463. #define GL_ARB_sample_shading 1
  3464. #ifdef GLCOREARB_PROTOTYPES
  3465. GLAPI void APIENTRY glMinSampleShadingARB (GLfloat value);
  3466. #endif /* GLCOREARB_PROTOTYPES */
  3467. typedef void (APIENTRYP PFNGLMINSAMPLESHADINGARBPROC) (GLfloat value);
  3468. #endif
  3469. #ifndef GL_ARB_texture_cube_map_array
  3470. #define GL_ARB_texture_cube_map_array 1
  3471. #endif
  3472. #ifndef GL_ARB_texture_gather
  3473. #define GL_ARB_texture_gather 1
  3474. #endif
  3475. #ifndef GL_ARB_texture_query_lod
  3476. #define GL_ARB_texture_query_lod 1
  3477. #endif
  3478. #ifndef GL_ARB_shading_language_include
  3479. #define GL_ARB_shading_language_include 1
  3480. #ifdef GLCOREARB_PROTOTYPES
  3481. GLAPI void APIENTRY glNamedStringARB (GLenum type, GLint namelen, const GLchar *name, GLint stringlen, const GLchar *string);
  3482. GLAPI void APIENTRY glDeleteNamedStringARB (GLint namelen, const GLchar *name);
  3483. GLAPI void APIENTRY glCompileShaderIncludeARB (GLuint shader, GLsizei count, const GLchar* *path, const GLint *length);
  3484. GLAPI GLboolean APIENTRY glIsNamedStringARB (GLint namelen, const GLchar *name);
  3485. GLAPI void APIENTRY glGetNamedStringARB (GLint namelen, const GLchar *name, GLsizei bufSize, GLint *stringlen, GLchar *string);
  3486. GLAPI void APIENTRY glGetNamedStringivARB (GLint namelen, const GLchar *name, GLenum pname, GLint *params);
  3487. #endif /* GLCOREARB_PROTOTYPES */
  3488. typedef void (APIENTRYP PFNGLNAMEDSTRINGARBPROC) (GLenum type, GLint namelen, const GLchar *name, GLint stringlen, const GLchar *string);
  3489. typedef void (APIENTRYP PFNGLDELETENAMEDSTRINGARBPROC) (GLint namelen, const GLchar *name);
  3490. typedef void (APIENTRYP PFNGLCOMPILESHADERINCLUDEARBPROC) (GLuint shader, GLsizei count, const GLchar* *path, const GLint *length);
  3491. typedef GLboolean (APIENTRYP PFNGLISNAMEDSTRINGARBPROC) (GLint namelen, const GLchar *name);
  3492. typedef void (APIENTRYP PFNGLGETNAMEDSTRINGARBPROC) (GLint namelen, const GLchar *name, GLsizei bufSize, GLint *stringlen, GLchar *string);
  3493. typedef void (APIENTRYP PFNGLGETNAMEDSTRINGIVARBPROC) (GLint namelen, const GLchar *name, GLenum pname, GLint *params);
  3494. #endif
  3495. #ifndef GL_ARB_texture_compression_bptc
  3496. #define GL_ARB_texture_compression_bptc 1
  3497. #endif
  3498. #ifndef GL_ARB_blend_func_extended
  3499. #define GL_ARB_blend_func_extended 1
  3500. #ifdef GLCOREARB_PROTOTYPES
  3501. GLAPI void APIENTRY glBindFragDataLocationIndexed (GLuint program, GLuint colorNumber, GLuint index, const GLchar *name);
  3502. GLAPI GLint APIENTRY glGetFragDataIndex (GLuint program, const GLchar *name);
  3503. #endif /* GLCOREARB_PROTOTYPES */
  3504. typedef void (APIENTRYP PFNGLBINDFRAGDATALOCATIONINDEXEDPROC) (GLuint program, GLuint colorNumber, GLuint index, const GLchar *name);
  3505. typedef GLint (APIENTRYP PFNGLGETFRAGDATAINDEXPROC) (GLuint program, const GLchar *name);
  3506. #endif
  3507. #ifndef GL_ARB_explicit_attrib_location
  3508. #define GL_ARB_explicit_attrib_location 1
  3509. #endif
  3510. #ifndef GL_ARB_occlusion_query2
  3511. #define GL_ARB_occlusion_query2 1
  3512. #endif
  3513. #ifndef GL_ARB_sampler_objects
  3514. #define GL_ARB_sampler_objects 1
  3515. #ifdef GLCOREARB_PROTOTYPES
  3516. GLAPI void APIENTRY glGenSamplers (GLsizei count, GLuint *samplers);
  3517. GLAPI void APIENTRY glDeleteSamplers (GLsizei count, const GLuint *samplers);
  3518. GLAPI GLboolean APIENTRY glIsSampler (GLuint sampler);
  3519. GLAPI void APIENTRY glBindSampler (GLuint unit, GLuint sampler);
  3520. GLAPI void APIENTRY glSamplerParameteri (GLuint sampler, GLenum pname, GLint param);
  3521. GLAPI void APIENTRY glSamplerParameteriv (GLuint sampler, GLenum pname, const GLint *param);
  3522. GLAPI void APIENTRY glSamplerParameterf (GLuint sampler, GLenum pname, GLfloat param);
  3523. GLAPI void APIENTRY glSamplerParameterfv (GLuint sampler, GLenum pname, const GLfloat *param);
  3524. GLAPI void APIENTRY glSamplerParameterIiv (GLuint sampler, GLenum pname, const GLint *param);
  3525. GLAPI void APIENTRY glSamplerParameterIuiv (GLuint sampler, GLenum pname, const GLuint *param);
  3526. GLAPI void APIENTRY glGetSamplerParameteriv (GLuint sampler, GLenum pname, GLint *params);
  3527. GLAPI void APIENTRY glGetSamplerParameterIiv (GLuint sampler, GLenum pname, GLint *params);
  3528. GLAPI void APIENTRY glGetSamplerParameterfv (GLuint sampler, GLenum pname, GLfloat *params);
  3529. GLAPI void APIENTRY glGetSamplerParameterIuiv (GLuint sampler, GLenum pname, GLuint *params);
  3530. #endif /* GLCOREARB_PROTOTYPES */
  3531. typedef void (APIENTRYP PFNGLGENSAMPLERSPROC) (GLsizei count, GLuint *samplers);
  3532. typedef void (APIENTRYP PFNGLDELETESAMPLERSPROC) (GLsizei count, const GLuint *samplers);
  3533. typedef GLboolean (APIENTRYP PFNGLISSAMPLERPROC) (GLuint sampler);
  3534. typedef void (APIENTRYP PFNGLBINDSAMPLERPROC) (GLuint unit, GLuint sampler);
  3535. typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIPROC) (GLuint sampler, GLenum pname, GLint param);
  3536. typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIVPROC) (GLuint sampler, GLenum pname, const GLint *param);
  3537. typedef void (APIENTRYP PFNGLSAMPLERPARAMETERFPROC) (GLuint sampler, GLenum pname, GLfloat param);
  3538. typedef void (APIENTRYP PFNGLSAMPLERPARAMETERFVPROC) (GLuint sampler, GLenum pname, const GLfloat *param);
  3539. typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIIVPROC) (GLuint sampler, GLenum pname, const GLint *param);
  3540. typedef void (APIENTRYP PFNGLSAMPLERPARAMETERIUIVPROC) (GLuint sampler, GLenum pname, const GLuint *param);
  3541. typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERIVPROC) (GLuint sampler, GLenum pname, GLint *params);
  3542. typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERIIVPROC) (GLuint sampler, GLenum pname, GLint *params);
  3543. typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERFVPROC) (GLuint sampler, GLenum pname, GLfloat *params);
  3544. typedef void (APIENTRYP PFNGLGETSAMPLERPARAMETERIUIVPROC) (GLuint sampler, GLenum pname, GLuint *params);
  3545. #endif
  3546. #ifndef GL_ARB_shader_bit_encoding
  3547. #define GL_ARB_shader_bit_encoding 1
  3548. #endif
  3549. #ifndef GL_ARB_texture_rgb10_a2ui
  3550. #define GL_ARB_texture_rgb10_a2ui 1
  3551. #endif
  3552. #ifndef GL_ARB_texture_swizzle
  3553. #define GL_ARB_texture_swizzle 1
  3554. #endif
  3555. #ifndef GL_ARB_timer_query
  3556. #define GL_ARB_timer_query 1
  3557. #ifdef GLCOREARB_PROTOTYPES
  3558. GLAPI void APIENTRY glQueryCounter (GLuint id, GLenum target);
  3559. GLAPI void APIENTRY glGetQueryObjecti64v (GLuint id, GLenum pname, GLint64 *params);
  3560. GLAPI void APIENTRY glGetQueryObjectui64v (GLuint id, GLenum pname, GLuint64 *params);
  3561. #endif /* GLCOREARB_PROTOTYPES */
  3562. typedef void (APIENTRYP PFNGLQUERYCOUNTERPROC) (GLuint id, GLenum target);
  3563. typedef void (APIENTRYP PFNGLGETQUERYOBJECTI64VPROC) (GLuint id, GLenum pname, GLint64 *params);
  3564. typedef void (APIENTRYP PFNGLGETQUERYOBJECTUI64VPROC) (GLuint id, GLenum pname, GLuint64 *params);
  3565. #endif
  3566. #ifndef GL_ARB_vertex_type_2_10_10_10_rev
  3567. #define GL_ARB_vertex_type_2_10_10_10_rev 1
  3568. #ifdef GLCOREARB_PROTOTYPES
  3569. GLAPI void APIENTRY glVertexP2ui (GLenum type, GLuint value);
  3570. GLAPI void APIENTRY glVertexP2uiv (GLenum type, const GLuint *value);
  3571. GLAPI void APIENTRY glVertexP3ui (GLenum type, GLuint value);
  3572. GLAPI void APIENTRY glVertexP3uiv (GLenum type, const GLuint *value);
  3573. GLAPI void APIENTRY glVertexP4ui (GLenum type, GLuint value);
  3574. GLAPI void APIENTRY glVertexP4uiv (GLenum type, const GLuint *value);
  3575. GLAPI void APIENTRY glTexCoordP1ui (GLenum type, GLuint coords);
  3576. GLAPI void APIENTRY glTexCoordP1uiv (GLenum type, const GLuint *coords);
  3577. GLAPI void APIENTRY glTexCoordP2ui (GLenum type, GLuint coords);
  3578. GLAPI void APIENTRY glTexCoordP2uiv (GLenum type, const GLuint *coords);
  3579. GLAPI void APIENTRY glTexCoordP3ui (GLenum type, GLuint coords);
  3580. GLAPI void APIENTRY glTexCoordP3uiv (GLenum type, const GLuint *coords);
  3581. GLAPI void APIENTRY glTexCoordP4ui (GLenum type, GLuint coords);
  3582. GLAPI void APIENTRY glTexCoordP4uiv (GLenum type, const GLuint *coords);
  3583. GLAPI void APIENTRY glMultiTexCoordP1ui (GLenum texture, GLenum type, GLuint coords);
  3584. GLAPI void APIENTRY glMultiTexCoordP1uiv (GLenum texture, GLenum type, const GLuint *coords);
  3585. GLAPI void APIENTRY glMultiTexCoordP2ui (GLenum texture, GLenum type, GLuint coords);
  3586. GLAPI void APIENTRY glMultiTexCoordP2uiv (GLenum texture, GLenum type, const GLuint *coords);
  3587. GLAPI void APIENTRY glMultiTexCoordP3ui (GLenum texture, GLenum type, GLuint coords);
  3588. GLAPI void APIENTRY glMultiTexCoordP3uiv (GLenum texture, GLenum type, const GLuint *coords);
  3589. GLAPI void APIENTRY glMultiTexCoordP4ui (GLenum texture, GLenum type, GLuint coords);
  3590. GLAPI void APIENTRY glMultiTexCoordP4uiv (GLenum texture, GLenum type, const GLuint *coords);
  3591. GLAPI void APIENTRY glNormalP3ui (GLenum type, GLuint coords);
  3592. GLAPI void APIENTRY glNormalP3uiv (GLenum type, const GLuint *coords);
  3593. GLAPI void APIENTRY glColorP3ui (GLenum type, GLuint color);
  3594. GLAPI void APIENTRY glColorP3uiv (GLenum type, const GLuint *color);
  3595. GLAPI void APIENTRY glColorP4ui (GLenum type, GLuint color);
  3596. GLAPI void APIENTRY glColorP4uiv (GLenum type, const GLuint *color);
  3597. GLAPI void APIENTRY glSecondaryColorP3ui (GLenum type, GLuint color);
  3598. GLAPI void APIENTRY glSecondaryColorP3uiv (GLenum type, const GLuint *color);
  3599. GLAPI void APIENTRY glVertexAttribP1ui (GLuint index, GLenum type, GLboolean normalized, GLuint value);
  3600. GLAPI void APIENTRY glVertexAttribP1uiv (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
  3601. GLAPI void APIENTRY glVertexAttribP2ui (GLuint index, GLenum type, GLboolean normalized, GLuint value);
  3602. GLAPI void APIENTRY glVertexAttribP2uiv (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
  3603. GLAPI void APIENTRY glVertexAttribP3ui (GLuint index, GLenum type, GLboolean normalized, GLuint value);
  3604. GLAPI void APIENTRY glVertexAttribP3uiv (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
  3605. GLAPI void APIENTRY glVertexAttribP4ui (GLuint index, GLenum type, GLboolean normalized, GLuint value);
  3606. GLAPI void APIENTRY glVertexAttribP4uiv (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
  3607. #endif /* GLCOREARB_PROTOTYPES */
  3608. typedef void (APIENTRYP PFNGLVERTEXP2UIPROC) (GLenum type, GLuint value);
  3609. typedef void (APIENTRYP PFNGLVERTEXP2UIVPROC) (GLenum type, const GLuint *value);
  3610. typedef void (APIENTRYP PFNGLVERTEXP3UIPROC) (GLenum type, GLuint value);
  3611. typedef void (APIENTRYP PFNGLVERTEXP3UIVPROC) (GLenum type, const GLuint *value);
  3612. typedef void (APIENTRYP PFNGLVERTEXP4UIPROC) (GLenum type, GLuint value);
  3613. typedef void (APIENTRYP PFNGLVERTEXP4UIVPROC) (GLenum type, const GLuint *value);
  3614. typedef void (APIENTRYP PFNGLTEXCOORDP1UIPROC) (GLenum type, GLuint coords);
  3615. typedef void (APIENTRYP PFNGLTEXCOORDP1UIVPROC) (GLenum type, const GLuint *coords);
  3616. typedef void (APIENTRYP PFNGLTEXCOORDP2UIPROC) (GLenum type, GLuint coords);
  3617. typedef void (APIENTRYP PFNGLTEXCOORDP2UIVPROC) (GLenum type, const GLuint *coords);
  3618. typedef void (APIENTRYP PFNGLTEXCOORDP3UIPROC) (GLenum type, GLuint coords);
  3619. typedef void (APIENTRYP PFNGLTEXCOORDP3UIVPROC) (GLenum type, const GLuint *coords);
  3620. typedef void (APIENTRYP PFNGLTEXCOORDP4UIPROC) (GLenum type, GLuint coords);
  3621. typedef void (APIENTRYP PFNGLTEXCOORDP4UIVPROC) (GLenum type, const GLuint *coords);
  3622. typedef void (APIENTRYP PFNGLMULTITEXCOORDP1UIPROC) (GLenum texture, GLenum type, GLuint coords);
  3623. typedef void (APIENTRYP PFNGLMULTITEXCOORDP1UIVPROC) (GLenum texture, GLenum type, const GLuint *coords);
  3624. typedef void (APIENTRYP PFNGLMULTITEXCOORDP2UIPROC) (GLenum texture, GLenum type, GLuint coords);
  3625. typedef void (APIENTRYP PFNGLMULTITEXCOORDP2UIVPROC) (GLenum texture, GLenum type, const GLuint *coords);
  3626. typedef void (APIENTRYP PFNGLMULTITEXCOORDP3UIPROC) (GLenum texture, GLenum type, GLuint coords);
  3627. typedef void (APIENTRYP PFNGLMULTITEXCOORDP3UIVPROC) (GLenum texture, GLenum type, const GLuint *coords);
  3628. typedef void (APIENTRYP PFNGLMULTITEXCOORDP4UIPROC) (GLenum texture, GLenum type, GLuint coords);
  3629. typedef void (APIENTRYP PFNGLMULTITEXCOORDP4UIVPROC) (GLenum texture, GLenum type, const GLuint *coords);
  3630. typedef void (APIENTRYP PFNGLNORMALP3UIPROC) (GLenum type, GLuint coords);
  3631. typedef void (APIENTRYP PFNGLNORMALP3UIVPROC) (GLenum type, const GLuint *coords);
  3632. typedef void (APIENTRYP PFNGLCOLORP3UIPROC) (GLenum type, GLuint color);
  3633. typedef void (APIENTRYP PFNGLCOLORP3UIVPROC) (GLenum type, const GLuint *color);
  3634. typedef void (APIENTRYP PFNGLCOLORP4UIPROC) (GLenum type, GLuint color);
  3635. typedef void (APIENTRYP PFNGLCOLORP4UIVPROC) (GLenum type, const GLuint *color);
  3636. typedef void (APIENTRYP PFNGLSECONDARYCOLORP3UIPROC) (GLenum type, GLuint color);
  3637. typedef void (APIENTRYP PFNGLSECONDARYCOLORP3UIVPROC) (GLenum type, const GLuint *color);
  3638. typedef void (APIENTRYP PFNGLVERTEXATTRIBP1UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value);
  3639. typedef void (APIENTRYP PFNGLVERTEXATTRIBP1UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
  3640. typedef void (APIENTRYP PFNGLVERTEXATTRIBP2UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value);
  3641. typedef void (APIENTRYP PFNGLVERTEXATTRIBP2UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
  3642. typedef void (APIENTRYP PFNGLVERTEXATTRIBP3UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value);
  3643. typedef void (APIENTRYP PFNGLVERTEXATTRIBP3UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
  3644. typedef void (APIENTRYP PFNGLVERTEXATTRIBP4UIPROC) (GLuint index, GLenum type, GLboolean normalized, GLuint value);
  3645. typedef void (APIENTRYP PFNGLVERTEXATTRIBP4UIVPROC) (GLuint index, GLenum type, GLboolean normalized, const GLuint *value);
  3646. #endif
  3647. #ifndef GL_ARB_draw_indirect
  3648. #define GL_ARB_draw_indirect 1
  3649. #ifdef GLCOREARB_PROTOTYPES
  3650. GLAPI void APIENTRY glDrawArraysIndirect (GLenum mode, const GLvoid *indirect);
  3651. GLAPI void APIENTRY glDrawElementsIndirect (GLenum mode, GLenum type, const GLvoid *indirect);
  3652. #endif /* GLCOREARB_PROTOTYPES */
  3653. typedef void (APIENTRYP PFNGLDRAWARRAYSINDIRECTPROC) (GLenum mode, const GLvoid *indirect);
  3654. typedef void (APIENTRYP PFNGLDRAWELEMENTSINDIRECTPROC) (GLenum mode, GLenum type, const GLvoid *indirect);
  3655. #endif
  3656. #ifndef GL_ARB_gpu_shader5
  3657. #define GL_ARB_gpu_shader5 1
  3658. #endif
  3659. #ifndef GL_ARB_gpu_shader_fp64
  3660. #define GL_ARB_gpu_shader_fp64 1
  3661. #ifdef GLCOREARB_PROTOTYPES
  3662. GLAPI void APIENTRY glUniform1d (GLint location, GLdouble x);
  3663. GLAPI void APIENTRY glUniform2d (GLint location, GLdouble x, GLdouble y);
  3664. GLAPI void APIENTRY glUniform3d (GLint location, GLdouble x, GLdouble y, GLdouble z);
  3665. GLAPI void APIENTRY glUniform4d (GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
  3666. GLAPI void APIENTRY glUniform1dv (GLint location, GLsizei count, const GLdouble *value);
  3667. GLAPI void APIENTRY glUniform2dv (GLint location, GLsizei count, const GLdouble *value);
  3668. GLAPI void APIENTRY glUniform3dv (GLint location, GLsizei count, const GLdouble *value);
  3669. GLAPI void APIENTRY glUniform4dv (GLint location, GLsizei count, const GLdouble *value);
  3670. GLAPI void APIENTRY glUniformMatrix2dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  3671. GLAPI void APIENTRY glUniformMatrix3dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  3672. GLAPI void APIENTRY glUniformMatrix4dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  3673. GLAPI void APIENTRY glUniformMatrix2x3dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  3674. GLAPI void APIENTRY glUniformMatrix2x4dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  3675. GLAPI void APIENTRY glUniformMatrix3x2dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  3676. GLAPI void APIENTRY glUniformMatrix3x4dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  3677. GLAPI void APIENTRY glUniformMatrix4x2dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  3678. GLAPI void APIENTRY glUniformMatrix4x3dv (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  3679. GLAPI void APIENTRY glGetUniformdv (GLuint program, GLint location, GLdouble *params);
  3680. #endif /* GLCOREARB_PROTOTYPES */
  3681. typedef void (APIENTRYP PFNGLUNIFORM1DPROC) (GLint location, GLdouble x);
  3682. typedef void (APIENTRYP PFNGLUNIFORM2DPROC) (GLint location, GLdouble x, GLdouble y);
  3683. typedef void (APIENTRYP PFNGLUNIFORM3DPROC) (GLint location, GLdouble x, GLdouble y, GLdouble z);
  3684. typedef void (APIENTRYP PFNGLUNIFORM4DPROC) (GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
  3685. typedef void (APIENTRYP PFNGLUNIFORM1DVPROC) (GLint location, GLsizei count, const GLdouble *value);
  3686. typedef void (APIENTRYP PFNGLUNIFORM2DVPROC) (GLint location, GLsizei count, const GLdouble *value);
  3687. typedef void (APIENTRYP PFNGLUNIFORM3DVPROC) (GLint location, GLsizei count, const GLdouble *value);
  3688. typedef void (APIENTRYP PFNGLUNIFORM4DVPROC) (GLint location, GLsizei count, const GLdouble *value);
  3689. typedef void (APIENTRYP PFNGLUNIFORMMATRIX2DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  3690. typedef void (APIENTRYP PFNGLUNIFORMMATRIX3DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  3691. typedef void (APIENTRYP PFNGLUNIFORMMATRIX4DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  3692. typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X3DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  3693. typedef void (APIENTRYP PFNGLUNIFORMMATRIX2X4DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  3694. typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X2DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  3695. typedef void (APIENTRYP PFNGLUNIFORMMATRIX3X4DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  3696. typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X2DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  3697. typedef void (APIENTRYP PFNGLUNIFORMMATRIX4X3DVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  3698. typedef void (APIENTRYP PFNGLGETUNIFORMDVPROC) (GLuint program, GLint location, GLdouble *params);
  3699. #endif
  3700. #ifndef GL_ARB_shader_subroutine
  3701. #define GL_ARB_shader_subroutine 1
  3702. #ifdef GLCOREARB_PROTOTYPES
  3703. GLAPI GLint APIENTRY glGetSubroutineUniformLocation (GLuint program, GLenum shadertype, const GLchar *name);
  3704. GLAPI GLuint APIENTRY glGetSubroutineIndex (GLuint program, GLenum shadertype, const GLchar *name);
  3705. GLAPI void APIENTRY glGetActiveSubroutineUniformiv (GLuint program, GLenum shadertype, GLuint index, GLenum pname, GLint *values);
  3706. GLAPI void APIENTRY glGetActiveSubroutineUniformName (GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei *length, GLchar *name);
  3707. GLAPI void APIENTRY glGetActiveSubroutineName (GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei *length, GLchar *name);
  3708. GLAPI void APIENTRY glUniformSubroutinesuiv (GLenum shadertype, GLsizei count, const GLuint *indices);
  3709. GLAPI void APIENTRY glGetUniformSubroutineuiv (GLenum shadertype, GLint location, GLuint *params);
  3710. GLAPI void APIENTRY glGetProgramStageiv (GLuint program, GLenum shadertype, GLenum pname, GLint *values);
  3711. #endif /* GLCOREARB_PROTOTYPES */
  3712. typedef GLint (APIENTRYP PFNGLGETSUBROUTINEUNIFORMLOCATIONPROC) (GLuint program, GLenum shadertype, const GLchar *name);
  3713. typedef GLuint (APIENTRYP PFNGLGETSUBROUTINEINDEXPROC) (GLuint program, GLenum shadertype, const GLchar *name);
  3714. typedef void (APIENTRYP PFNGLGETACTIVESUBROUTINEUNIFORMIVPROC) (GLuint program, GLenum shadertype, GLuint index, GLenum pname, GLint *values);
  3715. typedef void (APIENTRYP PFNGLGETACTIVESUBROUTINEUNIFORMNAMEPROC) (GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei *length, GLchar *name);
  3716. typedef void (APIENTRYP PFNGLGETACTIVESUBROUTINENAMEPROC) (GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei *length, GLchar *name);
  3717. typedef void (APIENTRYP PFNGLUNIFORMSUBROUTINESUIVPROC) (GLenum shadertype, GLsizei count, const GLuint *indices);
  3718. typedef void (APIENTRYP PFNGLGETUNIFORMSUBROUTINEUIVPROC) (GLenum shadertype, GLint location, GLuint *params);
  3719. typedef void (APIENTRYP PFNGLGETPROGRAMSTAGEIVPROC) (GLuint program, GLenum shadertype, GLenum pname, GLint *values);
  3720. #endif
  3721. #ifndef GL_ARB_tessellation_shader
  3722. #define GL_ARB_tessellation_shader 1
  3723. #ifdef GLCOREARB_PROTOTYPES
  3724. GLAPI void APIENTRY glPatchParameteri (GLenum pname, GLint value);
  3725. GLAPI void APIENTRY glPatchParameterfv (GLenum pname, const GLfloat *values);
  3726. #endif /* GLCOREARB_PROTOTYPES */
  3727. typedef void (APIENTRYP PFNGLPATCHPARAMETERIPROC) (GLenum pname, GLint value);
  3728. typedef void (APIENTRYP PFNGLPATCHPARAMETERFVPROC) (GLenum pname, const GLfloat *values);
  3729. #endif
  3730. #ifndef GL_ARB_texture_buffer_object_rgb32
  3731. #define GL_ARB_texture_buffer_object_rgb32 1
  3732. #endif
  3733. #ifndef GL_ARB_transform_feedback2
  3734. #define GL_ARB_transform_feedback2 1
  3735. #ifdef GLCOREARB_PROTOTYPES
  3736. GLAPI void APIENTRY glBindTransformFeedback (GLenum target, GLuint id);
  3737. GLAPI void APIENTRY glDeleteTransformFeedbacks (GLsizei n, const GLuint *ids);
  3738. GLAPI void APIENTRY glGenTransformFeedbacks (GLsizei n, GLuint *ids);
  3739. GLAPI GLboolean APIENTRY glIsTransformFeedback (GLuint id);
  3740. GLAPI void APIENTRY glPauseTransformFeedback (void);
  3741. GLAPI void APIENTRY glResumeTransformFeedback (void);
  3742. GLAPI void APIENTRY glDrawTransformFeedback (GLenum mode, GLuint id);
  3743. #endif /* GLCOREARB_PROTOTYPES */
  3744. typedef void (APIENTRYP PFNGLBINDTRANSFORMFEEDBACKPROC) (GLenum target, GLuint id);
  3745. typedef void (APIENTRYP PFNGLDELETETRANSFORMFEEDBACKSPROC) (GLsizei n, const GLuint *ids);
  3746. typedef void (APIENTRYP PFNGLGENTRANSFORMFEEDBACKSPROC) (GLsizei n, GLuint *ids);
  3747. typedef GLboolean (APIENTRYP PFNGLISTRANSFORMFEEDBACKPROC) (GLuint id);
  3748. typedef void (APIENTRYP PFNGLPAUSETRANSFORMFEEDBACKPROC) (void);
  3749. typedef void (APIENTRYP PFNGLRESUMETRANSFORMFEEDBACKPROC) (void);
  3750. typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKPROC) (GLenum mode, GLuint id);
  3751. #endif
  3752. #ifndef GL_ARB_transform_feedback3
  3753. #define GL_ARB_transform_feedback3 1
  3754. #ifdef GLCOREARB_PROTOTYPES
  3755. GLAPI void APIENTRY glDrawTransformFeedbackStream (GLenum mode, GLuint id, GLuint stream);
  3756. GLAPI void APIENTRY glBeginQueryIndexed (GLenum target, GLuint index, GLuint id);
  3757. GLAPI void APIENTRY glEndQueryIndexed (GLenum target, GLuint index);
  3758. GLAPI void APIENTRY glGetQueryIndexediv (GLenum target, GLuint index, GLenum pname, GLint *params);
  3759. #endif /* GLCOREARB_PROTOTYPES */
  3760. typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKSTREAMPROC) (GLenum mode, GLuint id, GLuint stream);
  3761. typedef void (APIENTRYP PFNGLBEGINQUERYINDEXEDPROC) (GLenum target, GLuint index, GLuint id);
  3762. typedef void (APIENTRYP PFNGLENDQUERYINDEXEDPROC) (GLenum target, GLuint index);
  3763. typedef void (APIENTRYP PFNGLGETQUERYINDEXEDIVPROC) (GLenum target, GLuint index, GLenum pname, GLint *params);
  3764. #endif
  3765. #ifndef GL_ARB_ES2_compatibility
  3766. #define GL_ARB_ES2_compatibility 1
  3767. #ifdef GLCOREARB_PROTOTYPES
  3768. GLAPI void APIENTRY glReleaseShaderCompiler (void);
  3769. GLAPI void APIENTRY glShaderBinary (GLsizei count, const GLuint *shaders, GLenum binaryformat, const GLvoid *binary, GLsizei length);
  3770. GLAPI void APIENTRY glGetShaderPrecisionFormat (GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision);
  3771. GLAPI void APIENTRY glDepthRangef (GLfloat n, GLfloat f);
  3772. GLAPI void APIENTRY glClearDepthf (GLfloat d);
  3773. #endif /* GLCOREARB_PROTOTYPES */
  3774. typedef void (APIENTRYP PFNGLRELEASESHADERCOMPILERPROC) (void);
  3775. typedef void (APIENTRYP PFNGLSHADERBINARYPROC) (GLsizei count, const GLuint *shaders, GLenum binaryformat, const GLvoid *binary, GLsizei length);
  3776. typedef void (APIENTRYP PFNGLGETSHADERPRECISIONFORMATPROC) (GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision);
  3777. typedef void (APIENTRYP PFNGLDEPTHRANGEFPROC) (GLfloat n, GLfloat f);
  3778. typedef void (APIENTRYP PFNGLCLEARDEPTHFPROC) (GLfloat d);
  3779. #endif
  3780. #ifndef GL_ARB_get_program_binary
  3781. #define GL_ARB_get_program_binary 1
  3782. #ifdef GLCOREARB_PROTOTYPES
  3783. GLAPI void APIENTRY glGetProgramBinary (GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, GLvoid *binary);
  3784. GLAPI void APIENTRY glProgramBinary (GLuint program, GLenum binaryFormat, const GLvoid *binary, GLsizei length);
  3785. GLAPI void APIENTRY glProgramParameteri (GLuint program, GLenum pname, GLint value);
  3786. #endif /* GLCOREARB_PROTOTYPES */
  3787. typedef void (APIENTRYP PFNGLGETPROGRAMBINARYPROC) (GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, GLvoid *binary);
  3788. typedef void (APIENTRYP PFNGLPROGRAMBINARYPROC) (GLuint program, GLenum binaryFormat, const GLvoid *binary, GLsizei length);
  3789. typedef void (APIENTRYP PFNGLPROGRAMPARAMETERIPROC) (GLuint program, GLenum pname, GLint value);
  3790. #endif
  3791. #ifndef GL_ARB_separate_shader_objects
  3792. #define GL_ARB_separate_shader_objects 1
  3793. #ifdef GLCOREARB_PROTOTYPES
  3794. GLAPI void APIENTRY glUseProgramStages (GLuint pipeline, GLbitfield stages, GLuint program);
  3795. GLAPI void APIENTRY glActiveShaderProgram (GLuint pipeline, GLuint program);
  3796. GLAPI GLuint APIENTRY glCreateShaderProgramv (GLenum type, GLsizei count, const GLchar* const *strings);
  3797. GLAPI void APIENTRY glBindProgramPipeline (GLuint pipeline);
  3798. GLAPI void APIENTRY glDeleteProgramPipelines (GLsizei n, const GLuint *pipelines);
  3799. GLAPI void APIENTRY glGenProgramPipelines (GLsizei n, GLuint *pipelines);
  3800. GLAPI GLboolean APIENTRY glIsProgramPipeline (GLuint pipeline);
  3801. GLAPI void APIENTRY glGetProgramPipelineiv (GLuint pipeline, GLenum pname, GLint *params);
  3802. GLAPI void APIENTRY glProgramUniform1i (GLuint program, GLint location, GLint v0);
  3803. GLAPI void APIENTRY glProgramUniform1iv (GLuint program, GLint location, GLsizei count, const GLint *value);
  3804. GLAPI void APIENTRY glProgramUniform1f (GLuint program, GLint location, GLfloat v0);
  3805. GLAPI void APIENTRY glProgramUniform1fv (GLuint program, GLint location, GLsizei count, const GLfloat *value);
  3806. GLAPI void APIENTRY glProgramUniform1d (GLuint program, GLint location, GLdouble v0);
  3807. GLAPI void APIENTRY glProgramUniform1dv (GLuint program, GLint location, GLsizei count, const GLdouble *value);
  3808. GLAPI void APIENTRY glProgramUniform1ui (GLuint program, GLint location, GLuint v0);
  3809. GLAPI void APIENTRY glProgramUniform1uiv (GLuint program, GLint location, GLsizei count, const GLuint *value);
  3810. GLAPI void APIENTRY glProgramUniform2i (GLuint program, GLint location, GLint v0, GLint v1);
  3811. GLAPI void APIENTRY glProgramUniform2iv (GLuint program, GLint location, GLsizei count, const GLint *value);
  3812. GLAPI void APIENTRY glProgramUniform2f (GLuint program, GLint location, GLfloat v0, GLfloat v1);
  3813. GLAPI void APIENTRY glProgramUniform2fv (GLuint program, GLint location, GLsizei count, const GLfloat *value);
  3814. GLAPI void APIENTRY glProgramUniform2d (GLuint program, GLint location, GLdouble v0, GLdouble v1);
  3815. GLAPI void APIENTRY glProgramUniform2dv (GLuint program, GLint location, GLsizei count, const GLdouble *value);
  3816. GLAPI void APIENTRY glProgramUniform2ui (GLuint program, GLint location, GLuint v0, GLuint v1);
  3817. GLAPI void APIENTRY glProgramUniform2uiv (GLuint program, GLint location, GLsizei count, const GLuint *value);
  3818. GLAPI void APIENTRY glProgramUniform3i (GLuint program, GLint location, GLint v0, GLint v1, GLint v2);
  3819. GLAPI void APIENTRY glProgramUniform3iv (GLuint program, GLint location, GLsizei count, const GLint *value);
  3820. GLAPI void APIENTRY glProgramUniform3f (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
  3821. GLAPI void APIENTRY glProgramUniform3fv (GLuint program, GLint location, GLsizei count, const GLfloat *value);
  3822. GLAPI void APIENTRY glProgramUniform3d (GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2);
  3823. GLAPI void APIENTRY glProgramUniform3dv (GLuint program, GLint location, GLsizei count, const GLdouble *value);
  3824. GLAPI void APIENTRY glProgramUniform3ui (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2);
  3825. GLAPI void APIENTRY glProgramUniform3uiv (GLuint program, GLint location, GLsizei count, const GLuint *value);
  3826. GLAPI void APIENTRY glProgramUniform4i (GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
  3827. GLAPI void APIENTRY glProgramUniform4iv (GLuint program, GLint location, GLsizei count, const GLint *value);
  3828. GLAPI void APIENTRY glProgramUniform4f (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
  3829. GLAPI void APIENTRY glProgramUniform4fv (GLuint program, GLint location, GLsizei count, const GLfloat *value);
  3830. GLAPI void APIENTRY glProgramUniform4d (GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2, GLdouble v3);
  3831. GLAPI void APIENTRY glProgramUniform4dv (GLuint program, GLint location, GLsizei count, const GLdouble *value);
  3832. GLAPI void APIENTRY glProgramUniform4ui (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
  3833. GLAPI void APIENTRY glProgramUniform4uiv (GLuint program, GLint location, GLsizei count, const GLuint *value);
  3834. GLAPI void APIENTRY glProgramUniformMatrix2fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  3835. GLAPI void APIENTRY glProgramUniformMatrix3fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  3836. GLAPI void APIENTRY glProgramUniformMatrix4fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  3837. GLAPI void APIENTRY glProgramUniformMatrix2dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  3838. GLAPI void APIENTRY glProgramUniformMatrix3dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  3839. GLAPI void APIENTRY glProgramUniformMatrix4dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  3840. GLAPI void APIENTRY glProgramUniformMatrix2x3fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  3841. GLAPI void APIENTRY glProgramUniformMatrix3x2fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  3842. GLAPI void APIENTRY glProgramUniformMatrix2x4fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  3843. GLAPI void APIENTRY glProgramUniformMatrix4x2fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  3844. GLAPI void APIENTRY glProgramUniformMatrix3x4fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  3845. GLAPI void APIENTRY glProgramUniformMatrix4x3fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  3846. GLAPI void APIENTRY glProgramUniformMatrix2x3dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  3847. GLAPI void APIENTRY glProgramUniformMatrix3x2dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  3848. GLAPI void APIENTRY glProgramUniformMatrix2x4dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  3849. GLAPI void APIENTRY glProgramUniformMatrix4x2dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  3850. GLAPI void APIENTRY glProgramUniformMatrix3x4dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  3851. GLAPI void APIENTRY glProgramUniformMatrix4x3dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  3852. GLAPI void APIENTRY glValidateProgramPipeline (GLuint pipeline);
  3853. GLAPI void APIENTRY glGetProgramPipelineInfoLog (GLuint pipeline, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
  3854. #endif /* GLCOREARB_PROTOTYPES */
  3855. typedef void (APIENTRYP PFNGLUSEPROGRAMSTAGESPROC) (GLuint pipeline, GLbitfield stages, GLuint program);
  3856. typedef void (APIENTRYP PFNGLACTIVESHADERPROGRAMPROC) (GLuint pipeline, GLuint program);
  3857. typedef GLuint (APIENTRYP PFNGLCREATESHADERPROGRAMVPROC) (GLenum type, GLsizei count, const GLchar* const *strings);
  3858. typedef void (APIENTRYP PFNGLBINDPROGRAMPIPELINEPROC) (GLuint pipeline);
  3859. typedef void (APIENTRYP PFNGLDELETEPROGRAMPIPELINESPROC) (GLsizei n, const GLuint *pipelines);
  3860. typedef void (APIENTRYP PFNGLGENPROGRAMPIPELINESPROC) (GLsizei n, GLuint *pipelines);
  3861. typedef GLboolean (APIENTRYP PFNGLISPROGRAMPIPELINEPROC) (GLuint pipeline);
  3862. typedef void (APIENTRYP PFNGLGETPROGRAMPIPELINEIVPROC) (GLuint pipeline, GLenum pname, GLint *params);
  3863. typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1IPROC) (GLuint program, GLint location, GLint v0);
  3864. typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1IVPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
  3865. typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1FPROC) (GLuint program, GLint location, GLfloat v0);
  3866. typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
  3867. typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1DPROC) (GLuint program, GLint location, GLdouble v0);
  3868. typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value);
  3869. typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UIPROC) (GLuint program, GLint location, GLuint v0);
  3870. typedef void (APIENTRYP PFNGLPROGRAMUNIFORM1UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
  3871. typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2IPROC) (GLuint program, GLint location, GLint v0, GLint v1);
  3872. typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2IVPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
  3873. typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2FPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1);
  3874. typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
  3875. typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2DPROC) (GLuint program, GLint location, GLdouble v0, GLdouble v1);
  3876. typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value);
  3877. typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UIPROC) (GLuint program, GLint location, GLuint v0, GLuint v1);
  3878. typedef void (APIENTRYP PFNGLPROGRAMUNIFORM2UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
  3879. typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3IPROC) (GLuint program, GLint location, GLint v0, GLint v1, GLint v2);
  3880. typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3IVPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
  3881. typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3FPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
  3882. typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
  3883. typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3DPROC) (GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2);
  3884. typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value);
  3885. typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UIPROC) (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2);
  3886. typedef void (APIENTRYP PFNGLPROGRAMUNIFORM3UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
  3887. typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4IPROC) (GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
  3888. typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4IVPROC) (GLuint program, GLint location, GLsizei count, const GLint *value);
  3889. typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4FPROC) (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
  3890. typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4FVPROC) (GLuint program, GLint location, GLsizei count, const GLfloat *value);
  3891. typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4DPROC) (GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2, GLdouble v3);
  3892. typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4DVPROC) (GLuint program, GLint location, GLsizei count, const GLdouble *value);
  3893. typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UIPROC) (GLuint program, GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
  3894. typedef void (APIENTRYP PFNGLPROGRAMUNIFORM4UIVPROC) (GLuint program, GLint location, GLsizei count, const GLuint *value);
  3895. typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  3896. typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  3897. typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  3898. typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  3899. typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  3900. typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  3901. typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X3FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  3902. typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X2FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  3903. typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X4FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  3904. typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X2FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  3905. typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X4FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  3906. typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X3FVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  3907. typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X3DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  3908. typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X2DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  3909. typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX2X4DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  3910. typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X2DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  3911. typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX3X4DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  3912. typedef void (APIENTRYP PFNGLPROGRAMUNIFORMMATRIX4X3DVPROC) (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble *value);
  3913. typedef void (APIENTRYP PFNGLVALIDATEPROGRAMPIPELINEPROC) (GLuint pipeline);
  3914. typedef void (APIENTRYP PFNGLGETPROGRAMPIPELINEINFOLOGPROC) (GLuint pipeline, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
  3915. #endif
  3916. #ifndef GL_ARB_vertex_attrib_64bit
  3917. #define GL_ARB_vertex_attrib_64bit 1
  3918. #ifdef GLCOREARB_PROTOTYPES
  3919. GLAPI void APIENTRY glVertexAttribL1d (GLuint index, GLdouble x);
  3920. GLAPI void APIENTRY glVertexAttribL2d (GLuint index, GLdouble x, GLdouble y);
  3921. GLAPI void APIENTRY glVertexAttribL3d (GLuint index, GLdouble x, GLdouble y, GLdouble z);
  3922. GLAPI void APIENTRY glVertexAttribL4d (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
  3923. GLAPI void APIENTRY glVertexAttribL1dv (GLuint index, const GLdouble *v);
  3924. GLAPI void APIENTRY glVertexAttribL2dv (GLuint index, const GLdouble *v);
  3925. GLAPI void APIENTRY glVertexAttribL3dv (GLuint index, const GLdouble *v);
  3926. GLAPI void APIENTRY glVertexAttribL4dv (GLuint index, const GLdouble *v);
  3927. GLAPI void APIENTRY glVertexAttribLPointer (GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
  3928. GLAPI void APIENTRY glGetVertexAttribLdv (GLuint index, GLenum pname, GLdouble *params);
  3929. #endif /* GLCOREARB_PROTOTYPES */
  3930. typedef void (APIENTRYP PFNGLVERTEXATTRIBL1DPROC) (GLuint index, GLdouble x);
  3931. typedef void (APIENTRYP PFNGLVERTEXATTRIBL2DPROC) (GLuint index, GLdouble x, GLdouble y);
  3932. typedef void (APIENTRYP PFNGLVERTEXATTRIBL3DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z);
  3933. typedef void (APIENTRYP PFNGLVERTEXATTRIBL4DPROC) (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
  3934. typedef void (APIENTRYP PFNGLVERTEXATTRIBL1DVPROC) (GLuint index, const GLdouble *v);
  3935. typedef void (APIENTRYP PFNGLVERTEXATTRIBL2DVPROC) (GLuint index, const GLdouble *v);
  3936. typedef void (APIENTRYP PFNGLVERTEXATTRIBL3DVPROC) (GLuint index, const GLdouble *v);
  3937. typedef void (APIENTRYP PFNGLVERTEXATTRIBL4DVPROC) (GLuint index, const GLdouble *v);
  3938. typedef void (APIENTRYP PFNGLVERTEXATTRIBLPOINTERPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
  3939. typedef void (APIENTRYP PFNGLGETVERTEXATTRIBLDVPROC) (GLuint index, GLenum pname, GLdouble *params);
  3940. #endif
  3941. #ifndef GL_ARB_viewport_array
  3942. #define GL_ARB_viewport_array 1
  3943. #ifdef GLCOREARB_PROTOTYPES
  3944. GLAPI void APIENTRY glViewportArrayv (GLuint first, GLsizei count, const GLfloat *v);
  3945. GLAPI void APIENTRY glViewportIndexedf (GLuint index, GLfloat x, GLfloat y, GLfloat w, GLfloat h);
  3946. GLAPI void APIENTRY glViewportIndexedfv (GLuint index, const GLfloat *v);
  3947. GLAPI void APIENTRY glScissorArrayv (GLuint first, GLsizei count, const GLint *v);
  3948. GLAPI void APIENTRY glScissorIndexed (GLuint index, GLint left, GLint bottom, GLsizei width, GLsizei height);
  3949. GLAPI void APIENTRY glScissorIndexedv (GLuint index, const GLint *v);
  3950. GLAPI void APIENTRY glDepthRangeArrayv (GLuint first, GLsizei count, const GLdouble *v);
  3951. GLAPI void APIENTRY glDepthRangeIndexed (GLuint index, GLdouble n, GLdouble f);
  3952. GLAPI void APIENTRY glGetFloati_v (GLenum target, GLuint index, GLfloat *data);
  3953. GLAPI void APIENTRY glGetDoublei_v (GLenum target, GLuint index, GLdouble *data);
  3954. #endif /* GLCOREARB_PROTOTYPES */
  3955. typedef void (APIENTRYP PFNGLVIEWPORTARRAYVPROC) (GLuint first, GLsizei count, const GLfloat *v);
  3956. typedef void (APIENTRYP PFNGLVIEWPORTINDEXEDFPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat w, GLfloat h);
  3957. typedef void (APIENTRYP PFNGLVIEWPORTINDEXEDFVPROC) (GLuint index, const GLfloat *v);
  3958. typedef void (APIENTRYP PFNGLSCISSORARRAYVPROC) (GLuint first, GLsizei count, const GLint *v);
  3959. typedef void (APIENTRYP PFNGLSCISSORINDEXEDPROC) (GLuint index, GLint left, GLint bottom, GLsizei width, GLsizei height);
  3960. typedef void (APIENTRYP PFNGLSCISSORINDEXEDVPROC) (GLuint index, const GLint *v);
  3961. typedef void (APIENTRYP PFNGLDEPTHRANGEARRAYVPROC) (GLuint first, GLsizei count, const GLdouble *v);
  3962. typedef void (APIENTRYP PFNGLDEPTHRANGEINDEXEDPROC) (GLuint index, GLdouble n, GLdouble f);
  3963. typedef void (APIENTRYP PFNGLGETFLOATI_VPROC) (GLenum target, GLuint index, GLfloat *data);
  3964. typedef void (APIENTRYP PFNGLGETDOUBLEI_VPROC) (GLenum target, GLuint index, GLdouble *data);
  3965. #endif
  3966. #ifndef GL_ARB_cl_event
  3967. #define GL_ARB_cl_event 1
  3968. #ifdef GLCOREARB_PROTOTYPES
  3969. GLAPI GLsync APIENTRY glCreateSyncFromCLeventARB (struct _cl_context * context, struct _cl_event * event, GLbitfield flags);
  3970. #endif /* GLCOREARB_PROTOTYPES */
  3971. typedef GLsync (APIENTRYP PFNGLCREATESYNCFROMCLEVENTARBPROC) (struct _cl_context * context, struct _cl_event * event, GLbitfield flags);
  3972. #endif
  3973. #ifndef GL_ARB_debug_output
  3974. #define GL_ARB_debug_output 1
  3975. #ifdef GLCOREARB_PROTOTYPES
  3976. GLAPI void APIENTRY glDebugMessageControlARB (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
  3977. GLAPI void APIENTRY glDebugMessageInsertARB (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf);
  3978. GLAPI void APIENTRY glDebugMessageCallbackARB (GLDEBUGPROCARB callback, const GLvoid *userParam);
  3979. GLAPI GLuint APIENTRY glGetDebugMessageLogARB (GLuint count, GLsizei bufsize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog);
  3980. #endif /* GLCOREARB_PROTOTYPES */
  3981. typedef void (APIENTRYP PFNGLDEBUGMESSAGECONTROLARBPROC) (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
  3982. typedef void (APIENTRYP PFNGLDEBUGMESSAGEINSERTARBPROC) (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf);
  3983. typedef void (APIENTRYP PFNGLDEBUGMESSAGECALLBACKARBPROC) (GLDEBUGPROCARB callback, const GLvoid *userParam);
  3984. typedef GLuint (APIENTRYP PFNGLGETDEBUGMESSAGELOGARBPROC) (GLuint count, GLsizei bufsize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog);
  3985. #endif
  3986. #ifndef GL_ARB_robustness
  3987. #define GL_ARB_robustness 1
  3988. #ifdef GLCOREARB_PROTOTYPES
  3989. GLAPI GLenum APIENTRY glGetGraphicsResetStatusARB (void);
  3990. GLAPI void APIENTRY glGetnTexImageARB (GLenum target, GLint level, GLenum format, GLenum type, GLsizei bufSize, GLvoid *img);
  3991. GLAPI void APIENTRY glReadnPixelsARB (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, GLvoid *data);
  3992. GLAPI void APIENTRY glGetnCompressedTexImageARB (GLenum target, GLint lod, GLsizei bufSize, GLvoid *img);
  3993. GLAPI void APIENTRY glGetnUniformfvARB (GLuint program, GLint location, GLsizei bufSize, GLfloat *params);
  3994. GLAPI void APIENTRY glGetnUniformivARB (GLuint program, GLint location, GLsizei bufSize, GLint *params);
  3995. GLAPI void APIENTRY glGetnUniformuivARB (GLuint program, GLint location, GLsizei bufSize, GLuint *params);
  3996. GLAPI void APIENTRY glGetnUniformdvARB (GLuint program, GLint location, GLsizei bufSize, GLdouble *params);
  3997. #endif /* GLCOREARB_PROTOTYPES */
  3998. typedef GLenum (APIENTRYP PFNGLGETGRAPHICSRESETSTATUSARBPROC) (void);
  3999. typedef void (APIENTRYP PFNGLGETNTEXIMAGEARBPROC) (GLenum target, GLint level, GLenum format, GLenum type, GLsizei bufSize, GLvoid *img);
  4000. typedef void (APIENTRYP PFNGLREADNPIXELSARBPROC) (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, GLvoid *data);
  4001. typedef void (APIENTRYP PFNGLGETNCOMPRESSEDTEXIMAGEARBPROC) (GLenum target, GLint lod, GLsizei bufSize, GLvoid *img);
  4002. typedef void (APIENTRYP PFNGLGETNUNIFORMFVARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLfloat *params);
  4003. typedef void (APIENTRYP PFNGLGETNUNIFORMIVARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLint *params);
  4004. typedef void (APIENTRYP PFNGLGETNUNIFORMUIVARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLuint *params);
  4005. typedef void (APIENTRYP PFNGLGETNUNIFORMDVARBPROC) (GLuint program, GLint location, GLsizei bufSize, GLdouble *params);
  4006. #endif
  4007. #ifndef GL_ARB_shader_stencil_export
  4008. #define GL_ARB_shader_stencil_export 1
  4009. #endif
  4010. #ifndef GL_ARB_base_instance
  4011. #define GL_ARB_base_instance 1
  4012. #ifdef GLCOREARB_PROTOTYPES
  4013. GLAPI void APIENTRY glDrawArraysInstancedBaseInstance (GLenum mode, GLint first, GLsizei count, GLsizei instancecount, GLuint baseinstance);
  4014. GLAPI void APIENTRY glDrawElementsInstancedBaseInstance (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLuint baseinstance);
  4015. GLAPI void APIENTRY glDrawElementsInstancedBaseVertexBaseInstance (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex, GLuint baseinstance);
  4016. #endif /* GLCOREARB_PROTOTYPES */
  4017. typedef void (APIENTRYP PFNGLDRAWARRAYSINSTANCEDBASEINSTANCEPROC) (GLenum mode, GLint first, GLsizei count, GLsizei instancecount, GLuint baseinstance);
  4018. typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDBASEINSTANCEPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLuint baseinstance);
  4019. typedef void (APIENTRYP PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXBASEINSTANCEPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex, GLuint baseinstance);
  4020. #endif
  4021. #ifndef GL_ARB_shading_language_420pack
  4022. #define GL_ARB_shading_language_420pack 1
  4023. #endif
  4024. #ifndef GL_ARB_transform_feedback_instanced
  4025. #define GL_ARB_transform_feedback_instanced 1
  4026. #ifdef GLCOREARB_PROTOTYPES
  4027. GLAPI void APIENTRY glDrawTransformFeedbackInstanced (GLenum mode, GLuint id, GLsizei instancecount);
  4028. GLAPI void APIENTRY glDrawTransformFeedbackStreamInstanced (GLenum mode, GLuint id, GLuint stream, GLsizei instancecount);
  4029. #endif /* GLCOREARB_PROTOTYPES */
  4030. typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKINSTANCEDPROC) (GLenum mode, GLuint id, GLsizei instancecount);
  4031. typedef void (APIENTRYP PFNGLDRAWTRANSFORMFEEDBACKSTREAMINSTANCEDPROC) (GLenum mode, GLuint id, GLuint stream, GLsizei instancecount);
  4032. #endif
  4033. #ifndef GL_ARB_compressed_texture_pixel_storage
  4034. #define GL_ARB_compressed_texture_pixel_storage 1
  4035. #endif
  4036. #ifndef GL_ARB_conservative_depth
  4037. #define GL_ARB_conservative_depth 1
  4038. #endif
  4039. #ifndef GL_ARB_internalformat_query
  4040. #define GL_ARB_internalformat_query 1
  4041. #ifdef GLCOREARB_PROTOTYPES
  4042. GLAPI void APIENTRY glGetInternalformativ (GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize, GLint *params);
  4043. #endif /* GLCOREARB_PROTOTYPES */
  4044. typedef void (APIENTRYP PFNGLGETINTERNALFORMATIVPROC) (GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize, GLint *params);
  4045. #endif
  4046. #ifndef GL_ARB_map_buffer_alignment
  4047. #define GL_ARB_map_buffer_alignment 1
  4048. #endif
  4049. #ifndef GL_ARB_shader_atomic_counters
  4050. #define GL_ARB_shader_atomic_counters 1
  4051. #ifdef GLCOREARB_PROTOTYPES
  4052. GLAPI void APIENTRY glGetActiveAtomicCounterBufferiv (GLuint program, GLuint bufferIndex, GLenum pname, GLint *params);
  4053. #endif /* GLCOREARB_PROTOTYPES */
  4054. typedef void (APIENTRYP PFNGLGETACTIVEATOMICCOUNTERBUFFERIVPROC) (GLuint program, GLuint bufferIndex, GLenum pname, GLint *params);
  4055. #endif
  4056. #ifndef GL_ARB_shader_image_load_store
  4057. #define GL_ARB_shader_image_load_store 1
  4058. #ifdef GLCOREARB_PROTOTYPES
  4059. GLAPI void APIENTRY glBindImageTexture (GLuint unit, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLenum format);
  4060. GLAPI void APIENTRY glMemoryBarrier (GLbitfield barriers);
  4061. #endif /* GLCOREARB_PROTOTYPES */
  4062. typedef void (APIENTRYP PFNGLBINDIMAGETEXTUREPROC) (GLuint unit, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLenum format);
  4063. typedef void (APIENTRYP PFNGLMEMORYBARRIERPROC) (GLbitfield barriers);
  4064. #endif
  4065. #ifndef GL_ARB_shading_language_packing
  4066. #define GL_ARB_shading_language_packing 1
  4067. #endif
  4068. #ifndef GL_ARB_texture_storage
  4069. #define GL_ARB_texture_storage 1
  4070. #ifdef GLCOREARB_PROTOTYPES
  4071. GLAPI void APIENTRY glTexStorage1D (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
  4072. GLAPI void APIENTRY glTexStorage2D (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
  4073. GLAPI void APIENTRY glTexStorage3D (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
  4074. GLAPI void APIENTRY glTextureStorage1DEXT (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
  4075. GLAPI void APIENTRY glTextureStorage2DEXT (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
  4076. GLAPI void APIENTRY glTextureStorage3DEXT (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
  4077. #endif /* GLCOREARB_PROTOTYPES */
  4078. typedef void (APIENTRYP PFNGLTEXSTORAGE1DPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
  4079. typedef void (APIENTRYP PFNGLTEXSTORAGE2DPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
  4080. typedef void (APIENTRYP PFNGLTEXSTORAGE3DPROC) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
  4081. typedef void (APIENTRYP PFNGLTEXTURESTORAGE1DEXTPROC) (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width);
  4082. typedef void (APIENTRYP PFNGLTEXTURESTORAGE2DEXTPROC) (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
  4083. typedef void (APIENTRYP PFNGLTEXTURESTORAGE3DEXTPROC) (GLuint texture, GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth);
  4084. #endif
  4085. #ifndef GL_KHR_texture_compression_astc_ldr
  4086. #define GL_KHR_texture_compression_astc_ldr 1
  4087. #endif
  4088. #ifndef GL_KHR_debug
  4089. #define GL_KHR_debug 1
  4090. #ifdef GLCOREARB_PROTOTYPES
  4091. GLAPI void APIENTRY glDebugMessageControl (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
  4092. GLAPI void APIENTRY glDebugMessageInsert (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf);
  4093. GLAPI void APIENTRY glDebugMessageCallback (GLDEBUGPROC callback, const void *userParam);
  4094. GLAPI GLuint APIENTRY glGetDebugMessageLog (GLuint count, GLsizei bufsize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog);
  4095. GLAPI void APIENTRY glPushDebugGroup (GLenum source, GLuint id, GLsizei length, const GLchar *message);
  4096. GLAPI void APIENTRY glPopDebugGroup (void);
  4097. GLAPI void APIENTRY glObjectLabel (GLenum identifier, GLuint name, GLsizei length, const GLchar *label);
  4098. GLAPI void APIENTRY glGetObjectLabel (GLenum identifier, GLuint name, GLsizei bufSize, GLsizei *length, GLchar *label);
  4099. GLAPI void APIENTRY glObjectPtrLabel (const void *ptr, GLsizei length, const GLchar *label);
  4100. GLAPI void APIENTRY glGetObjectPtrLabel (const void *ptr, GLsizei bufSize, GLsizei *length, GLchar *label);
  4101. #endif /* GLCOREARB_PROTOTYPES */
  4102. typedef void (APIENTRYP PFNGLDEBUGMESSAGECONTROLPROC) (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
  4103. typedef void (APIENTRYP PFNGLDEBUGMESSAGEINSERTPROC) (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf);
  4104. typedef void (APIENTRYP PFNGLDEBUGMESSAGECALLBACKPROC) (GLDEBUGPROC callback, const void *userParam);
  4105. typedef GLuint (APIENTRYP PFNGLGETDEBUGMESSAGELOGPROC) (GLuint count, GLsizei bufsize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog);
  4106. typedef void (APIENTRYP PFNGLPUSHDEBUGGROUPPROC) (GLenum source, GLuint id, GLsizei length, const GLchar *message);
  4107. typedef void (APIENTRYP PFNGLPOPDEBUGGROUPPROC) (void);
  4108. typedef void (APIENTRYP PFNGLOBJECTLABELPROC) (GLenum identifier, GLuint name, GLsizei length, const GLchar *label);
  4109. typedef void (APIENTRYP PFNGLGETOBJECTLABELPROC) (GLenum identifier, GLuint name, GLsizei bufSize, GLsizei *length, GLchar *label);
  4110. typedef void (APIENTRYP PFNGLOBJECTPTRLABELPROC) (const void *ptr, GLsizei length, const GLchar *label);
  4111. typedef void (APIENTRYP PFNGLGETOBJECTPTRLABELPROC) (const void *ptr, GLsizei bufSize, GLsizei *length, GLchar *label);
  4112. #endif
  4113. #ifndef GL_ARB_arrays_of_arrays
  4114. #define GL_ARB_arrays_of_arrays 1
  4115. #endif
  4116. #ifndef GL_ARB_clear_buffer_object
  4117. #define GL_ARB_clear_buffer_object 1
  4118. #ifdef GLCOREARB_PROTOTYPES
  4119. GLAPI void APIENTRY glClearBufferData (GLenum target, GLenum internalformat, GLenum format, GLenum type, const void *data);
  4120. GLAPI void APIENTRY glClearBufferSubData (GLenum target, GLenum internalformat, GLintptr offset, GLsizeiptr size, GLenum format, GLenum type, const void *data);
  4121. GLAPI void APIENTRY glClearNamedBufferDataEXT (GLuint buffer, GLenum internalformat, GLenum format, GLenum type, const void *data);
  4122. GLAPI void APIENTRY glClearNamedBufferSubDataEXT (GLuint buffer, GLenum internalformat, GLenum format, GLenum type, GLsizeiptr offset, GLsizeiptr size, const void *data);
  4123. #endif /* GLCOREARB_PROTOTYPES */
  4124. typedef void (APIENTRYP PFNGLCLEARBUFFERDATAPROC) (GLenum target, GLenum internalformat, GLenum format, GLenum type, const void *data);
  4125. typedef void (APIENTRYP PFNGLCLEARBUFFERSUBDATAPROC) (GLenum target, GLenum internalformat, GLintptr offset, GLsizeiptr size, GLenum format, GLenum type, const void *data);
  4126. typedef void (APIENTRYP PFNGLCLEARNAMEDBUFFERDATAEXTPROC) (GLuint buffer, GLenum internalformat, GLenum format, GLenum type, const void *data);
  4127. typedef void (APIENTRYP PFNGLCLEARNAMEDBUFFERSUBDATAEXTPROC) (GLuint buffer, GLenum internalformat, GLenum format, GLenum type, GLsizeiptr offset, GLsizeiptr size, const void *data);
  4128. #endif
  4129. #ifndef GL_ARB_compute_shader
  4130. #define GL_ARB_compute_shader 1
  4131. #ifdef GLCOREARB_PROTOTYPES
  4132. GLAPI void APIENTRY glDispatchCompute (GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z);
  4133. GLAPI void APIENTRY glDispatchComputeIndirect (GLintptr indirect);
  4134. #endif /* GLCOREARB_PROTOTYPES */
  4135. typedef void (APIENTRYP PFNGLDISPATCHCOMPUTEPROC) (GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z);
  4136. typedef void (APIENTRYP PFNGLDISPATCHCOMPUTEINDIRECTPROC) (GLintptr indirect);
  4137. #endif
  4138. #ifndef GL_ARB_copy_image
  4139. #define GL_ARB_copy_image 1
  4140. #ifdef GLCOREARB_PROTOTYPES
  4141. GLAPI void APIENTRY glCopyImageSubData (GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth);
  4142. #endif /* GLCOREARB_PROTOTYPES */
  4143. typedef void (APIENTRYP PFNGLCOPYIMAGESUBDATAPROC) (GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth);
  4144. #endif
  4145. #ifndef GL_ARB_texture_view
  4146. #define GL_ARB_texture_view 1
  4147. #ifdef GLCOREARB_PROTOTYPES
  4148. GLAPI void APIENTRY glTextureView (GLuint texture, GLenum target, GLuint origtexture, GLenum internalformat, GLuint minlevel, GLuint numlevels, GLuint minlayer, GLuint numlayers);
  4149. #endif /* GLCOREARB_PROTOTYPES */
  4150. typedef void (APIENTRYP PFNGLTEXTUREVIEWPROC) (GLuint texture, GLenum target, GLuint origtexture, GLenum internalformat, GLuint minlevel, GLuint numlevels, GLuint minlayer, GLuint numlayers);
  4151. #endif
  4152. #ifndef GL_ARB_vertex_attrib_binding
  4153. #define GL_ARB_vertex_attrib_binding 1
  4154. #ifdef GLCOREARB_PROTOTYPES
  4155. GLAPI void APIENTRY glBindVertexBuffer (GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride);
  4156. GLAPI void APIENTRY glVertexAttribFormat (GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset);
  4157. GLAPI void APIENTRY glVertexAttribIFormat (GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
  4158. GLAPI void APIENTRY glVertexAttribLFormat (GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
  4159. GLAPI void APIENTRY glVertexAttribBinding (GLuint attribindex, GLuint bindingindex);
  4160. GLAPI void APIENTRY glVertexBindingDivisor (GLuint bindingindex, GLuint divisor);
  4161. GLAPI void APIENTRY glVertexArrayBindVertexBufferEXT (GLuint vaobj, GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride);
  4162. GLAPI void APIENTRY glVertexArrayVertexAttribFormatEXT (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset);
  4163. GLAPI void APIENTRY glVertexArrayVertexAttribIFormatEXT (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
  4164. GLAPI void APIENTRY glVertexArrayVertexAttribLFormatEXT (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
  4165. GLAPI void APIENTRY glVertexArrayVertexAttribBindingEXT (GLuint vaobj, GLuint attribindex, GLuint bindingindex);
  4166. GLAPI void APIENTRY glVertexArrayVertexBindingDivisorEXT (GLuint vaobj, GLuint bindingindex, GLuint divisor);
  4167. #endif /* GLCOREARB_PROTOTYPES */
  4168. typedef void (APIENTRYP PFNGLBINDVERTEXBUFFERPROC) (GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride);
  4169. typedef void (APIENTRYP PFNGLVERTEXATTRIBFORMATPROC) (GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset);
  4170. typedef void (APIENTRYP PFNGLVERTEXATTRIBIFORMATPROC) (GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
  4171. typedef void (APIENTRYP PFNGLVERTEXATTRIBLFORMATPROC) (GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
  4172. typedef void (APIENTRYP PFNGLVERTEXATTRIBBINDINGPROC) (GLuint attribindex, GLuint bindingindex);
  4173. typedef void (APIENTRYP PFNGLVERTEXBINDINGDIVISORPROC) (GLuint bindingindex, GLuint divisor);
  4174. typedef void (APIENTRYP PFNGLVERTEXARRAYBINDVERTEXBUFFEREXTPROC) (GLuint vaobj, GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride);
  4175. typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBFORMATEXTPROC) (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset);
  4176. typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBIFORMATEXTPROC) (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
  4177. typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBLFORMATEXTPROC) (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset);
  4178. typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXATTRIBBINDINGEXTPROC) (GLuint vaobj, GLuint attribindex, GLuint bindingindex);
  4179. typedef void (APIENTRYP PFNGLVERTEXARRAYVERTEXBINDINGDIVISOREXTPROC) (GLuint vaobj, GLuint bindingindex, GLuint divisor);
  4180. #endif
  4181. #ifndef GL_ARB_robustness_isolation
  4182. #define GL_ARB_robustness_isolation 1
  4183. #endif
  4184. #ifndef GL_ARB_ES3_compatibility
  4185. #define GL_ARB_ES3_compatibility 1
  4186. #endif
  4187. #ifndef GL_ARB_explicit_uniform_location
  4188. #define GL_ARB_explicit_uniform_location 1
  4189. #endif
  4190. #ifndef GL_ARB_fragment_layer_viewport
  4191. #define GL_ARB_fragment_layer_viewport 1
  4192. #endif
  4193. #ifndef GL_ARB_framebuffer_no_attachments
  4194. #define GL_ARB_framebuffer_no_attachments 1
  4195. #ifdef GLCOREARB_PROTOTYPES
  4196. GLAPI void APIENTRY glFramebufferParameteri (GLenum target, GLenum pname, GLint param);
  4197. GLAPI void APIENTRY glGetFramebufferParameteriv (GLenum target, GLenum pname, GLint *params);
  4198. GLAPI void APIENTRY glNamedFramebufferParameteriEXT (GLuint framebuffer, GLenum pname, GLint param);
  4199. GLAPI void APIENTRY glGetNamedFramebufferParameterivEXT (GLuint framebuffer, GLenum pname, GLint *params);
  4200. #endif /* GLCOREARB_PROTOTYPES */
  4201. typedef void (APIENTRYP PFNGLFRAMEBUFFERPARAMETERIPROC) (GLenum target, GLenum pname, GLint param);
  4202. typedef void (APIENTRYP PFNGLGETFRAMEBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
  4203. typedef void (APIENTRYP PFNGLNAMEDFRAMEBUFFERPARAMETERIEXTPROC) (GLuint framebuffer, GLenum pname, GLint param);
  4204. typedef void (APIENTRYP PFNGLGETNAMEDFRAMEBUFFERPARAMETERIVEXTPROC) (GLuint framebuffer, GLenum pname, GLint *params);
  4205. #endif
  4206. #ifndef GL_ARB_internalformat_query2
  4207. #define GL_ARB_internalformat_query2 1
  4208. #ifdef GLCOREARB_PROTOTYPES
  4209. GLAPI void APIENTRY glGetInternalformati64v (GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize, GLint64 *params);
  4210. #endif /* GLCOREARB_PROTOTYPES */
  4211. typedef void (APIENTRYP PFNGLGETINTERNALFORMATI64VPROC) (GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize, GLint64 *params);
  4212. #endif
  4213. #ifndef GL_ARB_invalidate_subdata
  4214. #define GL_ARB_invalidate_subdata 1
  4215. #ifdef GLCOREARB_PROTOTYPES
  4216. GLAPI void APIENTRY glInvalidateTexSubImage (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth);
  4217. GLAPI void APIENTRY glInvalidateTexImage (GLuint texture, GLint level);
  4218. GLAPI void APIENTRY glInvalidateBufferSubData (GLuint buffer, GLintptr offset, GLsizeiptr length);
  4219. GLAPI void APIENTRY glInvalidateBufferData (GLuint buffer);
  4220. GLAPI void APIENTRY glInvalidateFramebuffer (GLenum target, GLsizei numAttachments, const GLenum *attachments);
  4221. GLAPI void APIENTRY glInvalidateSubFramebuffer (GLenum target, GLsizei numAttachments, const GLenum *attachments, GLint x, GLint y, GLsizei width, GLsizei height);
  4222. #endif /* GLCOREARB_PROTOTYPES */
  4223. typedef void (APIENTRYP PFNGLINVALIDATETEXSUBIMAGEPROC) (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth);
  4224. typedef void (APIENTRYP PFNGLINVALIDATETEXIMAGEPROC) (GLuint texture, GLint level);
  4225. typedef void (APIENTRYP PFNGLINVALIDATEBUFFERSUBDATAPROC) (GLuint buffer, GLintptr offset, GLsizeiptr length);
  4226. typedef void (APIENTRYP PFNGLINVALIDATEBUFFERDATAPROC) (GLuint buffer);
  4227. typedef void (APIENTRYP PFNGLINVALIDATEFRAMEBUFFERPROC) (GLenum target, GLsizei numAttachments, const GLenum *attachments);
  4228. typedef void (APIENTRYP PFNGLINVALIDATESUBFRAMEBUFFERPROC) (GLenum target, GLsizei numAttachments, const GLenum *attachments, GLint x, GLint y, GLsizei width, GLsizei height);
  4229. #endif
  4230. #ifndef GL_ARB_multi_draw_indirect
  4231. #define GL_ARB_multi_draw_indirect 1
  4232. #ifdef GLCOREARB_PROTOTYPES
  4233. GLAPI void APIENTRY glMultiDrawArraysIndirect (GLenum mode, const void *indirect, GLsizei drawcount, GLsizei stride);
  4234. GLAPI void APIENTRY glMultiDrawElementsIndirect (GLenum mode, GLenum type, const void *indirect, GLsizei drawcount, GLsizei stride);
  4235. #endif /* GLCOREARB_PROTOTYPES */
  4236. typedef void (APIENTRYP PFNGLMULTIDRAWARRAYSINDIRECTPROC) (GLenum mode, const void *indirect, GLsizei drawcount, GLsizei stride);
  4237. typedef void (APIENTRYP PFNGLMULTIDRAWELEMENTSINDIRECTPROC) (GLenum mode, GLenum type, const void *indirect, GLsizei drawcount, GLsizei stride);
  4238. #endif
  4239. #ifndef GL_ARB_program_interface_query
  4240. #define GL_ARB_program_interface_query 1
  4241. #ifdef GLCOREARB_PROTOTYPES
  4242. GLAPI void APIENTRY glGetProgramInterfaceiv (GLuint program, GLenum programInterface, GLenum pname, GLint *params);
  4243. GLAPI GLuint APIENTRY glGetProgramResourceIndex (GLuint program, GLenum programInterface, const GLchar *name);
  4244. GLAPI void APIENTRY glGetProgramResourceName (GLuint program, GLenum programInterface, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name);
  4245. GLAPI void APIENTRY glGetProgramResourceiv (GLuint program, GLenum programInterface, GLuint index, GLsizei propCount, const GLenum *props, GLsizei bufSize, GLsizei *length, GLint *params);
  4246. GLAPI GLint APIENTRY glGetProgramResourceLocation (GLuint program, GLenum programInterface, const GLchar *name);
  4247. GLAPI GLint APIENTRY glGetProgramResourceLocationIndex (GLuint program, GLenum programInterface, const GLchar *name);
  4248. #endif /* GLCOREARB_PROTOTYPES */
  4249. typedef void (APIENTRYP PFNGLGETPROGRAMINTERFACEIVPROC) (GLuint program, GLenum programInterface, GLenum pname, GLint *params);
  4250. typedef GLuint (APIENTRYP PFNGLGETPROGRAMRESOURCEINDEXPROC) (GLuint program, GLenum programInterface, const GLchar *name);
  4251. typedef void (APIENTRYP PFNGLGETPROGRAMRESOURCENAMEPROC) (GLuint program, GLenum programInterface, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name);
  4252. typedef void (APIENTRYP PFNGLGETPROGRAMRESOURCEIVPROC) (GLuint program, GLenum programInterface, GLuint index, GLsizei propCount, const GLenum *props, GLsizei bufSize, GLsizei *length, GLint *params);
  4253. typedef GLint (APIENTRYP PFNGLGETPROGRAMRESOURCELOCATIONPROC) (GLuint program, GLenum programInterface, const GLchar *name);
  4254. typedef GLint (APIENTRYP PFNGLGETPROGRAMRESOURCELOCATIONINDEXPROC) (GLuint program, GLenum programInterface, const GLchar *name);
  4255. #endif
  4256. #ifndef GL_ARB_robust_buffer_access_behavior
  4257. #define GL_ARB_robust_buffer_access_behavior 1
  4258. #endif
  4259. #ifndef GL_ARB_shader_image_size
  4260. #define GL_ARB_shader_image_size 1
  4261. #endif
  4262. #ifndef GL_ARB_shader_storage_buffer_object
  4263. #define GL_ARB_shader_storage_buffer_object 1
  4264. #ifdef GLCOREARB_PROTOTYPES
  4265. GLAPI void APIENTRY glShaderStorageBlockBinding (GLuint program, GLuint storageBlockIndex, GLuint storageBlockBinding);
  4266. #endif /* GLCOREARB_PROTOTYPES */
  4267. typedef void (APIENTRYP PFNGLSHADERSTORAGEBLOCKBINDINGPROC) (GLuint program, GLuint storageBlockIndex, GLuint storageBlockBinding);
  4268. #endif
  4269. #ifndef GL_ARB_stencil_texturing
  4270. #define GL_ARB_stencil_texturing 1
  4271. #endif
  4272. #ifndef GL_ARB_texture_buffer_range
  4273. #define GL_ARB_texture_buffer_range 1
  4274. #ifdef GLCOREARB_PROTOTYPES
  4275. GLAPI void APIENTRY glTexBufferRange (GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size);
  4276. GLAPI void APIENTRY glTextureBufferRangeEXT (GLuint texture, GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size);
  4277. #endif /* GLCOREARB_PROTOTYPES */
  4278. typedef void (APIENTRYP PFNGLTEXBUFFERRANGEPROC) (GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size);
  4279. typedef void (APIENTRYP PFNGLTEXTUREBUFFERRANGEEXTPROC) (GLuint texture, GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size);
  4280. #endif
  4281. #ifndef GL_ARB_texture_query_levels
  4282. #define GL_ARB_texture_query_levels 1
  4283. #endif
  4284. #ifndef GL_ARB_texture_storage_multisample
  4285. #define GL_ARB_texture_storage_multisample 1
  4286. #ifdef GLCOREARB_PROTOTYPES
  4287. GLAPI void APIENTRY glTexStorage2DMultisample (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
  4288. GLAPI void APIENTRY glTexStorage3DMultisample (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
  4289. GLAPI void APIENTRY glTextureStorage2DMultisampleEXT (GLuint texture, GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
  4290. GLAPI void APIENTRY glTextureStorage3DMultisampleEXT (GLuint texture, GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
  4291. #endif /* GLCOREARB_PROTOTYPES */
  4292. typedef void (APIENTRYP PFNGLTEXSTORAGE2DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
  4293. typedef void (APIENTRYP PFNGLTEXSTORAGE3DMULTISAMPLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
  4294. typedef void (APIENTRYP PFNGLTEXTURESTORAGE2DMULTISAMPLEEXTPROC) (GLuint texture, GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
  4295. typedef void (APIENTRYP PFNGLTEXTURESTORAGE3DMULTISAMPLEEXTPROC) (GLuint texture, GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
  4296. #endif
  4297. #ifdef __cplusplus
  4298. }
  4299. #endif
  4300. #endif