glplatform-glcore.h 291 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984
  1. #ifndef GL_BINDIFY_gl_H
  2. #define GL_BINDIFY_gl_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. #include <stdint.h>
  7. #include <stddef.h>
  8. #include <string.h>
  9. #include <stdbool.h>
  10. #ifndef GLBINDIFY_COMMON_GL_TYPEDEFS
  11. #define GLBINDIFY_COMMON_GL_TYPEDEFS
  12. typedef unsigned int GLenum;
  13. typedef unsigned char GLboolean;
  14. typedef unsigned int GLbitfield;
  15. typedef signed char GLbyte;
  16. typedef short GLshort;
  17. typedef int GLint;
  18. typedef unsigned char GLubyte;
  19. typedef unsigned short GLushort;
  20. typedef unsigned int GLuint;
  21. typedef int GLsizei;
  22. typedef float GLfloat;
  23. typedef double GLdouble;
  24. typedef ptrdiff_t GLintptr;
  25. typedef ptrdiff_t GLsizeiptr;
  26. #endif
  27. #ifndef GLPLATFORM_GL_VERSION
  28. #define GLPLATFORM_GL_VERSION 32
  29. #endif
  30. #ifndef GLPLATFORM_TYPE_GLchar
  31. #define GLPLATFORM_TYPE_GLchar
  32. typedef char GLchar;
  33. #endif
  34. #ifndef GLPLATFORM_TYPE_GLint64
  35. #define GLPLATFORM_TYPE_GLint64
  36. typedef int64_t GLint64;
  37. #endif
  38. #ifndef GLPLATFORM_TYPE_GLsync
  39. #define GLPLATFORM_TYPE_GLsync
  40. typedef struct __GLsync *GLsync;
  41. #endif
  42. #ifndef GLPLATFORM_TYPE_GLuint64
  43. #define GLPLATFORM_TYPE_GLuint64
  44. typedef uint64_t GLuint64;
  45. #endif
  46. #define GL_ACTIVE_ATTRIBUTES 0x8b89
  47. #define GL_ACTIVE_ATTRIBUTE_MAX_LENGTH 0x8b8a
  48. #define GL_ACTIVE_TEXTURE 0x84e0
  49. #define GL_ACTIVE_UNIFORMS 0x8b86
  50. #define GL_ACTIVE_UNIFORM_BLOCKS 0x8a36
  51. #define GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH 0x8a35
  52. #define GL_ACTIVE_UNIFORM_MAX_LENGTH 0x8b87
  53. #define GL_ALIASED_LINE_WIDTH_RANGE 0x846e
  54. #define GL_ALPHA 0x1906
  55. #define GL_ALREADY_SIGNALED 0x911a
  56. #define GL_ALWAYS 0x207
  57. #define GL_AND 0x1501
  58. #define GL_AND_INVERTED 0x1504
  59. #define GL_AND_REVERSE 0x1502
  60. #define GL_ARRAY_BUFFER 0x8892
  61. #define GL_ARRAY_BUFFER_BINDING 0x8894
  62. #define GL_ATTACHED_SHADERS 0x8b85
  63. #define GL_BACK 0x405
  64. #define GL_BACK_LEFT 0x402
  65. #define GL_BACK_RIGHT 0x403
  66. #define GL_BGR 0x80e0
  67. #define GL_BGRA 0x80e1
  68. #define GL_BGRA_INTEGER 0x8d9b
  69. #define GL_BGR_INTEGER 0x8d9a
  70. #define GL_BLEND 0xbe2
  71. #define GL_BLEND_DST 0xbe0
  72. #define GL_BLEND_DST_ALPHA 0x80ca
  73. #define GL_BLEND_DST_RGB 0x80c8
  74. #define GL_BLEND_EQUATION_ALPHA 0x883d
  75. #define GL_BLEND_EQUATION_RGB 0x8009
  76. #define GL_BLEND_SRC 0xbe1
  77. #define GL_BLEND_SRC_ALPHA 0x80cb
  78. #define GL_BLEND_SRC_RGB 0x80c9
  79. #define GL_BLUE 0x1905
  80. #define GL_BLUE_INTEGER 0x8d96
  81. #define GL_BOOL 0x8b56
  82. #define GL_BOOL_VEC2 0x8b57
  83. #define GL_BOOL_VEC3 0x8b58
  84. #define GL_BOOL_VEC4 0x8b59
  85. #define GL_BUFFER_ACCESS 0x88bb
  86. #define GL_BUFFER_ACCESS_FLAGS 0x911f
  87. #define GL_BUFFER_MAPPED 0x88bc
  88. #define GL_BUFFER_MAP_LENGTH 0x9120
  89. #define GL_BUFFER_MAP_OFFSET 0x9121
  90. #define GL_BUFFER_MAP_POINTER 0x88bd
  91. #define GL_BUFFER_SIZE 0x8764
  92. #define GL_BUFFER_USAGE 0x8765
  93. #define GL_BYTE 0x1400
  94. #define GL_CCW 0x901
  95. #define GL_CLAMP_READ_COLOR 0x891c
  96. #define GL_CLAMP_TO_BORDER 0x812d
  97. #define GL_CLAMP_TO_EDGE 0x812f
  98. #define GL_CLEAR 0x1500
  99. #define GL_CLIP_DISTANCE0 0x3000
  100. #define GL_CLIP_DISTANCE1 0x3001
  101. #define GL_CLIP_DISTANCE2 0x3002
  102. #define GL_CLIP_DISTANCE3 0x3003
  103. #define GL_CLIP_DISTANCE4 0x3004
  104. #define GL_CLIP_DISTANCE5 0x3005
  105. #define GL_CLIP_DISTANCE6 0x3006
  106. #define GL_CLIP_DISTANCE7 0x3007
  107. #define GL_COLOR 0x1800
  108. #define GL_COLOR_ATTACHMENT0 0x8ce0
  109. #define GL_COLOR_ATTACHMENT1 0x8ce1
  110. #define GL_COLOR_ATTACHMENT10 0x8cea
  111. #define GL_COLOR_ATTACHMENT11 0x8ceb
  112. #define GL_COLOR_ATTACHMENT12 0x8cec
  113. #define GL_COLOR_ATTACHMENT13 0x8ced
  114. #define GL_COLOR_ATTACHMENT14 0x8cee
  115. #define GL_COLOR_ATTACHMENT15 0x8cef
  116. #define GL_COLOR_ATTACHMENT2 0x8ce2
  117. #define GL_COLOR_ATTACHMENT3 0x8ce3
  118. #define GL_COLOR_ATTACHMENT4 0x8ce4
  119. #define GL_COLOR_ATTACHMENT5 0x8ce5
  120. #define GL_COLOR_ATTACHMENT6 0x8ce6
  121. #define GL_COLOR_ATTACHMENT7 0x8ce7
  122. #define GL_COLOR_ATTACHMENT8 0x8ce8
  123. #define GL_COLOR_ATTACHMENT9 0x8ce9
  124. #define GL_COLOR_BUFFER_BIT 0x4000
  125. #define GL_COLOR_CLEAR_VALUE 0xc22
  126. #define GL_COLOR_LOGIC_OP 0xbf2
  127. #define GL_COLOR_WRITEMASK 0xc23
  128. #define GL_COMPARE_REF_TO_TEXTURE 0x884e
  129. #define GL_COMPILE_STATUS 0x8b81
  130. #define GL_COMPRESSED_RED 0x8225
  131. #define GL_COMPRESSED_RED_RGTC1 0x8dbb
  132. #define GL_COMPRESSED_RG 0x8226
  133. #define GL_COMPRESSED_RGB 0x84ed
  134. #define GL_COMPRESSED_RGBA 0x84ee
  135. #define GL_COMPRESSED_RG_RGTC2 0x8dbd
  136. #define GL_COMPRESSED_SIGNED_RED_RGTC1 0x8dbc
  137. #define GL_COMPRESSED_SIGNED_RG_RGTC2 0x8dbe
  138. #define GL_COMPRESSED_SRGB 0x8c48
  139. #define GL_COMPRESSED_SRGB_ALPHA 0x8c49
  140. #define GL_COMPRESSED_TEXTURE_FORMATS 0x86a3
  141. #define GL_CONDITION_SATISFIED 0x911c
  142. #define GL_CONSTANT_ALPHA 0x8003
  143. #define GL_CONSTANT_COLOR 0x8001
  144. #define GL_CONTEXT_COMPATIBILITY_PROFILE_BIT 0x2
  145. #define GL_CONTEXT_CORE_PROFILE_BIT 0x1
  146. #define GL_CONTEXT_FLAGS 0x821e
  147. #define GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT 0x1
  148. #define GL_CONTEXT_PROFILE_MASK 0x9126
  149. #define GL_COPY 0x1503
  150. #define GL_COPY_INVERTED 0x150c
  151. #define GL_COPY_READ_BUFFER 0x8f36
  152. #define GL_COPY_WRITE_BUFFER 0x8f37
  153. #define GL_CULL_FACE 0xb44
  154. #define GL_CULL_FACE_MODE 0xb45
  155. #define GL_CURRENT_PROGRAM 0x8b8d
  156. #define GL_CURRENT_QUERY 0x8865
  157. #define GL_CURRENT_VERTEX_ATTRIB 0x8626
  158. #define GL_CW 0x900
  159. #define GL_DECR 0x1e03
  160. #define GL_DECR_WRAP 0x8508
  161. #define GL_DELETE_STATUS 0x8b80
  162. #define GL_DEPTH 0x1801
  163. #define GL_DEPTH24_STENCIL8 0x88f0
  164. #define GL_DEPTH32F_STENCIL8 0x8cad
  165. #define GL_DEPTH_ATTACHMENT 0x8d00
  166. #define GL_DEPTH_BUFFER_BIT 0x100
  167. #define GL_DEPTH_CLAMP 0x864f
  168. #define GL_DEPTH_CLEAR_VALUE 0xb73
  169. #define GL_DEPTH_COMPONENT 0x1902
  170. #define GL_DEPTH_COMPONENT16 0x81a5
  171. #define GL_DEPTH_COMPONENT24 0x81a6
  172. #define GL_DEPTH_COMPONENT32 0x81a7
  173. #define GL_DEPTH_COMPONENT32F 0x8cac
  174. #define GL_DEPTH_FUNC 0xb74
  175. #define GL_DEPTH_RANGE 0xb70
  176. #define GL_DEPTH_STENCIL 0x84f9
  177. #define GL_DEPTH_STENCIL_ATTACHMENT 0x821a
  178. #define GL_DEPTH_TEST 0xb71
  179. #define GL_DEPTH_WRITEMASK 0xb72
  180. #define GL_DITHER 0xbd0
  181. #define GL_DONT_CARE 0x1100
  182. #define GL_DOUBLE 0x140a
  183. #define GL_DOUBLEBUFFER 0xc32
  184. #define GL_DRAW_BUFFER 0xc01
  185. #define GL_DRAW_BUFFER0 0x8825
  186. #define GL_DRAW_BUFFER1 0x8826
  187. #define GL_DRAW_BUFFER10 0x882f
  188. #define GL_DRAW_BUFFER11 0x8830
  189. #define GL_DRAW_BUFFER12 0x8831
  190. #define GL_DRAW_BUFFER13 0x8832
  191. #define GL_DRAW_BUFFER14 0x8833
  192. #define GL_DRAW_BUFFER15 0x8834
  193. #define GL_DRAW_BUFFER2 0x8827
  194. #define GL_DRAW_BUFFER3 0x8828
  195. #define GL_DRAW_BUFFER4 0x8829
  196. #define GL_DRAW_BUFFER5 0x882a
  197. #define GL_DRAW_BUFFER6 0x882b
  198. #define GL_DRAW_BUFFER7 0x882c
  199. #define GL_DRAW_BUFFER8 0x882d
  200. #define GL_DRAW_BUFFER9 0x882e
  201. #define GL_DRAW_FRAMEBUFFER 0x8ca9
  202. #define GL_DRAW_FRAMEBUFFER_BINDING 0x8ca6
  203. #define GL_DST_ALPHA 0x304
  204. #define GL_DST_COLOR 0x306
  205. #define GL_DYNAMIC_COPY 0x88ea
  206. #define GL_DYNAMIC_DRAW 0x88e8
  207. #define GL_DYNAMIC_READ 0x88e9
  208. #define GL_ELEMENT_ARRAY_BUFFER 0x8893
  209. #define GL_ELEMENT_ARRAY_BUFFER_BINDING 0x8895
  210. #define GL_EQUAL 0x202
  211. #define GL_EQUIV 0x1509
  212. #define GL_EXTENSIONS 0x1f03
  213. #define GL_FALSE 0x0
  214. #define GL_FASTEST 0x1101
  215. #define GL_FILL 0x1b02
  216. #define GL_FIRST_VERTEX_CONVENTION 0x8e4d
  217. #define GL_FIXED_ONLY 0x891d
  218. #define GL_FLOAT 0x1406
  219. #define GL_FLOAT_32_UNSIGNED_INT_24_8_REV 0x8dad
  220. #define GL_FLOAT_MAT2 0x8b5a
  221. #define GL_FLOAT_MAT2x3 0x8b65
  222. #define GL_FLOAT_MAT2x4 0x8b66
  223. #define GL_FLOAT_MAT3 0x8b5b
  224. #define GL_FLOAT_MAT3x2 0x8b67
  225. #define GL_FLOAT_MAT3x4 0x8b68
  226. #define GL_FLOAT_MAT4 0x8b5c
  227. #define GL_FLOAT_MAT4x2 0x8b69
  228. #define GL_FLOAT_MAT4x3 0x8b6a
  229. #define GL_FLOAT_VEC2 0x8b50
  230. #define GL_FLOAT_VEC3 0x8b51
  231. #define GL_FLOAT_VEC4 0x8b52
  232. #define GL_FRAGMENT_SHADER 0x8b30
  233. #define GL_FRAGMENT_SHADER_DERIVATIVE_HINT 0x8b8b
  234. #define GL_FRAMEBUFFER 0x8d40
  235. #define GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE 0x8215
  236. #define GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE 0x8214
  237. #define GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING 0x8210
  238. #define GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE 0x8211
  239. #define GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE 0x8216
  240. #define GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE 0x8213
  241. #define GL_FRAMEBUFFER_ATTACHMENT_LAYERED 0x8da7
  242. #define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME 0x8cd1
  243. #define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE 0x8cd0
  244. #define GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE 0x8212
  245. #define GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE 0x8217
  246. #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE 0x8cd3
  247. #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER 0x8cd4
  248. #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL 0x8cd2
  249. #define GL_FRAMEBUFFER_BINDING 0x8ca6
  250. #define GL_FRAMEBUFFER_COMPLETE 0x8cd5
  251. #define GL_FRAMEBUFFER_DEFAULT 0x8218
  252. #define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT 0x8cd6
  253. #define GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER 0x8cdb
  254. #define GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS 0x8da8
  255. #define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT 0x8cd7
  256. #define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE 0x8d56
  257. #define GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER 0x8cdc
  258. #define GL_FRAMEBUFFER_SRGB 0x8db9
  259. #define GL_FRAMEBUFFER_UNDEFINED 0x8219
  260. #define GL_FRAMEBUFFER_UNSUPPORTED 0x8cdd
  261. #define GL_FRONT 0x404
  262. #define GL_FRONT_AND_BACK 0x408
  263. #define GL_FRONT_FACE 0xb46
  264. #define GL_FRONT_LEFT 0x400
  265. #define GL_FRONT_RIGHT 0x401
  266. #define GL_FUNC_ADD 0x8006
  267. #define GL_FUNC_REVERSE_SUBTRACT 0x800b
  268. #define GL_FUNC_SUBTRACT 0x800a
  269. #define GL_GEOMETRY_INPUT_TYPE 0x8917
  270. #define GL_GEOMETRY_OUTPUT_TYPE 0x8918
  271. #define GL_GEOMETRY_SHADER 0x8dd9
  272. #define GL_GEOMETRY_VERTICES_OUT 0x8916
  273. #define GL_GEQUAL 0x206
  274. #define GL_GREATER 0x204
  275. #define GL_GREEN 0x1904
  276. #define GL_GREEN_INTEGER 0x8d95
  277. #define GL_HALF_FLOAT 0x140b
  278. #define GL_INCR 0x1e02
  279. #define GL_INCR_WRAP 0x8507
  280. #define GL_INFO_LOG_LENGTH 0x8b84
  281. #define GL_INT 0x1404
  282. #define GL_INTERLEAVED_ATTRIBS 0x8c8c
  283. #define GL_INT_SAMPLER_1D 0x8dc9
  284. #define GL_INT_SAMPLER_1D_ARRAY 0x8dce
  285. #define GL_INT_SAMPLER_2D 0x8dca
  286. #define GL_INT_SAMPLER_2D_ARRAY 0x8dcf
  287. #define GL_INT_SAMPLER_2D_MULTISAMPLE 0x9109
  288. #define GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910c
  289. #define GL_INT_SAMPLER_2D_RECT 0x8dcd
  290. #define GL_INT_SAMPLER_3D 0x8dcb
  291. #define GL_INT_SAMPLER_BUFFER 0x8dd0
  292. #define GL_INT_SAMPLER_CUBE 0x8dcc
  293. #define GL_INT_VEC2 0x8b53
  294. #define GL_INT_VEC3 0x8b54
  295. #define GL_INT_VEC4 0x8b55
  296. #define GL_INVALID_ENUM 0x500
  297. #define GL_INVALID_FRAMEBUFFER_OPERATION 0x506
  298. #define GL_INVALID_INDEX 0xffffffff
  299. #define GL_INVALID_OPERATION 0x502
  300. #define GL_INVALID_VALUE 0x501
  301. #define GL_INVERT 0x150a
  302. #define GL_KEEP 0x1e00
  303. #define GL_LAST_VERTEX_CONVENTION 0x8e4e
  304. #define GL_LEFT 0x406
  305. #define GL_LEQUAL 0x203
  306. #define GL_LESS 0x201
  307. #define GL_LINE 0x1b01
  308. #define GL_LINEAR 0x2601
  309. #define GL_LINEAR_MIPMAP_LINEAR 0x2703
  310. #define GL_LINEAR_MIPMAP_NEAREST 0x2701
  311. #define GL_LINES 0x1
  312. #define GL_LINES_ADJACENCY 0xa
  313. #define GL_LINE_LOOP 0x2
  314. #define GL_LINE_SMOOTH 0xb20
  315. #define GL_LINE_SMOOTH_HINT 0xc52
  316. #define GL_LINE_STRIP 0x3
  317. #define GL_LINE_STRIP_ADJACENCY 0xb
  318. #define GL_LINE_WIDTH 0xb21
  319. #define GL_LINE_WIDTH_GRANULARITY 0xb23
  320. #define GL_LINE_WIDTH_RANGE 0xb22
  321. #define GL_LINK_STATUS 0x8b82
  322. #define GL_LOGIC_OP_MODE 0xbf0
  323. #define GL_LOWER_LEFT 0x8ca1
  324. #define GL_MAJOR_VERSION 0x821b
  325. #define GL_MAP_FLUSH_EXPLICIT_BIT 0x10
  326. #define GL_MAP_INVALIDATE_BUFFER_BIT 0x8
  327. #define GL_MAP_INVALIDATE_RANGE_BIT 0x4
  328. #define GL_MAP_READ_BIT 0x1
  329. #define GL_MAP_UNSYNCHRONIZED_BIT 0x20
  330. #define GL_MAP_WRITE_BIT 0x2
  331. #define GL_MAX 0x8008
  332. #define GL_MAX_3D_TEXTURE_SIZE 0x8073
  333. #define GL_MAX_ARRAY_TEXTURE_LAYERS 0x88ff
  334. #define GL_MAX_CLIP_DISTANCES 0xd32
  335. #define GL_MAX_COLOR_ATTACHMENTS 0x8cdf
  336. #define GL_MAX_COLOR_TEXTURE_SAMPLES 0x910e
  337. #define GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS 0x8a33
  338. #define GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS 0x8a32
  339. #define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS 0x8b4d
  340. #define GL_MAX_COMBINED_UNIFORM_BLOCKS 0x8a2e
  341. #define GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS 0x8a31
  342. #define GL_MAX_CUBE_MAP_TEXTURE_SIZE 0x851c
  343. #define GL_MAX_DEPTH_TEXTURE_SAMPLES 0x910f
  344. #define GL_MAX_DRAW_BUFFERS 0x8824
  345. #define GL_MAX_ELEMENTS_INDICES 0x80e9
  346. #define GL_MAX_ELEMENTS_VERTICES 0x80e8
  347. #define GL_MAX_FRAGMENT_INPUT_COMPONENTS 0x9125
  348. #define GL_MAX_FRAGMENT_UNIFORM_BLOCKS 0x8a2d
  349. #define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS 0x8b49
  350. #define GL_MAX_GEOMETRY_INPUT_COMPONENTS 0x9123
  351. #define GL_MAX_GEOMETRY_OUTPUT_COMPONENTS 0x9124
  352. #define GL_MAX_GEOMETRY_OUTPUT_VERTICES 0x8de0
  353. #define GL_MAX_GEOMETRY_TEXTURE_IMAGE_UNITS 0x8c29
  354. #define GL_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS 0x8de1
  355. #define GL_MAX_GEOMETRY_UNIFORM_BLOCKS 0x8a2c
  356. #define GL_MAX_GEOMETRY_UNIFORM_COMPONENTS 0x8ddf
  357. #define GL_MAX_INTEGER_SAMPLES 0x9110
  358. #define GL_MAX_PROGRAM_TEXEL_OFFSET 0x8905
  359. #define GL_MAX_RECTANGLE_TEXTURE_SIZE 0x84f8
  360. #define GL_MAX_RENDERBUFFER_SIZE 0x84e8
  361. #define GL_MAX_SAMPLES 0x8d57
  362. #define GL_MAX_SAMPLE_MASK_WORDS 0x8e59
  363. #define GL_MAX_SERVER_WAIT_TIMEOUT 0x9111
  364. #define GL_MAX_TEXTURE_BUFFER_SIZE 0x8c2b
  365. #define GL_MAX_TEXTURE_IMAGE_UNITS 0x8872
  366. #define GL_MAX_TEXTURE_LOD_BIAS 0x84fd
  367. #define GL_MAX_TEXTURE_SIZE 0xd33
  368. #define GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS 0x8c8a
  369. #define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS 0x8c8b
  370. #define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS 0x8c80
  371. #define GL_MAX_UNIFORM_BLOCK_SIZE 0x8a30
  372. #define GL_MAX_UNIFORM_BUFFER_BINDINGS 0x8a2f
  373. #define GL_MAX_VARYING_COMPONENTS 0x8b4b
  374. #define GL_MAX_VARYING_FLOATS 0x8b4b
  375. #define GL_MAX_VERTEX_ATTRIBS 0x8869
  376. #define GL_MAX_VERTEX_OUTPUT_COMPONENTS 0x9122
  377. #define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS 0x8b4c
  378. #define GL_MAX_VERTEX_UNIFORM_BLOCKS 0x8a2b
  379. #define GL_MAX_VERTEX_UNIFORM_COMPONENTS 0x8b4a
  380. #define GL_MAX_VIEWPORT_DIMS 0xd3a
  381. #define GL_MIN 0x8007
  382. #define GL_MINOR_VERSION 0x821c
  383. #define GL_MIN_PROGRAM_TEXEL_OFFSET 0x8904
  384. #define GL_MIRRORED_REPEAT 0x8370
  385. #define GL_MULTISAMPLE 0x809d
  386. #define GL_NAND 0x150e
  387. #define GL_NEAREST 0x2600
  388. #define GL_NEAREST_MIPMAP_LINEAR 0x2702
  389. #define GL_NEAREST_MIPMAP_NEAREST 0x2700
  390. #define GL_NEVER 0x200
  391. #define GL_NICEST 0x1102
  392. #define GL_NONE 0x0
  393. #define GL_NOOP 0x1505
  394. #define GL_NOR 0x1508
  395. #define GL_NOTEQUAL 0x205
  396. #define GL_NO_ERROR 0x0
  397. #define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86a2
  398. #define GL_NUM_EXTENSIONS 0x821d
  399. #define GL_OBJECT_TYPE 0x9112
  400. #define GL_ONE 0x1
  401. #define GL_ONE_MINUS_CONSTANT_ALPHA 0x8004
  402. #define GL_ONE_MINUS_CONSTANT_COLOR 0x8002
  403. #define GL_ONE_MINUS_DST_ALPHA 0x305
  404. #define GL_ONE_MINUS_DST_COLOR 0x307
  405. #define GL_ONE_MINUS_SRC_ALPHA 0x303
  406. #define GL_ONE_MINUS_SRC_COLOR 0x301
  407. #define GL_OR 0x1507
  408. #define GL_OR_INVERTED 0x150d
  409. #define GL_OR_REVERSE 0x150b
  410. #define GL_OUT_OF_MEMORY 0x505
  411. #define GL_PACK_ALIGNMENT 0xd05
  412. #define GL_PACK_IMAGE_HEIGHT 0x806c
  413. #define GL_PACK_LSB_FIRST 0xd01
  414. #define GL_PACK_ROW_LENGTH 0xd02
  415. #define GL_PACK_SKIP_IMAGES 0x806b
  416. #define GL_PACK_SKIP_PIXELS 0xd04
  417. #define GL_PACK_SKIP_ROWS 0xd03
  418. #define GL_PACK_SWAP_BYTES 0xd00
  419. #define GL_PIXEL_PACK_BUFFER 0x88eb
  420. #define GL_PIXEL_PACK_BUFFER_BINDING 0x88ed
  421. #define GL_PIXEL_UNPACK_BUFFER 0x88ec
  422. #define GL_PIXEL_UNPACK_BUFFER_BINDING 0x88ef
  423. #define GL_POINT 0x1b00
  424. #define GL_POINTS 0x0
  425. #define GL_POINT_FADE_THRESHOLD_SIZE 0x8128
  426. #define GL_POINT_SIZE 0xb11
  427. #define GL_POINT_SIZE_GRANULARITY 0xb13
  428. #define GL_POINT_SIZE_RANGE 0xb12
  429. #define GL_POINT_SPRITE_COORD_ORIGIN 0x8ca0
  430. #define GL_POLYGON_MODE 0xb40
  431. #define GL_POLYGON_OFFSET_FACTOR 0x8038
  432. #define GL_POLYGON_OFFSET_FILL 0x8037
  433. #define GL_POLYGON_OFFSET_LINE 0x2a02
  434. #define GL_POLYGON_OFFSET_POINT 0x2a01
  435. #define GL_POLYGON_OFFSET_UNITS 0x2a00
  436. #define GL_POLYGON_SMOOTH 0xb41
  437. #define GL_POLYGON_SMOOTH_HINT 0xc53
  438. #define GL_PRIMITIVES_GENERATED 0x8c87
  439. #define GL_PRIMITIVE_RESTART 0x8f9d
  440. #define GL_PRIMITIVE_RESTART_INDEX 0x8f9e
  441. #define GL_PROGRAM_POINT_SIZE 0x8642
  442. #define GL_PROVOKING_VERTEX 0x8e4f
  443. #define GL_PROXY_TEXTURE_1D 0x8063
  444. #define GL_PROXY_TEXTURE_1D_ARRAY 0x8c19
  445. #define GL_PROXY_TEXTURE_2D 0x8064
  446. #define GL_PROXY_TEXTURE_2D_ARRAY 0x8c1b
  447. #define GL_PROXY_TEXTURE_2D_MULTISAMPLE 0x9101
  448. #define GL_PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY 0x9103
  449. #define GL_PROXY_TEXTURE_3D 0x8070
  450. #define GL_PROXY_TEXTURE_CUBE_MAP 0x851b
  451. #define GL_PROXY_TEXTURE_RECTANGLE 0x84f7
  452. #define GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION 0x8e4c
  453. #define GL_QUERY_BY_REGION_NO_WAIT 0x8e16
  454. #define GL_QUERY_BY_REGION_WAIT 0x8e15
  455. #define GL_QUERY_COUNTER_BITS 0x8864
  456. #define GL_QUERY_NO_WAIT 0x8e14
  457. #define GL_QUERY_RESULT 0x8866
  458. #define GL_QUERY_RESULT_AVAILABLE 0x8867
  459. #define GL_QUERY_WAIT 0x8e13
  460. #define GL_R11F_G11F_B10F 0x8c3a
  461. #define GL_R16 0x822a
  462. #define GL_R16F 0x822d
  463. #define GL_R16I 0x8233
  464. #define GL_R16UI 0x8234
  465. #define GL_R16_SNORM 0x8f98
  466. #define GL_R32F 0x822e
  467. #define GL_R32I 0x8235
  468. #define GL_R32UI 0x8236
  469. #define GL_R3_G3_B2 0x2a10
  470. #define GL_R8 0x8229
  471. #define GL_R8I 0x8231
  472. #define GL_R8UI 0x8232
  473. #define GL_R8_SNORM 0x8f94
  474. #define GL_RASTERIZER_DISCARD 0x8c89
  475. #define GL_READ_BUFFER 0xc02
  476. #define GL_READ_FRAMEBUFFER 0x8ca8
  477. #define GL_READ_FRAMEBUFFER_BINDING 0x8caa
  478. #define GL_READ_ONLY 0x88b8
  479. #define GL_READ_WRITE 0x88ba
  480. #define GL_RED 0x1903
  481. #define GL_RED_INTEGER 0x8d94
  482. #define GL_RENDERBUFFER 0x8d41
  483. #define GL_RENDERBUFFER_ALPHA_SIZE 0x8d53
  484. #define GL_RENDERBUFFER_BINDING 0x8ca7
  485. #define GL_RENDERBUFFER_BLUE_SIZE 0x8d52
  486. #define GL_RENDERBUFFER_DEPTH_SIZE 0x8d54
  487. #define GL_RENDERBUFFER_GREEN_SIZE 0x8d51
  488. #define GL_RENDERBUFFER_HEIGHT 0x8d43
  489. #define GL_RENDERBUFFER_INTERNAL_FORMAT 0x8d44
  490. #define GL_RENDERBUFFER_RED_SIZE 0x8d50
  491. #define GL_RENDERBUFFER_SAMPLES 0x8cab
  492. #define GL_RENDERBUFFER_STENCIL_SIZE 0x8d55
  493. #define GL_RENDERBUFFER_WIDTH 0x8d42
  494. #define GL_RENDERER 0x1f01
  495. #define GL_REPEAT 0x2901
  496. #define GL_REPLACE 0x1e01
  497. #define GL_RG 0x8227
  498. #define GL_RG16 0x822c
  499. #define GL_RG16F 0x822f
  500. #define GL_RG16I 0x8239
  501. #define GL_RG16UI 0x823a
  502. #define GL_RG16_SNORM 0x8f99
  503. #define GL_RG32F 0x8230
  504. #define GL_RG32I 0x823b
  505. #define GL_RG32UI 0x823c
  506. #define GL_RG8 0x822b
  507. #define GL_RG8I 0x8237
  508. #define GL_RG8UI 0x8238
  509. #define GL_RG8_SNORM 0x8f95
  510. #define GL_RGB 0x1907
  511. #define GL_RGB10 0x8052
  512. #define GL_RGB10_A2 0x8059
  513. #define GL_RGB12 0x8053
  514. #define GL_RGB16 0x8054
  515. #define GL_RGB16F 0x881b
  516. #define GL_RGB16I 0x8d89
  517. #define GL_RGB16UI 0x8d77
  518. #define GL_RGB16_SNORM 0x8f9a
  519. #define GL_RGB32F 0x8815
  520. #define GL_RGB32I 0x8d83
  521. #define GL_RGB32UI 0x8d71
  522. #define GL_RGB4 0x804f
  523. #define GL_RGB5 0x8050
  524. #define GL_RGB5_A1 0x8057
  525. #define GL_RGB8 0x8051
  526. #define GL_RGB8I 0x8d8f
  527. #define GL_RGB8UI 0x8d7d
  528. #define GL_RGB8_SNORM 0x8f96
  529. #define GL_RGB9_E5 0x8c3d
  530. #define GL_RGBA 0x1908
  531. #define GL_RGBA12 0x805a
  532. #define GL_RGBA16 0x805b
  533. #define GL_RGBA16F 0x881a
  534. #define GL_RGBA16I 0x8d88
  535. #define GL_RGBA16UI 0x8d76
  536. #define GL_RGBA16_SNORM 0x8f9b
  537. #define GL_RGBA2 0x8055
  538. #define GL_RGBA32F 0x8814
  539. #define GL_RGBA32I 0x8d82
  540. #define GL_RGBA32UI 0x8d70
  541. #define GL_RGBA4 0x8056
  542. #define GL_RGBA8 0x8058
  543. #define GL_RGBA8I 0x8d8e
  544. #define GL_RGBA8UI 0x8d7c
  545. #define GL_RGBA8_SNORM 0x8f97
  546. #define GL_RGBA_INTEGER 0x8d99
  547. #define GL_RGB_INTEGER 0x8d98
  548. #define GL_RG_INTEGER 0x8228
  549. #define GL_RIGHT 0x407
  550. #define GL_SAMPLER_1D 0x8b5d
  551. #define GL_SAMPLER_1D_ARRAY 0x8dc0
  552. #define GL_SAMPLER_1D_ARRAY_SHADOW 0x8dc3
  553. #define GL_SAMPLER_1D_SHADOW 0x8b61
  554. #define GL_SAMPLER_2D 0x8b5e
  555. #define GL_SAMPLER_2D_ARRAY 0x8dc1
  556. #define GL_SAMPLER_2D_ARRAY_SHADOW 0x8dc4
  557. #define GL_SAMPLER_2D_MULTISAMPLE 0x9108
  558. #define GL_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910b
  559. #define GL_SAMPLER_2D_RECT 0x8b63
  560. #define GL_SAMPLER_2D_RECT_SHADOW 0x8b64
  561. #define GL_SAMPLER_2D_SHADOW 0x8b62
  562. #define GL_SAMPLER_3D 0x8b5f
  563. #define GL_SAMPLER_BUFFER 0x8dc2
  564. #define GL_SAMPLER_CUBE 0x8b60
  565. #define GL_SAMPLER_CUBE_SHADOW 0x8dc5
  566. #define GL_SAMPLES 0x80a9
  567. #define GL_SAMPLES_PASSED 0x8914
  568. #define GL_SAMPLE_ALPHA_TO_COVERAGE 0x809e
  569. #define GL_SAMPLE_ALPHA_TO_ONE 0x809f
  570. #define GL_SAMPLE_BUFFERS 0x80a8
  571. #define GL_SAMPLE_COVERAGE 0x80a0
  572. #define GL_SAMPLE_COVERAGE_INVERT 0x80ab
  573. #define GL_SAMPLE_COVERAGE_VALUE 0x80aa
  574. #define GL_SAMPLE_MASK 0x8e51
  575. #define GL_SAMPLE_MASK_VALUE 0x8e52
  576. #define GL_SAMPLE_POSITION 0x8e50
  577. #define GL_SCISSOR_BOX 0xc10
  578. #define GL_SCISSOR_TEST 0xc11
  579. #define GL_SEPARATE_ATTRIBS 0x8c8d
  580. #define GL_SET 0x150f
  581. #define GL_SHADER_SOURCE_LENGTH 0x8b88
  582. #define GL_SHADER_TYPE 0x8b4f
  583. #define GL_SHADING_LANGUAGE_VERSION 0x8b8c
  584. #define GL_SHORT 0x1402
  585. #define GL_SIGNALED 0x9119
  586. #define GL_SIGNED_NORMALIZED 0x8f9c
  587. #define GL_SMOOTH_LINE_WIDTH_GRANULARITY 0xb23
  588. #define GL_SMOOTH_LINE_WIDTH_RANGE 0xb22
  589. #define GL_SMOOTH_POINT_SIZE_GRANULARITY 0xb13
  590. #define GL_SMOOTH_POINT_SIZE_RANGE 0xb12
  591. #define GL_SRC1_ALPHA 0x8589
  592. #define GL_SRC_ALPHA 0x302
  593. #define GL_SRC_ALPHA_SATURATE 0x308
  594. #define GL_SRC_COLOR 0x300
  595. #define GL_SRGB 0x8c40
  596. #define GL_SRGB8 0x8c41
  597. #define GL_SRGB8_ALPHA8 0x8c43
  598. #define GL_SRGB_ALPHA 0x8c42
  599. #define GL_STATIC_COPY 0x88e6
  600. #define GL_STATIC_DRAW 0x88e4
  601. #define GL_STATIC_READ 0x88e5
  602. #define GL_STENCIL 0x1802
  603. #define GL_STENCIL_ATTACHMENT 0x8d20
  604. #define GL_STENCIL_BACK_FAIL 0x8801
  605. #define GL_STENCIL_BACK_FUNC 0x8800
  606. #define GL_STENCIL_BACK_PASS_DEPTH_FAIL 0x8802
  607. #define GL_STENCIL_BACK_PASS_DEPTH_PASS 0x8803
  608. #define GL_STENCIL_BACK_REF 0x8ca3
  609. #define GL_STENCIL_BACK_VALUE_MASK 0x8ca4
  610. #define GL_STENCIL_BACK_WRITEMASK 0x8ca5
  611. #define GL_STENCIL_BUFFER_BIT 0x400
  612. #define GL_STENCIL_CLEAR_VALUE 0xb91
  613. #define GL_STENCIL_FAIL 0xb94
  614. #define GL_STENCIL_FUNC 0xb92
  615. #define GL_STENCIL_INDEX 0x1901
  616. #define GL_STENCIL_INDEX1 0x8d46
  617. #define GL_STENCIL_INDEX16 0x8d49
  618. #define GL_STENCIL_INDEX4 0x8d47
  619. #define GL_STENCIL_INDEX8 0x8d48
  620. #define GL_STENCIL_PASS_DEPTH_FAIL 0xb95
  621. #define GL_STENCIL_PASS_DEPTH_PASS 0xb96
  622. #define GL_STENCIL_REF 0xb97
  623. #define GL_STENCIL_TEST 0xb90
  624. #define GL_STENCIL_VALUE_MASK 0xb93
  625. #define GL_STENCIL_WRITEMASK 0xb98
  626. #define GL_STEREO 0xc33
  627. #define GL_STREAM_COPY 0x88e2
  628. #define GL_STREAM_DRAW 0x88e0
  629. #define GL_STREAM_READ 0x88e1
  630. #define GL_SUBPIXEL_BITS 0xd50
  631. #define GL_SYNC_CONDITION 0x9113
  632. #define GL_SYNC_FENCE 0x9116
  633. #define GL_SYNC_FLAGS 0x9115
  634. #define GL_SYNC_FLUSH_COMMANDS_BIT 0x1
  635. #define GL_SYNC_GPU_COMMANDS_COMPLETE 0x9117
  636. #define GL_SYNC_STATUS 0x9114
  637. #define GL_TEXTURE 0x1702
  638. #define GL_TEXTURE0 0x84c0
  639. #define GL_TEXTURE1 0x84c1
  640. #define GL_TEXTURE10 0x84ca
  641. #define GL_TEXTURE11 0x84cb
  642. #define GL_TEXTURE12 0x84cc
  643. #define GL_TEXTURE13 0x84cd
  644. #define GL_TEXTURE14 0x84ce
  645. #define GL_TEXTURE15 0x84cf
  646. #define GL_TEXTURE16 0x84d0
  647. #define GL_TEXTURE17 0x84d1
  648. #define GL_TEXTURE18 0x84d2
  649. #define GL_TEXTURE19 0x84d3
  650. #define GL_TEXTURE2 0x84c2
  651. #define GL_TEXTURE20 0x84d4
  652. #define GL_TEXTURE21 0x84d5
  653. #define GL_TEXTURE22 0x84d6
  654. #define GL_TEXTURE23 0x84d7
  655. #define GL_TEXTURE24 0x84d8
  656. #define GL_TEXTURE25 0x84d9
  657. #define GL_TEXTURE26 0x84da
  658. #define GL_TEXTURE27 0x84db
  659. #define GL_TEXTURE28 0x84dc
  660. #define GL_TEXTURE29 0x84dd
  661. #define GL_TEXTURE3 0x84c3
  662. #define GL_TEXTURE30 0x84de
  663. #define GL_TEXTURE31 0x84df
  664. #define GL_TEXTURE4 0x84c4
  665. #define GL_TEXTURE5 0x84c5
  666. #define GL_TEXTURE6 0x84c6
  667. #define GL_TEXTURE7 0x84c7
  668. #define GL_TEXTURE8 0x84c8
  669. #define GL_TEXTURE9 0x84c9
  670. #define GL_TEXTURE_1D 0xde0
  671. #define GL_TEXTURE_1D_ARRAY 0x8c18
  672. #define GL_TEXTURE_2D 0xde1
  673. #define GL_TEXTURE_2D_ARRAY 0x8c1a
  674. #define GL_TEXTURE_2D_MULTISAMPLE 0x9100
  675. #define GL_TEXTURE_2D_MULTISAMPLE_ARRAY 0x9102
  676. #define GL_TEXTURE_3D 0x806f
  677. #define GL_TEXTURE_ALPHA_SIZE 0x805f
  678. #define GL_TEXTURE_ALPHA_TYPE 0x8c13
  679. #define GL_TEXTURE_BASE_LEVEL 0x813c
  680. #define GL_TEXTURE_BINDING_1D 0x8068
  681. #define GL_TEXTURE_BINDING_1D_ARRAY 0x8c1c
  682. #define GL_TEXTURE_BINDING_2D 0x8069
  683. #define GL_TEXTURE_BINDING_2D_ARRAY 0x8c1d
  684. #define GL_TEXTURE_BINDING_2D_MULTISAMPLE 0x9104
  685. #define GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY 0x9105
  686. #define GL_TEXTURE_BINDING_3D 0x806a
  687. #define GL_TEXTURE_BINDING_BUFFER 0x8c2c
  688. #define GL_TEXTURE_BINDING_CUBE_MAP 0x8514
  689. #define GL_TEXTURE_BINDING_RECTANGLE 0x84f6
  690. #define GL_TEXTURE_BLUE_SIZE 0x805e
  691. #define GL_TEXTURE_BLUE_TYPE 0x8c12
  692. #define GL_TEXTURE_BORDER_COLOR 0x1004
  693. #define GL_TEXTURE_BUFFER 0x8c2a
  694. #define GL_TEXTURE_BUFFER_DATA_STORE_BINDING 0x8c2d
  695. #define GL_TEXTURE_COMPARE_FUNC 0x884d
  696. #define GL_TEXTURE_COMPARE_MODE 0x884c
  697. #define GL_TEXTURE_COMPRESSED 0x86a1
  698. #define GL_TEXTURE_COMPRESSED_IMAGE_SIZE 0x86a0
  699. #define GL_TEXTURE_COMPRESSION_HINT 0x84ef
  700. #define GL_TEXTURE_CUBE_MAP 0x8513
  701. #define GL_TEXTURE_CUBE_MAP_NEGATIVE_X 0x8516
  702. #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y 0x8518
  703. #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z 0x851a
  704. #define GL_TEXTURE_CUBE_MAP_POSITIVE_X 0x8515
  705. #define GL_TEXTURE_CUBE_MAP_POSITIVE_Y 0x8517
  706. #define GL_TEXTURE_CUBE_MAP_POSITIVE_Z 0x8519
  707. #define GL_TEXTURE_CUBE_MAP_SEAMLESS 0x884f
  708. #define GL_TEXTURE_DEPTH 0x8071
  709. #define GL_TEXTURE_DEPTH_SIZE 0x884a
  710. #define GL_TEXTURE_DEPTH_TYPE 0x8c16
  711. #define GL_TEXTURE_FIXED_SAMPLE_LOCATIONS 0x9107
  712. #define GL_TEXTURE_GREEN_SIZE 0x805d
  713. #define GL_TEXTURE_GREEN_TYPE 0x8c11
  714. #define GL_TEXTURE_HEIGHT 0x1001
  715. #define GL_TEXTURE_INTERNAL_FORMAT 0x1003
  716. #define GL_TEXTURE_LOD_BIAS 0x8501
  717. #define GL_TEXTURE_MAG_FILTER 0x2800
  718. #define GL_TEXTURE_MAX_LEVEL 0x813d
  719. #define GL_TEXTURE_MAX_LOD 0x813b
  720. #define GL_TEXTURE_MIN_FILTER 0x2801
  721. #define GL_TEXTURE_MIN_LOD 0x813a
  722. #define GL_TEXTURE_RECTANGLE 0x84f5
  723. #define GL_TEXTURE_RED_SIZE 0x805c
  724. #define GL_TEXTURE_RED_TYPE 0x8c10
  725. #define GL_TEXTURE_SAMPLES 0x9106
  726. #define GL_TEXTURE_SHARED_SIZE 0x8c3f
  727. #define GL_TEXTURE_STENCIL_SIZE 0x88f1
  728. #define GL_TEXTURE_WIDTH 0x1000
  729. #define GL_TEXTURE_WRAP_R 0x8072
  730. #define GL_TEXTURE_WRAP_S 0x2802
  731. #define GL_TEXTURE_WRAP_T 0x2803
  732. #define GL_TIMEOUT_EXPIRED 0x911b
  733. #define GL_TIMEOUT_IGNORED 0xffffffff
  734. #define GL_TRANSFORM_FEEDBACK_BUFFER 0x8c8e
  735. #define GL_TRANSFORM_FEEDBACK_BUFFER_BINDING 0x8c8f
  736. #define GL_TRANSFORM_FEEDBACK_BUFFER_MODE 0x8c7f
  737. #define GL_TRANSFORM_FEEDBACK_BUFFER_SIZE 0x8c85
  738. #define GL_TRANSFORM_FEEDBACK_BUFFER_START 0x8c84
  739. #define GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN 0x8c88
  740. #define GL_TRANSFORM_FEEDBACK_VARYINGS 0x8c83
  741. #define GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH 0x8c76
  742. #define GL_TRIANGLES 0x4
  743. #define GL_TRIANGLES_ADJACENCY 0xc
  744. #define GL_TRIANGLE_FAN 0x6
  745. #define GL_TRIANGLE_STRIP 0x5
  746. #define GL_TRIANGLE_STRIP_ADJACENCY 0xd
  747. #define GL_TRUE 0x1
  748. #define GL_UNIFORM_ARRAY_STRIDE 0x8a3c
  749. #define GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS 0x8a42
  750. #define GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES 0x8a43
  751. #define GL_UNIFORM_BLOCK_BINDING 0x8a3f
  752. #define GL_UNIFORM_BLOCK_DATA_SIZE 0x8a40
  753. #define GL_UNIFORM_BLOCK_INDEX 0x8a3a
  754. #define GL_UNIFORM_BLOCK_NAME_LENGTH 0x8a41
  755. #define GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER 0x8a46
  756. #define GL_UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER 0x8a45
  757. #define GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER 0x8a44
  758. #define GL_UNIFORM_BUFFER 0x8a11
  759. #define GL_UNIFORM_BUFFER_BINDING 0x8a28
  760. #define GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT 0x8a34
  761. #define GL_UNIFORM_BUFFER_SIZE 0x8a2a
  762. #define GL_UNIFORM_BUFFER_START 0x8a29
  763. #define GL_UNIFORM_IS_ROW_MAJOR 0x8a3e
  764. #define GL_UNIFORM_MATRIX_STRIDE 0x8a3d
  765. #define GL_UNIFORM_NAME_LENGTH 0x8a39
  766. #define GL_UNIFORM_OFFSET 0x8a3b
  767. #define GL_UNIFORM_SIZE 0x8a38
  768. #define GL_UNIFORM_TYPE 0x8a37
  769. #define GL_UNPACK_ALIGNMENT 0xcf5
  770. #define GL_UNPACK_IMAGE_HEIGHT 0x806e
  771. #define GL_UNPACK_LSB_FIRST 0xcf1
  772. #define GL_UNPACK_ROW_LENGTH 0xcf2
  773. #define GL_UNPACK_SKIP_IMAGES 0x806d
  774. #define GL_UNPACK_SKIP_PIXELS 0xcf4
  775. #define GL_UNPACK_SKIP_ROWS 0xcf3
  776. #define GL_UNPACK_SWAP_BYTES 0xcf0
  777. #define GL_UNSIGNALED 0x9118
  778. #define GL_UNSIGNED_BYTE 0x1401
  779. #define GL_UNSIGNED_BYTE_2_3_3_REV 0x8362
  780. #define GL_UNSIGNED_BYTE_3_3_2 0x8032
  781. #define GL_UNSIGNED_INT 0x1405
  782. #define GL_UNSIGNED_INT_10F_11F_11F_REV 0x8c3b
  783. #define GL_UNSIGNED_INT_10_10_10_2 0x8036
  784. #define GL_UNSIGNED_INT_24_8 0x84fa
  785. #define GL_UNSIGNED_INT_2_10_10_10_REV 0x8368
  786. #define GL_UNSIGNED_INT_5_9_9_9_REV 0x8c3e
  787. #define GL_UNSIGNED_INT_8_8_8_8 0x8035
  788. #define GL_UNSIGNED_INT_8_8_8_8_REV 0x8367
  789. #define GL_UNSIGNED_INT_SAMPLER_1D 0x8dd1
  790. #define GL_UNSIGNED_INT_SAMPLER_1D_ARRAY 0x8dd6
  791. #define GL_UNSIGNED_INT_SAMPLER_2D 0x8dd2
  792. #define GL_UNSIGNED_INT_SAMPLER_2D_ARRAY 0x8dd7
  793. #define GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE 0x910a
  794. #define GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910d
  795. #define GL_UNSIGNED_INT_SAMPLER_2D_RECT 0x8dd5
  796. #define GL_UNSIGNED_INT_SAMPLER_3D 0x8dd3
  797. #define GL_UNSIGNED_INT_SAMPLER_BUFFER 0x8dd8
  798. #define GL_UNSIGNED_INT_SAMPLER_CUBE 0x8dd4
  799. #define GL_UNSIGNED_INT_VEC2 0x8dc6
  800. #define GL_UNSIGNED_INT_VEC3 0x8dc7
  801. #define GL_UNSIGNED_INT_VEC4 0x8dc8
  802. #define GL_UNSIGNED_NORMALIZED 0x8c17
  803. #define GL_UNSIGNED_SHORT 0x1403
  804. #define GL_UNSIGNED_SHORT_1_5_5_5_REV 0x8366
  805. #define GL_UNSIGNED_SHORT_4_4_4_4 0x8033
  806. #define GL_UNSIGNED_SHORT_4_4_4_4_REV 0x8365
  807. #define GL_UNSIGNED_SHORT_5_5_5_1 0x8034
  808. #define GL_UNSIGNED_SHORT_5_6_5 0x8363
  809. #define GL_UNSIGNED_SHORT_5_6_5_REV 0x8364
  810. #define GL_UPPER_LEFT 0x8ca2
  811. #define GL_VALIDATE_STATUS 0x8b83
  812. #define GL_VENDOR 0x1f00
  813. #define GL_VERSION 0x1f02
  814. #define GL_VERTEX_ARRAY_BINDING 0x85b5
  815. #define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING 0x889f
  816. #define GL_VERTEX_ATTRIB_ARRAY_ENABLED 0x8622
  817. #define GL_VERTEX_ATTRIB_ARRAY_INTEGER 0x88fd
  818. #define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED 0x886a
  819. #define GL_VERTEX_ATTRIB_ARRAY_POINTER 0x8645
  820. #define GL_VERTEX_ATTRIB_ARRAY_SIZE 0x8623
  821. #define GL_VERTEX_ATTRIB_ARRAY_STRIDE 0x8624
  822. #define GL_VERTEX_ATTRIB_ARRAY_TYPE 0x8625
  823. #define GL_VERTEX_PROGRAM_POINT_SIZE 0x8642
  824. #define GL_VERTEX_SHADER 0x8b31
  825. #define GL_VIEWPORT 0xba2
  826. #define GL_WAIT_FAILED 0x911d
  827. #define GL_WRITE_ONLY 0x88b9
  828. #define GL_XOR 0x1506
  829. #define GL_ZERO 0x0
  830. #define glActiveTexture _glplatform_glActiveTexture
  831. extern void (*glActiveTexture)(GLenum);
  832. #define glAttachShader _glplatform_glAttachShader
  833. extern void (*glAttachShader)(GLuint, GLuint);
  834. #define glBeginConditionalRender _glplatform_glBeginConditionalRender
  835. extern void (*glBeginConditionalRender)(GLuint, GLenum);
  836. #define glBeginQuery _glplatform_glBeginQuery
  837. extern void (*glBeginQuery)(GLenum, GLuint);
  838. #define glBeginTransformFeedback _glplatform_glBeginTransformFeedback
  839. extern void (*glBeginTransformFeedback)(GLenum);
  840. #define glBindAttribLocation _glplatform_glBindAttribLocation
  841. extern void (*glBindAttribLocation)(GLuint, GLuint, const GLchar *);
  842. #define glBindBuffer _glplatform_glBindBuffer
  843. extern void (*glBindBuffer)(GLenum, GLuint);
  844. #define glBindBufferBase _glplatform_glBindBufferBase
  845. extern void (*glBindBufferBase)(GLenum, GLuint, GLuint);
  846. #define glBindBufferRange _glplatform_glBindBufferRange
  847. extern void (*glBindBufferRange)(GLenum, GLuint, GLuint, GLintptr, GLsizeiptr);
  848. #define glBindFragDataLocation _glplatform_glBindFragDataLocation
  849. extern void (*glBindFragDataLocation)(GLuint, GLuint, const GLchar *);
  850. #define glBindFramebuffer _glplatform_glBindFramebuffer
  851. extern void (*glBindFramebuffer)(GLenum, GLuint);
  852. #define glBindRenderbuffer _glplatform_glBindRenderbuffer
  853. extern void (*glBindRenderbuffer)(GLenum, GLuint);
  854. #define glBindTexture _glplatform_glBindTexture
  855. extern void (*glBindTexture)(GLenum, GLuint);
  856. #define glBindVertexArray _glplatform_glBindVertexArray
  857. extern void (*glBindVertexArray)(GLuint);
  858. #define glBlendColor _glplatform_glBlendColor
  859. extern void (*glBlendColor)(GLfloat, GLfloat, GLfloat, GLfloat);
  860. #define glBlendEquation _glplatform_glBlendEquation
  861. extern void (*glBlendEquation)(GLenum);
  862. #define glBlendEquationSeparate _glplatform_glBlendEquationSeparate
  863. extern void (*glBlendEquationSeparate)(GLenum, GLenum);
  864. #define glBlendFunc _glplatform_glBlendFunc
  865. extern void (*glBlendFunc)(GLenum, GLenum);
  866. #define glBlendFuncSeparate _glplatform_glBlendFuncSeparate
  867. extern void (*glBlendFuncSeparate)(GLenum, GLenum, GLenum, GLenum);
  868. #define glBlitFramebuffer _glplatform_glBlitFramebuffer
  869. extern void (*glBlitFramebuffer)(GLint, GLint, GLint, GLint, GLint, GLint, GLint, GLint, GLbitfield, GLenum);
  870. #define glBufferData _glplatform_glBufferData
  871. extern void (*glBufferData)(GLenum, GLsizeiptr, const void *, GLenum);
  872. #define glBufferSubData _glplatform_glBufferSubData
  873. extern void (*glBufferSubData)(GLenum, GLintptr, GLsizeiptr, const void *);
  874. #define glCheckFramebufferStatus _glplatform_glCheckFramebufferStatus
  875. extern GLenum (*glCheckFramebufferStatus)(GLenum);
  876. #define glClampColor _glplatform_glClampColor
  877. extern void (*glClampColor)(GLenum, GLenum);
  878. #define glClear _glplatform_glClear
  879. extern void (*glClear)(GLbitfield);
  880. #define glClearBufferfi _glplatform_glClearBufferfi
  881. extern void (*glClearBufferfi)(GLenum, GLint, GLfloat, GLint);
  882. #define glClearBufferfv _glplatform_glClearBufferfv
  883. extern void (*glClearBufferfv)(GLenum, GLint, const GLfloat *);
  884. #define glClearBufferiv _glplatform_glClearBufferiv
  885. extern void (*glClearBufferiv)(GLenum, GLint, const GLint *);
  886. #define glClearBufferuiv _glplatform_glClearBufferuiv
  887. extern void (*glClearBufferuiv)(GLenum, GLint, const GLuint *);
  888. #define glClearColor _glplatform_glClearColor
  889. extern void (*glClearColor)(GLfloat, GLfloat, GLfloat, GLfloat);
  890. #define glClearDepth _glplatform_glClearDepth
  891. extern void (*glClearDepth)(GLdouble);
  892. #define glClearStencil _glplatform_glClearStencil
  893. extern void (*glClearStencil)(GLint);
  894. #define glClientWaitSync _glplatform_glClientWaitSync
  895. extern GLenum (*glClientWaitSync)(GLsync, GLbitfield, GLuint64);
  896. #define glColorMask _glplatform_glColorMask
  897. extern void (*glColorMask)(GLboolean, GLboolean, GLboolean, GLboolean);
  898. #define glColorMaski _glplatform_glColorMaski
  899. extern void (*glColorMaski)(GLuint, GLboolean, GLboolean, GLboolean, GLboolean);
  900. #define glCompileShader _glplatform_glCompileShader
  901. extern void (*glCompileShader)(GLuint);
  902. #define glCompressedTexImage1D _glplatform_glCompressedTexImage1D
  903. extern void (*glCompressedTexImage1D)(GLenum, GLint, GLenum, GLsizei, GLint, GLsizei, const void *);
  904. #define glCompressedTexImage2D _glplatform_glCompressedTexImage2D
  905. extern void (*glCompressedTexImage2D)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLint, GLsizei, const void *);
  906. #define glCompressedTexImage3D _glplatform_glCompressedTexImage3D
  907. extern void (*glCompressedTexImage3D)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLsizei, const void *);
  908. #define glCompressedTexSubImage1D _glplatform_glCompressedTexSubImage1D
  909. extern void (*glCompressedTexSubImage1D)(GLenum, GLint, GLint, GLsizei, GLenum, GLsizei, const void *);
  910. #define glCompressedTexSubImage2D _glplatform_glCompressedTexSubImage2D
  911. extern void (*glCompressedTexSubImage2D)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLsizei, const void *);
  912. #define glCompressedTexSubImage3D _glplatform_glCompressedTexSubImage3D
  913. extern void (*glCompressedTexSubImage3D)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLsizei, const void *);
  914. #define glCopyBufferSubData _glplatform_glCopyBufferSubData
  915. extern void (*glCopyBufferSubData)(GLenum, GLenum, GLintptr, GLintptr, GLsizeiptr);
  916. #define glCopyTexImage1D _glplatform_glCopyTexImage1D
  917. extern void (*glCopyTexImage1D)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLint);
  918. #define glCopyTexImage2D _glplatform_glCopyTexImage2D
  919. extern void (*glCopyTexImage2D)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLsizei, GLint);
  920. #define glCopyTexSubImage1D _glplatform_glCopyTexSubImage1D
  921. extern void (*glCopyTexSubImage1D)(GLenum, GLint, GLint, GLint, GLint, GLsizei);
  922. #define glCopyTexSubImage2D _glplatform_glCopyTexSubImage2D
  923. extern void (*glCopyTexSubImage2D)(GLenum, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei);
  924. #define glCopyTexSubImage3D _glplatform_glCopyTexSubImage3D
  925. extern void (*glCopyTexSubImage3D)(GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei);
  926. #define glCreateProgram _glplatform_glCreateProgram
  927. extern GLuint (*glCreateProgram)();
  928. #define glCreateShader _glplatform_glCreateShader
  929. extern GLuint (*glCreateShader)(GLenum);
  930. #define glCullFace _glplatform_glCullFace
  931. extern void (*glCullFace)(GLenum);
  932. #define glDeleteBuffers _glplatform_glDeleteBuffers
  933. extern void (*glDeleteBuffers)(GLsizei, const GLuint *);
  934. #define glDeleteFramebuffers _glplatform_glDeleteFramebuffers
  935. extern void (*glDeleteFramebuffers)(GLsizei, const GLuint *);
  936. #define glDeleteProgram _glplatform_glDeleteProgram
  937. extern void (*glDeleteProgram)(GLuint);
  938. #define glDeleteQueries _glplatform_glDeleteQueries
  939. extern void (*glDeleteQueries)(GLsizei, const GLuint *);
  940. #define glDeleteRenderbuffers _glplatform_glDeleteRenderbuffers
  941. extern void (*glDeleteRenderbuffers)(GLsizei, const GLuint *);
  942. #define glDeleteShader _glplatform_glDeleteShader
  943. extern void (*glDeleteShader)(GLuint);
  944. #define glDeleteSync _glplatform_glDeleteSync
  945. extern void (*glDeleteSync)(GLsync);
  946. #define glDeleteTextures _glplatform_glDeleteTextures
  947. extern void (*glDeleteTextures)(GLsizei, const GLuint *);
  948. #define glDeleteVertexArrays _glplatform_glDeleteVertexArrays
  949. extern void (*glDeleteVertexArrays)(GLsizei, const GLuint *);
  950. #define glDepthFunc _glplatform_glDepthFunc
  951. extern void (*glDepthFunc)(GLenum);
  952. #define glDepthMask _glplatform_glDepthMask
  953. extern void (*glDepthMask)(GLboolean);
  954. #define glDepthRange _glplatform_glDepthRange
  955. extern void (*glDepthRange)(GLdouble, GLdouble);
  956. #define glDetachShader _glplatform_glDetachShader
  957. extern void (*glDetachShader)(GLuint, GLuint);
  958. #define glDisable _glplatform_glDisable
  959. extern void (*glDisable)(GLenum);
  960. #define glDisableVertexAttribArray _glplatform_glDisableVertexAttribArray
  961. extern void (*glDisableVertexAttribArray)(GLuint);
  962. #define glDisablei _glplatform_glDisablei
  963. extern void (*glDisablei)(GLenum, GLuint);
  964. #define glDrawArrays _glplatform_glDrawArrays
  965. extern void (*glDrawArrays)(GLenum, GLint, GLsizei);
  966. #define glDrawArraysInstanced _glplatform_glDrawArraysInstanced
  967. extern void (*glDrawArraysInstanced)(GLenum, GLint, GLsizei, GLsizei);
  968. #define glDrawBuffer _glplatform_glDrawBuffer
  969. extern void (*glDrawBuffer)(GLenum);
  970. #define glDrawBuffers _glplatform_glDrawBuffers
  971. extern void (*glDrawBuffers)(GLsizei, const GLenum *);
  972. #define glDrawElements _glplatform_glDrawElements
  973. extern void (*glDrawElements)(GLenum, GLsizei, GLenum, const void *);
  974. #define glDrawElementsBaseVertex _glplatform_glDrawElementsBaseVertex
  975. extern void (*glDrawElementsBaseVertex)(GLenum, GLsizei, GLenum, const void *, GLint);
  976. #define glDrawElementsInstanced _glplatform_glDrawElementsInstanced
  977. extern void (*glDrawElementsInstanced)(GLenum, GLsizei, GLenum, const void *, GLsizei);
  978. #define glDrawElementsInstancedBaseVertex _glplatform_glDrawElementsInstancedBaseVertex
  979. extern void (*glDrawElementsInstancedBaseVertex)(GLenum, GLsizei, GLenum, const void *, GLsizei, GLint);
  980. #define glDrawRangeElements _glplatform_glDrawRangeElements
  981. extern void (*glDrawRangeElements)(GLenum, GLuint, GLuint, GLsizei, GLenum, const void *);
  982. #define glDrawRangeElementsBaseVertex _glplatform_glDrawRangeElementsBaseVertex
  983. extern void (*glDrawRangeElementsBaseVertex)(GLenum, GLuint, GLuint, GLsizei, GLenum, const void *, GLint);
  984. #define glEnable _glplatform_glEnable
  985. extern void (*glEnable)(GLenum);
  986. #define glEnableVertexAttribArray _glplatform_glEnableVertexAttribArray
  987. extern void (*glEnableVertexAttribArray)(GLuint);
  988. #define glEnablei _glplatform_glEnablei
  989. extern void (*glEnablei)(GLenum, GLuint);
  990. #define glEndConditionalRender _glplatform_glEndConditionalRender
  991. extern void (*glEndConditionalRender)();
  992. #define glEndQuery _glplatform_glEndQuery
  993. extern void (*glEndQuery)(GLenum);
  994. #define glEndTransformFeedback _glplatform_glEndTransformFeedback
  995. extern void (*glEndTransformFeedback)();
  996. #define glFenceSync _glplatform_glFenceSync
  997. extern GLsync (*glFenceSync)(GLenum, GLbitfield);
  998. #define glFinish _glplatform_glFinish
  999. extern void (*glFinish)();
  1000. #define glFlush _glplatform_glFlush
  1001. extern void (*glFlush)();
  1002. #define glFlushMappedBufferRange _glplatform_glFlushMappedBufferRange
  1003. extern void (*glFlushMappedBufferRange)(GLenum, GLintptr, GLsizeiptr);
  1004. #define glFramebufferRenderbuffer _glplatform_glFramebufferRenderbuffer
  1005. extern void (*glFramebufferRenderbuffer)(GLenum, GLenum, GLenum, GLuint);
  1006. #define glFramebufferTexture _glplatform_glFramebufferTexture
  1007. extern void (*glFramebufferTexture)(GLenum, GLenum, GLuint, GLint);
  1008. #define glFramebufferTexture1D _glplatform_glFramebufferTexture1D
  1009. extern void (*glFramebufferTexture1D)(GLenum, GLenum, GLenum, GLuint, GLint);
  1010. #define glFramebufferTexture2D _glplatform_glFramebufferTexture2D
  1011. extern void (*glFramebufferTexture2D)(GLenum, GLenum, GLenum, GLuint, GLint);
  1012. #define glFramebufferTexture3D _glplatform_glFramebufferTexture3D
  1013. extern void (*glFramebufferTexture3D)(GLenum, GLenum, GLenum, GLuint, GLint, GLint);
  1014. #define glFramebufferTextureLayer _glplatform_glFramebufferTextureLayer
  1015. extern void (*glFramebufferTextureLayer)(GLenum, GLenum, GLuint, GLint, GLint);
  1016. #define glFrontFace _glplatform_glFrontFace
  1017. extern void (*glFrontFace)(GLenum);
  1018. #define glGenBuffers _glplatform_glGenBuffers
  1019. extern void (*glGenBuffers)(GLsizei, GLuint *);
  1020. #define glGenFramebuffers _glplatform_glGenFramebuffers
  1021. extern void (*glGenFramebuffers)(GLsizei, GLuint *);
  1022. #define glGenQueries _glplatform_glGenQueries
  1023. extern void (*glGenQueries)(GLsizei, GLuint *);
  1024. #define glGenRenderbuffers _glplatform_glGenRenderbuffers
  1025. extern void (*glGenRenderbuffers)(GLsizei, GLuint *);
  1026. #define glGenTextures _glplatform_glGenTextures
  1027. extern void (*glGenTextures)(GLsizei, GLuint *);
  1028. #define glGenVertexArrays _glplatform_glGenVertexArrays
  1029. extern void (*glGenVertexArrays)(GLsizei, GLuint *);
  1030. #define glGenerateMipmap _glplatform_glGenerateMipmap
  1031. extern void (*glGenerateMipmap)(GLenum);
  1032. #define glGetActiveAttrib _glplatform_glGetActiveAttrib
  1033. extern void (*glGetActiveAttrib)(GLuint, GLuint, GLsizei, GLsizei *, GLint *, GLenum *, GLchar *);
  1034. #define glGetActiveUniform _glplatform_glGetActiveUniform
  1035. extern void (*glGetActiveUniform)(GLuint, GLuint, GLsizei, GLsizei *, GLint *, GLenum *, GLchar *);
  1036. #define glGetActiveUniformBlockName _glplatform_glGetActiveUniformBlockName
  1037. extern void (*glGetActiveUniformBlockName)(GLuint, GLuint, GLsizei, GLsizei *, GLchar *);
  1038. #define glGetActiveUniformBlockiv _glplatform_glGetActiveUniformBlockiv
  1039. extern void (*glGetActiveUniformBlockiv)(GLuint, GLuint, GLenum, GLint *);
  1040. #define glGetActiveUniformName _glplatform_glGetActiveUniformName
  1041. extern void (*glGetActiveUniformName)(GLuint, GLuint, GLsizei, GLsizei *, GLchar *);
  1042. #define glGetActiveUniformsiv _glplatform_glGetActiveUniformsiv
  1043. extern void (*glGetActiveUniformsiv)(GLuint, GLsizei, const GLuint *, GLenum, GLint *);
  1044. #define glGetAttachedShaders _glplatform_glGetAttachedShaders
  1045. extern void (*glGetAttachedShaders)(GLuint, GLsizei, GLsizei *, GLuint *);
  1046. #define glGetAttribLocation _glplatform_glGetAttribLocation
  1047. extern GLint (*glGetAttribLocation)(GLuint, const GLchar *);
  1048. #define glGetBooleani_v _glplatform_glGetBooleani_v
  1049. extern void (*glGetBooleani_v)(GLenum, GLuint, GLboolean *);
  1050. #define glGetBooleanv _glplatform_glGetBooleanv
  1051. extern void (*glGetBooleanv)(GLenum, GLboolean *);
  1052. #define glGetBufferParameteri64v _glplatform_glGetBufferParameteri64v
  1053. extern void (*glGetBufferParameteri64v)(GLenum, GLenum, GLint64 *);
  1054. #define glGetBufferParameteriv _glplatform_glGetBufferParameteriv
  1055. extern void (*glGetBufferParameteriv)(GLenum, GLenum, GLint *);
  1056. #define glGetBufferPointerv _glplatform_glGetBufferPointerv
  1057. extern void (*glGetBufferPointerv)(GLenum, GLenum, void **);
  1058. #define glGetBufferSubData _glplatform_glGetBufferSubData
  1059. extern void (*glGetBufferSubData)(GLenum, GLintptr, GLsizeiptr, void *);
  1060. #define glGetCompressedTexImage _glplatform_glGetCompressedTexImage
  1061. extern void (*glGetCompressedTexImage)(GLenum, GLint, void *);
  1062. #define glGetDoublev _glplatform_glGetDoublev
  1063. extern void (*glGetDoublev)(GLenum, GLdouble *);
  1064. #define glGetError _glplatform_glGetError
  1065. extern GLenum (*glGetError)();
  1066. #define glGetFloatv _glplatform_glGetFloatv
  1067. extern void (*glGetFloatv)(GLenum, GLfloat *);
  1068. #define glGetFragDataLocation _glplatform_glGetFragDataLocation
  1069. extern GLint (*glGetFragDataLocation)(GLuint, const GLchar *);
  1070. #define glGetFramebufferAttachmentParameteriv _glplatform_glGetFramebufferAttachmentParameteriv
  1071. extern void (*glGetFramebufferAttachmentParameteriv)(GLenum, GLenum, GLenum, GLint *);
  1072. #define glGetInteger64i_v _glplatform_glGetInteger64i_v
  1073. extern void (*glGetInteger64i_v)(GLenum, GLuint, GLint64 *);
  1074. #define glGetInteger64v _glplatform_glGetInteger64v
  1075. extern void (*glGetInteger64v)(GLenum, GLint64 *);
  1076. #define glGetIntegeri_v _glplatform_glGetIntegeri_v
  1077. extern void (*glGetIntegeri_v)(GLenum, GLuint, GLint *);
  1078. #define glGetIntegerv _glplatform_glGetIntegerv
  1079. extern void (*glGetIntegerv)(GLenum, GLint *);
  1080. #define glGetMultisamplefv _glplatform_glGetMultisamplefv
  1081. extern void (*glGetMultisamplefv)(GLenum, GLuint, GLfloat *);
  1082. #define glGetProgramInfoLog _glplatform_glGetProgramInfoLog
  1083. extern void (*glGetProgramInfoLog)(GLuint, GLsizei, GLsizei *, GLchar *);
  1084. #define glGetProgramiv _glplatform_glGetProgramiv
  1085. extern void (*glGetProgramiv)(GLuint, GLenum, GLint *);
  1086. #define glGetQueryObjectiv _glplatform_glGetQueryObjectiv
  1087. extern void (*glGetQueryObjectiv)(GLuint, GLenum, GLint *);
  1088. #define glGetQueryObjectuiv _glplatform_glGetQueryObjectuiv
  1089. extern void (*glGetQueryObjectuiv)(GLuint, GLenum, GLuint *);
  1090. #define glGetQueryiv _glplatform_glGetQueryiv
  1091. extern void (*glGetQueryiv)(GLenum, GLenum, GLint *);
  1092. #define glGetRenderbufferParameteriv _glplatform_glGetRenderbufferParameteriv
  1093. extern void (*glGetRenderbufferParameteriv)(GLenum, GLenum, GLint *);
  1094. #define glGetShaderInfoLog _glplatform_glGetShaderInfoLog
  1095. extern void (*glGetShaderInfoLog)(GLuint, GLsizei, GLsizei *, GLchar *);
  1096. #define glGetShaderSource _glplatform_glGetShaderSource
  1097. extern void (*glGetShaderSource)(GLuint, GLsizei, GLsizei *, GLchar *);
  1098. #define glGetShaderiv _glplatform_glGetShaderiv
  1099. extern void (*glGetShaderiv)(GLuint, GLenum, GLint *);
  1100. #define glGetString _glplatform_glGetString
  1101. extern const GLubyte * (*glGetString)(GLenum);
  1102. #define glGetStringi _glplatform_glGetStringi
  1103. extern const GLubyte * (*glGetStringi)(GLenum, GLuint);
  1104. #define glGetSynciv _glplatform_glGetSynciv
  1105. extern void (*glGetSynciv)(GLsync, GLenum, GLsizei, GLsizei *, GLint *);
  1106. #define glGetTexImage _glplatform_glGetTexImage
  1107. extern void (*glGetTexImage)(GLenum, GLint, GLenum, GLenum, void *);
  1108. #define glGetTexLevelParameterfv _glplatform_glGetTexLevelParameterfv
  1109. extern void (*glGetTexLevelParameterfv)(GLenum, GLint, GLenum, GLfloat *);
  1110. #define glGetTexLevelParameteriv _glplatform_glGetTexLevelParameteriv
  1111. extern void (*glGetTexLevelParameteriv)(GLenum, GLint, GLenum, GLint *);
  1112. #define glGetTexParameterIiv _glplatform_glGetTexParameterIiv
  1113. extern void (*glGetTexParameterIiv)(GLenum, GLenum, GLint *);
  1114. #define glGetTexParameterIuiv _glplatform_glGetTexParameterIuiv
  1115. extern void (*glGetTexParameterIuiv)(GLenum, GLenum, GLuint *);
  1116. #define glGetTexParameterfv _glplatform_glGetTexParameterfv
  1117. extern void (*glGetTexParameterfv)(GLenum, GLenum, GLfloat *);
  1118. #define glGetTexParameteriv _glplatform_glGetTexParameteriv
  1119. extern void (*glGetTexParameteriv)(GLenum, GLenum, GLint *);
  1120. #define glGetTransformFeedbackVarying _glplatform_glGetTransformFeedbackVarying
  1121. extern void (*glGetTransformFeedbackVarying)(GLuint, GLuint, GLsizei, GLsizei *, GLsizei *, GLenum *, GLchar *);
  1122. #define glGetUniformBlockIndex _glplatform_glGetUniformBlockIndex
  1123. extern GLuint (*glGetUniformBlockIndex)(GLuint, const GLchar *);
  1124. #define glGetUniformIndices _glplatform_glGetUniformIndices
  1125. extern void (*glGetUniformIndices)(GLuint, GLsizei, const GLchar *const*, GLuint *);
  1126. #define glGetUniformLocation _glplatform_glGetUniformLocation
  1127. extern GLint (*glGetUniformLocation)(GLuint, const GLchar *);
  1128. #define glGetUniformfv _glplatform_glGetUniformfv
  1129. extern void (*glGetUniformfv)(GLuint, GLint, GLfloat *);
  1130. #define glGetUniformiv _glplatform_glGetUniformiv
  1131. extern void (*glGetUniformiv)(GLuint, GLint, GLint *);
  1132. #define glGetUniformuiv _glplatform_glGetUniformuiv
  1133. extern void (*glGetUniformuiv)(GLuint, GLint, GLuint *);
  1134. #define glGetVertexAttribIiv _glplatform_glGetVertexAttribIiv
  1135. extern void (*glGetVertexAttribIiv)(GLuint, GLenum, GLint *);
  1136. #define glGetVertexAttribIuiv _glplatform_glGetVertexAttribIuiv
  1137. extern void (*glGetVertexAttribIuiv)(GLuint, GLenum, GLuint *);
  1138. #define glGetVertexAttribPointerv _glplatform_glGetVertexAttribPointerv
  1139. extern void (*glGetVertexAttribPointerv)(GLuint, GLenum, void **);
  1140. #define glGetVertexAttribdv _glplatform_glGetVertexAttribdv
  1141. extern void (*glGetVertexAttribdv)(GLuint, GLenum, GLdouble *);
  1142. #define glGetVertexAttribfv _glplatform_glGetVertexAttribfv
  1143. extern void (*glGetVertexAttribfv)(GLuint, GLenum, GLfloat *);
  1144. #define glGetVertexAttribiv _glplatform_glGetVertexAttribiv
  1145. extern void (*glGetVertexAttribiv)(GLuint, GLenum, GLint *);
  1146. #define glHint _glplatform_glHint
  1147. extern void (*glHint)(GLenum, GLenum);
  1148. #define glIsBuffer _glplatform_glIsBuffer
  1149. extern GLboolean (*glIsBuffer)(GLuint);
  1150. #define glIsEnabled _glplatform_glIsEnabled
  1151. extern GLboolean (*glIsEnabled)(GLenum);
  1152. #define glIsEnabledi _glplatform_glIsEnabledi
  1153. extern GLboolean (*glIsEnabledi)(GLenum, GLuint);
  1154. #define glIsFramebuffer _glplatform_glIsFramebuffer
  1155. extern GLboolean (*glIsFramebuffer)(GLuint);
  1156. #define glIsProgram _glplatform_glIsProgram
  1157. extern GLboolean (*glIsProgram)(GLuint);
  1158. #define glIsQuery _glplatform_glIsQuery
  1159. extern GLboolean (*glIsQuery)(GLuint);
  1160. #define glIsRenderbuffer _glplatform_glIsRenderbuffer
  1161. extern GLboolean (*glIsRenderbuffer)(GLuint);
  1162. #define glIsShader _glplatform_glIsShader
  1163. extern GLboolean (*glIsShader)(GLuint);
  1164. #define glIsSync _glplatform_glIsSync
  1165. extern GLboolean (*glIsSync)(GLsync);
  1166. #define glIsTexture _glplatform_glIsTexture
  1167. extern GLboolean (*glIsTexture)(GLuint);
  1168. #define glIsVertexArray _glplatform_glIsVertexArray
  1169. extern GLboolean (*glIsVertexArray)(GLuint);
  1170. #define glLineWidth _glplatform_glLineWidth
  1171. extern void (*glLineWidth)(GLfloat);
  1172. #define glLinkProgram _glplatform_glLinkProgram
  1173. extern void (*glLinkProgram)(GLuint);
  1174. #define glLogicOp _glplatform_glLogicOp
  1175. extern void (*glLogicOp)(GLenum);
  1176. #define glMapBuffer _glplatform_glMapBuffer
  1177. extern void * (*glMapBuffer)(GLenum, GLenum);
  1178. #define glMapBufferRange _glplatform_glMapBufferRange
  1179. extern void * (*glMapBufferRange)(GLenum, GLintptr, GLsizeiptr, GLbitfield);
  1180. #define glMultiDrawArrays _glplatform_glMultiDrawArrays
  1181. extern void (*glMultiDrawArrays)(GLenum, const GLint *, const GLsizei *, GLsizei);
  1182. #define glMultiDrawElements _glplatform_glMultiDrawElements
  1183. extern void (*glMultiDrawElements)(GLenum, const GLsizei *, GLenum, const void *const*, GLsizei);
  1184. #define glMultiDrawElementsBaseVertex _glplatform_glMultiDrawElementsBaseVertex
  1185. extern void (*glMultiDrawElementsBaseVertex)(GLenum, const GLsizei *, GLenum, const void *const*, GLsizei, const GLint *);
  1186. #define glPixelStoref _glplatform_glPixelStoref
  1187. extern void (*glPixelStoref)(GLenum, GLfloat);
  1188. #define glPixelStorei _glplatform_glPixelStorei
  1189. extern void (*glPixelStorei)(GLenum, GLint);
  1190. #define glPointParameterf _glplatform_glPointParameterf
  1191. extern void (*glPointParameterf)(GLenum, GLfloat);
  1192. #define glPointParameterfv _glplatform_glPointParameterfv
  1193. extern void (*glPointParameterfv)(GLenum, const GLfloat *);
  1194. #define glPointParameteri _glplatform_glPointParameteri
  1195. extern void (*glPointParameteri)(GLenum, GLint);
  1196. #define glPointParameteriv _glplatform_glPointParameteriv
  1197. extern void (*glPointParameteriv)(GLenum, const GLint *);
  1198. #define glPointSize _glplatform_glPointSize
  1199. extern void (*glPointSize)(GLfloat);
  1200. #define glPolygonMode _glplatform_glPolygonMode
  1201. extern void (*glPolygonMode)(GLenum, GLenum);
  1202. #define glPolygonOffset _glplatform_glPolygonOffset
  1203. extern void (*glPolygonOffset)(GLfloat, GLfloat);
  1204. #define glPrimitiveRestartIndex _glplatform_glPrimitiveRestartIndex
  1205. extern void (*glPrimitiveRestartIndex)(GLuint);
  1206. #define glProvokingVertex _glplatform_glProvokingVertex
  1207. extern void (*glProvokingVertex)(GLenum);
  1208. #define glReadBuffer _glplatform_glReadBuffer
  1209. extern void (*glReadBuffer)(GLenum);
  1210. #define glReadPixels _glplatform_glReadPixels
  1211. extern void (*glReadPixels)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, void *);
  1212. #define glRenderbufferStorage _glplatform_glRenderbufferStorage
  1213. extern void (*glRenderbufferStorage)(GLenum, GLenum, GLsizei, GLsizei);
  1214. #define glRenderbufferStorageMultisample _glplatform_glRenderbufferStorageMultisample
  1215. extern void (*glRenderbufferStorageMultisample)(GLenum, GLsizei, GLenum, GLsizei, GLsizei);
  1216. #define glSampleCoverage _glplatform_glSampleCoverage
  1217. extern void (*glSampleCoverage)(GLfloat, GLboolean);
  1218. #define glSampleMaski _glplatform_glSampleMaski
  1219. extern void (*glSampleMaski)(GLuint, GLbitfield);
  1220. #define glScissor _glplatform_glScissor
  1221. extern void (*glScissor)(GLint, GLint, GLsizei, GLsizei);
  1222. #define glShaderSource _glplatform_glShaderSource
  1223. extern void (*glShaderSource)(GLuint, GLsizei, const GLchar *const*, const GLint *);
  1224. #define glStencilFunc _glplatform_glStencilFunc
  1225. extern void (*glStencilFunc)(GLenum, GLint, GLuint);
  1226. #define glStencilFuncSeparate _glplatform_glStencilFuncSeparate
  1227. extern void (*glStencilFuncSeparate)(GLenum, GLenum, GLint, GLuint);
  1228. #define glStencilMask _glplatform_glStencilMask
  1229. extern void (*glStencilMask)(GLuint);
  1230. #define glStencilMaskSeparate _glplatform_glStencilMaskSeparate
  1231. extern void (*glStencilMaskSeparate)(GLenum, GLuint);
  1232. #define glStencilOp _glplatform_glStencilOp
  1233. extern void (*glStencilOp)(GLenum, GLenum, GLenum);
  1234. #define glStencilOpSeparate _glplatform_glStencilOpSeparate
  1235. extern void (*glStencilOpSeparate)(GLenum, GLenum, GLenum, GLenum);
  1236. #define glTexBuffer _glplatform_glTexBuffer
  1237. extern void (*glTexBuffer)(GLenum, GLenum, GLuint);
  1238. #define glTexImage1D _glplatform_glTexImage1D
  1239. extern void (*glTexImage1D)(GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const void *);
  1240. #define glTexImage2D _glplatform_glTexImage2D
  1241. extern void (*glTexImage2D)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const void *);
  1242. #define glTexImage2DMultisample _glplatform_glTexImage2DMultisample
  1243. extern void (*glTexImage2DMultisample)(GLenum, GLsizei, GLenum, GLsizei, GLsizei, GLboolean);
  1244. #define glTexImage3D _glplatform_glTexImage3D
  1245. extern void (*glTexImage3D)(GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const void *);
  1246. #define glTexImage3DMultisample _glplatform_glTexImage3DMultisample
  1247. extern void (*glTexImage3DMultisample)(GLenum, GLsizei, GLenum, GLsizei, GLsizei, GLsizei, GLboolean);
  1248. #define glTexParameterIiv _glplatform_glTexParameterIiv
  1249. extern void (*glTexParameterIiv)(GLenum, GLenum, const GLint *);
  1250. #define glTexParameterIuiv _glplatform_glTexParameterIuiv
  1251. extern void (*glTexParameterIuiv)(GLenum, GLenum, const GLuint *);
  1252. #define glTexParameterf _glplatform_glTexParameterf
  1253. extern void (*glTexParameterf)(GLenum, GLenum, GLfloat);
  1254. #define glTexParameterfv _glplatform_glTexParameterfv
  1255. extern void (*glTexParameterfv)(GLenum, GLenum, const GLfloat *);
  1256. #define glTexParameteri _glplatform_glTexParameteri
  1257. extern void (*glTexParameteri)(GLenum, GLenum, GLint);
  1258. #define glTexParameteriv _glplatform_glTexParameteriv
  1259. extern void (*glTexParameteriv)(GLenum, GLenum, const GLint *);
  1260. #define glTexSubImage1D _glplatform_glTexSubImage1D
  1261. extern void (*glTexSubImage1D)(GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const void *);
  1262. #define glTexSubImage2D _glplatform_glTexSubImage2D
  1263. extern void (*glTexSubImage2D)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const void *);
  1264. #define glTexSubImage3D _glplatform_glTexSubImage3D
  1265. extern void (*glTexSubImage3D)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const void *);
  1266. #define glTransformFeedbackVaryings _glplatform_glTransformFeedbackVaryings
  1267. extern void (*glTransformFeedbackVaryings)(GLuint, GLsizei, const GLchar *const*, GLenum);
  1268. #define glUniform1f _glplatform_glUniform1f
  1269. extern void (*glUniform1f)(GLint, GLfloat);
  1270. #define glUniform1fv _glplatform_glUniform1fv
  1271. extern void (*glUniform1fv)(GLint, GLsizei, const GLfloat *);
  1272. #define glUniform1i _glplatform_glUniform1i
  1273. extern void (*glUniform1i)(GLint, GLint);
  1274. #define glUniform1iv _glplatform_glUniform1iv
  1275. extern void (*glUniform1iv)(GLint, GLsizei, const GLint *);
  1276. #define glUniform1ui _glplatform_glUniform1ui
  1277. extern void (*glUniform1ui)(GLint, GLuint);
  1278. #define glUniform1uiv _glplatform_glUniform1uiv
  1279. extern void (*glUniform1uiv)(GLint, GLsizei, const GLuint *);
  1280. #define glUniform2f _glplatform_glUniform2f
  1281. extern void (*glUniform2f)(GLint, GLfloat, GLfloat);
  1282. #define glUniform2fv _glplatform_glUniform2fv
  1283. extern void (*glUniform2fv)(GLint, GLsizei, const GLfloat *);
  1284. #define glUniform2i _glplatform_glUniform2i
  1285. extern void (*glUniform2i)(GLint, GLint, GLint);
  1286. #define glUniform2iv _glplatform_glUniform2iv
  1287. extern void (*glUniform2iv)(GLint, GLsizei, const GLint *);
  1288. #define glUniform2ui _glplatform_glUniform2ui
  1289. extern void (*glUniform2ui)(GLint, GLuint, GLuint);
  1290. #define glUniform2uiv _glplatform_glUniform2uiv
  1291. extern void (*glUniform2uiv)(GLint, GLsizei, const GLuint *);
  1292. #define glUniform3f _glplatform_glUniform3f
  1293. extern void (*glUniform3f)(GLint, GLfloat, GLfloat, GLfloat);
  1294. #define glUniform3fv _glplatform_glUniform3fv
  1295. extern void (*glUniform3fv)(GLint, GLsizei, const GLfloat *);
  1296. #define glUniform3i _glplatform_glUniform3i
  1297. extern void (*glUniform3i)(GLint, GLint, GLint, GLint);
  1298. #define glUniform3iv _glplatform_glUniform3iv
  1299. extern void (*glUniform3iv)(GLint, GLsizei, const GLint *);
  1300. #define glUniform3ui _glplatform_glUniform3ui
  1301. extern void (*glUniform3ui)(GLint, GLuint, GLuint, GLuint);
  1302. #define glUniform3uiv _glplatform_glUniform3uiv
  1303. extern void (*glUniform3uiv)(GLint, GLsizei, const GLuint *);
  1304. #define glUniform4f _glplatform_glUniform4f
  1305. extern void (*glUniform4f)(GLint, GLfloat, GLfloat, GLfloat, GLfloat);
  1306. #define glUniform4fv _glplatform_glUniform4fv
  1307. extern void (*glUniform4fv)(GLint, GLsizei, const GLfloat *);
  1308. #define glUniform4i _glplatform_glUniform4i
  1309. extern void (*glUniform4i)(GLint, GLint, GLint, GLint, GLint);
  1310. #define glUniform4iv _glplatform_glUniform4iv
  1311. extern void (*glUniform4iv)(GLint, GLsizei, const GLint *);
  1312. #define glUniform4ui _glplatform_glUniform4ui
  1313. extern void (*glUniform4ui)(GLint, GLuint, GLuint, GLuint, GLuint);
  1314. #define glUniform4uiv _glplatform_glUniform4uiv
  1315. extern void (*glUniform4uiv)(GLint, GLsizei, const GLuint *);
  1316. #define glUniformBlockBinding _glplatform_glUniformBlockBinding
  1317. extern void (*glUniformBlockBinding)(GLuint, GLuint, GLuint);
  1318. #define glUniformMatrix2fv _glplatform_glUniformMatrix2fv
  1319. extern void (*glUniformMatrix2fv)(GLint, GLsizei, GLboolean, const GLfloat *);
  1320. #define glUniformMatrix2x3fv _glplatform_glUniformMatrix2x3fv
  1321. extern void (*glUniformMatrix2x3fv)(GLint, GLsizei, GLboolean, const GLfloat *);
  1322. #define glUniformMatrix2x4fv _glplatform_glUniformMatrix2x4fv
  1323. extern void (*glUniformMatrix2x4fv)(GLint, GLsizei, GLboolean, const GLfloat *);
  1324. #define glUniformMatrix3fv _glplatform_glUniformMatrix3fv
  1325. extern void (*glUniformMatrix3fv)(GLint, GLsizei, GLboolean, const GLfloat *);
  1326. #define glUniformMatrix3x2fv _glplatform_glUniformMatrix3x2fv
  1327. extern void (*glUniformMatrix3x2fv)(GLint, GLsizei, GLboolean, const GLfloat *);
  1328. #define glUniformMatrix3x4fv _glplatform_glUniformMatrix3x4fv
  1329. extern void (*glUniformMatrix3x4fv)(GLint, GLsizei, GLboolean, const GLfloat *);
  1330. #define glUniformMatrix4fv _glplatform_glUniformMatrix4fv
  1331. extern void (*glUniformMatrix4fv)(GLint, GLsizei, GLboolean, const GLfloat *);
  1332. #define glUniformMatrix4x2fv _glplatform_glUniformMatrix4x2fv
  1333. extern void (*glUniformMatrix4x2fv)(GLint, GLsizei, GLboolean, const GLfloat *);
  1334. #define glUniformMatrix4x3fv _glplatform_glUniformMatrix4x3fv
  1335. extern void (*glUniformMatrix4x3fv)(GLint, GLsizei, GLboolean, const GLfloat *);
  1336. #define glUnmapBuffer _glplatform_glUnmapBuffer
  1337. extern GLboolean (*glUnmapBuffer)(GLenum);
  1338. #define glUseProgram _glplatform_glUseProgram
  1339. extern void (*glUseProgram)(GLuint);
  1340. #define glValidateProgram _glplatform_glValidateProgram
  1341. extern void (*glValidateProgram)(GLuint);
  1342. #define glVertexAttrib1d _glplatform_glVertexAttrib1d
  1343. extern void (*glVertexAttrib1d)(GLuint, GLdouble);
  1344. #define glVertexAttrib1dv _glplatform_glVertexAttrib1dv
  1345. extern void (*glVertexAttrib1dv)(GLuint, const GLdouble *);
  1346. #define glVertexAttrib1f _glplatform_glVertexAttrib1f
  1347. extern void (*glVertexAttrib1f)(GLuint, GLfloat);
  1348. #define glVertexAttrib1fv _glplatform_glVertexAttrib1fv
  1349. extern void (*glVertexAttrib1fv)(GLuint, const GLfloat *);
  1350. #define glVertexAttrib1s _glplatform_glVertexAttrib1s
  1351. extern void (*glVertexAttrib1s)(GLuint, GLshort);
  1352. #define glVertexAttrib1sv _glplatform_glVertexAttrib1sv
  1353. extern void (*glVertexAttrib1sv)(GLuint, const GLshort *);
  1354. #define glVertexAttrib2d _glplatform_glVertexAttrib2d
  1355. extern void (*glVertexAttrib2d)(GLuint, GLdouble, GLdouble);
  1356. #define glVertexAttrib2dv _glplatform_glVertexAttrib2dv
  1357. extern void (*glVertexAttrib2dv)(GLuint, const GLdouble *);
  1358. #define glVertexAttrib2f _glplatform_glVertexAttrib2f
  1359. extern void (*glVertexAttrib2f)(GLuint, GLfloat, GLfloat);
  1360. #define glVertexAttrib2fv _glplatform_glVertexAttrib2fv
  1361. extern void (*glVertexAttrib2fv)(GLuint, const GLfloat *);
  1362. #define glVertexAttrib2s _glplatform_glVertexAttrib2s
  1363. extern void (*glVertexAttrib2s)(GLuint, GLshort, GLshort);
  1364. #define glVertexAttrib2sv _glplatform_glVertexAttrib2sv
  1365. extern void (*glVertexAttrib2sv)(GLuint, const GLshort *);
  1366. #define glVertexAttrib3d _glplatform_glVertexAttrib3d
  1367. extern void (*glVertexAttrib3d)(GLuint, GLdouble, GLdouble, GLdouble);
  1368. #define glVertexAttrib3dv _glplatform_glVertexAttrib3dv
  1369. extern void (*glVertexAttrib3dv)(GLuint, const GLdouble *);
  1370. #define glVertexAttrib3f _glplatform_glVertexAttrib3f
  1371. extern void (*glVertexAttrib3f)(GLuint, GLfloat, GLfloat, GLfloat);
  1372. #define glVertexAttrib3fv _glplatform_glVertexAttrib3fv
  1373. extern void (*glVertexAttrib3fv)(GLuint, const GLfloat *);
  1374. #define glVertexAttrib3s _glplatform_glVertexAttrib3s
  1375. extern void (*glVertexAttrib3s)(GLuint, GLshort, GLshort, GLshort);
  1376. #define glVertexAttrib3sv _glplatform_glVertexAttrib3sv
  1377. extern void (*glVertexAttrib3sv)(GLuint, const GLshort *);
  1378. #define glVertexAttrib4Nbv _glplatform_glVertexAttrib4Nbv
  1379. extern void (*glVertexAttrib4Nbv)(GLuint, const GLbyte *);
  1380. #define glVertexAttrib4Niv _glplatform_glVertexAttrib4Niv
  1381. extern void (*glVertexAttrib4Niv)(GLuint, const GLint *);
  1382. #define glVertexAttrib4Nsv _glplatform_glVertexAttrib4Nsv
  1383. extern void (*glVertexAttrib4Nsv)(GLuint, const GLshort *);
  1384. #define glVertexAttrib4Nub _glplatform_glVertexAttrib4Nub
  1385. extern void (*glVertexAttrib4Nub)(GLuint, GLubyte, GLubyte, GLubyte, GLubyte);
  1386. #define glVertexAttrib4Nubv _glplatform_glVertexAttrib4Nubv
  1387. extern void (*glVertexAttrib4Nubv)(GLuint, const GLubyte *);
  1388. #define glVertexAttrib4Nuiv _glplatform_glVertexAttrib4Nuiv
  1389. extern void (*glVertexAttrib4Nuiv)(GLuint, const GLuint *);
  1390. #define glVertexAttrib4Nusv _glplatform_glVertexAttrib4Nusv
  1391. extern void (*glVertexAttrib4Nusv)(GLuint, const GLushort *);
  1392. #define glVertexAttrib4bv _glplatform_glVertexAttrib4bv
  1393. extern void (*glVertexAttrib4bv)(GLuint, const GLbyte *);
  1394. #define glVertexAttrib4d _glplatform_glVertexAttrib4d
  1395. extern void (*glVertexAttrib4d)(GLuint, GLdouble, GLdouble, GLdouble, GLdouble);
  1396. #define glVertexAttrib4dv _glplatform_glVertexAttrib4dv
  1397. extern void (*glVertexAttrib4dv)(GLuint, const GLdouble *);
  1398. #define glVertexAttrib4f _glplatform_glVertexAttrib4f
  1399. extern void (*glVertexAttrib4f)(GLuint, GLfloat, GLfloat, GLfloat, GLfloat);
  1400. #define glVertexAttrib4fv _glplatform_glVertexAttrib4fv
  1401. extern void (*glVertexAttrib4fv)(GLuint, const GLfloat *);
  1402. #define glVertexAttrib4iv _glplatform_glVertexAttrib4iv
  1403. extern void (*glVertexAttrib4iv)(GLuint, const GLint *);
  1404. #define glVertexAttrib4s _glplatform_glVertexAttrib4s
  1405. extern void (*glVertexAttrib4s)(GLuint, GLshort, GLshort, GLshort, GLshort);
  1406. #define glVertexAttrib4sv _glplatform_glVertexAttrib4sv
  1407. extern void (*glVertexAttrib4sv)(GLuint, const GLshort *);
  1408. #define glVertexAttrib4ubv _glplatform_glVertexAttrib4ubv
  1409. extern void (*glVertexAttrib4ubv)(GLuint, const GLubyte *);
  1410. #define glVertexAttrib4uiv _glplatform_glVertexAttrib4uiv
  1411. extern void (*glVertexAttrib4uiv)(GLuint, const GLuint *);
  1412. #define glVertexAttrib4usv _glplatform_glVertexAttrib4usv
  1413. extern void (*glVertexAttrib4usv)(GLuint, const GLushort *);
  1414. #define glVertexAttribI1i _glplatform_glVertexAttribI1i
  1415. extern void (*glVertexAttribI1i)(GLuint, GLint);
  1416. #define glVertexAttribI1iv _glplatform_glVertexAttribI1iv
  1417. extern void (*glVertexAttribI1iv)(GLuint, const GLint *);
  1418. #define glVertexAttribI1ui _glplatform_glVertexAttribI1ui
  1419. extern void (*glVertexAttribI1ui)(GLuint, GLuint);
  1420. #define glVertexAttribI1uiv _glplatform_glVertexAttribI1uiv
  1421. extern void (*glVertexAttribI1uiv)(GLuint, const GLuint *);
  1422. #define glVertexAttribI2i _glplatform_glVertexAttribI2i
  1423. extern void (*glVertexAttribI2i)(GLuint, GLint, GLint);
  1424. #define glVertexAttribI2iv _glplatform_glVertexAttribI2iv
  1425. extern void (*glVertexAttribI2iv)(GLuint, const GLint *);
  1426. #define glVertexAttribI2ui _glplatform_glVertexAttribI2ui
  1427. extern void (*glVertexAttribI2ui)(GLuint, GLuint, GLuint);
  1428. #define glVertexAttribI2uiv _glplatform_glVertexAttribI2uiv
  1429. extern void (*glVertexAttribI2uiv)(GLuint, const GLuint *);
  1430. #define glVertexAttribI3i _glplatform_glVertexAttribI3i
  1431. extern void (*glVertexAttribI3i)(GLuint, GLint, GLint, GLint);
  1432. #define glVertexAttribI3iv _glplatform_glVertexAttribI3iv
  1433. extern void (*glVertexAttribI3iv)(GLuint, const GLint *);
  1434. #define glVertexAttribI3ui _glplatform_glVertexAttribI3ui
  1435. extern void (*glVertexAttribI3ui)(GLuint, GLuint, GLuint, GLuint);
  1436. #define glVertexAttribI3uiv _glplatform_glVertexAttribI3uiv
  1437. extern void (*glVertexAttribI3uiv)(GLuint, const GLuint *);
  1438. #define glVertexAttribI4bv _glplatform_glVertexAttribI4bv
  1439. extern void (*glVertexAttribI4bv)(GLuint, const GLbyte *);
  1440. #define glVertexAttribI4i _glplatform_glVertexAttribI4i
  1441. extern void (*glVertexAttribI4i)(GLuint, GLint, GLint, GLint, GLint);
  1442. #define glVertexAttribI4iv _glplatform_glVertexAttribI4iv
  1443. extern void (*glVertexAttribI4iv)(GLuint, const GLint *);
  1444. #define glVertexAttribI4sv _glplatform_glVertexAttribI4sv
  1445. extern void (*glVertexAttribI4sv)(GLuint, const GLshort *);
  1446. #define glVertexAttribI4ubv _glplatform_glVertexAttribI4ubv
  1447. extern void (*glVertexAttribI4ubv)(GLuint, const GLubyte *);
  1448. #define glVertexAttribI4ui _glplatform_glVertexAttribI4ui
  1449. extern void (*glVertexAttribI4ui)(GLuint, GLuint, GLuint, GLuint, GLuint);
  1450. #define glVertexAttribI4uiv _glplatform_glVertexAttribI4uiv
  1451. extern void (*glVertexAttribI4uiv)(GLuint, const GLuint *);
  1452. #define glVertexAttribI4usv _glplatform_glVertexAttribI4usv
  1453. extern void (*glVertexAttribI4usv)(GLuint, const GLushort *);
  1454. #define glVertexAttribIPointer _glplatform_glVertexAttribIPointer
  1455. extern void (*glVertexAttribIPointer)(GLuint, GLint, GLenum, GLsizei, const void *);
  1456. #define glVertexAttribPointer _glplatform_glVertexAttribPointer
  1457. extern void (*glVertexAttribPointer)(GLuint, GLint, GLenum, GLboolean, GLsizei, const void *);
  1458. #define glViewport _glplatform_glViewport
  1459. extern void (*glViewport)(GLint, GLint, GLsizei, GLsizei);
  1460. #define glWaitSync _glplatform_glWaitSync
  1461. extern void (*glWaitSync)(GLsync, GLbitfield, GLuint64);
  1462. #if defined(GLPLATFORM_GL_VERSION) && GLPLATFORM_GL_VERSION >= 33
  1463. #ifndef GLPLATFORM_TYPE_GLchar
  1464. #define GLPLATFORM_TYPE_GLchar
  1465. typedef char GLchar;
  1466. #endif
  1467. #ifndef GLPLATFORM_TYPE_GLint64
  1468. #define GLPLATFORM_TYPE_GLint64
  1469. typedef int64_t GLint64;
  1470. #endif
  1471. #ifndef GLPLATFORM_TYPE_GLuint64
  1472. #define GLPLATFORM_TYPE_GLuint64
  1473. typedef uint64_t GLuint64;
  1474. #endif
  1475. #define GL_ANY_SAMPLES_PASSED 0x8c2f
  1476. #define GL_INT_2_10_10_10_REV 0x8d9f
  1477. #define GL_MAX_DUAL_SOURCE_DRAW_BUFFERS 0x88fc
  1478. #define GL_ONE_MINUS_SRC1_ALPHA 0x88fb
  1479. #define GL_ONE_MINUS_SRC1_COLOR 0x88fa
  1480. #define GL_RGB10_A2UI 0x906f
  1481. #define GL_SAMPLER_BINDING 0x8919
  1482. #define GL_SRC1_COLOR 0x88f9
  1483. #define GL_TEXTURE_SWIZZLE_A 0x8e45
  1484. #define GL_TEXTURE_SWIZZLE_B 0x8e44
  1485. #define GL_TEXTURE_SWIZZLE_G 0x8e43
  1486. #define GL_TEXTURE_SWIZZLE_R 0x8e42
  1487. #define GL_TEXTURE_SWIZZLE_RGBA 0x8e46
  1488. #define GL_TIMESTAMP 0x8e28
  1489. #define GL_TIME_ELAPSED 0x88bf
  1490. #define GL_VERTEX_ATTRIB_ARRAY_DIVISOR 0x88fe
  1491. #define glBindFragDataLocationIndexed _glplatform_glBindFragDataLocationIndexed
  1492. extern void (*glBindFragDataLocationIndexed)(GLuint, GLuint, GLuint, const GLchar *);
  1493. #define glBindSampler _glplatform_glBindSampler
  1494. extern void (*glBindSampler)(GLuint, GLuint);
  1495. #define glDeleteSamplers _glplatform_glDeleteSamplers
  1496. extern void (*glDeleteSamplers)(GLsizei, const GLuint *);
  1497. #define glGenSamplers _glplatform_glGenSamplers
  1498. extern void (*glGenSamplers)(GLsizei, GLuint *);
  1499. #define glGetFragDataIndex _glplatform_glGetFragDataIndex
  1500. extern GLint (*glGetFragDataIndex)(GLuint, const GLchar *);
  1501. #define glGetQueryObjecti64v _glplatform_glGetQueryObjecti64v
  1502. extern void (*glGetQueryObjecti64v)(GLuint, GLenum, GLint64 *);
  1503. #define glGetQueryObjectui64v _glplatform_glGetQueryObjectui64v
  1504. extern void (*glGetQueryObjectui64v)(GLuint, GLenum, GLuint64 *);
  1505. #define glGetSamplerParameterIiv _glplatform_glGetSamplerParameterIiv
  1506. extern void (*glGetSamplerParameterIiv)(GLuint, GLenum, GLint *);
  1507. #define glGetSamplerParameterIuiv _glplatform_glGetSamplerParameterIuiv
  1508. extern void (*glGetSamplerParameterIuiv)(GLuint, GLenum, GLuint *);
  1509. #define glGetSamplerParameterfv _glplatform_glGetSamplerParameterfv
  1510. extern void (*glGetSamplerParameterfv)(GLuint, GLenum, GLfloat *);
  1511. #define glGetSamplerParameteriv _glplatform_glGetSamplerParameteriv
  1512. extern void (*glGetSamplerParameteriv)(GLuint, GLenum, GLint *);
  1513. #define glIsSampler _glplatform_glIsSampler
  1514. extern GLboolean (*glIsSampler)(GLuint);
  1515. #define glQueryCounter _glplatform_glQueryCounter
  1516. extern void (*glQueryCounter)(GLuint, GLenum);
  1517. #define glSamplerParameterIiv _glplatform_glSamplerParameterIiv
  1518. extern void (*glSamplerParameterIiv)(GLuint, GLenum, const GLint *);
  1519. #define glSamplerParameterIuiv _glplatform_glSamplerParameterIuiv
  1520. extern void (*glSamplerParameterIuiv)(GLuint, GLenum, const GLuint *);
  1521. #define glSamplerParameterf _glplatform_glSamplerParameterf
  1522. extern void (*glSamplerParameterf)(GLuint, GLenum, GLfloat);
  1523. #define glSamplerParameterfv _glplatform_glSamplerParameterfv
  1524. extern void (*glSamplerParameterfv)(GLuint, GLenum, const GLfloat *);
  1525. #define glSamplerParameteri _glplatform_glSamplerParameteri
  1526. extern void (*glSamplerParameteri)(GLuint, GLenum, GLint);
  1527. #define glSamplerParameteriv _glplatform_glSamplerParameteriv
  1528. extern void (*glSamplerParameteriv)(GLuint, GLenum, const GLint *);
  1529. #define glVertexAttribDivisor _glplatform_glVertexAttribDivisor
  1530. extern void (*glVertexAttribDivisor)(GLuint, GLuint);
  1531. #define glVertexAttribP1ui _glplatform_glVertexAttribP1ui
  1532. extern void (*glVertexAttribP1ui)(GLuint, GLenum, GLboolean, GLuint);
  1533. #define glVertexAttribP1uiv _glplatform_glVertexAttribP1uiv
  1534. extern void (*glVertexAttribP1uiv)(GLuint, GLenum, GLboolean, const GLuint *);
  1535. #define glVertexAttribP2ui _glplatform_glVertexAttribP2ui
  1536. extern void (*glVertexAttribP2ui)(GLuint, GLenum, GLboolean, GLuint);
  1537. #define glVertexAttribP2uiv _glplatform_glVertexAttribP2uiv
  1538. extern void (*glVertexAttribP2uiv)(GLuint, GLenum, GLboolean, const GLuint *);
  1539. #define glVertexAttribP3ui _glplatform_glVertexAttribP3ui
  1540. extern void (*glVertexAttribP3ui)(GLuint, GLenum, GLboolean, GLuint);
  1541. #define glVertexAttribP3uiv _glplatform_glVertexAttribP3uiv
  1542. extern void (*glVertexAttribP3uiv)(GLuint, GLenum, GLboolean, const GLuint *);
  1543. #define glVertexAttribP4ui _glplatform_glVertexAttribP4ui
  1544. extern void (*glVertexAttribP4ui)(GLuint, GLenum, GLboolean, GLuint);
  1545. #define glVertexAttribP4uiv _glplatform_glVertexAttribP4uiv
  1546. extern void (*glVertexAttribP4uiv)(GLuint, GLenum, GLboolean, const GLuint *);
  1547. #endif
  1548. #if defined(GLPLATFORM_GL_VERSION) && GLPLATFORM_GL_VERSION >= 40
  1549. #ifndef GLPLATFORM_TYPE_GLchar
  1550. #define GLPLATFORM_TYPE_GLchar
  1551. typedef char GLchar;
  1552. #endif
  1553. #define GL_ACTIVE_SUBROUTINES 0x8de5
  1554. #define GL_ACTIVE_SUBROUTINE_MAX_LENGTH 0x8e48
  1555. #define GL_ACTIVE_SUBROUTINE_UNIFORMS 0x8de6
  1556. #define GL_ACTIVE_SUBROUTINE_UNIFORM_LOCATIONS 0x8e47
  1557. #define GL_ACTIVE_SUBROUTINE_UNIFORM_MAX_LENGTH 0x8e49
  1558. #define GL_COMPATIBLE_SUBROUTINES 0x8e4b
  1559. #define GL_DOUBLE_MAT2 0x8f46
  1560. #define GL_DOUBLE_MAT2x3 0x8f49
  1561. #define GL_DOUBLE_MAT2x4 0x8f4a
  1562. #define GL_DOUBLE_MAT3 0x8f47
  1563. #define GL_DOUBLE_MAT3x2 0x8f4b
  1564. #define GL_DOUBLE_MAT3x4 0x8f4c
  1565. #define GL_DOUBLE_MAT4 0x8f48
  1566. #define GL_DOUBLE_MAT4x2 0x8f4d
  1567. #define GL_DOUBLE_MAT4x3 0x8f4e
  1568. #define GL_DOUBLE_VEC2 0x8ffc
  1569. #define GL_DOUBLE_VEC3 0x8ffd
  1570. #define GL_DOUBLE_VEC4 0x8ffe
  1571. #define GL_DRAW_INDIRECT_BUFFER 0x8f3f
  1572. #define GL_DRAW_INDIRECT_BUFFER_BINDING 0x8f43
  1573. #define GL_FRACTIONAL_EVEN 0x8e7c
  1574. #define GL_FRACTIONAL_ODD 0x8e7b
  1575. #define GL_FRAGMENT_INTERPOLATION_OFFSET_BITS 0x8e5d
  1576. #define GL_GEOMETRY_SHADER_INVOCATIONS 0x887f
  1577. #define GL_INT_SAMPLER_CUBE_MAP_ARRAY 0x900e
  1578. #define GL_ISOLINES 0x8e7a
  1579. #define GL_MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS 0x8e1e
  1580. #define GL_MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS 0x8e1f
  1581. #define GL_MAX_FRAGMENT_INTERPOLATION_OFFSET 0x8e5c
  1582. #define GL_MAX_GEOMETRY_SHADER_INVOCATIONS 0x8e5a
  1583. #define GL_MAX_PATCH_VERTICES 0x8e7d
  1584. #define GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET 0x8e5f
  1585. #define GL_MAX_SUBROUTINES 0x8de7
  1586. #define GL_MAX_SUBROUTINE_UNIFORM_LOCATIONS 0x8de8
  1587. #define GL_MAX_TESS_CONTROL_INPUT_COMPONENTS 0x886c
  1588. #define GL_MAX_TESS_CONTROL_OUTPUT_COMPONENTS 0x8e83
  1589. #define GL_MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS 0x8e81
  1590. #define GL_MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS 0x8e85
  1591. #define GL_MAX_TESS_CONTROL_UNIFORM_BLOCKS 0x8e89
  1592. #define GL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS 0x8e7f
  1593. #define GL_MAX_TESS_EVALUATION_INPUT_COMPONENTS 0x886d
  1594. #define GL_MAX_TESS_EVALUATION_OUTPUT_COMPONENTS 0x8e86
  1595. #define GL_MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS 0x8e82
  1596. #define GL_MAX_TESS_EVALUATION_UNIFORM_BLOCKS 0x8e8a
  1597. #define GL_MAX_TESS_EVALUATION_UNIFORM_COMPONENTS 0x8e80
  1598. #define GL_MAX_TESS_GEN_LEVEL 0x8e7e
  1599. #define GL_MAX_TESS_PATCH_COMPONENTS 0x8e84
  1600. #define GL_MAX_TRANSFORM_FEEDBACK_BUFFERS 0x8e70
  1601. #define GL_MAX_VERTEX_STREAMS 0x8e71
  1602. #define GL_MIN_FRAGMENT_INTERPOLATION_OFFSET 0x8e5b
  1603. #define GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET 0x8e5e
  1604. #define GL_MIN_SAMPLE_SHADING_VALUE 0x8c37
  1605. #define GL_NUM_COMPATIBLE_SUBROUTINES 0x8e4a
  1606. #define GL_PATCHES 0xe
  1607. #define GL_PATCH_DEFAULT_INNER_LEVEL 0x8e73
  1608. #define GL_PATCH_DEFAULT_OUTER_LEVEL 0x8e74
  1609. #define GL_PATCH_VERTICES 0x8e72
  1610. #define GL_PROXY_TEXTURE_CUBE_MAP_ARRAY 0x900b
  1611. #define GL_QUADS 0x7
  1612. #define GL_SAMPLER_CUBE_MAP_ARRAY 0x900c
  1613. #define GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW 0x900d
  1614. #define GL_SAMPLE_SHADING 0x8c36
  1615. #define GL_TESS_CONTROL_OUTPUT_VERTICES 0x8e75
  1616. #define GL_TESS_CONTROL_SHADER 0x8e88
  1617. #define GL_TESS_EVALUATION_SHADER 0x8e87
  1618. #define GL_TESS_GEN_MODE 0x8e76
  1619. #define GL_TESS_GEN_POINT_MODE 0x8e79
  1620. #define GL_TESS_GEN_SPACING 0x8e77
  1621. #define GL_TESS_GEN_VERTEX_ORDER 0x8e78
  1622. #define GL_TEXTURE_BINDING_CUBE_MAP_ARRAY 0x900a
  1623. #define GL_TEXTURE_CUBE_MAP_ARRAY 0x9009
  1624. #define GL_TRANSFORM_FEEDBACK 0x8e22
  1625. #define GL_TRANSFORM_FEEDBACK_BINDING 0x8e25
  1626. #define GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE 0x8e24
  1627. #define GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED 0x8e23
  1628. #define GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_CONTROL_SHADER 0x84f0
  1629. #define GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_EVALUATION_SHADER 0x84f1
  1630. #define GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY 0x900f
  1631. #define glBeginQueryIndexed _glplatform_glBeginQueryIndexed
  1632. extern void (*glBeginQueryIndexed)(GLenum, GLuint, GLuint);
  1633. #define glBindTransformFeedback _glplatform_glBindTransformFeedback
  1634. extern void (*glBindTransformFeedback)(GLenum, GLuint);
  1635. #define glBlendEquationSeparatei _glplatform_glBlendEquationSeparatei
  1636. extern void (*glBlendEquationSeparatei)(GLuint, GLenum, GLenum);
  1637. #define glBlendEquationi _glplatform_glBlendEquationi
  1638. extern void (*glBlendEquationi)(GLuint, GLenum);
  1639. #define glBlendFuncSeparatei _glplatform_glBlendFuncSeparatei
  1640. extern void (*glBlendFuncSeparatei)(GLuint, GLenum, GLenum, GLenum, GLenum);
  1641. #define glBlendFunci _glplatform_glBlendFunci
  1642. extern void (*glBlendFunci)(GLuint, GLenum, GLenum);
  1643. #define glDeleteTransformFeedbacks _glplatform_glDeleteTransformFeedbacks
  1644. extern void (*glDeleteTransformFeedbacks)(GLsizei, const GLuint *);
  1645. #define glDrawArraysIndirect _glplatform_glDrawArraysIndirect
  1646. extern void (*glDrawArraysIndirect)(GLenum, const void *);
  1647. #define glDrawElementsIndirect _glplatform_glDrawElementsIndirect
  1648. extern void (*glDrawElementsIndirect)(GLenum, GLenum, const void *);
  1649. #define glDrawTransformFeedback _glplatform_glDrawTransformFeedback
  1650. extern void (*glDrawTransformFeedback)(GLenum, GLuint);
  1651. #define glDrawTransformFeedbackStream _glplatform_glDrawTransformFeedbackStream
  1652. extern void (*glDrawTransformFeedbackStream)(GLenum, GLuint, GLuint);
  1653. #define glEndQueryIndexed _glplatform_glEndQueryIndexed
  1654. extern void (*glEndQueryIndexed)(GLenum, GLuint);
  1655. #define glGenTransformFeedbacks _glplatform_glGenTransformFeedbacks
  1656. extern void (*glGenTransformFeedbacks)(GLsizei, GLuint *);
  1657. #define glGetActiveSubroutineName _glplatform_glGetActiveSubroutineName
  1658. extern void (*glGetActiveSubroutineName)(GLuint, GLenum, GLuint, GLsizei, GLsizei *, GLchar *);
  1659. #define glGetActiveSubroutineUniformName _glplatform_glGetActiveSubroutineUniformName
  1660. extern void (*glGetActiveSubroutineUniformName)(GLuint, GLenum, GLuint, GLsizei, GLsizei *, GLchar *);
  1661. #define glGetActiveSubroutineUniformiv _glplatform_glGetActiveSubroutineUniformiv
  1662. extern void (*glGetActiveSubroutineUniformiv)(GLuint, GLenum, GLuint, GLenum, GLint *);
  1663. #define glGetProgramStageiv _glplatform_glGetProgramStageiv
  1664. extern void (*glGetProgramStageiv)(GLuint, GLenum, GLenum, GLint *);
  1665. #define glGetQueryIndexediv _glplatform_glGetQueryIndexediv
  1666. extern void (*glGetQueryIndexediv)(GLenum, GLuint, GLenum, GLint *);
  1667. #define glGetSubroutineIndex _glplatform_glGetSubroutineIndex
  1668. extern GLuint (*glGetSubroutineIndex)(GLuint, GLenum, const GLchar *);
  1669. #define glGetSubroutineUniformLocation _glplatform_glGetSubroutineUniformLocation
  1670. extern GLint (*glGetSubroutineUniformLocation)(GLuint, GLenum, const GLchar *);
  1671. #define glGetUniformSubroutineuiv _glplatform_glGetUniformSubroutineuiv
  1672. extern void (*glGetUniformSubroutineuiv)(GLenum, GLint, GLuint *);
  1673. #define glGetUniformdv _glplatform_glGetUniformdv
  1674. extern void (*glGetUniformdv)(GLuint, GLint, GLdouble *);
  1675. #define glIsTransformFeedback _glplatform_glIsTransformFeedback
  1676. extern GLboolean (*glIsTransformFeedback)(GLuint);
  1677. #define glMinSampleShading _glplatform_glMinSampleShading
  1678. extern void (*glMinSampleShading)(GLfloat);
  1679. #define glPatchParameterfv _glplatform_glPatchParameterfv
  1680. extern void (*glPatchParameterfv)(GLenum, const GLfloat *);
  1681. #define glPatchParameteri _glplatform_glPatchParameteri
  1682. extern void (*glPatchParameteri)(GLenum, GLint);
  1683. #define glPauseTransformFeedback _glplatform_glPauseTransformFeedback
  1684. extern void (*glPauseTransformFeedback)();
  1685. #define glResumeTransformFeedback _glplatform_glResumeTransformFeedback
  1686. extern void (*glResumeTransformFeedback)();
  1687. #define glUniform1d _glplatform_glUniform1d
  1688. extern void (*glUniform1d)(GLint, GLdouble);
  1689. #define glUniform1dv _glplatform_glUniform1dv
  1690. extern void (*glUniform1dv)(GLint, GLsizei, const GLdouble *);
  1691. #define glUniform2d _glplatform_glUniform2d
  1692. extern void (*glUniform2d)(GLint, GLdouble, GLdouble);
  1693. #define glUniform2dv _glplatform_glUniform2dv
  1694. extern void (*glUniform2dv)(GLint, GLsizei, const GLdouble *);
  1695. #define glUniform3d _glplatform_glUniform3d
  1696. extern void (*glUniform3d)(GLint, GLdouble, GLdouble, GLdouble);
  1697. #define glUniform3dv _glplatform_glUniform3dv
  1698. extern void (*glUniform3dv)(GLint, GLsizei, const GLdouble *);
  1699. #define glUniform4d _glplatform_glUniform4d
  1700. extern void (*glUniform4d)(GLint, GLdouble, GLdouble, GLdouble, GLdouble);
  1701. #define glUniform4dv _glplatform_glUniform4dv
  1702. extern void (*glUniform4dv)(GLint, GLsizei, const GLdouble *);
  1703. #define glUniformMatrix2dv _glplatform_glUniformMatrix2dv
  1704. extern void (*glUniformMatrix2dv)(GLint, GLsizei, GLboolean, const GLdouble *);
  1705. #define glUniformMatrix2x3dv _glplatform_glUniformMatrix2x3dv
  1706. extern void (*glUniformMatrix2x3dv)(GLint, GLsizei, GLboolean, const GLdouble *);
  1707. #define glUniformMatrix2x4dv _glplatform_glUniformMatrix2x4dv
  1708. extern void (*glUniformMatrix2x4dv)(GLint, GLsizei, GLboolean, const GLdouble *);
  1709. #define glUniformMatrix3dv _glplatform_glUniformMatrix3dv
  1710. extern void (*glUniformMatrix3dv)(GLint, GLsizei, GLboolean, const GLdouble *);
  1711. #define glUniformMatrix3x2dv _glplatform_glUniformMatrix3x2dv
  1712. extern void (*glUniformMatrix3x2dv)(GLint, GLsizei, GLboolean, const GLdouble *);
  1713. #define glUniformMatrix3x4dv _glplatform_glUniformMatrix3x4dv
  1714. extern void (*glUniformMatrix3x4dv)(GLint, GLsizei, GLboolean, const GLdouble *);
  1715. #define glUniformMatrix4dv _glplatform_glUniformMatrix4dv
  1716. extern void (*glUniformMatrix4dv)(GLint, GLsizei, GLboolean, const GLdouble *);
  1717. #define glUniformMatrix4x2dv _glplatform_glUniformMatrix4x2dv
  1718. extern void (*glUniformMatrix4x2dv)(GLint, GLsizei, GLboolean, const GLdouble *);
  1719. #define glUniformMatrix4x3dv _glplatform_glUniformMatrix4x3dv
  1720. extern void (*glUniformMatrix4x3dv)(GLint, GLsizei, GLboolean, const GLdouble *);
  1721. #define glUniformSubroutinesuiv _glplatform_glUniformSubroutinesuiv
  1722. extern void (*glUniformSubroutinesuiv)(GLenum, GLsizei, const GLuint *);
  1723. #endif
  1724. #if defined(GLPLATFORM_GL_VERSION) && GLPLATFORM_GL_VERSION >= 41
  1725. #ifndef GLPLATFORM_TYPE_GLchar
  1726. #define GLPLATFORM_TYPE_GLchar
  1727. typedef char GLchar;
  1728. #endif
  1729. #define GL_ACTIVE_PROGRAM 0x8259
  1730. #define GL_ALL_SHADER_BITS 0xffffffff
  1731. #define GL_FIXED 0x140c
  1732. #define GL_FRAGMENT_SHADER_BIT 0x2
  1733. #define GL_GEOMETRY_SHADER_BIT 0x4
  1734. #define GL_HIGH_FLOAT 0x8df2
  1735. #define GL_HIGH_INT 0x8df5
  1736. #define GL_IMPLEMENTATION_COLOR_READ_FORMAT 0x8b9b
  1737. #define GL_IMPLEMENTATION_COLOR_READ_TYPE 0x8b9a
  1738. #define GL_LAYER_PROVOKING_VERTEX 0x825e
  1739. #define GL_LOW_FLOAT 0x8df0
  1740. #define GL_LOW_INT 0x8df3
  1741. #define GL_MAX_FRAGMENT_UNIFORM_VECTORS 0x8dfd
  1742. #define GL_MAX_VARYING_VECTORS 0x8dfc
  1743. #define GL_MAX_VERTEX_UNIFORM_VECTORS 0x8dfb
  1744. #define GL_MAX_VIEWPORTS 0x825b
  1745. #define GL_MEDIUM_FLOAT 0x8df1
  1746. #define GL_MEDIUM_INT 0x8df4
  1747. #define GL_NUM_PROGRAM_BINARY_FORMATS 0x87fe
  1748. #define GL_NUM_SHADER_BINARY_FORMATS 0x8df9
  1749. #define GL_PROGRAM_BINARY_FORMATS 0x87ff
  1750. #define GL_PROGRAM_BINARY_LENGTH 0x8741
  1751. #define GL_PROGRAM_BINARY_RETRIEVABLE_HINT 0x8257
  1752. #define GL_PROGRAM_PIPELINE_BINDING 0x825a
  1753. #define GL_PROGRAM_SEPARABLE 0x8258
  1754. #define GL_RGB565 0x8d62
  1755. #define GL_SHADER_BINARY_FORMATS 0x8df8
  1756. #define GL_SHADER_COMPILER 0x8dfa
  1757. #define GL_TESS_CONTROL_SHADER_BIT 0x8
  1758. #define GL_TESS_EVALUATION_SHADER_BIT 0x10
  1759. #define GL_UNDEFINED_VERTEX 0x8260
  1760. #define GL_VERTEX_SHADER_BIT 0x1
  1761. #define GL_VIEWPORT_BOUNDS_RANGE 0x825d
  1762. #define GL_VIEWPORT_INDEX_PROVOKING_VERTEX 0x825f
  1763. #define GL_VIEWPORT_SUBPIXEL_BITS 0x825c
  1764. #define glActiveShaderProgram _glplatform_glActiveShaderProgram
  1765. extern void (*glActiveShaderProgram)(GLuint, GLuint);
  1766. #define glBindProgramPipeline _glplatform_glBindProgramPipeline
  1767. extern void (*glBindProgramPipeline)(GLuint);
  1768. #define glClearDepthf _glplatform_glClearDepthf
  1769. extern void (*glClearDepthf)(GLfloat);
  1770. #define glCreateShaderProgramv _glplatform_glCreateShaderProgramv
  1771. extern GLuint (*glCreateShaderProgramv)(GLenum, GLsizei, const GLchar *const*);
  1772. #define glDeleteProgramPipelines _glplatform_glDeleteProgramPipelines
  1773. extern void (*glDeleteProgramPipelines)(GLsizei, const GLuint *);
  1774. #define glDepthRangeArrayv _glplatform_glDepthRangeArrayv
  1775. extern void (*glDepthRangeArrayv)(GLuint, GLsizei, const GLdouble *);
  1776. #define glDepthRangeIndexed _glplatform_glDepthRangeIndexed
  1777. extern void (*glDepthRangeIndexed)(GLuint, GLdouble, GLdouble);
  1778. #define glDepthRangef _glplatform_glDepthRangef
  1779. extern void (*glDepthRangef)(GLfloat, GLfloat);
  1780. #define glGenProgramPipelines _glplatform_glGenProgramPipelines
  1781. extern void (*glGenProgramPipelines)(GLsizei, GLuint *);
  1782. #define glGetDoublei_v _glplatform_glGetDoublei_v
  1783. extern void (*glGetDoublei_v)(GLenum, GLuint, GLdouble *);
  1784. #define glGetFloati_v _glplatform_glGetFloati_v
  1785. extern void (*glGetFloati_v)(GLenum, GLuint, GLfloat *);
  1786. #define glGetProgramBinary _glplatform_glGetProgramBinary
  1787. extern void (*glGetProgramBinary)(GLuint, GLsizei, GLsizei *, GLenum *, void *);
  1788. #define glGetProgramPipelineInfoLog _glplatform_glGetProgramPipelineInfoLog
  1789. extern void (*glGetProgramPipelineInfoLog)(GLuint, GLsizei, GLsizei *, GLchar *);
  1790. #define glGetProgramPipelineiv _glplatform_glGetProgramPipelineiv
  1791. extern void (*glGetProgramPipelineiv)(GLuint, GLenum, GLint *);
  1792. #define glGetShaderPrecisionFormat _glplatform_glGetShaderPrecisionFormat
  1793. extern void (*glGetShaderPrecisionFormat)(GLenum, GLenum, GLint *, GLint *);
  1794. #define glGetVertexAttribLdv _glplatform_glGetVertexAttribLdv
  1795. extern void (*glGetVertexAttribLdv)(GLuint, GLenum, GLdouble *);
  1796. #define glIsProgramPipeline _glplatform_glIsProgramPipeline
  1797. extern GLboolean (*glIsProgramPipeline)(GLuint);
  1798. #define glProgramBinary _glplatform_glProgramBinary
  1799. extern void (*glProgramBinary)(GLuint, GLenum, const void *, GLsizei);
  1800. #define glProgramParameteri _glplatform_glProgramParameteri
  1801. extern void (*glProgramParameteri)(GLuint, GLenum, GLint);
  1802. #define glProgramUniform1d _glplatform_glProgramUniform1d
  1803. extern void (*glProgramUniform1d)(GLuint, GLint, GLdouble);
  1804. #define glProgramUniform1dv _glplatform_glProgramUniform1dv
  1805. extern void (*glProgramUniform1dv)(GLuint, GLint, GLsizei, const GLdouble *);
  1806. #define glProgramUniform1f _glplatform_glProgramUniform1f
  1807. extern void (*glProgramUniform1f)(GLuint, GLint, GLfloat);
  1808. #define glProgramUniform1fv _glplatform_glProgramUniform1fv
  1809. extern void (*glProgramUniform1fv)(GLuint, GLint, GLsizei, const GLfloat *);
  1810. #define glProgramUniform1i _glplatform_glProgramUniform1i
  1811. extern void (*glProgramUniform1i)(GLuint, GLint, GLint);
  1812. #define glProgramUniform1iv _glplatform_glProgramUniform1iv
  1813. extern void (*glProgramUniform1iv)(GLuint, GLint, GLsizei, const GLint *);
  1814. #define glProgramUniform1ui _glplatform_glProgramUniform1ui
  1815. extern void (*glProgramUniform1ui)(GLuint, GLint, GLuint);
  1816. #define glProgramUniform1uiv _glplatform_glProgramUniform1uiv
  1817. extern void (*glProgramUniform1uiv)(GLuint, GLint, GLsizei, const GLuint *);
  1818. #define glProgramUniform2d _glplatform_glProgramUniform2d
  1819. extern void (*glProgramUniform2d)(GLuint, GLint, GLdouble, GLdouble);
  1820. #define glProgramUniform2dv _glplatform_glProgramUniform2dv
  1821. extern void (*glProgramUniform2dv)(GLuint, GLint, GLsizei, const GLdouble *);
  1822. #define glProgramUniform2f _glplatform_glProgramUniform2f
  1823. extern void (*glProgramUniform2f)(GLuint, GLint, GLfloat, GLfloat);
  1824. #define glProgramUniform2fv _glplatform_glProgramUniform2fv
  1825. extern void (*glProgramUniform2fv)(GLuint, GLint, GLsizei, const GLfloat *);
  1826. #define glProgramUniform2i _glplatform_glProgramUniform2i
  1827. extern void (*glProgramUniform2i)(GLuint, GLint, GLint, GLint);
  1828. #define glProgramUniform2iv _glplatform_glProgramUniform2iv
  1829. extern void (*glProgramUniform2iv)(GLuint, GLint, GLsizei, const GLint *);
  1830. #define glProgramUniform2ui _glplatform_glProgramUniform2ui
  1831. extern void (*glProgramUniform2ui)(GLuint, GLint, GLuint, GLuint);
  1832. #define glProgramUniform2uiv _glplatform_glProgramUniform2uiv
  1833. extern void (*glProgramUniform2uiv)(GLuint, GLint, GLsizei, const GLuint *);
  1834. #define glProgramUniform3d _glplatform_glProgramUniform3d
  1835. extern void (*glProgramUniform3d)(GLuint, GLint, GLdouble, GLdouble, GLdouble);
  1836. #define glProgramUniform3dv _glplatform_glProgramUniform3dv
  1837. extern void (*glProgramUniform3dv)(GLuint, GLint, GLsizei, const GLdouble *);
  1838. #define glProgramUniform3f _glplatform_glProgramUniform3f
  1839. extern void (*glProgramUniform3f)(GLuint, GLint, GLfloat, GLfloat, GLfloat);
  1840. #define glProgramUniform3fv _glplatform_glProgramUniform3fv
  1841. extern void (*glProgramUniform3fv)(GLuint, GLint, GLsizei, const GLfloat *);
  1842. #define glProgramUniform3i _glplatform_glProgramUniform3i
  1843. extern void (*glProgramUniform3i)(GLuint, GLint, GLint, GLint, GLint);
  1844. #define glProgramUniform3iv _glplatform_glProgramUniform3iv
  1845. extern void (*glProgramUniform3iv)(GLuint, GLint, GLsizei, const GLint *);
  1846. #define glProgramUniform3ui _glplatform_glProgramUniform3ui
  1847. extern void (*glProgramUniform3ui)(GLuint, GLint, GLuint, GLuint, GLuint);
  1848. #define glProgramUniform3uiv _glplatform_glProgramUniform3uiv
  1849. extern void (*glProgramUniform3uiv)(GLuint, GLint, GLsizei, const GLuint *);
  1850. #define glProgramUniform4d _glplatform_glProgramUniform4d
  1851. extern void (*glProgramUniform4d)(GLuint, GLint, GLdouble, GLdouble, GLdouble, GLdouble);
  1852. #define glProgramUniform4dv _glplatform_glProgramUniform4dv
  1853. extern void (*glProgramUniform4dv)(GLuint, GLint, GLsizei, const GLdouble *);
  1854. #define glProgramUniform4f _glplatform_glProgramUniform4f
  1855. extern void (*glProgramUniform4f)(GLuint, GLint, GLfloat, GLfloat, GLfloat, GLfloat);
  1856. #define glProgramUniform4fv _glplatform_glProgramUniform4fv
  1857. extern void (*glProgramUniform4fv)(GLuint, GLint, GLsizei, const GLfloat *);
  1858. #define glProgramUniform4i _glplatform_glProgramUniform4i
  1859. extern void (*glProgramUniform4i)(GLuint, GLint, GLint, GLint, GLint, GLint);
  1860. #define glProgramUniform4iv _glplatform_glProgramUniform4iv
  1861. extern void (*glProgramUniform4iv)(GLuint, GLint, GLsizei, const GLint *);
  1862. #define glProgramUniform4ui _glplatform_glProgramUniform4ui
  1863. extern void (*glProgramUniform4ui)(GLuint, GLint, GLuint, GLuint, GLuint, GLuint);
  1864. #define glProgramUniform4uiv _glplatform_glProgramUniform4uiv
  1865. extern void (*glProgramUniform4uiv)(GLuint, GLint, GLsizei, const GLuint *);
  1866. #define glProgramUniformMatrix2dv _glplatform_glProgramUniformMatrix2dv
  1867. extern void (*glProgramUniformMatrix2dv)(GLuint, GLint, GLsizei, GLboolean, const GLdouble *);
  1868. #define glProgramUniformMatrix2fv _glplatform_glProgramUniformMatrix2fv
  1869. extern void (*glProgramUniformMatrix2fv)(GLuint, GLint, GLsizei, GLboolean, const GLfloat *);
  1870. #define glProgramUniformMatrix2x3dv _glplatform_glProgramUniformMatrix2x3dv
  1871. extern void (*glProgramUniformMatrix2x3dv)(GLuint, GLint, GLsizei, GLboolean, const GLdouble *);
  1872. #define glProgramUniformMatrix2x3fv _glplatform_glProgramUniformMatrix2x3fv
  1873. extern void (*glProgramUniformMatrix2x3fv)(GLuint, GLint, GLsizei, GLboolean, const GLfloat *);
  1874. #define glProgramUniformMatrix2x4dv _glplatform_glProgramUniformMatrix2x4dv
  1875. extern void (*glProgramUniformMatrix2x4dv)(GLuint, GLint, GLsizei, GLboolean, const GLdouble *);
  1876. #define glProgramUniformMatrix2x4fv _glplatform_glProgramUniformMatrix2x4fv
  1877. extern void (*glProgramUniformMatrix2x4fv)(GLuint, GLint, GLsizei, GLboolean, const GLfloat *);
  1878. #define glProgramUniformMatrix3dv _glplatform_glProgramUniformMatrix3dv
  1879. extern void (*glProgramUniformMatrix3dv)(GLuint, GLint, GLsizei, GLboolean, const GLdouble *);
  1880. #define glProgramUniformMatrix3fv _glplatform_glProgramUniformMatrix3fv
  1881. extern void (*glProgramUniformMatrix3fv)(GLuint, GLint, GLsizei, GLboolean, const GLfloat *);
  1882. #define glProgramUniformMatrix3x2dv _glplatform_glProgramUniformMatrix3x2dv
  1883. extern void (*glProgramUniformMatrix3x2dv)(GLuint, GLint, GLsizei, GLboolean, const GLdouble *);
  1884. #define glProgramUniformMatrix3x2fv _glplatform_glProgramUniformMatrix3x2fv
  1885. extern void (*glProgramUniformMatrix3x2fv)(GLuint, GLint, GLsizei, GLboolean, const GLfloat *);
  1886. #define glProgramUniformMatrix3x4dv _glplatform_glProgramUniformMatrix3x4dv
  1887. extern void (*glProgramUniformMatrix3x4dv)(GLuint, GLint, GLsizei, GLboolean, const GLdouble *);
  1888. #define glProgramUniformMatrix3x4fv _glplatform_glProgramUniformMatrix3x4fv
  1889. extern void (*glProgramUniformMatrix3x4fv)(GLuint, GLint, GLsizei, GLboolean, const GLfloat *);
  1890. #define glProgramUniformMatrix4dv _glplatform_glProgramUniformMatrix4dv
  1891. extern void (*glProgramUniformMatrix4dv)(GLuint, GLint, GLsizei, GLboolean, const GLdouble *);
  1892. #define glProgramUniformMatrix4fv _glplatform_glProgramUniformMatrix4fv
  1893. extern void (*glProgramUniformMatrix4fv)(GLuint, GLint, GLsizei, GLboolean, const GLfloat *);
  1894. #define glProgramUniformMatrix4x2dv _glplatform_glProgramUniformMatrix4x2dv
  1895. extern void (*glProgramUniformMatrix4x2dv)(GLuint, GLint, GLsizei, GLboolean, const GLdouble *);
  1896. #define glProgramUniformMatrix4x2fv _glplatform_glProgramUniformMatrix4x2fv
  1897. extern void (*glProgramUniformMatrix4x2fv)(GLuint, GLint, GLsizei, GLboolean, const GLfloat *);
  1898. #define glProgramUniformMatrix4x3dv _glplatform_glProgramUniformMatrix4x3dv
  1899. extern void (*glProgramUniformMatrix4x3dv)(GLuint, GLint, GLsizei, GLboolean, const GLdouble *);
  1900. #define glProgramUniformMatrix4x3fv _glplatform_glProgramUniformMatrix4x3fv
  1901. extern void (*glProgramUniformMatrix4x3fv)(GLuint, GLint, GLsizei, GLboolean, const GLfloat *);
  1902. #define glReleaseShaderCompiler _glplatform_glReleaseShaderCompiler
  1903. extern void (*glReleaseShaderCompiler)();
  1904. #define glScissorArrayv _glplatform_glScissorArrayv
  1905. extern void (*glScissorArrayv)(GLuint, GLsizei, const GLint *);
  1906. #define glScissorIndexed _glplatform_glScissorIndexed
  1907. extern void (*glScissorIndexed)(GLuint, GLint, GLint, GLsizei, GLsizei);
  1908. #define glScissorIndexedv _glplatform_glScissorIndexedv
  1909. extern void (*glScissorIndexedv)(GLuint, const GLint *);
  1910. #define glShaderBinary _glplatform_glShaderBinary
  1911. extern void (*glShaderBinary)(GLsizei, const GLuint *, GLenum, const void *, GLsizei);
  1912. #define glUseProgramStages _glplatform_glUseProgramStages
  1913. extern void (*glUseProgramStages)(GLuint, GLbitfield, GLuint);
  1914. #define glValidateProgramPipeline _glplatform_glValidateProgramPipeline
  1915. extern void (*glValidateProgramPipeline)(GLuint);
  1916. #define glVertexAttribL1d _glplatform_glVertexAttribL1d
  1917. extern void (*glVertexAttribL1d)(GLuint, GLdouble);
  1918. #define glVertexAttribL1dv _glplatform_glVertexAttribL1dv
  1919. extern void (*glVertexAttribL1dv)(GLuint, const GLdouble *);
  1920. #define glVertexAttribL2d _glplatform_glVertexAttribL2d
  1921. extern void (*glVertexAttribL2d)(GLuint, GLdouble, GLdouble);
  1922. #define glVertexAttribL2dv _glplatform_glVertexAttribL2dv
  1923. extern void (*glVertexAttribL2dv)(GLuint, const GLdouble *);
  1924. #define glVertexAttribL3d _glplatform_glVertexAttribL3d
  1925. extern void (*glVertexAttribL3d)(GLuint, GLdouble, GLdouble, GLdouble);
  1926. #define glVertexAttribL3dv _glplatform_glVertexAttribL3dv
  1927. extern void (*glVertexAttribL3dv)(GLuint, const GLdouble *);
  1928. #define glVertexAttribL4d _glplatform_glVertexAttribL4d
  1929. extern void (*glVertexAttribL4d)(GLuint, GLdouble, GLdouble, GLdouble, GLdouble);
  1930. #define glVertexAttribL4dv _glplatform_glVertexAttribL4dv
  1931. extern void (*glVertexAttribL4dv)(GLuint, const GLdouble *);
  1932. #define glVertexAttribLPointer _glplatform_glVertexAttribLPointer
  1933. extern void (*glVertexAttribLPointer)(GLuint, GLint, GLenum, GLsizei, const void *);
  1934. #define glViewportArrayv _glplatform_glViewportArrayv
  1935. extern void (*glViewportArrayv)(GLuint, GLsizei, const GLfloat *);
  1936. #define glViewportIndexedf _glplatform_glViewportIndexedf
  1937. extern void (*glViewportIndexedf)(GLuint, GLfloat, GLfloat, GLfloat, GLfloat);
  1938. #define glViewportIndexedfv _glplatform_glViewportIndexedfv
  1939. extern void (*glViewportIndexedfv)(GLuint, const GLfloat *);
  1940. #endif
  1941. #if defined(GLPLATFORM_GL_VERSION) && GLPLATFORM_GL_VERSION >= 42
  1942. #define GL_ACTIVE_ATOMIC_COUNTER_BUFFERS 0x92d9
  1943. #define GL_ALL_BARRIER_BITS 0xffffffff
  1944. #define GL_ATOMIC_COUNTER_BARRIER_BIT 0x1000
  1945. #define GL_ATOMIC_COUNTER_BUFFER 0x92c0
  1946. #define GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTERS 0x92c5
  1947. #define GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTER_INDICES 0x92c6
  1948. #define GL_ATOMIC_COUNTER_BUFFER_BINDING 0x92c1
  1949. #define GL_ATOMIC_COUNTER_BUFFER_DATA_SIZE 0x92c4
  1950. #define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_FRAGMENT_SHADER 0x92cb
  1951. #define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_GEOMETRY_SHADER 0x92ca
  1952. #define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_CONTROL_SHADER 0x92c8
  1953. #define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_EVALUATION_SHADER 0x92c9
  1954. #define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_VERTEX_SHADER 0x92c7
  1955. #define GL_ATOMIC_COUNTER_BUFFER_SIZE 0x92c3
  1956. #define GL_ATOMIC_COUNTER_BUFFER_START 0x92c2
  1957. #define GL_BUFFER_UPDATE_BARRIER_BIT 0x200
  1958. #define GL_COMMAND_BARRIER_BIT 0x40
  1959. #define GL_COMPRESSED_RGBA_BPTC_UNORM 0x8e8c
  1960. #define GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT 0x8e8e
  1961. #define GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT 0x8e8f
  1962. #define GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM 0x8e8d
  1963. #define GL_COPY_READ_BUFFER_BINDING 0x8f36
  1964. #define GL_COPY_WRITE_BUFFER_BINDING 0x8f37
  1965. #define GL_ELEMENT_ARRAY_BARRIER_BIT 0x2
  1966. #define GL_FRAMEBUFFER_BARRIER_BIT 0x400
  1967. #define GL_IMAGE_1D 0x904c
  1968. #define GL_IMAGE_1D_ARRAY 0x9052
  1969. #define GL_IMAGE_2D 0x904d
  1970. #define GL_IMAGE_2D_ARRAY 0x9053
  1971. #define GL_IMAGE_2D_MULTISAMPLE 0x9055
  1972. #define GL_IMAGE_2D_MULTISAMPLE_ARRAY 0x9056
  1973. #define GL_IMAGE_2D_RECT 0x904f
  1974. #define GL_IMAGE_3D 0x904e
  1975. #define GL_IMAGE_BINDING_ACCESS 0x8f3e
  1976. #define GL_IMAGE_BINDING_FORMAT 0x906e
  1977. #define GL_IMAGE_BINDING_LAYER 0x8f3d
  1978. #define GL_IMAGE_BINDING_LAYERED 0x8f3c
  1979. #define GL_IMAGE_BINDING_LEVEL 0x8f3b
  1980. #define GL_IMAGE_BINDING_NAME 0x8f3a
  1981. #define GL_IMAGE_BUFFER 0x9051
  1982. #define GL_IMAGE_CUBE 0x9050
  1983. #define GL_IMAGE_CUBE_MAP_ARRAY 0x9054
  1984. #define GL_IMAGE_FORMAT_COMPATIBILITY_BY_CLASS 0x90c9
  1985. #define GL_IMAGE_FORMAT_COMPATIBILITY_BY_SIZE 0x90c8
  1986. #define GL_IMAGE_FORMAT_COMPATIBILITY_TYPE 0x90c7
  1987. #define GL_INT_IMAGE_1D 0x9057
  1988. #define GL_INT_IMAGE_1D_ARRAY 0x905d
  1989. #define GL_INT_IMAGE_2D 0x9058
  1990. #define GL_INT_IMAGE_2D_ARRAY 0x905e
  1991. #define GL_INT_IMAGE_2D_MULTISAMPLE 0x9060
  1992. #define GL_INT_IMAGE_2D_MULTISAMPLE_ARRAY 0x9061
  1993. #define GL_INT_IMAGE_2D_RECT 0x905a
  1994. #define GL_INT_IMAGE_3D 0x9059
  1995. #define GL_INT_IMAGE_BUFFER 0x905c
  1996. #define GL_INT_IMAGE_CUBE 0x905b
  1997. #define GL_INT_IMAGE_CUBE_MAP_ARRAY 0x905f
  1998. #define GL_MAX_ATOMIC_COUNTER_BUFFER_BINDINGS 0x92dc
  1999. #define GL_MAX_ATOMIC_COUNTER_BUFFER_SIZE 0x92d8
  2000. #define GL_MAX_COMBINED_ATOMIC_COUNTERS 0x92d7
  2001. #define GL_MAX_COMBINED_ATOMIC_COUNTER_BUFFERS 0x92d1
  2002. #define GL_MAX_COMBINED_IMAGE_UNIFORMS 0x90cf
  2003. #define GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS 0x8f39
  2004. #define GL_MAX_FRAGMENT_ATOMIC_COUNTERS 0x92d6
  2005. #define GL_MAX_FRAGMENT_ATOMIC_COUNTER_BUFFERS 0x92d0
  2006. #define GL_MAX_FRAGMENT_IMAGE_UNIFORMS 0x90ce
  2007. #define GL_MAX_GEOMETRY_ATOMIC_COUNTERS 0x92d5
  2008. #define GL_MAX_GEOMETRY_ATOMIC_COUNTER_BUFFERS 0x92cf
  2009. #define GL_MAX_GEOMETRY_IMAGE_UNIFORMS 0x90cd
  2010. #define GL_MAX_IMAGE_SAMPLES 0x906d
  2011. #define GL_MAX_IMAGE_UNITS 0x8f38
  2012. #define GL_MAX_TESS_CONTROL_ATOMIC_COUNTERS 0x92d3
  2013. #define GL_MAX_TESS_CONTROL_ATOMIC_COUNTER_BUFFERS 0x92cd
  2014. #define GL_MAX_TESS_CONTROL_IMAGE_UNIFORMS 0x90cb
  2015. #define GL_MAX_TESS_EVALUATION_ATOMIC_COUNTERS 0x92d4
  2016. #define GL_MAX_TESS_EVALUATION_ATOMIC_COUNTER_BUFFERS 0x92ce
  2017. #define GL_MAX_TESS_EVALUATION_IMAGE_UNIFORMS 0x90cc
  2018. #define GL_MAX_VERTEX_ATOMIC_COUNTERS 0x92d2
  2019. #define GL_MAX_VERTEX_ATOMIC_COUNTER_BUFFERS 0x92cc
  2020. #define GL_MAX_VERTEX_IMAGE_UNIFORMS 0x90ca
  2021. #define GL_MIN_MAP_BUFFER_ALIGNMENT 0x90bc
  2022. #define GL_NUM_SAMPLE_COUNTS 0x9380
  2023. #define GL_PACK_COMPRESSED_BLOCK_DEPTH 0x912d
  2024. #define GL_PACK_COMPRESSED_BLOCK_HEIGHT 0x912c
  2025. #define GL_PACK_COMPRESSED_BLOCK_SIZE 0x912e
  2026. #define GL_PACK_COMPRESSED_BLOCK_WIDTH 0x912b
  2027. #define GL_PIXEL_BUFFER_BARRIER_BIT 0x80
  2028. #define GL_SHADER_IMAGE_ACCESS_BARRIER_BIT 0x20
  2029. #define GL_TEXTURE_FETCH_BARRIER_BIT 0x8
  2030. #define GL_TEXTURE_IMMUTABLE_FORMAT 0x912f
  2031. #define GL_TEXTURE_UPDATE_BARRIER_BIT 0x100
  2032. #define GL_TRANSFORM_FEEDBACK_ACTIVE 0x8e24
  2033. #define GL_TRANSFORM_FEEDBACK_BARRIER_BIT 0x800
  2034. #define GL_TRANSFORM_FEEDBACK_PAUSED 0x8e23
  2035. #define GL_UNIFORM_ATOMIC_COUNTER_BUFFER_INDEX 0x92da
  2036. #define GL_UNIFORM_BARRIER_BIT 0x4
  2037. #define GL_UNPACK_COMPRESSED_BLOCK_DEPTH 0x9129
  2038. #define GL_UNPACK_COMPRESSED_BLOCK_HEIGHT 0x9128
  2039. #define GL_UNPACK_COMPRESSED_BLOCK_SIZE 0x912a
  2040. #define GL_UNPACK_COMPRESSED_BLOCK_WIDTH 0x9127
  2041. #define GL_UNSIGNED_INT_ATOMIC_COUNTER 0x92db
  2042. #define GL_UNSIGNED_INT_IMAGE_1D 0x9062
  2043. #define GL_UNSIGNED_INT_IMAGE_1D_ARRAY 0x9068
  2044. #define GL_UNSIGNED_INT_IMAGE_2D 0x9063
  2045. #define GL_UNSIGNED_INT_IMAGE_2D_ARRAY 0x9069
  2046. #define GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE 0x906b
  2047. #define GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_ARRAY 0x906c
  2048. #define GL_UNSIGNED_INT_IMAGE_2D_RECT 0x9065
  2049. #define GL_UNSIGNED_INT_IMAGE_3D 0x9064
  2050. #define GL_UNSIGNED_INT_IMAGE_BUFFER 0x9067
  2051. #define GL_UNSIGNED_INT_IMAGE_CUBE 0x9066
  2052. #define GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY 0x906a
  2053. #define GL_VERTEX_ATTRIB_ARRAY_BARRIER_BIT 0x1
  2054. #define glBindImageTexture _glplatform_glBindImageTexture
  2055. extern void (*glBindImageTexture)(GLuint, GLuint, GLint, GLboolean, GLint, GLenum, GLenum);
  2056. #define glDrawArraysInstancedBaseInstance _glplatform_glDrawArraysInstancedBaseInstance
  2057. extern void (*glDrawArraysInstancedBaseInstance)(GLenum, GLint, GLsizei, GLsizei, GLuint);
  2058. #define glDrawElementsInstancedBaseInstance _glplatform_glDrawElementsInstancedBaseInstance
  2059. extern void (*glDrawElementsInstancedBaseInstance)(GLenum, GLsizei, GLenum, const void *, GLsizei, GLuint);
  2060. #define glDrawElementsInstancedBaseVertexBaseInstance _glplatform_glDrawElementsInstancedBaseVertexBaseInstance
  2061. extern void (*glDrawElementsInstancedBaseVertexBaseInstance)(GLenum, GLsizei, GLenum, const void *, GLsizei, GLint, GLuint);
  2062. #define glDrawTransformFeedbackInstanced _glplatform_glDrawTransformFeedbackInstanced
  2063. extern void (*glDrawTransformFeedbackInstanced)(GLenum, GLuint, GLsizei);
  2064. #define glDrawTransformFeedbackStreamInstanced _glplatform_glDrawTransformFeedbackStreamInstanced
  2065. extern void (*glDrawTransformFeedbackStreamInstanced)(GLenum, GLuint, GLuint, GLsizei);
  2066. #define glGetActiveAtomicCounterBufferiv _glplatform_glGetActiveAtomicCounterBufferiv
  2067. extern void (*glGetActiveAtomicCounterBufferiv)(GLuint, GLuint, GLenum, GLint *);
  2068. #define glGetInternalformativ _glplatform_glGetInternalformativ
  2069. extern void (*glGetInternalformativ)(GLenum, GLenum, GLenum, GLsizei, GLint *);
  2070. #define glMemoryBarrier _glplatform_glMemoryBarrier
  2071. extern void (*glMemoryBarrier)(GLbitfield);
  2072. #define glTexStorage1D _glplatform_glTexStorage1D
  2073. extern void (*glTexStorage1D)(GLenum, GLsizei, GLenum, GLsizei);
  2074. #define glTexStorage2D _glplatform_glTexStorage2D
  2075. extern void (*glTexStorage2D)(GLenum, GLsizei, GLenum, GLsizei, GLsizei);
  2076. #define glTexStorage3D _glplatform_glTexStorage3D
  2077. extern void (*glTexStorage3D)(GLenum, GLsizei, GLenum, GLsizei, GLsizei, GLsizei);
  2078. #endif
  2079. #if defined(GLPLATFORM_GL_VERSION) && GLPLATFORM_GL_VERSION >= 43
  2080. #ifndef GLPLATFORM_TYPE_GLDEBUGPROC
  2081. #define GLPLATFORM_TYPE_GLDEBUGPROC
  2082. typedef void ( *GLDEBUGPROC)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam);
  2083. #endif
  2084. #ifndef GLPLATFORM_TYPE_GLchar
  2085. #define GLPLATFORM_TYPE_GLchar
  2086. typedef char GLchar;
  2087. #endif
  2088. #ifndef GLPLATFORM_TYPE_GLint64
  2089. #define GLPLATFORM_TYPE_GLint64
  2090. typedef int64_t GLint64;
  2091. #endif
  2092. #define GL_ACTIVE_RESOURCES 0x92f5
  2093. #define GL_ACTIVE_VARIABLES 0x9305
  2094. #define GL_ANY_SAMPLES_PASSED_CONSERVATIVE 0x8d6a
  2095. #define GL_ARRAY_SIZE 0x92fb
  2096. #define GL_ARRAY_STRIDE 0x92fe
  2097. #define GL_ATOMIC_COUNTER_BUFFER_INDEX 0x9301
  2098. #define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_COMPUTE_SHADER 0x90ed
  2099. #define GL_AUTO_GENERATE_MIPMAP 0x8295
  2100. #define GL_BLOCK_INDEX 0x92fd
  2101. #define GL_BUFFER 0x82e0
  2102. #define GL_BUFFER_BINDING 0x9302
  2103. #define GL_BUFFER_DATA_SIZE 0x9303
  2104. #define GL_BUFFER_VARIABLE 0x92e5
  2105. #define GL_CAVEAT_SUPPORT 0x82b8
  2106. #define GL_CLEAR_BUFFER 0x82b4
  2107. #define GL_COLOR_COMPONENTS 0x8283
  2108. #define GL_COLOR_ENCODING 0x8296
  2109. #define GL_COLOR_RENDERABLE 0x8286
  2110. #define GL_COMPRESSED_R11_EAC 0x9270
  2111. #define GL_COMPRESSED_RG11_EAC 0x9272
  2112. #define GL_COMPRESSED_RGB8_ETC2 0x9274
  2113. #define GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2 0x9276
  2114. #define GL_COMPRESSED_RGBA8_ETC2_EAC 0x9278
  2115. #define GL_COMPRESSED_SIGNED_R11_EAC 0x9271
  2116. #define GL_COMPRESSED_SIGNED_RG11_EAC 0x9273
  2117. #define GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC 0x9279
  2118. #define GL_COMPRESSED_SRGB8_ETC2 0x9275
  2119. #define GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2 0x9277
  2120. #define GL_COMPUTE_SHADER 0x91b9
  2121. #define GL_COMPUTE_SHADER_BIT 0x20
  2122. #define GL_COMPUTE_SUBROUTINE 0x92ed
  2123. #define GL_COMPUTE_SUBROUTINE_UNIFORM 0x92f3
  2124. #define GL_COMPUTE_TEXTURE 0x82a0
  2125. #define GL_COMPUTE_WORK_GROUP_SIZE 0x8267
  2126. #define GL_CONTEXT_FLAG_DEBUG_BIT 0x2
  2127. #define GL_DEBUG_CALLBACK_FUNCTION 0x8244
  2128. #define GL_DEBUG_CALLBACK_USER_PARAM 0x8245
  2129. #define GL_DEBUG_GROUP_STACK_DEPTH 0x826d
  2130. #define GL_DEBUG_LOGGED_MESSAGES 0x9145
  2131. #define GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH 0x8243
  2132. #define GL_DEBUG_OUTPUT 0x92e0
  2133. #define GL_DEBUG_OUTPUT_SYNCHRONOUS 0x8242
  2134. #define GL_DEBUG_SEVERITY_HIGH 0x9146
  2135. #define GL_DEBUG_SEVERITY_LOW 0x9148
  2136. #define GL_DEBUG_SEVERITY_MEDIUM 0x9147
  2137. #define GL_DEBUG_SEVERITY_NOTIFICATION 0x826b
  2138. #define GL_DEBUG_SOURCE_API 0x8246
  2139. #define GL_DEBUG_SOURCE_APPLICATION 0x824a
  2140. #define GL_DEBUG_SOURCE_OTHER 0x824b
  2141. #define GL_DEBUG_SOURCE_SHADER_COMPILER 0x8248
  2142. #define GL_DEBUG_SOURCE_THIRD_PARTY 0x8249
  2143. #define GL_DEBUG_SOURCE_WINDOW_SYSTEM 0x8247
  2144. #define GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR 0x824d
  2145. #define GL_DEBUG_TYPE_ERROR 0x824c
  2146. #define GL_DEBUG_TYPE_MARKER 0x8268
  2147. #define GL_DEBUG_TYPE_OTHER 0x8251
  2148. #define GL_DEBUG_TYPE_PERFORMANCE 0x8250
  2149. #define GL_DEBUG_TYPE_POP_GROUP 0x826a
  2150. #define GL_DEBUG_TYPE_PORTABILITY 0x824f
  2151. #define GL_DEBUG_TYPE_PUSH_GROUP 0x8269
  2152. #define GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR 0x824e
  2153. #define GL_DEPTH_COMPONENTS 0x8284
  2154. #define GL_DEPTH_RENDERABLE 0x8287
  2155. #define GL_DEPTH_STENCIL_TEXTURE_MODE 0x90ea
  2156. #define GL_DISPATCH_INDIRECT_BUFFER 0x90ee
  2157. #define GL_DISPATCH_INDIRECT_BUFFER_BINDING 0x90ef
  2158. #define GL_FILTER 0x829a
  2159. #define GL_FRAGMENT_SUBROUTINE 0x92ec
  2160. #define GL_FRAGMENT_SUBROUTINE_UNIFORM 0x92f2
  2161. #define GL_FRAGMENT_TEXTURE 0x829f
  2162. #define GL_FRAMEBUFFER_BLEND 0x828b
  2163. #define GL_FRAMEBUFFER_DEFAULT_FIXED_SAMPLE_LOCATIONS 0x9314
  2164. #define GL_FRAMEBUFFER_DEFAULT_HEIGHT 0x9311
  2165. #define GL_FRAMEBUFFER_DEFAULT_LAYERS 0x9312
  2166. #define GL_FRAMEBUFFER_DEFAULT_SAMPLES 0x9313
  2167. #define GL_FRAMEBUFFER_DEFAULT_WIDTH 0x9310
  2168. #define GL_FRAMEBUFFER_RENDERABLE 0x8289
  2169. #define GL_FRAMEBUFFER_RENDERABLE_LAYERED 0x828a
  2170. #define GL_FULL_SUPPORT 0x82b7
  2171. #define GL_GEOMETRY_SUBROUTINE 0x92eb
  2172. #define GL_GEOMETRY_SUBROUTINE_UNIFORM 0x92f1
  2173. #define GL_GEOMETRY_TEXTURE 0x829e
  2174. #define GL_GET_TEXTURE_IMAGE_FORMAT 0x8291
  2175. #define GL_GET_TEXTURE_IMAGE_TYPE 0x8292
  2176. #define GL_IMAGE_CLASS_10_10_10_2 0x82c3
  2177. #define GL_IMAGE_CLASS_11_11_10 0x82c2
  2178. #define GL_IMAGE_CLASS_1_X_16 0x82be
  2179. #define GL_IMAGE_CLASS_1_X_32 0x82bb
  2180. #define GL_IMAGE_CLASS_1_X_8 0x82c1
  2181. #define GL_IMAGE_CLASS_2_X_16 0x82bd
  2182. #define GL_IMAGE_CLASS_2_X_32 0x82ba
  2183. #define GL_IMAGE_CLASS_2_X_8 0x82c0
  2184. #define GL_IMAGE_CLASS_4_X_16 0x82bc
  2185. #define GL_IMAGE_CLASS_4_X_32 0x82b9
  2186. #define GL_IMAGE_CLASS_4_X_8 0x82bf
  2187. #define GL_IMAGE_COMPATIBILITY_CLASS 0x82a8
  2188. #define GL_IMAGE_PIXEL_FORMAT 0x82a9
  2189. #define GL_IMAGE_PIXEL_TYPE 0x82aa
  2190. #define GL_IMAGE_TEXEL_SIZE 0x82a7
  2191. #define GL_INTERNALFORMAT_ALPHA_SIZE 0x8274
  2192. #define GL_INTERNALFORMAT_ALPHA_TYPE 0x827b
  2193. #define GL_INTERNALFORMAT_BLUE_SIZE 0x8273
  2194. #define GL_INTERNALFORMAT_BLUE_TYPE 0x827a
  2195. #define GL_INTERNALFORMAT_DEPTH_SIZE 0x8275
  2196. #define GL_INTERNALFORMAT_DEPTH_TYPE 0x827c
  2197. #define GL_INTERNALFORMAT_GREEN_SIZE 0x8272
  2198. #define GL_INTERNALFORMAT_GREEN_TYPE 0x8279
  2199. #define GL_INTERNALFORMAT_PREFERRED 0x8270
  2200. #define GL_INTERNALFORMAT_RED_SIZE 0x8271
  2201. #define GL_INTERNALFORMAT_RED_TYPE 0x8278
  2202. #define GL_INTERNALFORMAT_SHARED_SIZE 0x8277
  2203. #define GL_INTERNALFORMAT_STENCIL_SIZE 0x8276
  2204. #define GL_INTERNALFORMAT_STENCIL_TYPE 0x827d
  2205. #define GL_INTERNALFORMAT_SUPPORTED 0x826f
  2206. #define GL_IS_PER_PATCH 0x92e7
  2207. #define GL_IS_ROW_MAJOR 0x9300
  2208. #define GL_LOCATION 0x930e
  2209. #define GL_LOCATION_INDEX 0x930f
  2210. #define GL_MANUAL_GENERATE_MIPMAP 0x8294
  2211. #define GL_MATRIX_STRIDE 0x92ff
  2212. #define GL_MAX_COMBINED_COMPUTE_UNIFORM_COMPONENTS 0x8266
  2213. #define GL_MAX_COMBINED_DIMENSIONS 0x8282
  2214. #define GL_MAX_COMBINED_SHADER_OUTPUT_RESOURCES 0x8f39
  2215. #define GL_MAX_COMBINED_SHADER_STORAGE_BLOCKS 0x90dc
  2216. #define GL_MAX_COMPUTE_ATOMIC_COUNTERS 0x8265
  2217. #define GL_MAX_COMPUTE_ATOMIC_COUNTER_BUFFERS 0x8264
  2218. #define GL_MAX_COMPUTE_IMAGE_UNIFORMS 0x91bd
  2219. #define GL_MAX_COMPUTE_SHADER_STORAGE_BLOCKS 0x90db
  2220. #define GL_MAX_COMPUTE_SHARED_MEMORY_SIZE 0x8262
  2221. #define GL_MAX_COMPUTE_TEXTURE_IMAGE_UNITS 0x91bc
  2222. #define GL_MAX_COMPUTE_UNIFORM_BLOCKS 0x91bb
  2223. #define GL_MAX_COMPUTE_UNIFORM_COMPONENTS 0x8263
  2224. #define GL_MAX_COMPUTE_WORK_GROUP_COUNT 0x91be
  2225. #define GL_MAX_COMPUTE_WORK_GROUP_INVOCATIONS 0x90eb
  2226. #define GL_MAX_COMPUTE_WORK_GROUP_SIZE 0x91bf
  2227. #define GL_MAX_DEBUG_GROUP_STACK_DEPTH 0x826c
  2228. #define GL_MAX_DEBUG_LOGGED_MESSAGES 0x9144
  2229. #define GL_MAX_DEBUG_MESSAGE_LENGTH 0x9143
  2230. #define GL_MAX_DEPTH 0x8280
  2231. #define GL_MAX_ELEMENT_INDEX 0x8d6b
  2232. #define GL_MAX_FRAGMENT_SHADER_STORAGE_BLOCKS 0x90da
  2233. #define GL_MAX_FRAMEBUFFER_HEIGHT 0x9316
  2234. #define GL_MAX_FRAMEBUFFER_LAYERS 0x9317
  2235. #define GL_MAX_FRAMEBUFFER_SAMPLES 0x9318
  2236. #define GL_MAX_FRAMEBUFFER_WIDTH 0x9315
  2237. #define GL_MAX_GEOMETRY_SHADER_STORAGE_BLOCKS 0x90d7
  2238. #define GL_MAX_HEIGHT 0x827f
  2239. #define GL_MAX_LABEL_LENGTH 0x82e8
  2240. #define GL_MAX_LAYERS 0x8281
  2241. #define GL_MAX_NAME_LENGTH 0x92f6
  2242. #define GL_MAX_NUM_ACTIVE_VARIABLES 0x92f7
  2243. #define GL_MAX_NUM_COMPATIBLE_SUBROUTINES 0x92f8
  2244. #define GL_MAX_SHADER_STORAGE_BLOCK_SIZE 0x90de
  2245. #define GL_MAX_SHADER_STORAGE_BUFFER_BINDINGS 0x90dd
  2246. #define GL_MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS 0x90d8
  2247. #define GL_MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS 0x90d9
  2248. #define GL_MAX_UNIFORM_LOCATIONS 0x826e
  2249. #define GL_MAX_VERTEX_ATTRIB_BINDINGS 0x82da
  2250. #define GL_MAX_VERTEX_ATTRIB_RELATIVE_OFFSET 0x82d9
  2251. #define GL_MAX_VERTEX_SHADER_STORAGE_BLOCKS 0x90d6
  2252. #define GL_MAX_WIDTH 0x827e
  2253. #define GL_MIPMAP 0x8293
  2254. #define GL_NAME_LENGTH 0x92f9
  2255. #define GL_NUM_ACTIVE_VARIABLES 0x9304
  2256. #define GL_NUM_SHADING_LANGUAGE_VERSIONS 0x82e9
  2257. #define GL_OFFSET 0x92fc
  2258. #define GL_PRIMITIVE_RESTART_FIXED_INDEX 0x8d69
  2259. #define GL_PROGRAM 0x82e2
  2260. #define GL_PROGRAM_INPUT 0x92e3
  2261. #define GL_PROGRAM_OUTPUT 0x92e4
  2262. #define GL_PROGRAM_PIPELINE 0x82e4
  2263. #define GL_QUERY 0x82e3
  2264. #define GL_READ_PIXELS 0x828c
  2265. #define GL_READ_PIXELS_FORMAT 0x828d
  2266. #define GL_READ_PIXELS_TYPE 0x828e
  2267. #define GL_REFERENCED_BY_COMPUTE_SHADER 0x930b
  2268. #define GL_REFERENCED_BY_FRAGMENT_SHADER 0x930a
  2269. #define GL_REFERENCED_BY_GEOMETRY_SHADER 0x9309
  2270. #define GL_REFERENCED_BY_TESS_CONTROL_SHADER 0x9307
  2271. #define GL_REFERENCED_BY_TESS_EVALUATION_SHADER 0x9308
  2272. #define GL_REFERENCED_BY_VERTEX_SHADER 0x9306
  2273. #define GL_SAMPLER 0x82e6
  2274. #define GL_SHADER 0x82e1
  2275. #define GL_SHADER_IMAGE_ATOMIC 0x82a6
  2276. #define GL_SHADER_IMAGE_LOAD 0x82a4
  2277. #define GL_SHADER_IMAGE_STORE 0x82a5
  2278. #define GL_SHADER_STORAGE_BARRIER_BIT 0x2000
  2279. #define GL_SHADER_STORAGE_BLOCK 0x92e6
  2280. #define GL_SHADER_STORAGE_BUFFER 0x90d2
  2281. #define GL_SHADER_STORAGE_BUFFER_BINDING 0x90d3
  2282. #define GL_SHADER_STORAGE_BUFFER_OFFSET_ALIGNMENT 0x90df
  2283. #define GL_SHADER_STORAGE_BUFFER_SIZE 0x90d5
  2284. #define GL_SHADER_STORAGE_BUFFER_START 0x90d4
  2285. #define GL_SIMULTANEOUS_TEXTURE_AND_DEPTH_TEST 0x82ac
  2286. #define GL_SIMULTANEOUS_TEXTURE_AND_DEPTH_WRITE 0x82ae
  2287. #define GL_SIMULTANEOUS_TEXTURE_AND_STENCIL_TEST 0x82ad
  2288. #define GL_SIMULTANEOUS_TEXTURE_AND_STENCIL_WRITE 0x82af
  2289. #define GL_SRGB_READ 0x8297
  2290. #define GL_SRGB_WRITE 0x8298
  2291. #define GL_STACK_OVERFLOW 0x503
  2292. #define GL_STACK_UNDERFLOW 0x504
  2293. #define GL_STENCIL_COMPONENTS 0x8285
  2294. #define GL_STENCIL_RENDERABLE 0x8288
  2295. #define GL_TESS_CONTROL_SUBROUTINE 0x92e9
  2296. #define GL_TESS_CONTROL_SUBROUTINE_UNIFORM 0x92ef
  2297. #define GL_TESS_CONTROL_TEXTURE 0x829c
  2298. #define GL_TESS_EVALUATION_SUBROUTINE 0x92ea
  2299. #define GL_TESS_EVALUATION_SUBROUTINE_UNIFORM 0x92f0
  2300. #define GL_TESS_EVALUATION_TEXTURE 0x829d
  2301. #define GL_TEXTURE_BUFFER_OFFSET 0x919d
  2302. #define GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT 0x919f
  2303. #define GL_TEXTURE_BUFFER_SIZE 0x919e
  2304. #define GL_TEXTURE_COMPRESSED_BLOCK_HEIGHT 0x82b2
  2305. #define GL_TEXTURE_COMPRESSED_BLOCK_SIZE 0x82b3
  2306. #define GL_TEXTURE_COMPRESSED_BLOCK_WIDTH 0x82b1
  2307. #define GL_TEXTURE_GATHER 0x82a2
  2308. #define GL_TEXTURE_GATHER_SHADOW 0x82a3
  2309. #define GL_TEXTURE_IMAGE_FORMAT 0x828f
  2310. #define GL_TEXTURE_IMAGE_TYPE 0x8290
  2311. #define GL_TEXTURE_IMMUTABLE_LEVELS 0x82df
  2312. #define GL_TEXTURE_SHADOW 0x82a1
  2313. #define GL_TEXTURE_VIEW 0x82b5
  2314. #define GL_TEXTURE_VIEW_MIN_LAYER 0x82dd
  2315. #define GL_TEXTURE_VIEW_MIN_LEVEL 0x82db
  2316. #define GL_TEXTURE_VIEW_NUM_LAYERS 0x82de
  2317. #define GL_TEXTURE_VIEW_NUM_LEVELS 0x82dc
  2318. #define GL_TOP_LEVEL_ARRAY_SIZE 0x930c
  2319. #define GL_TOP_LEVEL_ARRAY_STRIDE 0x930d
  2320. #define GL_TRANSFORM_FEEDBACK_VARYING 0x92f4
  2321. #define GL_TYPE 0x92fa
  2322. #define GL_UNIFORM 0x92e1
  2323. #define GL_UNIFORM_BLOCK 0x92e2
  2324. #define GL_UNIFORM_BLOCK_REFERENCED_BY_COMPUTE_SHADER 0x90ec
  2325. #define GL_VERTEX_ARRAY 0x8074
  2326. #define GL_VERTEX_ATTRIB_ARRAY_LONG 0x874e
  2327. #define GL_VERTEX_ATTRIB_BINDING 0x82d4
  2328. #define GL_VERTEX_ATTRIB_RELATIVE_OFFSET 0x82d5
  2329. #define GL_VERTEX_BINDING_BUFFER 0x8f4f
  2330. #define GL_VERTEX_BINDING_DIVISOR 0x82d6
  2331. #define GL_VERTEX_BINDING_OFFSET 0x82d7
  2332. #define GL_VERTEX_BINDING_STRIDE 0x82d8
  2333. #define GL_VERTEX_SUBROUTINE 0x92e8
  2334. #define GL_VERTEX_SUBROUTINE_UNIFORM 0x92ee
  2335. #define GL_VERTEX_TEXTURE 0x829b
  2336. #define GL_VIEW_CLASS_128_BITS 0x82c4
  2337. #define GL_VIEW_CLASS_16_BITS 0x82ca
  2338. #define GL_VIEW_CLASS_24_BITS 0x82c9
  2339. #define GL_VIEW_CLASS_32_BITS 0x82c8
  2340. #define GL_VIEW_CLASS_48_BITS 0x82c7
  2341. #define GL_VIEW_CLASS_64_BITS 0x82c6
  2342. #define GL_VIEW_CLASS_8_BITS 0x82cb
  2343. #define GL_VIEW_CLASS_96_BITS 0x82c5
  2344. #define GL_VIEW_CLASS_BPTC_FLOAT 0x82d3
  2345. #define GL_VIEW_CLASS_BPTC_UNORM 0x82d2
  2346. #define GL_VIEW_CLASS_RGTC1_RED 0x82d0
  2347. #define GL_VIEW_CLASS_RGTC2_RG 0x82d1
  2348. #define GL_VIEW_CLASS_S3TC_DXT1_RGB 0x82cc
  2349. #define GL_VIEW_CLASS_S3TC_DXT1_RGBA 0x82cd
  2350. #define GL_VIEW_CLASS_S3TC_DXT3_RGBA 0x82ce
  2351. #define GL_VIEW_CLASS_S3TC_DXT5_RGBA 0x82cf
  2352. #define GL_VIEW_COMPATIBILITY_CLASS 0x82b6
  2353. #define glBindVertexBuffer _glplatform_glBindVertexBuffer
  2354. extern void (*glBindVertexBuffer)(GLuint, GLuint, GLintptr, GLsizei);
  2355. #define glClearBufferData _glplatform_glClearBufferData
  2356. extern void (*glClearBufferData)(GLenum, GLenum, GLenum, GLenum, const void *);
  2357. #define glClearBufferSubData _glplatform_glClearBufferSubData
  2358. extern void (*glClearBufferSubData)(GLenum, GLenum, GLintptr, GLsizeiptr, GLenum, GLenum, const void *);
  2359. #define glCopyImageSubData _glplatform_glCopyImageSubData
  2360. extern void (*glCopyImageSubData)(GLuint, GLenum, GLint, GLint, GLint, GLint, GLuint, GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei);
  2361. #define glDebugMessageCallback _glplatform_glDebugMessageCallback
  2362. extern void (*glDebugMessageCallback)(GLDEBUGPROC, const void *);
  2363. #define glDebugMessageControl _glplatform_glDebugMessageControl
  2364. extern void (*glDebugMessageControl)(GLenum, GLenum, GLenum, GLsizei, const GLuint *, GLboolean);
  2365. #define glDebugMessageInsert _glplatform_glDebugMessageInsert
  2366. extern void (*glDebugMessageInsert)(GLenum, GLenum, GLuint, GLenum, GLsizei, const GLchar *);
  2367. #define glDispatchCompute _glplatform_glDispatchCompute
  2368. extern void (*glDispatchCompute)(GLuint, GLuint, GLuint);
  2369. #define glDispatchComputeIndirect _glplatform_glDispatchComputeIndirect
  2370. extern void (*glDispatchComputeIndirect)(GLintptr);
  2371. #define glFramebufferParameteri _glplatform_glFramebufferParameteri
  2372. extern void (*glFramebufferParameteri)(GLenum, GLenum, GLint);
  2373. #define glGetDebugMessageLog _glplatform_glGetDebugMessageLog
  2374. extern GLuint (*glGetDebugMessageLog)(GLuint, GLsizei, GLenum *, GLenum *, GLuint *, GLenum *, GLsizei *, GLchar *);
  2375. #define glGetFramebufferParameteriv _glplatform_glGetFramebufferParameteriv
  2376. extern void (*glGetFramebufferParameteriv)(GLenum, GLenum, GLint *);
  2377. #define glGetInternalformati64v _glplatform_glGetInternalformati64v
  2378. extern void (*glGetInternalformati64v)(GLenum, GLenum, GLenum, GLsizei, GLint64 *);
  2379. #define glGetObjectLabel _glplatform_glGetObjectLabel
  2380. extern void (*glGetObjectLabel)(GLenum, GLuint, GLsizei, GLsizei *, GLchar *);
  2381. #define glGetObjectPtrLabel _glplatform_glGetObjectPtrLabel
  2382. extern void (*glGetObjectPtrLabel)(const void *, GLsizei, GLsizei *, GLchar *);
  2383. #define glGetPointerv _glplatform_glGetPointerv
  2384. extern void (*glGetPointerv)(GLenum, void **);
  2385. #define glGetProgramInterfaceiv _glplatform_glGetProgramInterfaceiv
  2386. extern void (*glGetProgramInterfaceiv)(GLuint, GLenum, GLenum, GLint *);
  2387. #define glGetProgramResourceIndex _glplatform_glGetProgramResourceIndex
  2388. extern GLuint (*glGetProgramResourceIndex)(GLuint, GLenum, const GLchar *);
  2389. #define glGetProgramResourceLocation _glplatform_glGetProgramResourceLocation
  2390. extern GLint (*glGetProgramResourceLocation)(GLuint, GLenum, const GLchar *);
  2391. #define glGetProgramResourceLocationIndex _glplatform_glGetProgramResourceLocationIndex
  2392. extern GLint (*glGetProgramResourceLocationIndex)(GLuint, GLenum, const GLchar *);
  2393. #define glGetProgramResourceName _glplatform_glGetProgramResourceName
  2394. extern void (*glGetProgramResourceName)(GLuint, GLenum, GLuint, GLsizei, GLsizei *, GLchar *);
  2395. #define glGetProgramResourceiv _glplatform_glGetProgramResourceiv
  2396. extern void (*glGetProgramResourceiv)(GLuint, GLenum, GLuint, GLsizei, const GLenum *, GLsizei, GLsizei *, GLint *);
  2397. #define glInvalidateBufferData _glplatform_glInvalidateBufferData
  2398. extern void (*glInvalidateBufferData)(GLuint);
  2399. #define glInvalidateBufferSubData _glplatform_glInvalidateBufferSubData
  2400. extern void (*glInvalidateBufferSubData)(GLuint, GLintptr, GLsizeiptr);
  2401. #define glInvalidateFramebuffer _glplatform_glInvalidateFramebuffer
  2402. extern void (*glInvalidateFramebuffer)(GLenum, GLsizei, const GLenum *);
  2403. #define glInvalidateSubFramebuffer _glplatform_glInvalidateSubFramebuffer
  2404. extern void (*glInvalidateSubFramebuffer)(GLenum, GLsizei, const GLenum *, GLint, GLint, GLsizei, GLsizei);
  2405. #define glInvalidateTexImage _glplatform_glInvalidateTexImage
  2406. extern void (*glInvalidateTexImage)(GLuint, GLint);
  2407. #define glInvalidateTexSubImage _glplatform_glInvalidateTexSubImage
  2408. extern void (*glInvalidateTexSubImage)(GLuint, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei);
  2409. #define glMultiDrawArraysIndirect _glplatform_glMultiDrawArraysIndirect
  2410. extern void (*glMultiDrawArraysIndirect)(GLenum, const void *, GLsizei, GLsizei);
  2411. #define glMultiDrawElementsIndirect _glplatform_glMultiDrawElementsIndirect
  2412. extern void (*glMultiDrawElementsIndirect)(GLenum, GLenum, const void *, GLsizei, GLsizei);
  2413. #define glObjectLabel _glplatform_glObjectLabel
  2414. extern void (*glObjectLabel)(GLenum, GLuint, GLsizei, const GLchar *);
  2415. #define glObjectPtrLabel _glplatform_glObjectPtrLabel
  2416. extern void (*glObjectPtrLabel)(const void *, GLsizei, const GLchar *);
  2417. #define glPopDebugGroup _glplatform_glPopDebugGroup
  2418. extern void (*glPopDebugGroup)();
  2419. #define glPushDebugGroup _glplatform_glPushDebugGroup
  2420. extern void (*glPushDebugGroup)(GLenum, GLuint, GLsizei, const GLchar *);
  2421. #define glShaderStorageBlockBinding _glplatform_glShaderStorageBlockBinding
  2422. extern void (*glShaderStorageBlockBinding)(GLuint, GLuint, GLuint);
  2423. #define glTexBufferRange _glplatform_glTexBufferRange
  2424. extern void (*glTexBufferRange)(GLenum, GLenum, GLuint, GLintptr, GLsizeiptr);
  2425. #define glTexStorage2DMultisample _glplatform_glTexStorage2DMultisample
  2426. extern void (*glTexStorage2DMultisample)(GLenum, GLsizei, GLenum, GLsizei, GLsizei, GLboolean);
  2427. #define glTexStorage3DMultisample _glplatform_glTexStorage3DMultisample
  2428. extern void (*glTexStorage3DMultisample)(GLenum, GLsizei, GLenum, GLsizei, GLsizei, GLsizei, GLboolean);
  2429. #define glTextureView _glplatform_glTextureView
  2430. extern void (*glTextureView)(GLuint, GLenum, GLuint, GLenum, GLuint, GLuint, GLuint, GLuint);
  2431. #define glVertexAttribBinding _glplatform_glVertexAttribBinding
  2432. extern void (*glVertexAttribBinding)(GLuint, GLuint);
  2433. #define glVertexAttribFormat _glplatform_glVertexAttribFormat
  2434. extern void (*glVertexAttribFormat)(GLuint, GLint, GLenum, GLboolean, GLuint);
  2435. #define glVertexAttribIFormat _glplatform_glVertexAttribIFormat
  2436. extern void (*glVertexAttribIFormat)(GLuint, GLint, GLenum, GLuint);
  2437. #define glVertexAttribLFormat _glplatform_glVertexAttribLFormat
  2438. extern void (*glVertexAttribLFormat)(GLuint, GLint, GLenum, GLuint);
  2439. #define glVertexBindingDivisor _glplatform_glVertexBindingDivisor
  2440. extern void (*glVertexBindingDivisor)(GLuint, GLuint);
  2441. #endif
  2442. #if defined(GLPLATFORM_GL_VERSION) && GLPLATFORM_GL_VERSION >= 44
  2443. #define GL_BUFFER_IMMUTABLE_STORAGE 0x821f
  2444. #define GL_BUFFER_STORAGE_FLAGS 0x8220
  2445. #define GL_CLEAR_TEXTURE 0x9365
  2446. #define GL_CLIENT_MAPPED_BUFFER_BARRIER_BIT 0x4000
  2447. #define GL_CLIENT_STORAGE_BIT 0x200
  2448. #define GL_DYNAMIC_STORAGE_BIT 0x100
  2449. #define GL_LOCATION_COMPONENT 0x934a
  2450. #define GL_MAP_COHERENT_BIT 0x80
  2451. #define GL_MAP_PERSISTENT_BIT 0x40
  2452. #define GL_MAP_READ_BIT 0x1
  2453. #define GL_MAP_WRITE_BIT 0x2
  2454. #define GL_MAX_VERTEX_ATTRIB_STRIDE 0x82e5
  2455. #define GL_MIRROR_CLAMP_TO_EDGE 0x8743
  2456. #define GL_PRIMITIVE_RESTART_FOR_PATCHES_SUPPORTED 0x8221
  2457. #define GL_QUERY_BUFFER 0x9192
  2458. #define GL_QUERY_BUFFER_BARRIER_BIT 0x8000
  2459. #define GL_QUERY_BUFFER_BINDING 0x9193
  2460. #define GL_QUERY_RESULT_NO_WAIT 0x9194
  2461. #define GL_STENCIL_INDEX 0x1901
  2462. #define GL_STENCIL_INDEX8 0x8d48
  2463. #define GL_TEXTURE_BUFFER_BINDING 0x8c2a
  2464. #define GL_TRANSFORM_FEEDBACK_BUFFER 0x8c8e
  2465. #define GL_TRANSFORM_FEEDBACK_BUFFER_INDEX 0x934b
  2466. #define GL_TRANSFORM_FEEDBACK_BUFFER_STRIDE 0x934c
  2467. #define GL_UNSIGNED_INT_10F_11F_11F_REV 0x8c3b
  2468. #define glBindBuffersBase _glplatform_glBindBuffersBase
  2469. extern void (*glBindBuffersBase)(GLenum, GLuint, GLsizei, const GLuint *);
  2470. #define glBindBuffersRange _glplatform_glBindBuffersRange
  2471. extern void (*glBindBuffersRange)(GLenum, GLuint, GLsizei, const GLuint *, const GLintptr *, const GLsizeiptr *);
  2472. #define glBindImageTextures _glplatform_glBindImageTextures
  2473. extern void (*glBindImageTextures)(GLuint, GLsizei, const GLuint *);
  2474. #define glBindSamplers _glplatform_glBindSamplers
  2475. extern void (*glBindSamplers)(GLuint, GLsizei, const GLuint *);
  2476. #define glBindTextures _glplatform_glBindTextures
  2477. extern void (*glBindTextures)(GLuint, GLsizei, const GLuint *);
  2478. #define glBindVertexBuffers _glplatform_glBindVertexBuffers
  2479. extern void (*glBindVertexBuffers)(GLuint, GLsizei, const GLuint *, const GLintptr *, const GLsizei *);
  2480. #define glBufferStorage _glplatform_glBufferStorage
  2481. extern void (*glBufferStorage)(GLenum, GLsizeiptr, const void *, GLbitfield);
  2482. #define glClearTexImage _glplatform_glClearTexImage
  2483. extern void (*glClearTexImage)(GLuint, GLint, GLenum, GLenum, const void *);
  2484. #define glClearTexSubImage _glplatform_glClearTexSubImage
  2485. extern void (*glClearTexSubImage)(GLuint, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const void *);
  2486. #endif
  2487. #if defined(GLPLATFORM_GL_VERSION) && GLPLATFORM_GL_VERSION >= 45
  2488. #ifndef GLPLATFORM_TYPE_GLint64
  2489. #define GLPLATFORM_TYPE_GLint64
  2490. typedef int64_t GLint64;
  2491. #endif
  2492. #define GL_BACK 0x405
  2493. #define GL_CLIP_DEPTH_MODE 0x935d
  2494. #define GL_CLIP_ORIGIN 0x935c
  2495. #define GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT 0x4
  2496. #define GL_CONTEXT_LOST 0x507
  2497. #define GL_CONTEXT_RELEASE_BEHAVIOR 0x82fb
  2498. #define GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH 0x82fc
  2499. #define GL_GUILTY_CONTEXT_RESET 0x8253
  2500. #define GL_INNOCENT_CONTEXT_RESET 0x8254
  2501. #define GL_LOSE_CONTEXT_ON_RESET 0x8252
  2502. #define GL_LOWER_LEFT 0x8ca1
  2503. #define GL_MAX_COMBINED_CLIP_AND_CULL_DISTANCES 0x82fa
  2504. #define GL_MAX_CULL_DISTANCES 0x82f9
  2505. #define GL_NEGATIVE_ONE_TO_ONE 0x935e
  2506. #define GL_NONE 0x0
  2507. #define GL_NO_ERROR 0x0
  2508. #define GL_NO_RESET_NOTIFICATION 0x8261
  2509. #define GL_QUERY_BY_REGION_NO_WAIT_INVERTED 0x8e1a
  2510. #define GL_QUERY_BY_REGION_WAIT_INVERTED 0x8e19
  2511. #define GL_QUERY_NO_WAIT_INVERTED 0x8e18
  2512. #define GL_QUERY_TARGET 0x82ea
  2513. #define GL_QUERY_WAIT_INVERTED 0x8e17
  2514. #define GL_RESET_NOTIFICATION_STRATEGY 0x8256
  2515. #define GL_TEXTURE_BINDING 0x82eb
  2516. #define GL_TEXTURE_BINDING_1D 0x8068
  2517. #define GL_TEXTURE_BINDING_1D_ARRAY 0x8c1c
  2518. #define GL_TEXTURE_BINDING_2D 0x8069
  2519. #define GL_TEXTURE_BINDING_2D_ARRAY 0x8c1d
  2520. #define GL_TEXTURE_BINDING_2D_MULTISAMPLE 0x9104
  2521. #define GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY 0x9105
  2522. #define GL_TEXTURE_BINDING_3D 0x806a
  2523. #define GL_TEXTURE_BINDING_BUFFER 0x8c2c
  2524. #define GL_TEXTURE_BINDING_CUBE_MAP 0x8514
  2525. #define GL_TEXTURE_BINDING_CUBE_MAP_ARRAY 0x900a
  2526. #define GL_TEXTURE_BINDING_RECTANGLE 0x84f6
  2527. #define GL_TEXTURE_TARGET 0x1006
  2528. #define GL_UNKNOWN_CONTEXT_RESET 0x8255
  2529. #define GL_UPPER_LEFT 0x8ca2
  2530. #define GL_ZERO_TO_ONE 0x935f
  2531. #define glBindTextureUnit _glplatform_glBindTextureUnit
  2532. extern void (*glBindTextureUnit)(GLuint, GLuint);
  2533. #define glBlitNamedFramebuffer _glplatform_glBlitNamedFramebuffer
  2534. extern void (*glBlitNamedFramebuffer)(GLuint, GLuint, GLint, GLint, GLint, GLint, GLint, GLint, GLint, GLint, GLbitfield, GLenum);
  2535. #define glCheckNamedFramebufferStatus _glplatform_glCheckNamedFramebufferStatus
  2536. extern GLenum (*glCheckNamedFramebufferStatus)(GLuint, GLenum);
  2537. #define glClearNamedBufferData _glplatform_glClearNamedBufferData
  2538. extern void (*glClearNamedBufferData)(GLuint, GLenum, GLenum, GLenum, const void *);
  2539. #define glClearNamedBufferSubData _glplatform_glClearNamedBufferSubData
  2540. extern void (*glClearNamedBufferSubData)(GLuint, GLenum, GLintptr, GLsizei, GLenum, GLenum, const void *);
  2541. #define glClearNamedFramebufferfi _glplatform_glClearNamedFramebufferfi
  2542. extern void (*glClearNamedFramebufferfi)(GLuint, GLenum, const GLfloat, GLint);
  2543. #define glClearNamedFramebufferfv _glplatform_glClearNamedFramebufferfv
  2544. extern void (*glClearNamedFramebufferfv)(GLuint, GLenum, GLint, const GLfloat *);
  2545. #define glClearNamedFramebufferiv _glplatform_glClearNamedFramebufferiv
  2546. extern void (*glClearNamedFramebufferiv)(GLuint, GLenum, GLint, const GLint *);
  2547. #define glClearNamedFramebufferuiv _glplatform_glClearNamedFramebufferuiv
  2548. extern void (*glClearNamedFramebufferuiv)(GLuint, GLenum, GLint, const GLuint *);
  2549. #define glClipControl _glplatform_glClipControl
  2550. extern void (*glClipControl)(GLenum, GLenum);
  2551. #define glCompressedTextureSubImage1D _glplatform_glCompressedTextureSubImage1D
  2552. extern void (*glCompressedTextureSubImage1D)(GLuint, GLint, GLint, GLsizei, GLenum, GLsizei, const void *);
  2553. #define glCompressedTextureSubImage2D _glplatform_glCompressedTextureSubImage2D
  2554. extern void (*glCompressedTextureSubImage2D)(GLuint, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLsizei, const void *);
  2555. #define glCompressedTextureSubImage3D _glplatform_glCompressedTextureSubImage3D
  2556. extern void (*glCompressedTextureSubImage3D)(GLuint, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLsizei, const void *);
  2557. #define glCopyNamedBufferSubData _glplatform_glCopyNamedBufferSubData
  2558. extern void (*glCopyNamedBufferSubData)(GLuint, GLuint, GLintptr, GLintptr, GLsizei);
  2559. #define glCopyTextureSubImage1D _glplatform_glCopyTextureSubImage1D
  2560. extern void (*glCopyTextureSubImage1D)(GLuint, GLint, GLint, GLint, GLint, GLsizei);
  2561. #define glCopyTextureSubImage2D _glplatform_glCopyTextureSubImage2D
  2562. extern void (*glCopyTextureSubImage2D)(GLuint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei);
  2563. #define glCopyTextureSubImage3D _glplatform_glCopyTextureSubImage3D
  2564. extern void (*glCopyTextureSubImage3D)(GLuint, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei);
  2565. #define glCreateBuffers _glplatform_glCreateBuffers
  2566. extern void (*glCreateBuffers)(GLsizei, GLuint *);
  2567. #define glCreateFramebuffers _glplatform_glCreateFramebuffers
  2568. extern void (*glCreateFramebuffers)(GLsizei, GLuint *);
  2569. #define glCreateProgramPipelines _glplatform_glCreateProgramPipelines
  2570. extern void (*glCreateProgramPipelines)(GLsizei, GLuint *);
  2571. #define glCreateQueries _glplatform_glCreateQueries
  2572. extern void (*glCreateQueries)(GLenum, GLsizei, GLuint *);
  2573. #define glCreateRenderbuffers _glplatform_glCreateRenderbuffers
  2574. extern void (*glCreateRenderbuffers)(GLsizei, GLuint *);
  2575. #define glCreateSamplers _glplatform_glCreateSamplers
  2576. extern void (*glCreateSamplers)(GLsizei, GLuint *);
  2577. #define glCreateTextures _glplatform_glCreateTextures
  2578. extern void (*glCreateTextures)(GLenum, GLsizei, GLuint *);
  2579. #define glCreateTransformFeedbacks _glplatform_glCreateTransformFeedbacks
  2580. extern void (*glCreateTransformFeedbacks)(GLsizei, GLuint *);
  2581. #define glCreateVertexArrays _glplatform_glCreateVertexArrays
  2582. extern void (*glCreateVertexArrays)(GLsizei, GLuint *);
  2583. #define glDisableVertexArrayAttrib _glplatform_glDisableVertexArrayAttrib
  2584. extern void (*glDisableVertexArrayAttrib)(GLuint, GLuint);
  2585. #define glEnableVertexArrayAttrib _glplatform_glEnableVertexArrayAttrib
  2586. extern void (*glEnableVertexArrayAttrib)(GLuint, GLuint);
  2587. #define glFlushMappedNamedBufferRange _glplatform_glFlushMappedNamedBufferRange
  2588. extern void (*glFlushMappedNamedBufferRange)(GLuint, GLintptr, GLsizei);
  2589. #define glGenerateTextureMipmap _glplatform_glGenerateTextureMipmap
  2590. extern void (*glGenerateTextureMipmap)(GLuint);
  2591. #define glGetCompressedTextureImage _glplatform_glGetCompressedTextureImage
  2592. extern void (*glGetCompressedTextureImage)(GLuint, GLint, GLsizei, void *);
  2593. #define glGetCompressedTextureSubImage _glplatform_glGetCompressedTextureSubImage
  2594. extern void (*glGetCompressedTextureSubImage)(GLuint, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLsizei, void *);
  2595. #define glGetGraphicsResetStatus _glplatform_glGetGraphicsResetStatus
  2596. extern GLenum (*glGetGraphicsResetStatus)();
  2597. #define glGetNamedBufferParameteri64v _glplatform_glGetNamedBufferParameteri64v
  2598. extern void (*glGetNamedBufferParameteri64v)(GLuint, GLenum, GLint64 *);
  2599. #define glGetNamedBufferParameteriv _glplatform_glGetNamedBufferParameteriv
  2600. extern void (*glGetNamedBufferParameteriv)(GLuint, GLenum, GLint *);
  2601. #define glGetNamedBufferPointerv _glplatform_glGetNamedBufferPointerv
  2602. extern void (*glGetNamedBufferPointerv)(GLuint, GLenum, void **);
  2603. #define glGetNamedBufferSubData _glplatform_glGetNamedBufferSubData
  2604. extern void (*glGetNamedBufferSubData)(GLuint, GLintptr, GLsizei, void *);
  2605. #define glGetNamedFramebufferAttachmentParameteriv _glplatform_glGetNamedFramebufferAttachmentParameteriv
  2606. extern void (*glGetNamedFramebufferAttachmentParameteriv)(GLuint, GLenum, GLenum, GLint *);
  2607. #define glGetNamedFramebufferParameteriv _glplatform_glGetNamedFramebufferParameteriv
  2608. extern void (*glGetNamedFramebufferParameteriv)(GLuint, GLenum, GLint *);
  2609. #define glGetNamedRenderbufferParameteriv _glplatform_glGetNamedRenderbufferParameteriv
  2610. extern void (*glGetNamedRenderbufferParameteriv)(GLuint, GLenum, GLint *);
  2611. #define glGetQueryBufferObjecti64v _glplatform_glGetQueryBufferObjecti64v
  2612. extern void (*glGetQueryBufferObjecti64v)(GLuint, GLuint, GLenum, GLintptr);
  2613. #define glGetQueryBufferObjectiv _glplatform_glGetQueryBufferObjectiv
  2614. extern void (*glGetQueryBufferObjectiv)(GLuint, GLuint, GLenum, GLintptr);
  2615. #define glGetQueryBufferObjectui64v _glplatform_glGetQueryBufferObjectui64v
  2616. extern void (*glGetQueryBufferObjectui64v)(GLuint, GLuint, GLenum, GLintptr);
  2617. #define glGetQueryBufferObjectuiv _glplatform_glGetQueryBufferObjectuiv
  2618. extern void (*glGetQueryBufferObjectuiv)(GLuint, GLuint, GLenum, GLintptr);
  2619. #define glGetTextureImage _glplatform_glGetTextureImage
  2620. extern void (*glGetTextureImage)(GLuint, GLint, GLenum, GLenum, GLsizei, void *);
  2621. #define glGetTextureLevelParameterfv _glplatform_glGetTextureLevelParameterfv
  2622. extern void (*glGetTextureLevelParameterfv)(GLuint, GLint, GLenum, GLfloat *);
  2623. #define glGetTextureLevelParameteriv _glplatform_glGetTextureLevelParameteriv
  2624. extern void (*glGetTextureLevelParameteriv)(GLuint, GLint, GLenum, GLint *);
  2625. #define glGetTextureParameterIiv _glplatform_glGetTextureParameterIiv
  2626. extern void (*glGetTextureParameterIiv)(GLuint, GLenum, GLint *);
  2627. #define glGetTextureParameterIuiv _glplatform_glGetTextureParameterIuiv
  2628. extern void (*glGetTextureParameterIuiv)(GLuint, GLenum, GLuint *);
  2629. #define glGetTextureParameterfv _glplatform_glGetTextureParameterfv
  2630. extern void (*glGetTextureParameterfv)(GLuint, GLenum, GLfloat *);
  2631. #define glGetTextureParameteriv _glplatform_glGetTextureParameteriv
  2632. extern void (*glGetTextureParameteriv)(GLuint, GLenum, GLint *);
  2633. #define glGetTextureSubImage _glplatform_glGetTextureSubImage
  2634. extern void (*glGetTextureSubImage)(GLuint, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, GLsizei, void *);
  2635. #define glGetTransformFeedbacki64_v _glplatform_glGetTransformFeedbacki64_v
  2636. extern void (*glGetTransformFeedbacki64_v)(GLuint, GLenum, GLuint, GLint64 *);
  2637. #define glGetTransformFeedbacki_v _glplatform_glGetTransformFeedbacki_v
  2638. extern void (*glGetTransformFeedbacki_v)(GLuint, GLenum, GLuint, GLint *);
  2639. #define glGetTransformFeedbackiv _glplatform_glGetTransformFeedbackiv
  2640. extern void (*glGetTransformFeedbackiv)(GLuint, GLenum, GLint *);
  2641. #define glGetVertexArrayIndexed64iv _glplatform_glGetVertexArrayIndexed64iv
  2642. extern void (*glGetVertexArrayIndexed64iv)(GLuint, GLuint, GLenum, GLint64 *);
  2643. #define glGetVertexArrayIndexediv _glplatform_glGetVertexArrayIndexediv
  2644. extern void (*glGetVertexArrayIndexediv)(GLuint, GLuint, GLenum, GLint *);
  2645. #define glGetVertexArrayiv _glplatform_glGetVertexArrayiv
  2646. extern void (*glGetVertexArrayiv)(GLuint, GLenum, GLint *);
  2647. #define glGetnCompressedTexImage _glplatform_glGetnCompressedTexImage
  2648. extern void (*glGetnCompressedTexImage)(GLenum, GLint, GLsizei, void *);
  2649. #define glGetnTexImage _glplatform_glGetnTexImage
  2650. extern void (*glGetnTexImage)(GLenum, GLint, GLenum, GLenum, GLsizei, void *);
  2651. #define glGetnUniformdv _glplatform_glGetnUniformdv
  2652. extern void (*glGetnUniformdv)(GLuint, GLint, GLsizei, GLdouble *);
  2653. #define glGetnUniformfv _glplatform_glGetnUniformfv
  2654. extern void (*glGetnUniformfv)(GLuint, GLint, GLsizei, GLfloat *);
  2655. #define glGetnUniformiv _glplatform_glGetnUniformiv
  2656. extern void (*glGetnUniformiv)(GLuint, GLint, GLsizei, GLint *);
  2657. #define glGetnUniformuiv _glplatform_glGetnUniformuiv
  2658. extern void (*glGetnUniformuiv)(GLuint, GLint, GLsizei, GLuint *);
  2659. #define glInvalidateNamedFramebufferData _glplatform_glInvalidateNamedFramebufferData
  2660. extern void (*glInvalidateNamedFramebufferData)(GLuint, GLsizei, const GLenum *);
  2661. #define glInvalidateNamedFramebufferSubData _glplatform_glInvalidateNamedFramebufferSubData
  2662. extern void (*glInvalidateNamedFramebufferSubData)(GLuint, GLsizei, const GLenum *, GLint, GLint, GLsizei, GLsizei);
  2663. #define glMapNamedBuffer _glplatform_glMapNamedBuffer
  2664. extern void * (*glMapNamedBuffer)(GLuint, GLenum);
  2665. #define glMapNamedBufferRange _glplatform_glMapNamedBufferRange
  2666. extern void * (*glMapNamedBufferRange)(GLuint, GLintptr, GLsizei, GLbitfield);
  2667. #define glMemoryBarrierByRegion _glplatform_glMemoryBarrierByRegion
  2668. extern void (*glMemoryBarrierByRegion)(GLbitfield);
  2669. #define glNamedBufferData _glplatform_glNamedBufferData
  2670. extern void (*glNamedBufferData)(GLuint, GLsizei, const void *, GLenum);
  2671. #define glNamedBufferStorage _glplatform_glNamedBufferStorage
  2672. extern void (*glNamedBufferStorage)(GLuint, GLsizei, const void *, GLbitfield);
  2673. #define glNamedBufferSubData _glplatform_glNamedBufferSubData
  2674. extern void (*glNamedBufferSubData)(GLuint, GLintptr, GLsizei, const void *);
  2675. #define glNamedFramebufferDrawBuffer _glplatform_glNamedFramebufferDrawBuffer
  2676. extern void (*glNamedFramebufferDrawBuffer)(GLuint, GLenum);
  2677. #define glNamedFramebufferDrawBuffers _glplatform_glNamedFramebufferDrawBuffers
  2678. extern void (*glNamedFramebufferDrawBuffers)(GLuint, GLsizei, const GLenum *);
  2679. #define glNamedFramebufferParameteri _glplatform_glNamedFramebufferParameteri
  2680. extern void (*glNamedFramebufferParameteri)(GLuint, GLenum, GLint);
  2681. #define glNamedFramebufferReadBuffer _glplatform_glNamedFramebufferReadBuffer
  2682. extern void (*glNamedFramebufferReadBuffer)(GLuint, GLenum);
  2683. #define glNamedFramebufferRenderbuffer _glplatform_glNamedFramebufferRenderbuffer
  2684. extern void (*glNamedFramebufferRenderbuffer)(GLuint, GLenum, GLenum, GLuint);
  2685. #define glNamedFramebufferTexture _glplatform_glNamedFramebufferTexture
  2686. extern void (*glNamedFramebufferTexture)(GLuint, GLenum, GLuint, GLint);
  2687. #define glNamedFramebufferTextureLayer _glplatform_glNamedFramebufferTextureLayer
  2688. extern void (*glNamedFramebufferTextureLayer)(GLuint, GLenum, GLuint, GLint, GLint);
  2689. #define glNamedRenderbufferStorage _glplatform_glNamedRenderbufferStorage
  2690. extern void (*glNamedRenderbufferStorage)(GLuint, GLenum, GLsizei, GLsizei);
  2691. #define glNamedRenderbufferStorageMultisample _glplatform_glNamedRenderbufferStorageMultisample
  2692. extern void (*glNamedRenderbufferStorageMultisample)(GLuint, GLsizei, GLenum, GLsizei, GLsizei);
  2693. #define glReadnPixels _glplatform_glReadnPixels
  2694. extern void (*glReadnPixels)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLsizei, void *);
  2695. #define glTextureBarrier _glplatform_glTextureBarrier
  2696. extern void (*glTextureBarrier)();
  2697. #define glTextureBuffer _glplatform_glTextureBuffer
  2698. extern void (*glTextureBuffer)(GLuint, GLenum, GLuint);
  2699. #define glTextureBufferRange _glplatform_glTextureBufferRange
  2700. extern void (*glTextureBufferRange)(GLuint, GLenum, GLuint, GLintptr, GLsizei);
  2701. #define glTextureParameterIiv _glplatform_glTextureParameterIiv
  2702. extern void (*glTextureParameterIiv)(GLuint, GLenum, const GLint *);
  2703. #define glTextureParameterIuiv _glplatform_glTextureParameterIuiv
  2704. extern void (*glTextureParameterIuiv)(GLuint, GLenum, const GLuint *);
  2705. #define glTextureParameterf _glplatform_glTextureParameterf
  2706. extern void (*glTextureParameterf)(GLuint, GLenum, GLfloat);
  2707. #define glTextureParameterfv _glplatform_glTextureParameterfv
  2708. extern void (*glTextureParameterfv)(GLuint, GLenum, const GLfloat *);
  2709. #define glTextureParameteri _glplatform_glTextureParameteri
  2710. extern void (*glTextureParameteri)(GLuint, GLenum, GLint);
  2711. #define glTextureParameteriv _glplatform_glTextureParameteriv
  2712. extern void (*glTextureParameteriv)(GLuint, GLenum, const GLint *);
  2713. #define glTextureStorage1D _glplatform_glTextureStorage1D
  2714. extern void (*glTextureStorage1D)(GLuint, GLsizei, GLenum, GLsizei);
  2715. #define glTextureStorage2D _glplatform_glTextureStorage2D
  2716. extern void (*glTextureStorage2D)(GLuint, GLsizei, GLenum, GLsizei, GLsizei);
  2717. #define glTextureStorage2DMultisample _glplatform_glTextureStorage2DMultisample
  2718. extern void (*glTextureStorage2DMultisample)(GLuint, GLsizei, GLenum, GLsizei, GLsizei, GLboolean);
  2719. #define glTextureStorage3D _glplatform_glTextureStorage3D
  2720. extern void (*glTextureStorage3D)(GLuint, GLsizei, GLenum, GLsizei, GLsizei, GLsizei);
  2721. #define glTextureStorage3DMultisample _glplatform_glTextureStorage3DMultisample
  2722. extern void (*glTextureStorage3DMultisample)(GLuint, GLsizei, GLenum, GLsizei, GLsizei, GLsizei, GLboolean);
  2723. #define glTextureSubImage1D _glplatform_glTextureSubImage1D
  2724. extern void (*glTextureSubImage1D)(GLuint, GLint, GLint, GLsizei, GLenum, GLenum, const void *);
  2725. #define glTextureSubImage2D _glplatform_glTextureSubImage2D
  2726. extern void (*glTextureSubImage2D)(GLuint, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const void *);
  2727. #define glTextureSubImage3D _glplatform_glTextureSubImage3D
  2728. extern void (*glTextureSubImage3D)(GLuint, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const void *);
  2729. #define glTransformFeedbackBufferBase _glplatform_glTransformFeedbackBufferBase
  2730. extern void (*glTransformFeedbackBufferBase)(GLuint, GLuint, GLuint);
  2731. #define glTransformFeedbackBufferRange _glplatform_glTransformFeedbackBufferRange
  2732. extern void (*glTransformFeedbackBufferRange)(GLuint, GLuint, GLuint, GLintptr, GLsizei);
  2733. #define glUnmapNamedBuffer _glplatform_glUnmapNamedBuffer
  2734. extern GLboolean (*glUnmapNamedBuffer)(GLuint);
  2735. #define glVertexArrayAttribBinding _glplatform_glVertexArrayAttribBinding
  2736. extern void (*glVertexArrayAttribBinding)(GLuint, GLuint, GLuint);
  2737. #define glVertexArrayAttribFormat _glplatform_glVertexArrayAttribFormat
  2738. extern void (*glVertexArrayAttribFormat)(GLuint, GLuint, GLint, GLenum, GLboolean, GLuint);
  2739. #define glVertexArrayAttribIFormat _glplatform_glVertexArrayAttribIFormat
  2740. extern void (*glVertexArrayAttribIFormat)(GLuint, GLuint, GLint, GLenum, GLuint);
  2741. #define glVertexArrayAttribLFormat _glplatform_glVertexArrayAttribLFormat
  2742. extern void (*glVertexArrayAttribLFormat)(GLuint, GLuint, GLint, GLenum, GLuint);
  2743. #define glVertexArrayBindingDivisor _glplatform_glVertexArrayBindingDivisor
  2744. extern void (*glVertexArrayBindingDivisor)(GLuint, GLuint, GLuint);
  2745. #define glVertexArrayElementBuffer _glplatform_glVertexArrayElementBuffer
  2746. extern void (*glVertexArrayElementBuffer)(GLuint, GLuint);
  2747. #define glVertexArrayVertexBuffer _glplatform_glVertexArrayVertexBuffer
  2748. extern void (*glVertexArrayVertexBuffer)(GLuint, GLuint, GLuint, GLintptr, GLsizei);
  2749. #define glVertexArrayVertexBuffers _glplatform_glVertexArrayVertexBuffers
  2750. extern void (*glVertexArrayVertexBuffers)(GLuint, GLuint, GLsizei, const GLuint *, const GLintptr *, const GLsizei *);
  2751. #endif
  2752. #if defined(GLPLATFORM_ENABLE_GL_ARB_ES2_compatibility)
  2753. extern bool GLPLATFORM_GL_ARB_ES2_compatibility;
  2754. #define GL_FIXED 0x140c
  2755. #define GL_HIGH_FLOAT 0x8df2
  2756. #define GL_HIGH_INT 0x8df5
  2757. #define GL_IMPLEMENTATION_COLOR_READ_FORMAT 0x8b9b
  2758. #define GL_IMPLEMENTATION_COLOR_READ_TYPE 0x8b9a
  2759. #define GL_LOW_FLOAT 0x8df0
  2760. #define GL_LOW_INT 0x8df3
  2761. #define GL_MAX_FRAGMENT_UNIFORM_VECTORS 0x8dfd
  2762. #define GL_MAX_VARYING_VECTORS 0x8dfc
  2763. #define GL_MAX_VERTEX_UNIFORM_VECTORS 0x8dfb
  2764. #define GL_MEDIUM_FLOAT 0x8df1
  2765. #define GL_MEDIUM_INT 0x8df4
  2766. #define GL_NUM_SHADER_BINARY_FORMATS 0x8df9
  2767. #define GL_RGB565 0x8d62
  2768. #define GL_SHADER_BINARY_FORMATS 0x8df8
  2769. #define GL_SHADER_COMPILER 0x8dfa
  2770. #define glClearDepthf _glplatform_glClearDepthf
  2771. extern void (*glClearDepthf)(GLfloat);
  2772. #define glDepthRangef _glplatform_glDepthRangef
  2773. extern void (*glDepthRangef)(GLfloat, GLfloat);
  2774. #define glGetShaderPrecisionFormat _glplatform_glGetShaderPrecisionFormat
  2775. extern void (*glGetShaderPrecisionFormat)(GLenum, GLenum, GLint *, GLint *);
  2776. #define glReleaseShaderCompiler _glplatform_glReleaseShaderCompiler
  2777. extern void (*glReleaseShaderCompiler)();
  2778. #define glShaderBinary _glplatform_glShaderBinary
  2779. extern void (*glShaderBinary)(GLsizei, const GLuint *, GLenum, const void *, GLsizei);
  2780. #endif
  2781. #if defined(GLPLATFORM_ENABLE_GL_ARB_ES3_1_compatibility)
  2782. extern bool GLPLATFORM_GL_ARB_ES3_1_compatibility;
  2783. #define GL_BACK 0x405
  2784. #define glMemoryBarrierByRegion _glplatform_glMemoryBarrierByRegion
  2785. extern void (*glMemoryBarrierByRegion)(GLbitfield);
  2786. #endif
  2787. #if defined(GLPLATFORM_ENABLE_GL_ARB_ES3_compatibility)
  2788. extern bool GLPLATFORM_GL_ARB_ES3_compatibility;
  2789. #define GL_ANY_SAMPLES_PASSED_CONSERVATIVE 0x8d6a
  2790. #define GL_COMPRESSED_R11_EAC 0x9270
  2791. #define GL_COMPRESSED_RG11_EAC 0x9272
  2792. #define GL_COMPRESSED_RGB8_ETC2 0x9274
  2793. #define GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2 0x9276
  2794. #define GL_COMPRESSED_RGBA8_ETC2_EAC 0x9278
  2795. #define GL_COMPRESSED_SIGNED_R11_EAC 0x9271
  2796. #define GL_COMPRESSED_SIGNED_RG11_EAC 0x9273
  2797. #define GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC 0x9279
  2798. #define GL_COMPRESSED_SRGB8_ETC2 0x9275
  2799. #define GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2 0x9277
  2800. #define GL_MAX_ELEMENT_INDEX 0x8d6b
  2801. #define GL_PRIMITIVE_RESTART_FIXED_INDEX 0x8d69
  2802. #endif
  2803. #if defined(GLPLATFORM_ENABLE_GL_ARB_arrays_of_arrays)
  2804. extern bool GLPLATFORM_GL_ARB_arrays_of_arrays;
  2805. #endif
  2806. #if defined(GLPLATFORM_ENABLE_GL_ARB_base_instance)
  2807. extern bool GLPLATFORM_GL_ARB_base_instance;
  2808. #define glDrawArraysInstancedBaseInstance _glplatform_glDrawArraysInstancedBaseInstance
  2809. extern void (*glDrawArraysInstancedBaseInstance)(GLenum, GLint, GLsizei, GLsizei, GLuint);
  2810. #define glDrawElementsInstancedBaseInstance _glplatform_glDrawElementsInstancedBaseInstance
  2811. extern void (*glDrawElementsInstancedBaseInstance)(GLenum, GLsizei, GLenum, const void *, GLsizei, GLuint);
  2812. #define glDrawElementsInstancedBaseVertexBaseInstance _glplatform_glDrawElementsInstancedBaseVertexBaseInstance
  2813. extern void (*glDrawElementsInstancedBaseVertexBaseInstance)(GLenum, GLsizei, GLenum, const void *, GLsizei, GLint, GLuint);
  2814. #endif
  2815. #if defined(GLPLATFORM_ENABLE_GL_ARB_bindless_texture)
  2816. extern bool GLPLATFORM_GL_ARB_bindless_texture;
  2817. #ifndef GLPLATFORM_TYPE_GLuint64
  2818. #define GLPLATFORM_TYPE_GLuint64
  2819. typedef uint64_t GLuint64;
  2820. #endif
  2821. #ifndef GLPLATFORM_TYPE_GLuint64EXT
  2822. #define GLPLATFORM_TYPE_GLuint64EXT
  2823. typedef uint64_t GLuint64EXT;
  2824. #endif
  2825. #define GL_UNSIGNED_INT64_ARB 0x140f
  2826. #define glGetImageHandleARB _glplatform_glGetImageHandleARB
  2827. extern GLuint64 (*glGetImageHandleARB)(GLuint, GLint, GLboolean, GLint, GLenum);
  2828. #define glGetTextureHandleARB _glplatform_glGetTextureHandleARB
  2829. extern GLuint64 (*glGetTextureHandleARB)(GLuint);
  2830. #define glGetTextureSamplerHandleARB _glplatform_glGetTextureSamplerHandleARB
  2831. extern GLuint64 (*glGetTextureSamplerHandleARB)(GLuint, GLuint);
  2832. #define glGetVertexAttribLui64vARB _glplatform_glGetVertexAttribLui64vARB
  2833. extern void (*glGetVertexAttribLui64vARB)(GLuint, GLenum, GLuint64EXT *);
  2834. #define glIsImageHandleResidentARB _glplatform_glIsImageHandleResidentARB
  2835. extern GLboolean (*glIsImageHandleResidentARB)(GLuint64);
  2836. #define glIsTextureHandleResidentARB _glplatform_glIsTextureHandleResidentARB
  2837. extern GLboolean (*glIsTextureHandleResidentARB)(GLuint64);
  2838. #define glMakeImageHandleNonResidentARB _glplatform_glMakeImageHandleNonResidentARB
  2839. extern void (*glMakeImageHandleNonResidentARB)(GLuint64);
  2840. #define glMakeImageHandleResidentARB _glplatform_glMakeImageHandleResidentARB
  2841. extern void (*glMakeImageHandleResidentARB)(GLuint64, GLenum);
  2842. #define glMakeTextureHandleNonResidentARB _glplatform_glMakeTextureHandleNonResidentARB
  2843. extern void (*glMakeTextureHandleNonResidentARB)(GLuint64);
  2844. #define glMakeTextureHandleResidentARB _glplatform_glMakeTextureHandleResidentARB
  2845. extern void (*glMakeTextureHandleResidentARB)(GLuint64);
  2846. #define glProgramUniformHandleui64ARB _glplatform_glProgramUniformHandleui64ARB
  2847. extern void (*glProgramUniformHandleui64ARB)(GLuint, GLint, GLuint64);
  2848. #define glProgramUniformHandleui64vARB _glplatform_glProgramUniformHandleui64vARB
  2849. extern void (*glProgramUniformHandleui64vARB)(GLuint, GLint, GLsizei, const GLuint64 *);
  2850. #define glUniformHandleui64ARB _glplatform_glUniformHandleui64ARB
  2851. extern void (*glUniformHandleui64ARB)(GLint, GLuint64);
  2852. #define glUniformHandleui64vARB _glplatform_glUniformHandleui64vARB
  2853. extern void (*glUniformHandleui64vARB)(GLint, GLsizei, const GLuint64 *);
  2854. #define glVertexAttribL1ui64ARB _glplatform_glVertexAttribL1ui64ARB
  2855. extern void (*glVertexAttribL1ui64ARB)(GLuint, GLuint64EXT);
  2856. #define glVertexAttribL1ui64vARB _glplatform_glVertexAttribL1ui64vARB
  2857. extern void (*glVertexAttribL1ui64vARB)(GLuint, const GLuint64EXT *);
  2858. #endif
  2859. #if defined(GLPLATFORM_ENABLE_GL_ARB_blend_func_extended)
  2860. extern bool GLPLATFORM_GL_ARB_blend_func_extended;
  2861. #ifndef GLPLATFORM_TYPE_GLchar
  2862. #define GLPLATFORM_TYPE_GLchar
  2863. typedef char GLchar;
  2864. #endif
  2865. #define GL_MAX_DUAL_SOURCE_DRAW_BUFFERS 0x88fc
  2866. #define GL_ONE_MINUS_SRC1_ALPHA 0x88fb
  2867. #define GL_ONE_MINUS_SRC1_COLOR 0x88fa
  2868. #define GL_SRC1_ALPHA 0x8589
  2869. #define GL_SRC1_COLOR 0x88f9
  2870. #define glBindFragDataLocationIndexed _glplatform_glBindFragDataLocationIndexed
  2871. extern void (*glBindFragDataLocationIndexed)(GLuint, GLuint, GLuint, const GLchar *);
  2872. #define glGetFragDataIndex _glplatform_glGetFragDataIndex
  2873. extern GLint (*glGetFragDataIndex)(GLuint, const GLchar *);
  2874. #endif
  2875. #if defined(GLPLATFORM_ENABLE_GL_ARB_buffer_storage)
  2876. extern bool GLPLATFORM_GL_ARB_buffer_storage;
  2877. #define GL_BUFFER_IMMUTABLE_STORAGE 0x821f
  2878. #define GL_BUFFER_STORAGE_FLAGS 0x8220
  2879. #define GL_CLIENT_MAPPED_BUFFER_BARRIER_BIT 0x4000
  2880. #define GL_CLIENT_STORAGE_BIT 0x200
  2881. #define GL_DYNAMIC_STORAGE_BIT 0x100
  2882. #define GL_MAP_COHERENT_BIT 0x80
  2883. #define GL_MAP_PERSISTENT_BIT 0x40
  2884. #define GL_MAP_READ_BIT 0x1
  2885. #define GL_MAP_WRITE_BIT 0x2
  2886. #define glBufferStorage _glplatform_glBufferStorage
  2887. extern void (*glBufferStorage)(GLenum, GLsizeiptr, const void *, GLbitfield);
  2888. #endif
  2889. #if defined(GLPLATFORM_ENABLE_GL_ARB_cl_event)
  2890. extern bool GLPLATFORM_GL_ARB_cl_event;
  2891. #ifndef GLPLATFORM_TYPE_GLsync
  2892. #define GLPLATFORM_TYPE_GLsync
  2893. typedef struct __GLsync *GLsync;
  2894. #endif
  2895. #ifndef GLPLATFORM_TYPE_struct__cl_context
  2896. #define GLPLATFORM_TYPE_struct__cl_context
  2897. struct _cl_context;
  2898. #endif
  2899. #ifndef GLPLATFORM_TYPE_struct__cl_event
  2900. #define GLPLATFORM_TYPE_struct__cl_event
  2901. struct _cl_event;
  2902. #endif
  2903. #define GL_SYNC_CL_EVENT_ARB 0x8240
  2904. #define GL_SYNC_CL_EVENT_COMPLETE_ARB 0x8241
  2905. #define glCreateSyncFromCLeventARB _glplatform_glCreateSyncFromCLeventARB
  2906. extern GLsync (*glCreateSyncFromCLeventARB)(struct _cl_context *, struct _cl_event *, GLbitfield);
  2907. #endif
  2908. #if defined(GLPLATFORM_ENABLE_GL_ARB_clear_buffer_object)
  2909. extern bool GLPLATFORM_GL_ARB_clear_buffer_object;
  2910. #define glClearBufferData _glplatform_glClearBufferData
  2911. extern void (*glClearBufferData)(GLenum, GLenum, GLenum, GLenum, const void *);
  2912. #define glClearBufferSubData _glplatform_glClearBufferSubData
  2913. extern void (*glClearBufferSubData)(GLenum, GLenum, GLintptr, GLsizeiptr, GLenum, GLenum, const void *);
  2914. #endif
  2915. #if defined(GLPLATFORM_ENABLE_GL_ARB_clear_texture)
  2916. extern bool GLPLATFORM_GL_ARB_clear_texture;
  2917. #define GL_CLEAR_TEXTURE 0x9365
  2918. #define glClearTexImage _glplatform_glClearTexImage
  2919. extern void (*glClearTexImage)(GLuint, GLint, GLenum, GLenum, const void *);
  2920. #define glClearTexSubImage _glplatform_glClearTexSubImage
  2921. extern void (*glClearTexSubImage)(GLuint, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const void *);
  2922. #endif
  2923. #if defined(GLPLATFORM_ENABLE_GL_ARB_clip_control)
  2924. extern bool GLPLATFORM_GL_ARB_clip_control;
  2925. #define GL_CLIP_DEPTH_MODE 0x935d
  2926. #define GL_CLIP_ORIGIN 0x935c
  2927. #define GL_LOWER_LEFT 0x8ca1
  2928. #define GL_NEGATIVE_ONE_TO_ONE 0x935e
  2929. #define GL_UPPER_LEFT 0x8ca2
  2930. #define GL_ZERO_TO_ONE 0x935f
  2931. #define glClipControl _glplatform_glClipControl
  2932. extern void (*glClipControl)(GLenum, GLenum);
  2933. #endif
  2934. #if defined(GLPLATFORM_ENABLE_GL_ARB_compressed_texture_pixel_storage)
  2935. extern bool GLPLATFORM_GL_ARB_compressed_texture_pixel_storage;
  2936. #define GL_PACK_COMPRESSED_BLOCK_DEPTH 0x912d
  2937. #define GL_PACK_COMPRESSED_BLOCK_HEIGHT 0x912c
  2938. #define GL_PACK_COMPRESSED_BLOCK_SIZE 0x912e
  2939. #define GL_PACK_COMPRESSED_BLOCK_WIDTH 0x912b
  2940. #define GL_UNPACK_COMPRESSED_BLOCK_DEPTH 0x9129
  2941. #define GL_UNPACK_COMPRESSED_BLOCK_HEIGHT 0x9128
  2942. #define GL_UNPACK_COMPRESSED_BLOCK_SIZE 0x912a
  2943. #define GL_UNPACK_COMPRESSED_BLOCK_WIDTH 0x9127
  2944. #endif
  2945. #if defined(GLPLATFORM_ENABLE_GL_ARB_compute_shader)
  2946. extern bool GLPLATFORM_GL_ARB_compute_shader;
  2947. #define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_COMPUTE_SHADER 0x90ed
  2948. #define GL_COMPUTE_SHADER 0x91b9
  2949. #define GL_COMPUTE_SHADER_BIT 0x20
  2950. #define GL_COMPUTE_WORK_GROUP_SIZE 0x8267
  2951. #define GL_DISPATCH_INDIRECT_BUFFER 0x90ee
  2952. #define GL_DISPATCH_INDIRECT_BUFFER_BINDING 0x90ef
  2953. #define GL_MAX_COMBINED_COMPUTE_UNIFORM_COMPONENTS 0x8266
  2954. #define GL_MAX_COMPUTE_ATOMIC_COUNTERS 0x8265
  2955. #define GL_MAX_COMPUTE_ATOMIC_COUNTER_BUFFERS 0x8264
  2956. #define GL_MAX_COMPUTE_IMAGE_UNIFORMS 0x91bd
  2957. #define GL_MAX_COMPUTE_SHARED_MEMORY_SIZE 0x8262
  2958. #define GL_MAX_COMPUTE_TEXTURE_IMAGE_UNITS 0x91bc
  2959. #define GL_MAX_COMPUTE_UNIFORM_BLOCKS 0x91bb
  2960. #define GL_MAX_COMPUTE_UNIFORM_COMPONENTS 0x8263
  2961. #define GL_MAX_COMPUTE_WORK_GROUP_COUNT 0x91be
  2962. #define GL_MAX_COMPUTE_WORK_GROUP_INVOCATIONS 0x90eb
  2963. #define GL_MAX_COMPUTE_WORK_GROUP_SIZE 0x91bf
  2964. #define GL_UNIFORM_BLOCK_REFERENCED_BY_COMPUTE_SHADER 0x90ec
  2965. #define glDispatchCompute _glplatform_glDispatchCompute
  2966. extern void (*glDispatchCompute)(GLuint, GLuint, GLuint);
  2967. #define glDispatchComputeIndirect _glplatform_glDispatchComputeIndirect
  2968. extern void (*glDispatchComputeIndirect)(GLintptr);
  2969. #endif
  2970. #if defined(GLPLATFORM_ENABLE_GL_ARB_compute_variable_group_size)
  2971. extern bool GLPLATFORM_GL_ARB_compute_variable_group_size;
  2972. #define GL_MAX_COMPUTE_FIXED_GROUP_INVOCATIONS_ARB 0x90eb
  2973. #define GL_MAX_COMPUTE_FIXED_GROUP_SIZE_ARB 0x91bf
  2974. #define GL_MAX_COMPUTE_VARIABLE_GROUP_INVOCATIONS_ARB 0x9344
  2975. #define GL_MAX_COMPUTE_VARIABLE_GROUP_SIZE_ARB 0x9345
  2976. #define glDispatchComputeGroupSizeARB _glplatform_glDispatchComputeGroupSizeARB
  2977. extern void (*glDispatchComputeGroupSizeARB)(GLuint, GLuint, GLuint, GLuint, GLuint, GLuint);
  2978. #endif
  2979. #if defined(GLPLATFORM_ENABLE_GL_ARB_conditional_render_inverted)
  2980. extern bool GLPLATFORM_GL_ARB_conditional_render_inverted;
  2981. #define GL_QUERY_BY_REGION_NO_WAIT_INVERTED 0x8e1a
  2982. #define GL_QUERY_BY_REGION_WAIT_INVERTED 0x8e19
  2983. #define GL_QUERY_NO_WAIT_INVERTED 0x8e18
  2984. #define GL_QUERY_WAIT_INVERTED 0x8e17
  2985. #endif
  2986. #if defined(GLPLATFORM_ENABLE_GL_ARB_conservative_depth)
  2987. extern bool GLPLATFORM_GL_ARB_conservative_depth;
  2988. #endif
  2989. #if defined(GLPLATFORM_ENABLE_GL_ARB_copy_buffer)
  2990. extern bool GLPLATFORM_GL_ARB_copy_buffer;
  2991. #define GL_COPY_READ_BUFFER 0x8f36
  2992. #define GL_COPY_WRITE_BUFFER 0x8f37
  2993. #define glCopyBufferSubData _glplatform_glCopyBufferSubData
  2994. extern void (*glCopyBufferSubData)(GLenum, GLenum, GLintptr, GLintptr, GLsizeiptr);
  2995. #endif
  2996. #if defined(GLPLATFORM_ENABLE_GL_ARB_copy_image)
  2997. extern bool GLPLATFORM_GL_ARB_copy_image;
  2998. #define glCopyImageSubData _glplatform_glCopyImageSubData
  2999. extern void (*glCopyImageSubData)(GLuint, GLenum, GLint, GLint, GLint, GLint, GLuint, GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei);
  3000. #endif
  3001. #if defined(GLPLATFORM_ENABLE_GL_ARB_cull_distance)
  3002. extern bool GLPLATFORM_GL_ARB_cull_distance;
  3003. #define GL_MAX_COMBINED_CLIP_AND_CULL_DISTANCES 0x82fa
  3004. #define GL_MAX_CULL_DISTANCES 0x82f9
  3005. #endif
  3006. #if defined(GLPLATFORM_ENABLE_GL_ARB_debug_output)
  3007. extern bool GLPLATFORM_GL_ARB_debug_output;
  3008. #ifndef GLPLATFORM_TYPE_GLDEBUGPROCARB
  3009. #define GLPLATFORM_TYPE_GLDEBUGPROCARB
  3010. typedef void ( *GLDEBUGPROCARB)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam);
  3011. #endif
  3012. #ifndef GLPLATFORM_TYPE_GLchar
  3013. #define GLPLATFORM_TYPE_GLchar
  3014. typedef char GLchar;
  3015. #endif
  3016. #define GL_DEBUG_CALLBACK_FUNCTION_ARB 0x8244
  3017. #define GL_DEBUG_CALLBACK_USER_PARAM_ARB 0x8245
  3018. #define GL_DEBUG_LOGGED_MESSAGES_ARB 0x9145
  3019. #define GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH_ARB 0x8243
  3020. #define GL_DEBUG_OUTPUT_SYNCHRONOUS_ARB 0x8242
  3021. #define GL_DEBUG_SEVERITY_HIGH_ARB 0x9146
  3022. #define GL_DEBUG_SEVERITY_LOW_ARB 0x9148
  3023. #define GL_DEBUG_SEVERITY_MEDIUM_ARB 0x9147
  3024. #define GL_DEBUG_SOURCE_API_ARB 0x8246
  3025. #define GL_DEBUG_SOURCE_APPLICATION_ARB 0x824a
  3026. #define GL_DEBUG_SOURCE_OTHER_ARB 0x824b
  3027. #define GL_DEBUG_SOURCE_SHADER_COMPILER_ARB 0x8248
  3028. #define GL_DEBUG_SOURCE_THIRD_PARTY_ARB 0x8249
  3029. #define GL_DEBUG_SOURCE_WINDOW_SYSTEM_ARB 0x8247
  3030. #define GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR_ARB 0x824d
  3031. #define GL_DEBUG_TYPE_ERROR_ARB 0x824c
  3032. #define GL_DEBUG_TYPE_OTHER_ARB 0x8251
  3033. #define GL_DEBUG_TYPE_PERFORMANCE_ARB 0x8250
  3034. #define GL_DEBUG_TYPE_PORTABILITY_ARB 0x824f
  3035. #define GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR_ARB 0x824e
  3036. #define GL_MAX_DEBUG_LOGGED_MESSAGES_ARB 0x9144
  3037. #define GL_MAX_DEBUG_MESSAGE_LENGTH_ARB 0x9143
  3038. #define glDebugMessageCallbackARB _glplatform_glDebugMessageCallbackARB
  3039. extern void (*glDebugMessageCallbackARB)(GLDEBUGPROCARB, const void *);
  3040. #define glDebugMessageControlARB _glplatform_glDebugMessageControlARB
  3041. extern void (*glDebugMessageControlARB)(GLenum, GLenum, GLenum, GLsizei, const GLuint *, GLboolean);
  3042. #define glDebugMessageInsertARB _glplatform_glDebugMessageInsertARB
  3043. extern void (*glDebugMessageInsertARB)(GLenum, GLenum, GLuint, GLenum, GLsizei, const GLchar *);
  3044. #define glGetDebugMessageLogARB _glplatform_glGetDebugMessageLogARB
  3045. extern GLuint (*glGetDebugMessageLogARB)(GLuint, GLsizei, GLenum *, GLenum *, GLuint *, GLenum *, GLsizei *, GLchar *);
  3046. #endif
  3047. #if defined(GLPLATFORM_ENABLE_GL_ARB_depth_buffer_float)
  3048. extern bool GLPLATFORM_GL_ARB_depth_buffer_float;
  3049. #define GL_DEPTH32F_STENCIL8 0x8cad
  3050. #define GL_DEPTH_COMPONENT32F 0x8cac
  3051. #define GL_FLOAT_32_UNSIGNED_INT_24_8_REV 0x8dad
  3052. #endif
  3053. #if defined(GLPLATFORM_ENABLE_GL_ARB_depth_clamp)
  3054. extern bool GLPLATFORM_GL_ARB_depth_clamp;
  3055. #define GL_DEPTH_CLAMP 0x864f
  3056. #endif
  3057. #if defined(GLPLATFORM_ENABLE_GL_ARB_derivative_control)
  3058. extern bool GLPLATFORM_GL_ARB_derivative_control;
  3059. #endif
  3060. #if defined(GLPLATFORM_ENABLE_GL_ARB_direct_state_access)
  3061. extern bool GLPLATFORM_GL_ARB_direct_state_access;
  3062. #ifndef GLPLATFORM_TYPE_GLint64
  3063. #define GLPLATFORM_TYPE_GLint64
  3064. typedef int64_t GLint64;
  3065. #endif
  3066. #define GL_QUERY_TARGET 0x82ea
  3067. #define GL_TEXTURE_BINDING 0x82eb
  3068. #define GL_TEXTURE_BINDING_1D 0x8068
  3069. #define GL_TEXTURE_BINDING_1D_ARRAY 0x8c1c
  3070. #define GL_TEXTURE_BINDING_2D 0x8069
  3071. #define GL_TEXTURE_BINDING_2D_ARRAY 0x8c1d
  3072. #define GL_TEXTURE_BINDING_2D_MULTISAMPLE 0x9104
  3073. #define GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY 0x9105
  3074. #define GL_TEXTURE_BINDING_3D 0x806a
  3075. #define GL_TEXTURE_BINDING_BUFFER 0x8c2c
  3076. #define GL_TEXTURE_BINDING_CUBE_MAP 0x8514
  3077. #define GL_TEXTURE_BINDING_CUBE_MAP_ARRAY 0x900a
  3078. #define GL_TEXTURE_BINDING_RECTANGLE 0x84f6
  3079. #define GL_TEXTURE_TARGET 0x1006
  3080. #define glBindTextureUnit _glplatform_glBindTextureUnit
  3081. extern void (*glBindTextureUnit)(GLuint, GLuint);
  3082. #define glBlitNamedFramebuffer _glplatform_glBlitNamedFramebuffer
  3083. extern void (*glBlitNamedFramebuffer)(GLuint, GLuint, GLint, GLint, GLint, GLint, GLint, GLint, GLint, GLint, GLbitfield, GLenum);
  3084. #define glCheckNamedFramebufferStatus _glplatform_glCheckNamedFramebufferStatus
  3085. extern GLenum (*glCheckNamedFramebufferStatus)(GLuint, GLenum);
  3086. #define glClearNamedBufferData _glplatform_glClearNamedBufferData
  3087. extern void (*glClearNamedBufferData)(GLuint, GLenum, GLenum, GLenum, const void *);
  3088. #define glClearNamedBufferSubData _glplatform_glClearNamedBufferSubData
  3089. extern void (*glClearNamedBufferSubData)(GLuint, GLenum, GLintptr, GLsizei, GLenum, GLenum, const void *);
  3090. #define glClearNamedFramebufferfi _glplatform_glClearNamedFramebufferfi
  3091. extern void (*glClearNamedFramebufferfi)(GLuint, GLenum, const GLfloat, GLint);
  3092. #define glClearNamedFramebufferfv _glplatform_glClearNamedFramebufferfv
  3093. extern void (*glClearNamedFramebufferfv)(GLuint, GLenum, GLint, const GLfloat *);
  3094. #define glClearNamedFramebufferiv _glplatform_glClearNamedFramebufferiv
  3095. extern void (*glClearNamedFramebufferiv)(GLuint, GLenum, GLint, const GLint *);
  3096. #define glClearNamedFramebufferuiv _glplatform_glClearNamedFramebufferuiv
  3097. extern void (*glClearNamedFramebufferuiv)(GLuint, GLenum, GLint, const GLuint *);
  3098. #define glCompressedTextureSubImage1D _glplatform_glCompressedTextureSubImage1D
  3099. extern void (*glCompressedTextureSubImage1D)(GLuint, GLint, GLint, GLsizei, GLenum, GLsizei, const void *);
  3100. #define glCompressedTextureSubImage2D _glplatform_glCompressedTextureSubImage2D
  3101. extern void (*glCompressedTextureSubImage2D)(GLuint, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLsizei, const void *);
  3102. #define glCompressedTextureSubImage3D _glplatform_glCompressedTextureSubImage3D
  3103. extern void (*glCompressedTextureSubImage3D)(GLuint, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLsizei, const void *);
  3104. #define glCopyNamedBufferSubData _glplatform_glCopyNamedBufferSubData
  3105. extern void (*glCopyNamedBufferSubData)(GLuint, GLuint, GLintptr, GLintptr, GLsizei);
  3106. #define glCopyTextureSubImage1D _glplatform_glCopyTextureSubImage1D
  3107. extern void (*glCopyTextureSubImage1D)(GLuint, GLint, GLint, GLint, GLint, GLsizei);
  3108. #define glCopyTextureSubImage2D _glplatform_glCopyTextureSubImage2D
  3109. extern void (*glCopyTextureSubImage2D)(GLuint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei);
  3110. #define glCopyTextureSubImage3D _glplatform_glCopyTextureSubImage3D
  3111. extern void (*glCopyTextureSubImage3D)(GLuint, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei);
  3112. #define glCreateBuffers _glplatform_glCreateBuffers
  3113. extern void (*glCreateBuffers)(GLsizei, GLuint *);
  3114. #define glCreateFramebuffers _glplatform_glCreateFramebuffers
  3115. extern void (*glCreateFramebuffers)(GLsizei, GLuint *);
  3116. #define glCreateProgramPipelines _glplatform_glCreateProgramPipelines
  3117. extern void (*glCreateProgramPipelines)(GLsizei, GLuint *);
  3118. #define glCreateQueries _glplatform_glCreateQueries
  3119. extern void (*glCreateQueries)(GLenum, GLsizei, GLuint *);
  3120. #define glCreateRenderbuffers _glplatform_glCreateRenderbuffers
  3121. extern void (*glCreateRenderbuffers)(GLsizei, GLuint *);
  3122. #define glCreateSamplers _glplatform_glCreateSamplers
  3123. extern void (*glCreateSamplers)(GLsizei, GLuint *);
  3124. #define glCreateTextures _glplatform_glCreateTextures
  3125. extern void (*glCreateTextures)(GLenum, GLsizei, GLuint *);
  3126. #define glCreateTransformFeedbacks _glplatform_glCreateTransformFeedbacks
  3127. extern void (*glCreateTransformFeedbacks)(GLsizei, GLuint *);
  3128. #define glCreateVertexArrays _glplatform_glCreateVertexArrays
  3129. extern void (*glCreateVertexArrays)(GLsizei, GLuint *);
  3130. #define glDisableVertexArrayAttrib _glplatform_glDisableVertexArrayAttrib
  3131. extern void (*glDisableVertexArrayAttrib)(GLuint, GLuint);
  3132. #define glEnableVertexArrayAttrib _glplatform_glEnableVertexArrayAttrib
  3133. extern void (*glEnableVertexArrayAttrib)(GLuint, GLuint);
  3134. #define glFlushMappedNamedBufferRange _glplatform_glFlushMappedNamedBufferRange
  3135. extern void (*glFlushMappedNamedBufferRange)(GLuint, GLintptr, GLsizei);
  3136. #define glGenerateTextureMipmap _glplatform_glGenerateTextureMipmap
  3137. extern void (*glGenerateTextureMipmap)(GLuint);
  3138. #define glGetCompressedTextureImage _glplatform_glGetCompressedTextureImage
  3139. extern void (*glGetCompressedTextureImage)(GLuint, GLint, GLsizei, void *);
  3140. #define glGetNamedBufferParameteri64v _glplatform_glGetNamedBufferParameteri64v
  3141. extern void (*glGetNamedBufferParameteri64v)(GLuint, GLenum, GLint64 *);
  3142. #define glGetNamedBufferParameteriv _glplatform_glGetNamedBufferParameteriv
  3143. extern void (*glGetNamedBufferParameteriv)(GLuint, GLenum, GLint *);
  3144. #define glGetNamedBufferPointerv _glplatform_glGetNamedBufferPointerv
  3145. extern void (*glGetNamedBufferPointerv)(GLuint, GLenum, void **);
  3146. #define glGetNamedBufferSubData _glplatform_glGetNamedBufferSubData
  3147. extern void (*glGetNamedBufferSubData)(GLuint, GLintptr, GLsizei, void *);
  3148. #define glGetNamedFramebufferAttachmentParameteriv _glplatform_glGetNamedFramebufferAttachmentParameteriv
  3149. extern void (*glGetNamedFramebufferAttachmentParameteriv)(GLuint, GLenum, GLenum, GLint *);
  3150. #define glGetNamedFramebufferParameteriv _glplatform_glGetNamedFramebufferParameteriv
  3151. extern void (*glGetNamedFramebufferParameteriv)(GLuint, GLenum, GLint *);
  3152. #define glGetNamedRenderbufferParameteriv _glplatform_glGetNamedRenderbufferParameteriv
  3153. extern void (*glGetNamedRenderbufferParameteriv)(GLuint, GLenum, GLint *);
  3154. #define glGetQueryBufferObjecti64v _glplatform_glGetQueryBufferObjecti64v
  3155. extern void (*glGetQueryBufferObjecti64v)(GLuint, GLuint, GLenum, GLintptr);
  3156. #define glGetQueryBufferObjectiv _glplatform_glGetQueryBufferObjectiv
  3157. extern void (*glGetQueryBufferObjectiv)(GLuint, GLuint, GLenum, GLintptr);
  3158. #define glGetQueryBufferObjectui64v _glplatform_glGetQueryBufferObjectui64v
  3159. extern void (*glGetQueryBufferObjectui64v)(GLuint, GLuint, GLenum, GLintptr);
  3160. #define glGetQueryBufferObjectuiv _glplatform_glGetQueryBufferObjectuiv
  3161. extern void (*glGetQueryBufferObjectuiv)(GLuint, GLuint, GLenum, GLintptr);
  3162. #define glGetTextureImage _glplatform_glGetTextureImage
  3163. extern void (*glGetTextureImage)(GLuint, GLint, GLenum, GLenum, GLsizei, void *);
  3164. #define glGetTextureLevelParameterfv _glplatform_glGetTextureLevelParameterfv
  3165. extern void (*glGetTextureLevelParameterfv)(GLuint, GLint, GLenum, GLfloat *);
  3166. #define glGetTextureLevelParameteriv _glplatform_glGetTextureLevelParameteriv
  3167. extern void (*glGetTextureLevelParameteriv)(GLuint, GLint, GLenum, GLint *);
  3168. #define glGetTextureParameterIiv _glplatform_glGetTextureParameterIiv
  3169. extern void (*glGetTextureParameterIiv)(GLuint, GLenum, GLint *);
  3170. #define glGetTextureParameterIuiv _glplatform_glGetTextureParameterIuiv
  3171. extern void (*glGetTextureParameterIuiv)(GLuint, GLenum, GLuint *);
  3172. #define glGetTextureParameterfv _glplatform_glGetTextureParameterfv
  3173. extern void (*glGetTextureParameterfv)(GLuint, GLenum, GLfloat *);
  3174. #define glGetTextureParameteriv _glplatform_glGetTextureParameteriv
  3175. extern void (*glGetTextureParameteriv)(GLuint, GLenum, GLint *);
  3176. #define glGetTransformFeedbacki64_v _glplatform_glGetTransformFeedbacki64_v
  3177. extern void (*glGetTransformFeedbacki64_v)(GLuint, GLenum, GLuint, GLint64 *);
  3178. #define glGetTransformFeedbacki_v _glplatform_glGetTransformFeedbacki_v
  3179. extern void (*glGetTransformFeedbacki_v)(GLuint, GLenum, GLuint, GLint *);
  3180. #define glGetTransformFeedbackiv _glplatform_glGetTransformFeedbackiv
  3181. extern void (*glGetTransformFeedbackiv)(GLuint, GLenum, GLint *);
  3182. #define glGetVertexArrayIndexed64iv _glplatform_glGetVertexArrayIndexed64iv
  3183. extern void (*glGetVertexArrayIndexed64iv)(GLuint, GLuint, GLenum, GLint64 *);
  3184. #define glGetVertexArrayIndexediv _glplatform_glGetVertexArrayIndexediv
  3185. extern void (*glGetVertexArrayIndexediv)(GLuint, GLuint, GLenum, GLint *);
  3186. #define glGetVertexArrayiv _glplatform_glGetVertexArrayiv
  3187. extern void (*glGetVertexArrayiv)(GLuint, GLenum, GLint *);
  3188. #define glInvalidateNamedFramebufferData _glplatform_glInvalidateNamedFramebufferData
  3189. extern void (*glInvalidateNamedFramebufferData)(GLuint, GLsizei, const GLenum *);
  3190. #define glInvalidateNamedFramebufferSubData _glplatform_glInvalidateNamedFramebufferSubData
  3191. extern void (*glInvalidateNamedFramebufferSubData)(GLuint, GLsizei, const GLenum *, GLint, GLint, GLsizei, GLsizei);
  3192. #define glMapNamedBuffer _glplatform_glMapNamedBuffer
  3193. extern void * (*glMapNamedBuffer)(GLuint, GLenum);
  3194. #define glMapNamedBufferRange _glplatform_glMapNamedBufferRange
  3195. extern void * (*glMapNamedBufferRange)(GLuint, GLintptr, GLsizei, GLbitfield);
  3196. #define glNamedBufferData _glplatform_glNamedBufferData
  3197. extern void (*glNamedBufferData)(GLuint, GLsizei, const void *, GLenum);
  3198. #define glNamedBufferStorage _glplatform_glNamedBufferStorage
  3199. extern void (*glNamedBufferStorage)(GLuint, GLsizei, const void *, GLbitfield);
  3200. #define glNamedBufferSubData _glplatform_glNamedBufferSubData
  3201. extern void (*glNamedBufferSubData)(GLuint, GLintptr, GLsizei, const void *);
  3202. #define glNamedFramebufferDrawBuffer _glplatform_glNamedFramebufferDrawBuffer
  3203. extern void (*glNamedFramebufferDrawBuffer)(GLuint, GLenum);
  3204. #define glNamedFramebufferDrawBuffers _glplatform_glNamedFramebufferDrawBuffers
  3205. extern void (*glNamedFramebufferDrawBuffers)(GLuint, GLsizei, const GLenum *);
  3206. #define glNamedFramebufferParameteri _glplatform_glNamedFramebufferParameteri
  3207. extern void (*glNamedFramebufferParameteri)(GLuint, GLenum, GLint);
  3208. #define glNamedFramebufferReadBuffer _glplatform_glNamedFramebufferReadBuffer
  3209. extern void (*glNamedFramebufferReadBuffer)(GLuint, GLenum);
  3210. #define glNamedFramebufferRenderbuffer _glplatform_glNamedFramebufferRenderbuffer
  3211. extern void (*glNamedFramebufferRenderbuffer)(GLuint, GLenum, GLenum, GLuint);
  3212. #define glNamedFramebufferTexture _glplatform_glNamedFramebufferTexture
  3213. extern void (*glNamedFramebufferTexture)(GLuint, GLenum, GLuint, GLint);
  3214. #define glNamedFramebufferTextureLayer _glplatform_glNamedFramebufferTextureLayer
  3215. extern void (*glNamedFramebufferTextureLayer)(GLuint, GLenum, GLuint, GLint, GLint);
  3216. #define glNamedRenderbufferStorage _glplatform_glNamedRenderbufferStorage
  3217. extern void (*glNamedRenderbufferStorage)(GLuint, GLenum, GLsizei, GLsizei);
  3218. #define glNamedRenderbufferStorageMultisample _glplatform_glNamedRenderbufferStorageMultisample
  3219. extern void (*glNamedRenderbufferStorageMultisample)(GLuint, GLsizei, GLenum, GLsizei, GLsizei);
  3220. #define glTextureBuffer _glplatform_glTextureBuffer
  3221. extern void (*glTextureBuffer)(GLuint, GLenum, GLuint);
  3222. #define glTextureBufferRange _glplatform_glTextureBufferRange
  3223. extern void (*glTextureBufferRange)(GLuint, GLenum, GLuint, GLintptr, GLsizei);
  3224. #define glTextureParameterIiv _glplatform_glTextureParameterIiv
  3225. extern void (*glTextureParameterIiv)(GLuint, GLenum, const GLint *);
  3226. #define glTextureParameterIuiv _glplatform_glTextureParameterIuiv
  3227. extern void (*glTextureParameterIuiv)(GLuint, GLenum, const GLuint *);
  3228. #define glTextureParameterf _glplatform_glTextureParameterf
  3229. extern void (*glTextureParameterf)(GLuint, GLenum, GLfloat);
  3230. #define glTextureParameterfv _glplatform_glTextureParameterfv
  3231. extern void (*glTextureParameterfv)(GLuint, GLenum, const GLfloat *);
  3232. #define glTextureParameteri _glplatform_glTextureParameteri
  3233. extern void (*glTextureParameteri)(GLuint, GLenum, GLint);
  3234. #define glTextureParameteriv _glplatform_glTextureParameteriv
  3235. extern void (*glTextureParameteriv)(GLuint, GLenum, const GLint *);
  3236. #define glTextureStorage1D _glplatform_glTextureStorage1D
  3237. extern void (*glTextureStorage1D)(GLuint, GLsizei, GLenum, GLsizei);
  3238. #define glTextureStorage2D _glplatform_glTextureStorage2D
  3239. extern void (*glTextureStorage2D)(GLuint, GLsizei, GLenum, GLsizei, GLsizei);
  3240. #define glTextureStorage2DMultisample _glplatform_glTextureStorage2DMultisample
  3241. extern void (*glTextureStorage2DMultisample)(GLuint, GLsizei, GLenum, GLsizei, GLsizei, GLboolean);
  3242. #define glTextureStorage3D _glplatform_glTextureStorage3D
  3243. extern void (*glTextureStorage3D)(GLuint, GLsizei, GLenum, GLsizei, GLsizei, GLsizei);
  3244. #define glTextureStorage3DMultisample _glplatform_glTextureStorage3DMultisample
  3245. extern void (*glTextureStorage3DMultisample)(GLuint, GLsizei, GLenum, GLsizei, GLsizei, GLsizei, GLboolean);
  3246. #define glTextureSubImage1D _glplatform_glTextureSubImage1D
  3247. extern void (*glTextureSubImage1D)(GLuint, GLint, GLint, GLsizei, GLenum, GLenum, const void *);
  3248. #define glTextureSubImage2D _glplatform_glTextureSubImage2D
  3249. extern void (*glTextureSubImage2D)(GLuint, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const void *);
  3250. #define glTextureSubImage3D _glplatform_glTextureSubImage3D
  3251. extern void (*glTextureSubImage3D)(GLuint, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const void *);
  3252. #define glTransformFeedbackBufferBase _glplatform_glTransformFeedbackBufferBase
  3253. extern void (*glTransformFeedbackBufferBase)(GLuint, GLuint, GLuint);
  3254. #define glTransformFeedbackBufferRange _glplatform_glTransformFeedbackBufferRange
  3255. extern void (*glTransformFeedbackBufferRange)(GLuint, GLuint, GLuint, GLintptr, GLsizei);
  3256. #define glUnmapNamedBuffer _glplatform_glUnmapNamedBuffer
  3257. extern GLboolean (*glUnmapNamedBuffer)(GLuint);
  3258. #define glVertexArrayAttribBinding _glplatform_glVertexArrayAttribBinding
  3259. extern void (*glVertexArrayAttribBinding)(GLuint, GLuint, GLuint);
  3260. #define glVertexArrayAttribFormat _glplatform_glVertexArrayAttribFormat
  3261. extern void (*glVertexArrayAttribFormat)(GLuint, GLuint, GLint, GLenum, GLboolean, GLuint);
  3262. #define glVertexArrayAttribIFormat _glplatform_glVertexArrayAttribIFormat
  3263. extern void (*glVertexArrayAttribIFormat)(GLuint, GLuint, GLint, GLenum, GLuint);
  3264. #define glVertexArrayAttribLFormat _glplatform_glVertexArrayAttribLFormat
  3265. extern void (*glVertexArrayAttribLFormat)(GLuint, GLuint, GLint, GLenum, GLuint);
  3266. #define glVertexArrayBindingDivisor _glplatform_glVertexArrayBindingDivisor
  3267. extern void (*glVertexArrayBindingDivisor)(GLuint, GLuint, GLuint);
  3268. #define glVertexArrayElementBuffer _glplatform_glVertexArrayElementBuffer
  3269. extern void (*glVertexArrayElementBuffer)(GLuint, GLuint);
  3270. #define glVertexArrayVertexBuffer _glplatform_glVertexArrayVertexBuffer
  3271. extern void (*glVertexArrayVertexBuffer)(GLuint, GLuint, GLuint, GLintptr, GLsizei);
  3272. #define glVertexArrayVertexBuffers _glplatform_glVertexArrayVertexBuffers
  3273. extern void (*glVertexArrayVertexBuffers)(GLuint, GLuint, GLsizei, const GLuint *, const GLintptr *, const GLsizei *);
  3274. #endif
  3275. #if defined(GLPLATFORM_ENABLE_GL_ARB_draw_buffers_blend)
  3276. extern bool GLPLATFORM_GL_ARB_draw_buffers_blend;
  3277. #define glBlendEquationSeparateiARB _glplatform_glBlendEquationSeparateiARB
  3278. extern void (*glBlendEquationSeparateiARB)(GLuint, GLenum, GLenum);
  3279. #define glBlendEquationiARB _glplatform_glBlendEquationiARB
  3280. extern void (*glBlendEquationiARB)(GLuint, GLenum);
  3281. #define glBlendFuncSeparateiARB _glplatform_glBlendFuncSeparateiARB
  3282. extern void (*glBlendFuncSeparateiARB)(GLuint, GLenum, GLenum, GLenum, GLenum);
  3283. #define glBlendFunciARB _glplatform_glBlendFunciARB
  3284. extern void (*glBlendFunciARB)(GLuint, GLenum, GLenum);
  3285. #endif
  3286. #if defined(GLPLATFORM_ENABLE_GL_ARB_draw_elements_base_vertex)
  3287. extern bool GLPLATFORM_GL_ARB_draw_elements_base_vertex;
  3288. #define glDrawElementsBaseVertex _glplatform_glDrawElementsBaseVertex
  3289. extern void (*glDrawElementsBaseVertex)(GLenum, GLsizei, GLenum, const void *, GLint);
  3290. #define glDrawElementsInstancedBaseVertex _glplatform_glDrawElementsInstancedBaseVertex
  3291. extern void (*glDrawElementsInstancedBaseVertex)(GLenum, GLsizei, GLenum, const void *, GLsizei, GLint);
  3292. #define glDrawRangeElementsBaseVertex _glplatform_glDrawRangeElementsBaseVertex
  3293. extern void (*glDrawRangeElementsBaseVertex)(GLenum, GLuint, GLuint, GLsizei, GLenum, const void *, GLint);
  3294. #define glMultiDrawElementsBaseVertex _glplatform_glMultiDrawElementsBaseVertex
  3295. extern void (*glMultiDrawElementsBaseVertex)(GLenum, const GLsizei *, GLenum, const void *const*, GLsizei, const GLint *);
  3296. #endif
  3297. #if defined(GLPLATFORM_ENABLE_GL_ARB_draw_indirect)
  3298. extern bool GLPLATFORM_GL_ARB_draw_indirect;
  3299. #define GL_DRAW_INDIRECT_BUFFER 0x8f3f
  3300. #define GL_DRAW_INDIRECT_BUFFER_BINDING 0x8f43
  3301. #define glDrawArraysIndirect _glplatform_glDrawArraysIndirect
  3302. extern void (*glDrawArraysIndirect)(GLenum, const void *);
  3303. #define glDrawElementsIndirect _glplatform_glDrawElementsIndirect
  3304. extern void (*glDrawElementsIndirect)(GLenum, GLenum, const void *);
  3305. #endif
  3306. #if defined(GLPLATFORM_ENABLE_GL_ARB_enhanced_layouts)
  3307. extern bool GLPLATFORM_GL_ARB_enhanced_layouts;
  3308. #define GL_LOCATION_COMPONENT 0x934a
  3309. #define GL_TRANSFORM_FEEDBACK_BUFFER 0x8c8e
  3310. #define GL_TRANSFORM_FEEDBACK_BUFFER_INDEX 0x934b
  3311. #define GL_TRANSFORM_FEEDBACK_BUFFER_STRIDE 0x934c
  3312. #endif
  3313. #if defined(GLPLATFORM_ENABLE_GL_ARB_explicit_attrib_location)
  3314. extern bool GLPLATFORM_GL_ARB_explicit_attrib_location;
  3315. #endif
  3316. #if defined(GLPLATFORM_ENABLE_GL_ARB_explicit_uniform_location)
  3317. extern bool GLPLATFORM_GL_ARB_explicit_uniform_location;
  3318. #define GL_MAX_UNIFORM_LOCATIONS 0x826e
  3319. #endif
  3320. #if defined(GLPLATFORM_ENABLE_GL_ARB_fragment_coord_conventions)
  3321. extern bool GLPLATFORM_GL_ARB_fragment_coord_conventions;
  3322. #endif
  3323. #if defined(GLPLATFORM_ENABLE_GL_ARB_fragment_layer_viewport)
  3324. extern bool GLPLATFORM_GL_ARB_fragment_layer_viewport;
  3325. #endif
  3326. #if defined(GLPLATFORM_ENABLE_GL_ARB_framebuffer_no_attachments)
  3327. extern bool GLPLATFORM_GL_ARB_framebuffer_no_attachments;
  3328. #define GL_FRAMEBUFFER_DEFAULT_FIXED_SAMPLE_LOCATIONS 0x9314
  3329. #define GL_FRAMEBUFFER_DEFAULT_HEIGHT 0x9311
  3330. #define GL_FRAMEBUFFER_DEFAULT_LAYERS 0x9312
  3331. #define GL_FRAMEBUFFER_DEFAULT_SAMPLES 0x9313
  3332. #define GL_FRAMEBUFFER_DEFAULT_WIDTH 0x9310
  3333. #define GL_MAX_FRAMEBUFFER_HEIGHT 0x9316
  3334. #define GL_MAX_FRAMEBUFFER_LAYERS 0x9317
  3335. #define GL_MAX_FRAMEBUFFER_SAMPLES 0x9318
  3336. #define GL_MAX_FRAMEBUFFER_WIDTH 0x9315
  3337. #define glFramebufferParameteri _glplatform_glFramebufferParameteri
  3338. extern void (*glFramebufferParameteri)(GLenum, GLenum, GLint);
  3339. #define glGetFramebufferParameteriv _glplatform_glGetFramebufferParameteriv
  3340. extern void (*glGetFramebufferParameteriv)(GLenum, GLenum, GLint *);
  3341. #endif
  3342. #if defined(GLPLATFORM_ENABLE_GL_ARB_framebuffer_object)
  3343. extern bool GLPLATFORM_GL_ARB_framebuffer_object;
  3344. #define GL_COLOR_ATTACHMENT0 0x8ce0
  3345. #define GL_COLOR_ATTACHMENT1 0x8ce1
  3346. #define GL_COLOR_ATTACHMENT10 0x8cea
  3347. #define GL_COLOR_ATTACHMENT11 0x8ceb
  3348. #define GL_COLOR_ATTACHMENT12 0x8cec
  3349. #define GL_COLOR_ATTACHMENT13 0x8ced
  3350. #define GL_COLOR_ATTACHMENT14 0x8cee
  3351. #define GL_COLOR_ATTACHMENT15 0x8cef
  3352. #define GL_COLOR_ATTACHMENT2 0x8ce2
  3353. #define GL_COLOR_ATTACHMENT3 0x8ce3
  3354. #define GL_COLOR_ATTACHMENT4 0x8ce4
  3355. #define GL_COLOR_ATTACHMENT5 0x8ce5
  3356. #define GL_COLOR_ATTACHMENT6 0x8ce6
  3357. #define GL_COLOR_ATTACHMENT7 0x8ce7
  3358. #define GL_COLOR_ATTACHMENT8 0x8ce8
  3359. #define GL_COLOR_ATTACHMENT9 0x8ce9
  3360. #define GL_DEPTH24_STENCIL8 0x88f0
  3361. #define GL_DEPTH_ATTACHMENT 0x8d00
  3362. #define GL_DEPTH_STENCIL 0x84f9
  3363. #define GL_DEPTH_STENCIL_ATTACHMENT 0x821a
  3364. #define GL_DRAW_FRAMEBUFFER 0x8ca9
  3365. #define GL_DRAW_FRAMEBUFFER_BINDING 0x8ca6
  3366. #define GL_FRAMEBUFFER 0x8d40
  3367. #define GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE 0x8215
  3368. #define GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE 0x8214
  3369. #define GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING 0x8210
  3370. #define GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE 0x8211
  3371. #define GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE 0x8216
  3372. #define GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE 0x8213
  3373. #define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME 0x8cd1
  3374. #define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE 0x8cd0
  3375. #define GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE 0x8212
  3376. #define GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE 0x8217
  3377. #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE 0x8cd3
  3378. #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER 0x8cd4
  3379. #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL 0x8cd2
  3380. #define GL_FRAMEBUFFER_BINDING 0x8ca6
  3381. #define GL_FRAMEBUFFER_COMPLETE 0x8cd5
  3382. #define GL_FRAMEBUFFER_DEFAULT 0x8218
  3383. #define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT 0x8cd6
  3384. #define GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER 0x8cdb
  3385. #define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT 0x8cd7
  3386. #define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE 0x8d56
  3387. #define GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER 0x8cdc
  3388. #define GL_FRAMEBUFFER_UNDEFINED 0x8219
  3389. #define GL_FRAMEBUFFER_UNSUPPORTED 0x8cdd
  3390. #define GL_INVALID_FRAMEBUFFER_OPERATION 0x506
  3391. #define GL_MAX_COLOR_ATTACHMENTS 0x8cdf
  3392. #define GL_MAX_RENDERBUFFER_SIZE 0x84e8
  3393. #define GL_MAX_SAMPLES 0x8d57
  3394. #define GL_READ_FRAMEBUFFER 0x8ca8
  3395. #define GL_READ_FRAMEBUFFER_BINDING 0x8caa
  3396. #define GL_RENDERBUFFER 0x8d41
  3397. #define GL_RENDERBUFFER_ALPHA_SIZE 0x8d53
  3398. #define GL_RENDERBUFFER_BINDING 0x8ca7
  3399. #define GL_RENDERBUFFER_BLUE_SIZE 0x8d52
  3400. #define GL_RENDERBUFFER_DEPTH_SIZE 0x8d54
  3401. #define GL_RENDERBUFFER_GREEN_SIZE 0x8d51
  3402. #define GL_RENDERBUFFER_HEIGHT 0x8d43
  3403. #define GL_RENDERBUFFER_INTERNAL_FORMAT 0x8d44
  3404. #define GL_RENDERBUFFER_RED_SIZE 0x8d50
  3405. #define GL_RENDERBUFFER_SAMPLES 0x8cab
  3406. #define GL_RENDERBUFFER_STENCIL_SIZE 0x8d55
  3407. #define GL_RENDERBUFFER_WIDTH 0x8d42
  3408. #define GL_STENCIL_ATTACHMENT 0x8d20
  3409. #define GL_STENCIL_INDEX1 0x8d46
  3410. #define GL_STENCIL_INDEX16 0x8d49
  3411. #define GL_STENCIL_INDEX4 0x8d47
  3412. #define GL_STENCIL_INDEX8 0x8d48
  3413. #define GL_TEXTURE_STENCIL_SIZE 0x88f1
  3414. #define GL_UNSIGNED_INT_24_8 0x84fa
  3415. #define GL_UNSIGNED_NORMALIZED 0x8c17
  3416. #define glBindFramebuffer _glplatform_glBindFramebuffer
  3417. extern void (*glBindFramebuffer)(GLenum, GLuint);
  3418. #define glBindRenderbuffer _glplatform_glBindRenderbuffer
  3419. extern void (*glBindRenderbuffer)(GLenum, GLuint);
  3420. #define glBlitFramebuffer _glplatform_glBlitFramebuffer
  3421. extern void (*glBlitFramebuffer)(GLint, GLint, GLint, GLint, GLint, GLint, GLint, GLint, GLbitfield, GLenum);
  3422. #define glCheckFramebufferStatus _glplatform_glCheckFramebufferStatus
  3423. extern GLenum (*glCheckFramebufferStatus)(GLenum);
  3424. #define glDeleteFramebuffers _glplatform_glDeleteFramebuffers
  3425. extern void (*glDeleteFramebuffers)(GLsizei, const GLuint *);
  3426. #define glDeleteRenderbuffers _glplatform_glDeleteRenderbuffers
  3427. extern void (*glDeleteRenderbuffers)(GLsizei, const GLuint *);
  3428. #define glFramebufferRenderbuffer _glplatform_glFramebufferRenderbuffer
  3429. extern void (*glFramebufferRenderbuffer)(GLenum, GLenum, GLenum, GLuint);
  3430. #define glFramebufferTexture1D _glplatform_glFramebufferTexture1D
  3431. extern void (*glFramebufferTexture1D)(GLenum, GLenum, GLenum, GLuint, GLint);
  3432. #define glFramebufferTexture2D _glplatform_glFramebufferTexture2D
  3433. extern void (*glFramebufferTexture2D)(GLenum, GLenum, GLenum, GLuint, GLint);
  3434. #define glFramebufferTexture3D _glplatform_glFramebufferTexture3D
  3435. extern void (*glFramebufferTexture3D)(GLenum, GLenum, GLenum, GLuint, GLint, GLint);
  3436. #define glFramebufferTextureLayer _glplatform_glFramebufferTextureLayer
  3437. extern void (*glFramebufferTextureLayer)(GLenum, GLenum, GLuint, GLint, GLint);
  3438. #define glGenFramebuffers _glplatform_glGenFramebuffers
  3439. extern void (*glGenFramebuffers)(GLsizei, GLuint *);
  3440. #define glGenRenderbuffers _glplatform_glGenRenderbuffers
  3441. extern void (*glGenRenderbuffers)(GLsizei, GLuint *);
  3442. #define glGenerateMipmap _glplatform_glGenerateMipmap
  3443. extern void (*glGenerateMipmap)(GLenum);
  3444. #define glGetFramebufferAttachmentParameteriv _glplatform_glGetFramebufferAttachmentParameteriv
  3445. extern void (*glGetFramebufferAttachmentParameteriv)(GLenum, GLenum, GLenum, GLint *);
  3446. #define glGetRenderbufferParameteriv _glplatform_glGetRenderbufferParameteriv
  3447. extern void (*glGetRenderbufferParameteriv)(GLenum, GLenum, GLint *);
  3448. #define glIsFramebuffer _glplatform_glIsFramebuffer
  3449. extern GLboolean (*glIsFramebuffer)(GLuint);
  3450. #define glIsRenderbuffer _glplatform_glIsRenderbuffer
  3451. extern GLboolean (*glIsRenderbuffer)(GLuint);
  3452. #define glRenderbufferStorage _glplatform_glRenderbufferStorage
  3453. extern void (*glRenderbufferStorage)(GLenum, GLenum, GLsizei, GLsizei);
  3454. #define glRenderbufferStorageMultisample _glplatform_glRenderbufferStorageMultisample
  3455. extern void (*glRenderbufferStorageMultisample)(GLenum, GLsizei, GLenum, GLsizei, GLsizei);
  3456. #endif
  3457. #if defined(GLPLATFORM_ENABLE_GL_ARB_framebuffer_sRGB)
  3458. extern bool GLPLATFORM_GL_ARB_framebuffer_sRGB;
  3459. #define GL_FRAMEBUFFER_SRGB 0x8db9
  3460. #endif
  3461. #if defined(GLPLATFORM_ENABLE_GL_ARB_get_program_binary)
  3462. extern bool GLPLATFORM_GL_ARB_get_program_binary;
  3463. #define GL_NUM_PROGRAM_BINARY_FORMATS 0x87fe
  3464. #define GL_PROGRAM_BINARY_FORMATS 0x87ff
  3465. #define GL_PROGRAM_BINARY_LENGTH 0x8741
  3466. #define GL_PROGRAM_BINARY_RETRIEVABLE_HINT 0x8257
  3467. #define glGetProgramBinary _glplatform_glGetProgramBinary
  3468. extern void (*glGetProgramBinary)(GLuint, GLsizei, GLsizei *, GLenum *, void *);
  3469. #define glProgramBinary _glplatform_glProgramBinary
  3470. extern void (*glProgramBinary)(GLuint, GLenum, const void *, GLsizei);
  3471. #define glProgramParameteri _glplatform_glProgramParameteri
  3472. extern void (*glProgramParameteri)(GLuint, GLenum, GLint);
  3473. #endif
  3474. #if defined(GLPLATFORM_ENABLE_GL_ARB_get_texture_sub_image)
  3475. extern bool GLPLATFORM_GL_ARB_get_texture_sub_image;
  3476. #define glGetCompressedTextureSubImage _glplatform_glGetCompressedTextureSubImage
  3477. extern void (*glGetCompressedTextureSubImage)(GLuint, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLsizei, void *);
  3478. #define glGetTextureSubImage _glplatform_glGetTextureSubImage
  3479. extern void (*glGetTextureSubImage)(GLuint, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, GLsizei, void *);
  3480. #endif
  3481. #if defined(GLPLATFORM_ENABLE_GL_ARB_gpu_shader5)
  3482. extern bool GLPLATFORM_GL_ARB_gpu_shader5;
  3483. #define GL_FRAGMENT_INTERPOLATION_OFFSET_BITS 0x8e5d
  3484. #define GL_GEOMETRY_SHADER_INVOCATIONS 0x887f
  3485. #define GL_MAX_FRAGMENT_INTERPOLATION_OFFSET 0x8e5c
  3486. #define GL_MAX_GEOMETRY_SHADER_INVOCATIONS 0x8e5a
  3487. #define GL_MAX_VERTEX_STREAMS 0x8e71
  3488. #define GL_MIN_FRAGMENT_INTERPOLATION_OFFSET 0x8e5b
  3489. #endif
  3490. #if defined(GLPLATFORM_ENABLE_GL_ARB_gpu_shader_fp64)
  3491. extern bool GLPLATFORM_GL_ARB_gpu_shader_fp64;
  3492. #define GL_DOUBLE 0x140a
  3493. #define GL_DOUBLE_MAT2 0x8f46
  3494. #define GL_DOUBLE_MAT2x3 0x8f49
  3495. #define GL_DOUBLE_MAT2x4 0x8f4a
  3496. #define GL_DOUBLE_MAT3 0x8f47
  3497. #define GL_DOUBLE_MAT3x2 0x8f4b
  3498. #define GL_DOUBLE_MAT3x4 0x8f4c
  3499. #define GL_DOUBLE_MAT4 0x8f48
  3500. #define GL_DOUBLE_MAT4x2 0x8f4d
  3501. #define GL_DOUBLE_MAT4x3 0x8f4e
  3502. #define GL_DOUBLE_VEC2 0x8ffc
  3503. #define GL_DOUBLE_VEC3 0x8ffd
  3504. #define GL_DOUBLE_VEC4 0x8ffe
  3505. #define glGetUniformdv _glplatform_glGetUniformdv
  3506. extern void (*glGetUniformdv)(GLuint, GLint, GLdouble *);
  3507. #define glUniform1d _glplatform_glUniform1d
  3508. extern void (*glUniform1d)(GLint, GLdouble);
  3509. #define glUniform1dv _glplatform_glUniform1dv
  3510. extern void (*glUniform1dv)(GLint, GLsizei, const GLdouble *);
  3511. #define glUniform2d _glplatform_glUniform2d
  3512. extern void (*glUniform2d)(GLint, GLdouble, GLdouble);
  3513. #define glUniform2dv _glplatform_glUniform2dv
  3514. extern void (*glUniform2dv)(GLint, GLsizei, const GLdouble *);
  3515. #define glUniform3d _glplatform_glUniform3d
  3516. extern void (*glUniform3d)(GLint, GLdouble, GLdouble, GLdouble);
  3517. #define glUniform3dv _glplatform_glUniform3dv
  3518. extern void (*glUniform3dv)(GLint, GLsizei, const GLdouble *);
  3519. #define glUniform4d _glplatform_glUniform4d
  3520. extern void (*glUniform4d)(GLint, GLdouble, GLdouble, GLdouble, GLdouble);
  3521. #define glUniform4dv _glplatform_glUniform4dv
  3522. extern void (*glUniform4dv)(GLint, GLsizei, const GLdouble *);
  3523. #define glUniformMatrix2dv _glplatform_glUniformMatrix2dv
  3524. extern void (*glUniformMatrix2dv)(GLint, GLsizei, GLboolean, const GLdouble *);
  3525. #define glUniformMatrix2x3dv _glplatform_glUniformMatrix2x3dv
  3526. extern void (*glUniformMatrix2x3dv)(GLint, GLsizei, GLboolean, const GLdouble *);
  3527. #define glUniformMatrix2x4dv _glplatform_glUniformMatrix2x4dv
  3528. extern void (*glUniformMatrix2x4dv)(GLint, GLsizei, GLboolean, const GLdouble *);
  3529. #define glUniformMatrix3dv _glplatform_glUniformMatrix3dv
  3530. extern void (*glUniformMatrix3dv)(GLint, GLsizei, GLboolean, const GLdouble *);
  3531. #define glUniformMatrix3x2dv _glplatform_glUniformMatrix3x2dv
  3532. extern void (*glUniformMatrix3x2dv)(GLint, GLsizei, GLboolean, const GLdouble *);
  3533. #define glUniformMatrix3x4dv _glplatform_glUniformMatrix3x4dv
  3534. extern void (*glUniformMatrix3x4dv)(GLint, GLsizei, GLboolean, const GLdouble *);
  3535. #define glUniformMatrix4dv _glplatform_glUniformMatrix4dv
  3536. extern void (*glUniformMatrix4dv)(GLint, GLsizei, GLboolean, const GLdouble *);
  3537. #define glUniformMatrix4x2dv _glplatform_glUniformMatrix4x2dv
  3538. extern void (*glUniformMatrix4x2dv)(GLint, GLsizei, GLboolean, const GLdouble *);
  3539. #define glUniformMatrix4x3dv _glplatform_glUniformMatrix4x3dv
  3540. extern void (*glUniformMatrix4x3dv)(GLint, GLsizei, GLboolean, const GLdouble *);
  3541. #endif
  3542. #if defined(GLPLATFORM_ENABLE_GL_ARB_half_float_vertex)
  3543. extern bool GLPLATFORM_GL_ARB_half_float_vertex;
  3544. #define GL_HALF_FLOAT 0x140b
  3545. #endif
  3546. #if defined(GLPLATFORM_ENABLE_GL_ARB_imaging)
  3547. extern bool GLPLATFORM_GL_ARB_imaging;
  3548. #define GL_BLEND_COLOR 0x8005
  3549. #define GL_BLEND_EQUATION 0x8009
  3550. #define GL_CONSTANT_ALPHA 0x8003
  3551. #define GL_CONSTANT_COLOR 0x8001
  3552. #define GL_FUNC_ADD 0x8006
  3553. #define GL_FUNC_REVERSE_SUBTRACT 0x800b
  3554. #define GL_FUNC_SUBTRACT 0x800a
  3555. #define GL_MAX 0x8008
  3556. #define GL_MIN 0x8007
  3557. #define GL_ONE_MINUS_CONSTANT_ALPHA 0x8004
  3558. #define GL_ONE_MINUS_CONSTANT_COLOR 0x8002
  3559. #define glBlendColor _glplatform_glBlendColor
  3560. extern void (*glBlendColor)(GLfloat, GLfloat, GLfloat, GLfloat);
  3561. #define glBlendEquation _glplatform_glBlendEquation
  3562. extern void (*glBlendEquation)(GLenum);
  3563. #endif
  3564. #if defined(GLPLATFORM_ENABLE_GL_ARB_indirect_parameters)
  3565. extern bool GLPLATFORM_GL_ARB_indirect_parameters;
  3566. #define GL_PARAMETER_BUFFER_ARB 0x80ee
  3567. #define GL_PARAMETER_BUFFER_BINDING_ARB 0x80ef
  3568. #define glMultiDrawArraysIndirectCountARB _glplatform_glMultiDrawArraysIndirectCountARB
  3569. extern void (*glMultiDrawArraysIndirectCountARB)(GLenum, GLintptr, GLintptr, GLsizei, GLsizei);
  3570. #define glMultiDrawElementsIndirectCountARB _glplatform_glMultiDrawElementsIndirectCountARB
  3571. extern void (*glMultiDrawElementsIndirectCountARB)(GLenum, GLenum, GLintptr, GLintptr, GLsizei, GLsizei);
  3572. #endif
  3573. #if defined(GLPLATFORM_ENABLE_GL_ARB_internalformat_query)
  3574. extern bool GLPLATFORM_GL_ARB_internalformat_query;
  3575. #define GL_NUM_SAMPLE_COUNTS 0x9380
  3576. #define glGetInternalformativ _glplatform_glGetInternalformativ
  3577. extern void (*glGetInternalformativ)(GLenum, GLenum, GLenum, GLsizei, GLint *);
  3578. #endif
  3579. #if defined(GLPLATFORM_ENABLE_GL_ARB_internalformat_query2)
  3580. extern bool GLPLATFORM_GL_ARB_internalformat_query2;
  3581. #ifndef GLPLATFORM_TYPE_GLint64
  3582. #define GLPLATFORM_TYPE_GLint64
  3583. typedef int64_t GLint64;
  3584. #endif
  3585. #define GL_AUTO_GENERATE_MIPMAP 0x8295
  3586. #define GL_CAVEAT_SUPPORT 0x82b8
  3587. #define GL_CLEAR_BUFFER 0x82b4
  3588. #define GL_COLOR_COMPONENTS 0x8283
  3589. #define GL_COLOR_ENCODING 0x8296
  3590. #define GL_COLOR_RENDERABLE 0x8286
  3591. #define GL_COMPUTE_TEXTURE 0x82a0
  3592. #define GL_DEPTH_COMPONENTS 0x8284
  3593. #define GL_DEPTH_RENDERABLE 0x8287
  3594. #define GL_FILTER 0x829a
  3595. #define GL_FRAGMENT_TEXTURE 0x829f
  3596. #define GL_FRAMEBUFFER_BLEND 0x828b
  3597. #define GL_FRAMEBUFFER_RENDERABLE 0x8289
  3598. #define GL_FRAMEBUFFER_RENDERABLE_LAYERED 0x828a
  3599. #define GL_FULL_SUPPORT 0x82b7
  3600. #define GL_GEOMETRY_TEXTURE 0x829e
  3601. #define GL_GET_TEXTURE_IMAGE_FORMAT 0x8291
  3602. #define GL_GET_TEXTURE_IMAGE_TYPE 0x8292
  3603. #define GL_IMAGE_CLASS_10_10_10_2 0x82c3
  3604. #define GL_IMAGE_CLASS_11_11_10 0x82c2
  3605. #define GL_IMAGE_CLASS_1_X_16 0x82be
  3606. #define GL_IMAGE_CLASS_1_X_32 0x82bb
  3607. #define GL_IMAGE_CLASS_1_X_8 0x82c1
  3608. #define GL_IMAGE_CLASS_2_X_16 0x82bd
  3609. #define GL_IMAGE_CLASS_2_X_32 0x82ba
  3610. #define GL_IMAGE_CLASS_2_X_8 0x82c0
  3611. #define GL_IMAGE_CLASS_4_X_16 0x82bc
  3612. #define GL_IMAGE_CLASS_4_X_32 0x82b9
  3613. #define GL_IMAGE_CLASS_4_X_8 0x82bf
  3614. #define GL_IMAGE_COMPATIBILITY_CLASS 0x82a8
  3615. #define GL_IMAGE_FORMAT_COMPATIBILITY_TYPE 0x90c7
  3616. #define GL_IMAGE_PIXEL_FORMAT 0x82a9
  3617. #define GL_IMAGE_PIXEL_TYPE 0x82aa
  3618. #define GL_IMAGE_TEXEL_SIZE 0x82a7
  3619. #define GL_INTERNALFORMAT_ALPHA_SIZE 0x8274
  3620. #define GL_INTERNALFORMAT_ALPHA_TYPE 0x827b
  3621. #define GL_INTERNALFORMAT_BLUE_SIZE 0x8273
  3622. #define GL_INTERNALFORMAT_BLUE_TYPE 0x827a
  3623. #define GL_INTERNALFORMAT_DEPTH_SIZE 0x8275
  3624. #define GL_INTERNALFORMAT_DEPTH_TYPE 0x827c
  3625. #define GL_INTERNALFORMAT_GREEN_SIZE 0x8272
  3626. #define GL_INTERNALFORMAT_GREEN_TYPE 0x8279
  3627. #define GL_INTERNALFORMAT_PREFERRED 0x8270
  3628. #define GL_INTERNALFORMAT_RED_SIZE 0x8271
  3629. #define GL_INTERNALFORMAT_RED_TYPE 0x8278
  3630. #define GL_INTERNALFORMAT_SHARED_SIZE 0x8277
  3631. #define GL_INTERNALFORMAT_STENCIL_SIZE 0x8276
  3632. #define GL_INTERNALFORMAT_STENCIL_TYPE 0x827d
  3633. #define GL_INTERNALFORMAT_SUPPORTED 0x826f
  3634. #define GL_MANUAL_GENERATE_MIPMAP 0x8294
  3635. #define GL_MAX_COMBINED_DIMENSIONS 0x8282
  3636. #define GL_MAX_DEPTH 0x8280
  3637. #define GL_MAX_HEIGHT 0x827f
  3638. #define GL_MAX_LAYERS 0x8281
  3639. #define GL_MAX_WIDTH 0x827e
  3640. #define GL_MIPMAP 0x8293
  3641. #define GL_NUM_SAMPLE_COUNTS 0x9380
  3642. #define GL_READ_PIXELS 0x828c
  3643. #define GL_READ_PIXELS_FORMAT 0x828d
  3644. #define GL_READ_PIXELS_TYPE 0x828e
  3645. #define GL_RENDERBUFFER 0x8d41
  3646. #define GL_SAMPLES 0x80a9
  3647. #define GL_SHADER_IMAGE_ATOMIC 0x82a6
  3648. #define GL_SHADER_IMAGE_LOAD 0x82a4
  3649. #define GL_SHADER_IMAGE_STORE 0x82a5
  3650. #define GL_SIMULTANEOUS_TEXTURE_AND_DEPTH_TEST 0x82ac
  3651. #define GL_SIMULTANEOUS_TEXTURE_AND_DEPTH_WRITE 0x82ae
  3652. #define GL_SIMULTANEOUS_TEXTURE_AND_STENCIL_TEST 0x82ad
  3653. #define GL_SIMULTANEOUS_TEXTURE_AND_STENCIL_WRITE 0x82af
  3654. #define GL_SRGB_DECODE_ARB 0x8299
  3655. #define GL_SRGB_READ 0x8297
  3656. #define GL_SRGB_WRITE 0x8298
  3657. #define GL_STENCIL_COMPONENTS 0x8285
  3658. #define GL_STENCIL_RENDERABLE 0x8288
  3659. #define GL_TESS_CONTROL_TEXTURE 0x829c
  3660. #define GL_TESS_EVALUATION_TEXTURE 0x829d
  3661. #define GL_TEXTURE_1D 0xde0
  3662. #define GL_TEXTURE_1D_ARRAY 0x8c18
  3663. #define GL_TEXTURE_2D 0xde1
  3664. #define GL_TEXTURE_2D_ARRAY 0x8c1a
  3665. #define GL_TEXTURE_2D_MULTISAMPLE 0x9100
  3666. #define GL_TEXTURE_2D_MULTISAMPLE_ARRAY 0x9102
  3667. #define GL_TEXTURE_3D 0x806f
  3668. #define GL_TEXTURE_BUFFER 0x8c2a
  3669. #define GL_TEXTURE_COMPRESSED 0x86a1
  3670. #define GL_TEXTURE_COMPRESSED_BLOCK_HEIGHT 0x82b2
  3671. #define GL_TEXTURE_COMPRESSED_BLOCK_SIZE 0x82b3
  3672. #define GL_TEXTURE_COMPRESSED_BLOCK_WIDTH 0x82b1
  3673. #define GL_TEXTURE_CUBE_MAP 0x8513
  3674. #define GL_TEXTURE_CUBE_MAP_ARRAY 0x9009
  3675. #define GL_TEXTURE_GATHER 0x82a2
  3676. #define GL_TEXTURE_GATHER_SHADOW 0x82a3
  3677. #define GL_TEXTURE_IMAGE_FORMAT 0x828f
  3678. #define GL_TEXTURE_IMAGE_TYPE 0x8290
  3679. #define GL_TEXTURE_RECTANGLE 0x84f5
  3680. #define GL_TEXTURE_SHADOW 0x82a1
  3681. #define GL_TEXTURE_VIEW 0x82b5
  3682. #define GL_VERTEX_TEXTURE 0x829b
  3683. #define GL_VIEW_CLASS_128_BITS 0x82c4
  3684. #define GL_VIEW_CLASS_16_BITS 0x82ca
  3685. #define GL_VIEW_CLASS_24_BITS 0x82c9
  3686. #define GL_VIEW_CLASS_32_BITS 0x82c8
  3687. #define GL_VIEW_CLASS_48_BITS 0x82c7
  3688. #define GL_VIEW_CLASS_64_BITS 0x82c6
  3689. #define GL_VIEW_CLASS_8_BITS 0x82cb
  3690. #define GL_VIEW_CLASS_96_BITS 0x82c5
  3691. #define GL_VIEW_CLASS_BPTC_FLOAT 0x82d3
  3692. #define GL_VIEW_CLASS_BPTC_UNORM 0x82d2
  3693. #define GL_VIEW_CLASS_RGTC1_RED 0x82d0
  3694. #define GL_VIEW_CLASS_RGTC2_RG 0x82d1
  3695. #define GL_VIEW_CLASS_S3TC_DXT1_RGB 0x82cc
  3696. #define GL_VIEW_CLASS_S3TC_DXT1_RGBA 0x82cd
  3697. #define GL_VIEW_CLASS_S3TC_DXT3_RGBA 0x82ce
  3698. #define GL_VIEW_CLASS_S3TC_DXT5_RGBA 0x82cf
  3699. #define GL_VIEW_COMPATIBILITY_CLASS 0x82b6
  3700. #define glGetInternalformati64v _glplatform_glGetInternalformati64v
  3701. extern void (*glGetInternalformati64v)(GLenum, GLenum, GLenum, GLsizei, GLint64 *);
  3702. #endif
  3703. #if defined(GLPLATFORM_ENABLE_GL_ARB_invalidate_subdata)
  3704. extern bool GLPLATFORM_GL_ARB_invalidate_subdata;
  3705. #define glInvalidateBufferData _glplatform_glInvalidateBufferData
  3706. extern void (*glInvalidateBufferData)(GLuint);
  3707. #define glInvalidateBufferSubData _glplatform_glInvalidateBufferSubData
  3708. extern void (*glInvalidateBufferSubData)(GLuint, GLintptr, GLsizeiptr);
  3709. #define glInvalidateFramebuffer _glplatform_glInvalidateFramebuffer
  3710. extern void (*glInvalidateFramebuffer)(GLenum, GLsizei, const GLenum *);
  3711. #define glInvalidateSubFramebuffer _glplatform_glInvalidateSubFramebuffer
  3712. extern void (*glInvalidateSubFramebuffer)(GLenum, GLsizei, const GLenum *, GLint, GLint, GLsizei, GLsizei);
  3713. #define glInvalidateTexImage _glplatform_glInvalidateTexImage
  3714. extern void (*glInvalidateTexImage)(GLuint, GLint);
  3715. #define glInvalidateTexSubImage _glplatform_glInvalidateTexSubImage
  3716. extern void (*glInvalidateTexSubImage)(GLuint, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei);
  3717. #endif
  3718. #if defined(GLPLATFORM_ENABLE_GL_ARB_map_buffer_alignment)
  3719. extern bool GLPLATFORM_GL_ARB_map_buffer_alignment;
  3720. #define GL_MIN_MAP_BUFFER_ALIGNMENT 0x90bc
  3721. #endif
  3722. #if defined(GLPLATFORM_ENABLE_GL_ARB_map_buffer_range)
  3723. extern bool GLPLATFORM_GL_ARB_map_buffer_range;
  3724. #define GL_MAP_FLUSH_EXPLICIT_BIT 0x10
  3725. #define GL_MAP_INVALIDATE_BUFFER_BIT 0x8
  3726. #define GL_MAP_INVALIDATE_RANGE_BIT 0x4
  3727. #define GL_MAP_READ_BIT 0x1
  3728. #define GL_MAP_UNSYNCHRONIZED_BIT 0x20
  3729. #define GL_MAP_WRITE_BIT 0x2
  3730. #define glFlushMappedBufferRange _glplatform_glFlushMappedBufferRange
  3731. extern void (*glFlushMappedBufferRange)(GLenum, GLintptr, GLsizeiptr);
  3732. #define glMapBufferRange _glplatform_glMapBufferRange
  3733. extern void * (*glMapBufferRange)(GLenum, GLintptr, GLsizeiptr, GLbitfield);
  3734. #endif
  3735. #if defined(GLPLATFORM_ENABLE_GL_ARB_multi_bind)
  3736. extern bool GLPLATFORM_GL_ARB_multi_bind;
  3737. #define glBindBuffersBase _glplatform_glBindBuffersBase
  3738. extern void (*glBindBuffersBase)(GLenum, GLuint, GLsizei, const GLuint *);
  3739. #define glBindBuffersRange _glplatform_glBindBuffersRange
  3740. extern void (*glBindBuffersRange)(GLenum, GLuint, GLsizei, const GLuint *, const GLintptr *, const GLsizeiptr *);
  3741. #define glBindImageTextures _glplatform_glBindImageTextures
  3742. extern void (*glBindImageTextures)(GLuint, GLsizei, const GLuint *);
  3743. #define glBindSamplers _glplatform_glBindSamplers
  3744. extern void (*glBindSamplers)(GLuint, GLsizei, const GLuint *);
  3745. #define glBindTextures _glplatform_glBindTextures
  3746. extern void (*glBindTextures)(GLuint, GLsizei, const GLuint *);
  3747. #define glBindVertexBuffers _glplatform_glBindVertexBuffers
  3748. extern void (*glBindVertexBuffers)(GLuint, GLsizei, const GLuint *, const GLintptr *, const GLsizei *);
  3749. #endif
  3750. #if defined(GLPLATFORM_ENABLE_GL_ARB_multi_draw_indirect)
  3751. extern bool GLPLATFORM_GL_ARB_multi_draw_indirect;
  3752. #define glMultiDrawArraysIndirect _glplatform_glMultiDrawArraysIndirect
  3753. extern void (*glMultiDrawArraysIndirect)(GLenum, const void *, GLsizei, GLsizei);
  3754. #define glMultiDrawElementsIndirect _glplatform_glMultiDrawElementsIndirect
  3755. extern void (*glMultiDrawElementsIndirect)(GLenum, GLenum, const void *, GLsizei, GLsizei);
  3756. #endif
  3757. #if defined(GLPLATFORM_ENABLE_GL_ARB_occlusion_query2)
  3758. extern bool GLPLATFORM_GL_ARB_occlusion_query2;
  3759. #define GL_ANY_SAMPLES_PASSED 0x8c2f
  3760. #endif
  3761. #if defined(GLPLATFORM_ENABLE_GL_ARB_pipeline_statistics_query)
  3762. extern bool GLPLATFORM_GL_ARB_pipeline_statistics_query;
  3763. #define GL_CLIPPING_INPUT_PRIMITIVES_ARB 0x82f6
  3764. #define GL_CLIPPING_OUTPUT_PRIMITIVES_ARB 0x82f7
  3765. #define GL_COMPUTE_SHADER_INVOCATIONS_ARB 0x82f5
  3766. #define GL_FRAGMENT_SHADER_INVOCATIONS_ARB 0x82f4
  3767. #define GL_GEOMETRY_SHADER_INVOCATIONS 0x887f
  3768. #define GL_GEOMETRY_SHADER_PRIMITIVES_EMITTED_ARB 0x82f3
  3769. #define GL_PRIMITIVES_SUBMITTED_ARB 0x82ef
  3770. #define GL_TESS_CONTROL_SHADER_PATCHES_ARB 0x82f1
  3771. #define GL_TESS_EVALUATION_SHADER_INVOCATIONS_ARB 0x82f2
  3772. #define GL_VERTEX_SHADER_INVOCATIONS_ARB 0x82f0
  3773. #define GL_VERTICES_SUBMITTED_ARB 0x82ee
  3774. #endif
  3775. #if defined(GLPLATFORM_ENABLE_GL_ARB_program_interface_query)
  3776. extern bool GLPLATFORM_GL_ARB_program_interface_query;
  3777. #ifndef GLPLATFORM_TYPE_GLchar
  3778. #define GLPLATFORM_TYPE_GLchar
  3779. typedef char GLchar;
  3780. #endif
  3781. #define GL_ACTIVE_RESOURCES 0x92f5
  3782. #define GL_ACTIVE_VARIABLES 0x9305
  3783. #define GL_ARRAY_SIZE 0x92fb
  3784. #define GL_ARRAY_STRIDE 0x92fe
  3785. #define GL_ATOMIC_COUNTER_BUFFER 0x92c0
  3786. #define GL_ATOMIC_COUNTER_BUFFER_INDEX 0x9301
  3787. #define GL_BLOCK_INDEX 0x92fd
  3788. #define GL_BUFFER_BINDING 0x9302
  3789. #define GL_BUFFER_DATA_SIZE 0x9303
  3790. #define GL_BUFFER_VARIABLE 0x92e5
  3791. #define GL_COMPATIBLE_SUBROUTINES 0x8e4b
  3792. #define GL_COMPUTE_SUBROUTINE 0x92ed
  3793. #define GL_COMPUTE_SUBROUTINE_UNIFORM 0x92f3
  3794. #define GL_FRAGMENT_SUBROUTINE 0x92ec
  3795. #define GL_FRAGMENT_SUBROUTINE_UNIFORM 0x92f2
  3796. #define GL_GEOMETRY_SUBROUTINE 0x92eb
  3797. #define GL_GEOMETRY_SUBROUTINE_UNIFORM 0x92f1
  3798. #define GL_IS_PER_PATCH 0x92e7
  3799. #define GL_IS_ROW_MAJOR 0x9300
  3800. #define GL_LOCATION 0x930e
  3801. #define GL_LOCATION_INDEX 0x930f
  3802. #define GL_MATRIX_STRIDE 0x92ff
  3803. #define GL_MAX_NAME_LENGTH 0x92f6
  3804. #define GL_MAX_NUM_ACTIVE_VARIABLES 0x92f7
  3805. #define GL_MAX_NUM_COMPATIBLE_SUBROUTINES 0x92f8
  3806. #define GL_NAME_LENGTH 0x92f9
  3807. #define GL_NUM_ACTIVE_VARIABLES 0x9304
  3808. #define GL_NUM_COMPATIBLE_SUBROUTINES 0x8e4a
  3809. #define GL_OFFSET 0x92fc
  3810. #define GL_PROGRAM_INPUT 0x92e3
  3811. #define GL_PROGRAM_OUTPUT 0x92e4
  3812. #define GL_REFERENCED_BY_COMPUTE_SHADER 0x930b
  3813. #define GL_REFERENCED_BY_FRAGMENT_SHADER 0x930a
  3814. #define GL_REFERENCED_BY_GEOMETRY_SHADER 0x9309
  3815. #define GL_REFERENCED_BY_TESS_CONTROL_SHADER 0x9307
  3816. #define GL_REFERENCED_BY_TESS_EVALUATION_SHADER 0x9308
  3817. #define GL_REFERENCED_BY_VERTEX_SHADER 0x9306
  3818. #define GL_SHADER_STORAGE_BLOCK 0x92e6
  3819. #define GL_TESS_CONTROL_SUBROUTINE 0x92e9
  3820. #define GL_TESS_CONTROL_SUBROUTINE_UNIFORM 0x92ef
  3821. #define GL_TESS_EVALUATION_SUBROUTINE 0x92ea
  3822. #define GL_TESS_EVALUATION_SUBROUTINE_UNIFORM 0x92f0
  3823. #define GL_TOP_LEVEL_ARRAY_SIZE 0x930c
  3824. #define GL_TOP_LEVEL_ARRAY_STRIDE 0x930d
  3825. #define GL_TRANSFORM_FEEDBACK_VARYING 0x92f4
  3826. #define GL_TYPE 0x92fa
  3827. #define GL_UNIFORM 0x92e1
  3828. #define GL_UNIFORM_BLOCK 0x92e2
  3829. #define GL_VERTEX_SUBROUTINE 0x92e8
  3830. #define GL_VERTEX_SUBROUTINE_UNIFORM 0x92ee
  3831. #define glGetProgramInterfaceiv _glplatform_glGetProgramInterfaceiv
  3832. extern void (*glGetProgramInterfaceiv)(GLuint, GLenum, GLenum, GLint *);
  3833. #define glGetProgramResourceIndex _glplatform_glGetProgramResourceIndex
  3834. extern GLuint (*glGetProgramResourceIndex)(GLuint, GLenum, const GLchar *);
  3835. #define glGetProgramResourceLocation _glplatform_glGetProgramResourceLocation
  3836. extern GLint (*glGetProgramResourceLocation)(GLuint, GLenum, const GLchar *);
  3837. #define glGetProgramResourceLocationIndex _glplatform_glGetProgramResourceLocationIndex
  3838. extern GLint (*glGetProgramResourceLocationIndex)(GLuint, GLenum, const GLchar *);
  3839. #define glGetProgramResourceName _glplatform_glGetProgramResourceName
  3840. extern void (*glGetProgramResourceName)(GLuint, GLenum, GLuint, GLsizei, GLsizei *, GLchar *);
  3841. #define glGetProgramResourceiv _glplatform_glGetProgramResourceiv
  3842. extern void (*glGetProgramResourceiv)(GLuint, GLenum, GLuint, GLsizei, const GLenum *, GLsizei, GLsizei *, GLint *);
  3843. #endif
  3844. #if defined(GLPLATFORM_ENABLE_GL_ARB_provoking_vertex)
  3845. extern bool GLPLATFORM_GL_ARB_provoking_vertex;
  3846. #define GL_FIRST_VERTEX_CONVENTION 0x8e4d
  3847. #define GL_LAST_VERTEX_CONVENTION 0x8e4e
  3848. #define GL_PROVOKING_VERTEX 0x8e4f
  3849. #define GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION 0x8e4c
  3850. #define glProvokingVertex _glplatform_glProvokingVertex
  3851. extern void (*glProvokingVertex)(GLenum);
  3852. #endif
  3853. #if defined(GLPLATFORM_ENABLE_GL_ARB_query_buffer_object)
  3854. extern bool GLPLATFORM_GL_ARB_query_buffer_object;
  3855. #define GL_QUERY_BUFFER 0x9192
  3856. #define GL_QUERY_BUFFER_BARRIER_BIT 0x8000
  3857. #define GL_QUERY_BUFFER_BINDING 0x9193
  3858. #define GL_QUERY_RESULT_NO_WAIT 0x9194
  3859. #endif
  3860. #if defined(GLPLATFORM_ENABLE_GL_ARB_robust_buffer_access_behavior)
  3861. extern bool GLPLATFORM_GL_ARB_robust_buffer_access_behavior;
  3862. #endif
  3863. #if defined(GLPLATFORM_ENABLE_GL_ARB_robustness)
  3864. extern bool GLPLATFORM_GL_ARB_robustness;
  3865. #define GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT_ARB 0x4
  3866. #define GL_GUILTY_CONTEXT_RESET_ARB 0x8253
  3867. #define GL_INNOCENT_CONTEXT_RESET_ARB 0x8254
  3868. #define GL_LOSE_CONTEXT_ON_RESET_ARB 0x8252
  3869. #define GL_NO_ERROR 0x0
  3870. #define GL_NO_RESET_NOTIFICATION_ARB 0x8261
  3871. #define GL_RESET_NOTIFICATION_STRATEGY_ARB 0x8256
  3872. #define GL_UNKNOWN_CONTEXT_RESET_ARB 0x8255
  3873. #define glGetGraphicsResetStatusARB _glplatform_glGetGraphicsResetStatusARB
  3874. extern GLenum (*glGetGraphicsResetStatusARB)();
  3875. #define glGetnCompressedTexImageARB _glplatform_glGetnCompressedTexImageARB
  3876. extern void (*glGetnCompressedTexImageARB)(GLenum, GLint, GLsizei, void *);
  3877. #define glGetnTexImageARB _glplatform_glGetnTexImageARB
  3878. extern void (*glGetnTexImageARB)(GLenum, GLint, GLenum, GLenum, GLsizei, void *);
  3879. #define glGetnUniformdvARB _glplatform_glGetnUniformdvARB
  3880. extern void (*glGetnUniformdvARB)(GLuint, GLint, GLsizei, GLdouble *);
  3881. #define glGetnUniformfvARB _glplatform_glGetnUniformfvARB
  3882. extern void (*glGetnUniformfvARB)(GLuint, GLint, GLsizei, GLfloat *);
  3883. #define glGetnUniformivARB _glplatform_glGetnUniformivARB
  3884. extern void (*glGetnUniformivARB)(GLuint, GLint, GLsizei, GLint *);
  3885. #define glGetnUniformuivARB _glplatform_glGetnUniformuivARB
  3886. extern void (*glGetnUniformuivARB)(GLuint, GLint, GLsizei, GLuint *);
  3887. #define glReadnPixelsARB _glplatform_glReadnPixelsARB
  3888. extern void (*glReadnPixelsARB)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLsizei, void *);
  3889. #endif
  3890. #if defined(GLPLATFORM_ENABLE_GL_ARB_robustness_isolation)
  3891. extern bool GLPLATFORM_GL_ARB_robustness_isolation;
  3892. #endif
  3893. #if defined(GLPLATFORM_ENABLE_GL_ARB_sample_shading)
  3894. extern bool GLPLATFORM_GL_ARB_sample_shading;
  3895. #define GL_MIN_SAMPLE_SHADING_VALUE_ARB 0x8c37
  3896. #define GL_SAMPLE_SHADING_ARB 0x8c36
  3897. #define glMinSampleShadingARB _glplatform_glMinSampleShadingARB
  3898. extern void (*glMinSampleShadingARB)(GLfloat);
  3899. #endif
  3900. #if defined(GLPLATFORM_ENABLE_GL_ARB_sampler_objects)
  3901. extern bool GLPLATFORM_GL_ARB_sampler_objects;
  3902. #define GL_SAMPLER_BINDING 0x8919
  3903. #define glBindSampler _glplatform_glBindSampler
  3904. extern void (*glBindSampler)(GLuint, GLuint);
  3905. #define glDeleteSamplers _glplatform_glDeleteSamplers
  3906. extern void (*glDeleteSamplers)(GLsizei, const GLuint *);
  3907. #define glGenSamplers _glplatform_glGenSamplers
  3908. extern void (*glGenSamplers)(GLsizei, GLuint *);
  3909. #define glGetSamplerParameterIiv _glplatform_glGetSamplerParameterIiv
  3910. extern void (*glGetSamplerParameterIiv)(GLuint, GLenum, GLint *);
  3911. #define glGetSamplerParameterIuiv _glplatform_glGetSamplerParameterIuiv
  3912. extern void (*glGetSamplerParameterIuiv)(GLuint, GLenum, GLuint *);
  3913. #define glGetSamplerParameterfv _glplatform_glGetSamplerParameterfv
  3914. extern void (*glGetSamplerParameterfv)(GLuint, GLenum, GLfloat *);
  3915. #define glGetSamplerParameteriv _glplatform_glGetSamplerParameteriv
  3916. extern void (*glGetSamplerParameteriv)(GLuint, GLenum, GLint *);
  3917. #define glIsSampler _glplatform_glIsSampler
  3918. extern GLboolean (*glIsSampler)(GLuint);
  3919. #define glSamplerParameterIiv _glplatform_glSamplerParameterIiv
  3920. extern void (*glSamplerParameterIiv)(GLuint, GLenum, const GLint *);
  3921. #define glSamplerParameterIuiv _glplatform_glSamplerParameterIuiv
  3922. extern void (*glSamplerParameterIuiv)(GLuint, GLenum, const GLuint *);
  3923. #define glSamplerParameterf _glplatform_glSamplerParameterf
  3924. extern void (*glSamplerParameterf)(GLuint, GLenum, GLfloat);
  3925. #define glSamplerParameterfv _glplatform_glSamplerParameterfv
  3926. extern void (*glSamplerParameterfv)(GLuint, GLenum, const GLfloat *);
  3927. #define glSamplerParameteri _glplatform_glSamplerParameteri
  3928. extern void (*glSamplerParameteri)(GLuint, GLenum, GLint);
  3929. #define glSamplerParameteriv _glplatform_glSamplerParameteriv
  3930. extern void (*glSamplerParameteriv)(GLuint, GLenum, const GLint *);
  3931. #endif
  3932. #if defined(GLPLATFORM_ENABLE_GL_ARB_seamless_cube_map)
  3933. extern bool GLPLATFORM_GL_ARB_seamless_cube_map;
  3934. #define GL_TEXTURE_CUBE_MAP_SEAMLESS 0x884f
  3935. #endif
  3936. #if defined(GLPLATFORM_ENABLE_GL_ARB_seamless_cubemap_per_texture)
  3937. extern bool GLPLATFORM_GL_ARB_seamless_cubemap_per_texture;
  3938. #define GL_TEXTURE_CUBE_MAP_SEAMLESS 0x884f
  3939. #endif
  3940. #if defined(GLPLATFORM_ENABLE_GL_ARB_separate_shader_objects)
  3941. extern bool GLPLATFORM_GL_ARB_separate_shader_objects;
  3942. #ifndef GLPLATFORM_TYPE_GLchar
  3943. #define GLPLATFORM_TYPE_GLchar
  3944. typedef char GLchar;
  3945. #endif
  3946. #define GL_ACTIVE_PROGRAM 0x8259
  3947. #define GL_ALL_SHADER_BITS 0xffffffff
  3948. #define GL_FRAGMENT_SHADER_BIT 0x2
  3949. #define GL_GEOMETRY_SHADER_BIT 0x4
  3950. #define GL_PROGRAM_PIPELINE_BINDING 0x825a
  3951. #define GL_PROGRAM_SEPARABLE 0x8258
  3952. #define GL_TESS_CONTROL_SHADER_BIT 0x8
  3953. #define GL_TESS_EVALUATION_SHADER_BIT 0x10
  3954. #define GL_VERTEX_SHADER_BIT 0x1
  3955. #define glActiveShaderProgram _glplatform_glActiveShaderProgram
  3956. extern void (*glActiveShaderProgram)(GLuint, GLuint);
  3957. #define glBindProgramPipeline _glplatform_glBindProgramPipeline
  3958. extern void (*glBindProgramPipeline)(GLuint);
  3959. #define glCreateShaderProgramv _glplatform_glCreateShaderProgramv
  3960. extern GLuint (*glCreateShaderProgramv)(GLenum, GLsizei, const GLchar *const*);
  3961. #define glDeleteProgramPipelines _glplatform_glDeleteProgramPipelines
  3962. extern void (*glDeleteProgramPipelines)(GLsizei, const GLuint *);
  3963. #define glGenProgramPipelines _glplatform_glGenProgramPipelines
  3964. extern void (*glGenProgramPipelines)(GLsizei, GLuint *);
  3965. #define glGetProgramPipelineInfoLog _glplatform_glGetProgramPipelineInfoLog
  3966. extern void (*glGetProgramPipelineInfoLog)(GLuint, GLsizei, GLsizei *, GLchar *);
  3967. #define glGetProgramPipelineiv _glplatform_glGetProgramPipelineiv
  3968. extern void (*glGetProgramPipelineiv)(GLuint, GLenum, GLint *);
  3969. #define glIsProgramPipeline _glplatform_glIsProgramPipeline
  3970. extern GLboolean (*glIsProgramPipeline)(GLuint);
  3971. #define glProgramUniform1d _glplatform_glProgramUniform1d
  3972. extern void (*glProgramUniform1d)(GLuint, GLint, GLdouble);
  3973. #define glProgramUniform1dv _glplatform_glProgramUniform1dv
  3974. extern void (*glProgramUniform1dv)(GLuint, GLint, GLsizei, const GLdouble *);
  3975. #define glProgramUniform1f _glplatform_glProgramUniform1f
  3976. extern void (*glProgramUniform1f)(GLuint, GLint, GLfloat);
  3977. #define glProgramUniform1fv _glplatform_glProgramUniform1fv
  3978. extern void (*glProgramUniform1fv)(GLuint, GLint, GLsizei, const GLfloat *);
  3979. #define glProgramUniform1i _glplatform_glProgramUniform1i
  3980. extern void (*glProgramUniform1i)(GLuint, GLint, GLint);
  3981. #define glProgramUniform1iv _glplatform_glProgramUniform1iv
  3982. extern void (*glProgramUniform1iv)(GLuint, GLint, GLsizei, const GLint *);
  3983. #define glProgramUniform1ui _glplatform_glProgramUniform1ui
  3984. extern void (*glProgramUniform1ui)(GLuint, GLint, GLuint);
  3985. #define glProgramUniform1uiv _glplatform_glProgramUniform1uiv
  3986. extern void (*glProgramUniform1uiv)(GLuint, GLint, GLsizei, const GLuint *);
  3987. #define glProgramUniform2d _glplatform_glProgramUniform2d
  3988. extern void (*glProgramUniform2d)(GLuint, GLint, GLdouble, GLdouble);
  3989. #define glProgramUniform2dv _glplatform_glProgramUniform2dv
  3990. extern void (*glProgramUniform2dv)(GLuint, GLint, GLsizei, const GLdouble *);
  3991. #define glProgramUniform2f _glplatform_glProgramUniform2f
  3992. extern void (*glProgramUniform2f)(GLuint, GLint, GLfloat, GLfloat);
  3993. #define glProgramUniform2fv _glplatform_glProgramUniform2fv
  3994. extern void (*glProgramUniform2fv)(GLuint, GLint, GLsizei, const GLfloat *);
  3995. #define glProgramUniform2i _glplatform_glProgramUniform2i
  3996. extern void (*glProgramUniform2i)(GLuint, GLint, GLint, GLint);
  3997. #define glProgramUniform2iv _glplatform_glProgramUniform2iv
  3998. extern void (*glProgramUniform2iv)(GLuint, GLint, GLsizei, const GLint *);
  3999. #define glProgramUniform2ui _glplatform_glProgramUniform2ui
  4000. extern void (*glProgramUniform2ui)(GLuint, GLint, GLuint, GLuint);
  4001. #define glProgramUniform2uiv _glplatform_glProgramUniform2uiv
  4002. extern void (*glProgramUniform2uiv)(GLuint, GLint, GLsizei, const GLuint *);
  4003. #define glProgramUniform3d _glplatform_glProgramUniform3d
  4004. extern void (*glProgramUniform3d)(GLuint, GLint, GLdouble, GLdouble, GLdouble);
  4005. #define glProgramUniform3dv _glplatform_glProgramUniform3dv
  4006. extern void (*glProgramUniform3dv)(GLuint, GLint, GLsizei, const GLdouble *);
  4007. #define glProgramUniform3f _glplatform_glProgramUniform3f
  4008. extern void (*glProgramUniform3f)(GLuint, GLint, GLfloat, GLfloat, GLfloat);
  4009. #define glProgramUniform3fv _glplatform_glProgramUniform3fv
  4010. extern void (*glProgramUniform3fv)(GLuint, GLint, GLsizei, const GLfloat *);
  4011. #define glProgramUniform3i _glplatform_glProgramUniform3i
  4012. extern void (*glProgramUniform3i)(GLuint, GLint, GLint, GLint, GLint);
  4013. #define glProgramUniform3iv _glplatform_glProgramUniform3iv
  4014. extern void (*glProgramUniform3iv)(GLuint, GLint, GLsizei, const GLint *);
  4015. #define glProgramUniform3ui _glplatform_glProgramUniform3ui
  4016. extern void (*glProgramUniform3ui)(GLuint, GLint, GLuint, GLuint, GLuint);
  4017. #define glProgramUniform3uiv _glplatform_glProgramUniform3uiv
  4018. extern void (*glProgramUniform3uiv)(GLuint, GLint, GLsizei, const GLuint *);
  4019. #define glProgramUniform4d _glplatform_glProgramUniform4d
  4020. extern void (*glProgramUniform4d)(GLuint, GLint, GLdouble, GLdouble, GLdouble, GLdouble);
  4021. #define glProgramUniform4dv _glplatform_glProgramUniform4dv
  4022. extern void (*glProgramUniform4dv)(GLuint, GLint, GLsizei, const GLdouble *);
  4023. #define glProgramUniform4f _glplatform_glProgramUniform4f
  4024. extern void (*glProgramUniform4f)(GLuint, GLint, GLfloat, GLfloat, GLfloat, GLfloat);
  4025. #define glProgramUniform4fv _glplatform_glProgramUniform4fv
  4026. extern void (*glProgramUniform4fv)(GLuint, GLint, GLsizei, const GLfloat *);
  4027. #define glProgramUniform4i _glplatform_glProgramUniform4i
  4028. extern void (*glProgramUniform4i)(GLuint, GLint, GLint, GLint, GLint, GLint);
  4029. #define glProgramUniform4iv _glplatform_glProgramUniform4iv
  4030. extern void (*glProgramUniform4iv)(GLuint, GLint, GLsizei, const GLint *);
  4031. #define glProgramUniform4ui _glplatform_glProgramUniform4ui
  4032. extern void (*glProgramUniform4ui)(GLuint, GLint, GLuint, GLuint, GLuint, GLuint);
  4033. #define glProgramUniform4uiv _glplatform_glProgramUniform4uiv
  4034. extern void (*glProgramUniform4uiv)(GLuint, GLint, GLsizei, const GLuint *);
  4035. #define glProgramUniformMatrix2dv _glplatform_glProgramUniformMatrix2dv
  4036. extern void (*glProgramUniformMatrix2dv)(GLuint, GLint, GLsizei, GLboolean, const GLdouble *);
  4037. #define glProgramUniformMatrix2fv _glplatform_glProgramUniformMatrix2fv
  4038. extern void (*glProgramUniformMatrix2fv)(GLuint, GLint, GLsizei, GLboolean, const GLfloat *);
  4039. #define glProgramUniformMatrix2x3dv _glplatform_glProgramUniformMatrix2x3dv
  4040. extern void (*glProgramUniformMatrix2x3dv)(GLuint, GLint, GLsizei, GLboolean, const GLdouble *);
  4041. #define glProgramUniformMatrix2x3fv _glplatform_glProgramUniformMatrix2x3fv
  4042. extern void (*glProgramUniformMatrix2x3fv)(GLuint, GLint, GLsizei, GLboolean, const GLfloat *);
  4043. #define glProgramUniformMatrix2x4dv _glplatform_glProgramUniformMatrix2x4dv
  4044. extern void (*glProgramUniformMatrix2x4dv)(GLuint, GLint, GLsizei, GLboolean, const GLdouble *);
  4045. #define glProgramUniformMatrix2x4fv _glplatform_glProgramUniformMatrix2x4fv
  4046. extern void (*glProgramUniformMatrix2x4fv)(GLuint, GLint, GLsizei, GLboolean, const GLfloat *);
  4047. #define glProgramUniformMatrix3dv _glplatform_glProgramUniformMatrix3dv
  4048. extern void (*glProgramUniformMatrix3dv)(GLuint, GLint, GLsizei, GLboolean, const GLdouble *);
  4049. #define glProgramUniformMatrix3fv _glplatform_glProgramUniformMatrix3fv
  4050. extern void (*glProgramUniformMatrix3fv)(GLuint, GLint, GLsizei, GLboolean, const GLfloat *);
  4051. #define glProgramUniformMatrix3x2dv _glplatform_glProgramUniformMatrix3x2dv
  4052. extern void (*glProgramUniformMatrix3x2dv)(GLuint, GLint, GLsizei, GLboolean, const GLdouble *);
  4053. #define glProgramUniformMatrix3x2fv _glplatform_glProgramUniformMatrix3x2fv
  4054. extern void (*glProgramUniformMatrix3x2fv)(GLuint, GLint, GLsizei, GLboolean, const GLfloat *);
  4055. #define glProgramUniformMatrix3x4dv _glplatform_glProgramUniformMatrix3x4dv
  4056. extern void (*glProgramUniformMatrix3x4dv)(GLuint, GLint, GLsizei, GLboolean, const GLdouble *);
  4057. #define glProgramUniformMatrix3x4fv _glplatform_glProgramUniformMatrix3x4fv
  4058. extern void (*glProgramUniformMatrix3x4fv)(GLuint, GLint, GLsizei, GLboolean, const GLfloat *);
  4059. #define glProgramUniformMatrix4dv _glplatform_glProgramUniformMatrix4dv
  4060. extern void (*glProgramUniformMatrix4dv)(GLuint, GLint, GLsizei, GLboolean, const GLdouble *);
  4061. #define glProgramUniformMatrix4fv _glplatform_glProgramUniformMatrix4fv
  4062. extern void (*glProgramUniformMatrix4fv)(GLuint, GLint, GLsizei, GLboolean, const GLfloat *);
  4063. #define glProgramUniformMatrix4x2dv _glplatform_glProgramUniformMatrix4x2dv
  4064. extern void (*glProgramUniformMatrix4x2dv)(GLuint, GLint, GLsizei, GLboolean, const GLdouble *);
  4065. #define glProgramUniformMatrix4x2fv _glplatform_glProgramUniformMatrix4x2fv
  4066. extern void (*glProgramUniformMatrix4x2fv)(GLuint, GLint, GLsizei, GLboolean, const GLfloat *);
  4067. #define glProgramUniformMatrix4x3dv _glplatform_glProgramUniformMatrix4x3dv
  4068. extern void (*glProgramUniformMatrix4x3dv)(GLuint, GLint, GLsizei, GLboolean, const GLdouble *);
  4069. #define glProgramUniformMatrix4x3fv _glplatform_glProgramUniformMatrix4x3fv
  4070. extern void (*glProgramUniformMatrix4x3fv)(GLuint, GLint, GLsizei, GLboolean, const GLfloat *);
  4071. #define glUseProgramStages _glplatform_glUseProgramStages
  4072. extern void (*glUseProgramStages)(GLuint, GLbitfield, GLuint);
  4073. #define glValidateProgramPipeline _glplatform_glValidateProgramPipeline
  4074. extern void (*glValidateProgramPipeline)(GLuint);
  4075. #endif
  4076. #if defined(GLPLATFORM_ENABLE_GL_ARB_shader_atomic_counters)
  4077. extern bool GLPLATFORM_GL_ARB_shader_atomic_counters;
  4078. #define GL_ACTIVE_ATOMIC_COUNTER_BUFFERS 0x92d9
  4079. #define GL_ATOMIC_COUNTER_BUFFER 0x92c0
  4080. #define GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTERS 0x92c5
  4081. #define GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTER_INDICES 0x92c6
  4082. #define GL_ATOMIC_COUNTER_BUFFER_BINDING 0x92c1
  4083. #define GL_ATOMIC_COUNTER_BUFFER_DATA_SIZE 0x92c4
  4084. #define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_FRAGMENT_SHADER 0x92cb
  4085. #define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_GEOMETRY_SHADER 0x92ca
  4086. #define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_CONTROL_SHADER 0x92c8
  4087. #define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_EVALUATION_SHADER 0x92c9
  4088. #define GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_VERTEX_SHADER 0x92c7
  4089. #define GL_ATOMIC_COUNTER_BUFFER_SIZE 0x92c3
  4090. #define GL_ATOMIC_COUNTER_BUFFER_START 0x92c2
  4091. #define GL_MAX_ATOMIC_COUNTER_BUFFER_BINDINGS 0x92dc
  4092. #define GL_MAX_ATOMIC_COUNTER_BUFFER_SIZE 0x92d8
  4093. #define GL_MAX_COMBINED_ATOMIC_COUNTERS 0x92d7
  4094. #define GL_MAX_COMBINED_ATOMIC_COUNTER_BUFFERS 0x92d1
  4095. #define GL_MAX_FRAGMENT_ATOMIC_COUNTERS 0x92d6
  4096. #define GL_MAX_FRAGMENT_ATOMIC_COUNTER_BUFFERS 0x92d0
  4097. #define GL_MAX_GEOMETRY_ATOMIC_COUNTERS 0x92d5
  4098. #define GL_MAX_GEOMETRY_ATOMIC_COUNTER_BUFFERS 0x92cf
  4099. #define GL_MAX_TESS_CONTROL_ATOMIC_COUNTERS 0x92d3
  4100. #define GL_MAX_TESS_CONTROL_ATOMIC_COUNTER_BUFFERS 0x92cd
  4101. #define GL_MAX_TESS_EVALUATION_ATOMIC_COUNTERS 0x92d4
  4102. #define GL_MAX_TESS_EVALUATION_ATOMIC_COUNTER_BUFFERS 0x92ce
  4103. #define GL_MAX_VERTEX_ATOMIC_COUNTERS 0x92d2
  4104. #define GL_MAX_VERTEX_ATOMIC_COUNTER_BUFFERS 0x92cc
  4105. #define GL_UNIFORM_ATOMIC_COUNTER_BUFFER_INDEX 0x92da
  4106. #define GL_UNSIGNED_INT_ATOMIC_COUNTER 0x92db
  4107. #define glGetActiveAtomicCounterBufferiv _glplatform_glGetActiveAtomicCounterBufferiv
  4108. extern void (*glGetActiveAtomicCounterBufferiv)(GLuint, GLuint, GLenum, GLint *);
  4109. #endif
  4110. #if defined(GLPLATFORM_ENABLE_GL_ARB_shader_bit_encoding)
  4111. extern bool GLPLATFORM_GL_ARB_shader_bit_encoding;
  4112. #endif
  4113. #if defined(GLPLATFORM_ENABLE_GL_ARB_shader_draw_parameters)
  4114. extern bool GLPLATFORM_GL_ARB_shader_draw_parameters;
  4115. #endif
  4116. #if defined(GLPLATFORM_ENABLE_GL_ARB_shader_group_vote)
  4117. extern bool GLPLATFORM_GL_ARB_shader_group_vote;
  4118. #endif
  4119. #if defined(GLPLATFORM_ENABLE_GL_ARB_shader_image_load_store)
  4120. extern bool GLPLATFORM_GL_ARB_shader_image_load_store;
  4121. #define GL_ALL_BARRIER_BITS 0xffffffff
  4122. #define GL_ATOMIC_COUNTER_BARRIER_BIT 0x1000
  4123. #define GL_BUFFER_UPDATE_BARRIER_BIT 0x200
  4124. #define GL_COMMAND_BARRIER_BIT 0x40
  4125. #define GL_ELEMENT_ARRAY_BARRIER_BIT 0x2
  4126. #define GL_FRAMEBUFFER_BARRIER_BIT 0x400
  4127. #define GL_IMAGE_1D 0x904c
  4128. #define GL_IMAGE_1D_ARRAY 0x9052
  4129. #define GL_IMAGE_2D 0x904d
  4130. #define GL_IMAGE_2D_ARRAY 0x9053
  4131. #define GL_IMAGE_2D_MULTISAMPLE 0x9055
  4132. #define GL_IMAGE_2D_MULTISAMPLE_ARRAY 0x9056
  4133. #define GL_IMAGE_2D_RECT 0x904f
  4134. #define GL_IMAGE_3D 0x904e
  4135. #define GL_IMAGE_BINDING_ACCESS 0x8f3e
  4136. #define GL_IMAGE_BINDING_FORMAT 0x906e
  4137. #define GL_IMAGE_BINDING_LAYER 0x8f3d
  4138. #define GL_IMAGE_BINDING_LAYERED 0x8f3c
  4139. #define GL_IMAGE_BINDING_LEVEL 0x8f3b
  4140. #define GL_IMAGE_BINDING_NAME 0x8f3a
  4141. #define GL_IMAGE_BUFFER 0x9051
  4142. #define GL_IMAGE_CUBE 0x9050
  4143. #define GL_IMAGE_CUBE_MAP_ARRAY 0x9054
  4144. #define GL_IMAGE_FORMAT_COMPATIBILITY_BY_CLASS 0x90c9
  4145. #define GL_IMAGE_FORMAT_COMPATIBILITY_BY_SIZE 0x90c8
  4146. #define GL_IMAGE_FORMAT_COMPATIBILITY_TYPE 0x90c7
  4147. #define GL_INT_IMAGE_1D 0x9057
  4148. #define GL_INT_IMAGE_1D_ARRAY 0x905d
  4149. #define GL_INT_IMAGE_2D 0x9058
  4150. #define GL_INT_IMAGE_2D_ARRAY 0x905e
  4151. #define GL_INT_IMAGE_2D_MULTISAMPLE 0x9060
  4152. #define GL_INT_IMAGE_2D_MULTISAMPLE_ARRAY 0x9061
  4153. #define GL_INT_IMAGE_2D_RECT 0x905a
  4154. #define GL_INT_IMAGE_3D 0x9059
  4155. #define GL_INT_IMAGE_BUFFER 0x905c
  4156. #define GL_INT_IMAGE_CUBE 0x905b
  4157. #define GL_INT_IMAGE_CUBE_MAP_ARRAY 0x905f
  4158. #define GL_MAX_COMBINED_IMAGE_UNIFORMS 0x90cf
  4159. #define GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS 0x8f39
  4160. #define GL_MAX_FRAGMENT_IMAGE_UNIFORMS 0x90ce
  4161. #define GL_MAX_GEOMETRY_IMAGE_UNIFORMS 0x90cd
  4162. #define GL_MAX_IMAGE_SAMPLES 0x906d
  4163. #define GL_MAX_IMAGE_UNITS 0x8f38
  4164. #define GL_MAX_TESS_CONTROL_IMAGE_UNIFORMS 0x90cb
  4165. #define GL_MAX_TESS_EVALUATION_IMAGE_UNIFORMS 0x90cc
  4166. #define GL_MAX_VERTEX_IMAGE_UNIFORMS 0x90ca
  4167. #define GL_PIXEL_BUFFER_BARRIER_BIT 0x80
  4168. #define GL_SHADER_IMAGE_ACCESS_BARRIER_BIT 0x20
  4169. #define GL_TEXTURE_FETCH_BARRIER_BIT 0x8
  4170. #define GL_TEXTURE_UPDATE_BARRIER_BIT 0x100
  4171. #define GL_TRANSFORM_FEEDBACK_BARRIER_BIT 0x800
  4172. #define GL_UNIFORM_BARRIER_BIT 0x4
  4173. #define GL_UNSIGNED_INT_IMAGE_1D 0x9062
  4174. #define GL_UNSIGNED_INT_IMAGE_1D_ARRAY 0x9068
  4175. #define GL_UNSIGNED_INT_IMAGE_2D 0x9063
  4176. #define GL_UNSIGNED_INT_IMAGE_2D_ARRAY 0x9069
  4177. #define GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE 0x906b
  4178. #define GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_ARRAY 0x906c
  4179. #define GL_UNSIGNED_INT_IMAGE_2D_RECT 0x9065
  4180. #define GL_UNSIGNED_INT_IMAGE_3D 0x9064
  4181. #define GL_UNSIGNED_INT_IMAGE_BUFFER 0x9067
  4182. #define GL_UNSIGNED_INT_IMAGE_CUBE 0x9066
  4183. #define GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY 0x906a
  4184. #define GL_VERTEX_ATTRIB_ARRAY_BARRIER_BIT 0x1
  4185. #define glBindImageTexture _glplatform_glBindImageTexture
  4186. extern void (*glBindImageTexture)(GLuint, GLuint, GLint, GLboolean, GLint, GLenum, GLenum);
  4187. #define glMemoryBarrier _glplatform_glMemoryBarrier
  4188. extern void (*glMemoryBarrier)(GLbitfield);
  4189. #endif
  4190. #if defined(GLPLATFORM_ENABLE_GL_ARB_shader_image_size)
  4191. extern bool GLPLATFORM_GL_ARB_shader_image_size;
  4192. #endif
  4193. #if defined(GLPLATFORM_ENABLE_GL_ARB_shader_precision)
  4194. extern bool GLPLATFORM_GL_ARB_shader_precision;
  4195. #endif
  4196. #if defined(GLPLATFORM_ENABLE_GL_ARB_shader_stencil_export)
  4197. extern bool GLPLATFORM_GL_ARB_shader_stencil_export;
  4198. #endif
  4199. #if defined(GLPLATFORM_ENABLE_GL_ARB_shader_storage_buffer_object)
  4200. extern bool GLPLATFORM_GL_ARB_shader_storage_buffer_object;
  4201. #define GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS 0x8f39
  4202. #define GL_MAX_COMBINED_SHADER_OUTPUT_RESOURCES 0x8f39
  4203. #define GL_MAX_COMBINED_SHADER_STORAGE_BLOCKS 0x90dc
  4204. #define GL_MAX_COMPUTE_SHADER_STORAGE_BLOCKS 0x90db
  4205. #define GL_MAX_FRAGMENT_SHADER_STORAGE_BLOCKS 0x90da
  4206. #define GL_MAX_GEOMETRY_SHADER_STORAGE_BLOCKS 0x90d7
  4207. #define GL_MAX_SHADER_STORAGE_BLOCK_SIZE 0x90de
  4208. #define GL_MAX_SHADER_STORAGE_BUFFER_BINDINGS 0x90dd
  4209. #define GL_MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS 0x90d8
  4210. #define GL_MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS 0x90d9
  4211. #define GL_MAX_VERTEX_SHADER_STORAGE_BLOCKS 0x90d6
  4212. #define GL_SHADER_STORAGE_BARRIER_BIT 0x2000
  4213. #define GL_SHADER_STORAGE_BUFFER 0x90d2
  4214. #define GL_SHADER_STORAGE_BUFFER_BINDING 0x90d3
  4215. #define GL_SHADER_STORAGE_BUFFER_OFFSET_ALIGNMENT 0x90df
  4216. #define GL_SHADER_STORAGE_BUFFER_SIZE 0x90d5
  4217. #define GL_SHADER_STORAGE_BUFFER_START 0x90d4
  4218. #define glShaderStorageBlockBinding _glplatform_glShaderStorageBlockBinding
  4219. extern void (*glShaderStorageBlockBinding)(GLuint, GLuint, GLuint);
  4220. #endif
  4221. #if defined(GLPLATFORM_ENABLE_GL_ARB_shader_subroutine)
  4222. extern bool GLPLATFORM_GL_ARB_shader_subroutine;
  4223. #ifndef GLPLATFORM_TYPE_GLchar
  4224. #define GLPLATFORM_TYPE_GLchar
  4225. typedef char GLchar;
  4226. #endif
  4227. #define GL_ACTIVE_SUBROUTINES 0x8de5
  4228. #define GL_ACTIVE_SUBROUTINE_MAX_LENGTH 0x8e48
  4229. #define GL_ACTIVE_SUBROUTINE_UNIFORMS 0x8de6
  4230. #define GL_ACTIVE_SUBROUTINE_UNIFORM_LOCATIONS 0x8e47
  4231. #define GL_ACTIVE_SUBROUTINE_UNIFORM_MAX_LENGTH 0x8e49
  4232. #define GL_COMPATIBLE_SUBROUTINES 0x8e4b
  4233. #define GL_MAX_SUBROUTINES 0x8de7
  4234. #define GL_MAX_SUBROUTINE_UNIFORM_LOCATIONS 0x8de8
  4235. #define GL_NUM_COMPATIBLE_SUBROUTINES 0x8e4a
  4236. #define GL_UNIFORM_NAME_LENGTH 0x8a39
  4237. #define GL_UNIFORM_SIZE 0x8a38
  4238. #define glGetActiveSubroutineName _glplatform_glGetActiveSubroutineName
  4239. extern void (*glGetActiveSubroutineName)(GLuint, GLenum, GLuint, GLsizei, GLsizei *, GLchar *);
  4240. #define glGetActiveSubroutineUniformName _glplatform_glGetActiveSubroutineUniformName
  4241. extern void (*glGetActiveSubroutineUniformName)(GLuint, GLenum, GLuint, GLsizei, GLsizei *, GLchar *);
  4242. #define glGetActiveSubroutineUniformiv _glplatform_glGetActiveSubroutineUniformiv
  4243. extern void (*glGetActiveSubroutineUniformiv)(GLuint, GLenum, GLuint, GLenum, GLint *);
  4244. #define glGetProgramStageiv _glplatform_glGetProgramStageiv
  4245. extern void (*glGetProgramStageiv)(GLuint, GLenum, GLenum, GLint *);
  4246. #define glGetSubroutineIndex _glplatform_glGetSubroutineIndex
  4247. extern GLuint (*glGetSubroutineIndex)(GLuint, GLenum, const GLchar *);
  4248. #define glGetSubroutineUniformLocation _glplatform_glGetSubroutineUniformLocation
  4249. extern GLint (*glGetSubroutineUniformLocation)(GLuint, GLenum, const GLchar *);
  4250. #define glGetUniformSubroutineuiv _glplatform_glGetUniformSubroutineuiv
  4251. extern void (*glGetUniformSubroutineuiv)(GLenum, GLint, GLuint *);
  4252. #define glUniformSubroutinesuiv _glplatform_glUniformSubroutinesuiv
  4253. extern void (*glUniformSubroutinesuiv)(GLenum, GLsizei, const GLuint *);
  4254. #endif
  4255. #if defined(GLPLATFORM_ENABLE_GL_ARB_shader_texture_image_samples)
  4256. extern bool GLPLATFORM_GL_ARB_shader_texture_image_samples;
  4257. #endif
  4258. #if defined(GLPLATFORM_ENABLE_GL_ARB_shading_language_420pack)
  4259. extern bool GLPLATFORM_GL_ARB_shading_language_420pack;
  4260. #endif
  4261. #if defined(GLPLATFORM_ENABLE_GL_ARB_shading_language_include)
  4262. extern bool GLPLATFORM_GL_ARB_shading_language_include;
  4263. #ifndef GLPLATFORM_TYPE_GLchar
  4264. #define GLPLATFORM_TYPE_GLchar
  4265. typedef char GLchar;
  4266. #endif
  4267. #define GL_NAMED_STRING_LENGTH_ARB 0x8de9
  4268. #define GL_NAMED_STRING_TYPE_ARB 0x8dea
  4269. #define GL_SHADER_INCLUDE_ARB 0x8dae
  4270. #define glCompileShaderIncludeARB _glplatform_glCompileShaderIncludeARB
  4271. extern void (*glCompileShaderIncludeARB)(GLuint, GLsizei, const GLchar *const*, const GLint *);
  4272. #define glDeleteNamedStringARB _glplatform_glDeleteNamedStringARB
  4273. extern void (*glDeleteNamedStringARB)(GLint, const GLchar *);
  4274. #define glGetNamedStringARB _glplatform_glGetNamedStringARB
  4275. extern void (*glGetNamedStringARB)(GLint, const GLchar *, GLsizei, GLint *, GLchar *);
  4276. #define glGetNamedStringivARB _glplatform_glGetNamedStringivARB
  4277. extern void (*glGetNamedStringivARB)(GLint, const GLchar *, GLenum, GLint *);
  4278. #define glIsNamedStringARB _glplatform_glIsNamedStringARB
  4279. extern GLboolean (*glIsNamedStringARB)(GLint, const GLchar *);
  4280. #define glNamedStringARB _glplatform_glNamedStringARB
  4281. extern void (*glNamedStringARB)(GLenum, GLint, const GLchar *, GLint, const GLchar *);
  4282. #endif
  4283. #if defined(GLPLATFORM_ENABLE_GL_ARB_shading_language_packing)
  4284. extern bool GLPLATFORM_GL_ARB_shading_language_packing;
  4285. #endif
  4286. #if defined(GLPLATFORM_ENABLE_GL_ARB_sparse_buffer)
  4287. extern bool GLPLATFORM_GL_ARB_sparse_buffer;
  4288. #define GL_SPARSE_BUFFER_PAGE_SIZE_ARB 0x82f8
  4289. #define GL_SPARSE_STORAGE_BIT_ARB 0x400
  4290. #define glBufferPageCommitmentARB _glplatform_glBufferPageCommitmentARB
  4291. extern void (*glBufferPageCommitmentARB)(GLenum, GLintptr, GLsizeiptr, GLboolean);
  4292. #define glNamedBufferPageCommitmentARB _glplatform_glNamedBufferPageCommitmentARB
  4293. extern void (*glNamedBufferPageCommitmentARB)(GLuint, GLintptr, GLsizeiptr, GLboolean);
  4294. #define glNamedBufferPageCommitmentEXT _glplatform_glNamedBufferPageCommitmentEXT
  4295. extern void (*glNamedBufferPageCommitmentEXT)(GLuint, GLintptr, GLsizeiptr, GLboolean);
  4296. #endif
  4297. #if defined(GLPLATFORM_ENABLE_GL_ARB_sparse_texture)
  4298. extern bool GLPLATFORM_GL_ARB_sparse_texture;
  4299. #define GL_MAX_SPARSE_3D_TEXTURE_SIZE_ARB 0x9199
  4300. #define GL_MAX_SPARSE_ARRAY_TEXTURE_LAYERS_ARB 0x919a
  4301. #define GL_MAX_SPARSE_TEXTURE_SIZE_ARB 0x9198
  4302. #define GL_NUM_SPARSE_LEVELS_ARB 0x91aa
  4303. #define GL_NUM_VIRTUAL_PAGE_SIZES_ARB 0x91a8
  4304. #define GL_SPARSE_TEXTURE_FULL_ARRAY_CUBE_MIPMAPS_ARB 0x91a9
  4305. #define GL_TEXTURE_SPARSE_ARB 0x91a6
  4306. #define GL_VIRTUAL_PAGE_SIZE_INDEX_ARB 0x91a7
  4307. #define GL_VIRTUAL_PAGE_SIZE_X_ARB 0x9195
  4308. #define GL_VIRTUAL_PAGE_SIZE_Y_ARB 0x9196
  4309. #define GL_VIRTUAL_PAGE_SIZE_Z_ARB 0x9197
  4310. #define glTexPageCommitmentARB _glplatform_glTexPageCommitmentARB
  4311. extern void (*glTexPageCommitmentARB)(GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLboolean);
  4312. #endif
  4313. #if defined(GLPLATFORM_ENABLE_GL_ARB_stencil_texturing)
  4314. extern bool GLPLATFORM_GL_ARB_stencil_texturing;
  4315. #define GL_DEPTH_STENCIL_TEXTURE_MODE 0x90ea
  4316. #endif
  4317. #if defined(GLPLATFORM_ENABLE_GL_ARB_sync)
  4318. extern bool GLPLATFORM_GL_ARB_sync;
  4319. #ifndef GLPLATFORM_TYPE_GLint64
  4320. #define GLPLATFORM_TYPE_GLint64
  4321. typedef int64_t GLint64;
  4322. #endif
  4323. #ifndef GLPLATFORM_TYPE_GLsync
  4324. #define GLPLATFORM_TYPE_GLsync
  4325. typedef struct __GLsync *GLsync;
  4326. #endif
  4327. #ifndef GLPLATFORM_TYPE_GLuint64
  4328. #define GLPLATFORM_TYPE_GLuint64
  4329. typedef uint64_t GLuint64;
  4330. #endif
  4331. #define GL_ALREADY_SIGNALED 0x911a
  4332. #define GL_CONDITION_SATISFIED 0x911c
  4333. #define GL_MAX_SERVER_WAIT_TIMEOUT 0x9111
  4334. #define GL_OBJECT_TYPE 0x9112
  4335. #define GL_SIGNALED 0x9119
  4336. #define GL_SYNC_CONDITION 0x9113
  4337. #define GL_SYNC_FENCE 0x9116
  4338. #define GL_SYNC_FLAGS 0x9115
  4339. #define GL_SYNC_FLUSH_COMMANDS_BIT 0x1
  4340. #define GL_SYNC_GPU_COMMANDS_COMPLETE 0x9117
  4341. #define GL_SYNC_STATUS 0x9114
  4342. #define GL_TIMEOUT_EXPIRED 0x911b
  4343. #define GL_TIMEOUT_IGNORED 0xffffffff
  4344. #define GL_UNSIGNALED 0x9118
  4345. #define GL_WAIT_FAILED 0x911d
  4346. #define glClientWaitSync _glplatform_glClientWaitSync
  4347. extern GLenum (*glClientWaitSync)(GLsync, GLbitfield, GLuint64);
  4348. #define glDeleteSync _glplatform_glDeleteSync
  4349. extern void (*glDeleteSync)(GLsync);
  4350. #define glFenceSync _glplatform_glFenceSync
  4351. extern GLsync (*glFenceSync)(GLenum, GLbitfield);
  4352. #define glGetInteger64v _glplatform_glGetInteger64v
  4353. extern void (*glGetInteger64v)(GLenum, GLint64 *);
  4354. #define glGetSynciv _glplatform_glGetSynciv
  4355. extern void (*glGetSynciv)(GLsync, GLenum, GLsizei, GLsizei *, GLint *);
  4356. #define glIsSync _glplatform_glIsSync
  4357. extern GLboolean (*glIsSync)(GLsync);
  4358. #define glWaitSync _glplatform_glWaitSync
  4359. extern void (*glWaitSync)(GLsync, GLbitfield, GLuint64);
  4360. #endif
  4361. #if defined(GLPLATFORM_ENABLE_GL_ARB_tessellation_shader)
  4362. extern bool GLPLATFORM_GL_ARB_tessellation_shader;
  4363. #define GL_CCW 0x901
  4364. #define GL_CW 0x900
  4365. #define GL_EQUAL 0x202
  4366. #define GL_FRACTIONAL_EVEN 0x8e7c
  4367. #define GL_FRACTIONAL_ODD 0x8e7b
  4368. #define GL_ISOLINES 0x8e7a
  4369. #define GL_MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS 0x8e1e
  4370. #define GL_MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS 0x8e1f
  4371. #define GL_MAX_PATCH_VERTICES 0x8e7d
  4372. #define GL_MAX_TESS_CONTROL_INPUT_COMPONENTS 0x886c
  4373. #define GL_MAX_TESS_CONTROL_OUTPUT_COMPONENTS 0x8e83
  4374. #define GL_MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS 0x8e81
  4375. #define GL_MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS 0x8e85
  4376. #define GL_MAX_TESS_CONTROL_UNIFORM_BLOCKS 0x8e89
  4377. #define GL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS 0x8e7f
  4378. #define GL_MAX_TESS_EVALUATION_INPUT_COMPONENTS 0x886d
  4379. #define GL_MAX_TESS_EVALUATION_OUTPUT_COMPONENTS 0x8e86
  4380. #define GL_MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS 0x8e82
  4381. #define GL_MAX_TESS_EVALUATION_UNIFORM_BLOCKS 0x8e8a
  4382. #define GL_MAX_TESS_EVALUATION_UNIFORM_COMPONENTS 0x8e80
  4383. #define GL_MAX_TESS_GEN_LEVEL 0x8e7e
  4384. #define GL_MAX_TESS_PATCH_COMPONENTS 0x8e84
  4385. #define GL_PATCHES 0xe
  4386. #define GL_PATCH_DEFAULT_INNER_LEVEL 0x8e73
  4387. #define GL_PATCH_DEFAULT_OUTER_LEVEL 0x8e74
  4388. #define GL_PATCH_VERTICES 0x8e72
  4389. #define GL_QUADS 0x7
  4390. #define GL_TESS_CONTROL_OUTPUT_VERTICES 0x8e75
  4391. #define GL_TESS_CONTROL_SHADER 0x8e88
  4392. #define GL_TESS_EVALUATION_SHADER 0x8e87
  4393. #define GL_TESS_GEN_MODE 0x8e76
  4394. #define GL_TESS_GEN_POINT_MODE 0x8e79
  4395. #define GL_TESS_GEN_SPACING 0x8e77
  4396. #define GL_TESS_GEN_VERTEX_ORDER 0x8e78
  4397. #define GL_TRIANGLES 0x4
  4398. #define GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_CONTROL_SHADER 0x84f0
  4399. #define GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_EVALUATION_SHADER 0x84f1
  4400. #define glPatchParameterfv _glplatform_glPatchParameterfv
  4401. extern void (*glPatchParameterfv)(GLenum, const GLfloat *);
  4402. #define glPatchParameteri _glplatform_glPatchParameteri
  4403. extern void (*glPatchParameteri)(GLenum, GLint);
  4404. #endif
  4405. #if defined(GLPLATFORM_ENABLE_GL_ARB_texture_barrier)
  4406. extern bool GLPLATFORM_GL_ARB_texture_barrier;
  4407. #define glTextureBarrier _glplatform_glTextureBarrier
  4408. extern void (*glTextureBarrier)();
  4409. #endif
  4410. #if defined(GLPLATFORM_ENABLE_GL_ARB_texture_buffer_object_rgb32)
  4411. extern bool GLPLATFORM_GL_ARB_texture_buffer_object_rgb32;
  4412. #define GL_RGB32F 0x8815
  4413. #define GL_RGB32I 0x8d83
  4414. #define GL_RGB32UI 0x8d71
  4415. #endif
  4416. #if defined(GLPLATFORM_ENABLE_GL_ARB_texture_buffer_range)
  4417. extern bool GLPLATFORM_GL_ARB_texture_buffer_range;
  4418. #define GL_TEXTURE_BUFFER_OFFSET 0x919d
  4419. #define GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT 0x919f
  4420. #define GL_TEXTURE_BUFFER_SIZE 0x919e
  4421. #define glTexBufferRange _glplatform_glTexBufferRange
  4422. extern void (*glTexBufferRange)(GLenum, GLenum, GLuint, GLintptr, GLsizeiptr);
  4423. #endif
  4424. #if defined(GLPLATFORM_ENABLE_GL_ARB_texture_compression_bptc)
  4425. extern bool GLPLATFORM_GL_ARB_texture_compression_bptc;
  4426. #define GL_COMPRESSED_RGBA_BPTC_UNORM_ARB 0x8e8c
  4427. #define GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT_ARB 0x8e8e
  4428. #define GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_ARB 0x8e8f
  4429. #define GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM_ARB 0x8e8d
  4430. #endif
  4431. #if defined(GLPLATFORM_ENABLE_GL_ARB_texture_compression_rgtc)
  4432. extern bool GLPLATFORM_GL_ARB_texture_compression_rgtc;
  4433. #define GL_COMPRESSED_RED_RGTC1 0x8dbb
  4434. #define GL_COMPRESSED_RG_RGTC2 0x8dbd
  4435. #define GL_COMPRESSED_SIGNED_RED_RGTC1 0x8dbc
  4436. #define GL_COMPRESSED_SIGNED_RG_RGTC2 0x8dbe
  4437. #endif
  4438. #if defined(GLPLATFORM_ENABLE_GL_ARB_texture_cube_map_array)
  4439. extern bool GLPLATFORM_GL_ARB_texture_cube_map_array;
  4440. #define GL_INT_SAMPLER_CUBE_MAP_ARRAY_ARB 0x900e
  4441. #define GL_PROXY_TEXTURE_CUBE_MAP_ARRAY_ARB 0x900b
  4442. #define GL_SAMPLER_CUBE_MAP_ARRAY_ARB 0x900c
  4443. #define GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW_ARB 0x900d
  4444. #define GL_TEXTURE_BINDING_CUBE_MAP_ARRAY_ARB 0x900a
  4445. #define GL_TEXTURE_CUBE_MAP_ARRAY_ARB 0x9009
  4446. #define GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY_ARB 0x900f
  4447. #endif
  4448. #if defined(GLPLATFORM_ENABLE_GL_ARB_texture_gather)
  4449. extern bool GLPLATFORM_GL_ARB_texture_gather;
  4450. #define GL_MAX_PROGRAM_TEXTURE_GATHER_COMPONENTS_ARB 0x8f9f
  4451. #define GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET_ARB 0x8e5f
  4452. #define GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET_ARB 0x8e5e
  4453. #endif
  4454. #if defined(GLPLATFORM_ENABLE_GL_ARB_texture_mirror_clamp_to_edge)
  4455. extern bool GLPLATFORM_GL_ARB_texture_mirror_clamp_to_edge;
  4456. #define GL_MIRROR_CLAMP_TO_EDGE 0x8743
  4457. #endif
  4458. #if defined(GLPLATFORM_ENABLE_GL_ARB_texture_multisample)
  4459. extern bool GLPLATFORM_GL_ARB_texture_multisample;
  4460. #define GL_INT_SAMPLER_2D_MULTISAMPLE 0x9109
  4461. #define GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910c
  4462. #define GL_MAX_COLOR_TEXTURE_SAMPLES 0x910e
  4463. #define GL_MAX_DEPTH_TEXTURE_SAMPLES 0x910f
  4464. #define GL_MAX_INTEGER_SAMPLES 0x9110
  4465. #define GL_MAX_SAMPLE_MASK_WORDS 0x8e59
  4466. #define GL_PROXY_TEXTURE_2D_MULTISAMPLE 0x9101
  4467. #define GL_PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY 0x9103
  4468. #define GL_SAMPLER_2D_MULTISAMPLE 0x9108
  4469. #define GL_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910b
  4470. #define GL_SAMPLE_MASK 0x8e51
  4471. #define GL_SAMPLE_MASK_VALUE 0x8e52
  4472. #define GL_SAMPLE_POSITION 0x8e50
  4473. #define GL_TEXTURE_2D_MULTISAMPLE 0x9100
  4474. #define GL_TEXTURE_2D_MULTISAMPLE_ARRAY 0x9102
  4475. #define GL_TEXTURE_BINDING_2D_MULTISAMPLE 0x9104
  4476. #define GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY 0x9105
  4477. #define GL_TEXTURE_FIXED_SAMPLE_LOCATIONS 0x9107
  4478. #define GL_TEXTURE_SAMPLES 0x9106
  4479. #define GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE 0x910a
  4480. #define GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY 0x910d
  4481. #define glGetMultisamplefv _glplatform_glGetMultisamplefv
  4482. extern void (*glGetMultisamplefv)(GLenum, GLuint, GLfloat *);
  4483. #define glSampleMaski _glplatform_glSampleMaski
  4484. extern void (*glSampleMaski)(GLuint, GLbitfield);
  4485. #define glTexImage2DMultisample _glplatform_glTexImage2DMultisample
  4486. extern void (*glTexImage2DMultisample)(GLenum, GLsizei, GLenum, GLsizei, GLsizei, GLboolean);
  4487. #define glTexImage3DMultisample _glplatform_glTexImage3DMultisample
  4488. extern void (*glTexImage3DMultisample)(GLenum, GLsizei, GLenum, GLsizei, GLsizei, GLsizei, GLboolean);
  4489. #endif
  4490. #if defined(GLPLATFORM_ENABLE_GL_ARB_texture_query_levels)
  4491. extern bool GLPLATFORM_GL_ARB_texture_query_levels;
  4492. #endif
  4493. #if defined(GLPLATFORM_ENABLE_GL_ARB_texture_query_lod)
  4494. extern bool GLPLATFORM_GL_ARB_texture_query_lod;
  4495. #endif
  4496. #if defined(GLPLATFORM_ENABLE_GL_ARB_texture_rg)
  4497. extern bool GLPLATFORM_GL_ARB_texture_rg;
  4498. #define GL_R16 0x822a
  4499. #define GL_R16F 0x822d
  4500. #define GL_R16I 0x8233
  4501. #define GL_R16UI 0x8234
  4502. #define GL_R32F 0x822e
  4503. #define GL_R32I 0x8235
  4504. #define GL_R32UI 0x8236
  4505. #define GL_R8 0x8229
  4506. #define GL_R8I 0x8231
  4507. #define GL_R8UI 0x8232
  4508. #define GL_RG 0x8227
  4509. #define GL_RG16 0x822c
  4510. #define GL_RG16F 0x822f
  4511. #define GL_RG16I 0x8239
  4512. #define GL_RG16UI 0x823a
  4513. #define GL_RG32F 0x8230
  4514. #define GL_RG32I 0x823b
  4515. #define GL_RG32UI 0x823c
  4516. #define GL_RG8 0x822b
  4517. #define GL_RG8I 0x8237
  4518. #define GL_RG8UI 0x8238
  4519. #define GL_RG_INTEGER 0x8228
  4520. #endif
  4521. #if defined(GLPLATFORM_ENABLE_GL_ARB_texture_rgb10_a2ui)
  4522. extern bool GLPLATFORM_GL_ARB_texture_rgb10_a2ui;
  4523. #define GL_RGB10_A2UI 0x906f
  4524. #endif
  4525. #if defined(GLPLATFORM_ENABLE_GL_ARB_texture_stencil8)
  4526. extern bool GLPLATFORM_GL_ARB_texture_stencil8;
  4527. #define GL_STENCIL_INDEX 0x1901
  4528. #define GL_STENCIL_INDEX8 0x8d48
  4529. #endif
  4530. #if defined(GLPLATFORM_ENABLE_GL_ARB_texture_storage)
  4531. extern bool GLPLATFORM_GL_ARB_texture_storage;
  4532. #define GL_TEXTURE_IMMUTABLE_FORMAT 0x912f
  4533. #define glTexStorage1D _glplatform_glTexStorage1D
  4534. extern void (*glTexStorage1D)(GLenum, GLsizei, GLenum, GLsizei);
  4535. #define glTexStorage2D _glplatform_glTexStorage2D
  4536. extern void (*glTexStorage2D)(GLenum, GLsizei, GLenum, GLsizei, GLsizei);
  4537. #define glTexStorage3D _glplatform_glTexStorage3D
  4538. extern void (*glTexStorage3D)(GLenum, GLsizei, GLenum, GLsizei, GLsizei, GLsizei);
  4539. #endif
  4540. #if defined(GLPLATFORM_ENABLE_GL_ARB_texture_storage_multisample)
  4541. extern bool GLPLATFORM_GL_ARB_texture_storage_multisample;
  4542. #define glTexStorage2DMultisample _glplatform_glTexStorage2DMultisample
  4543. extern void (*glTexStorage2DMultisample)(GLenum, GLsizei, GLenum, GLsizei, GLsizei, GLboolean);
  4544. #define glTexStorage3DMultisample _glplatform_glTexStorage3DMultisample
  4545. extern void (*glTexStorage3DMultisample)(GLenum, GLsizei, GLenum, GLsizei, GLsizei, GLsizei, GLboolean);
  4546. #endif
  4547. #if defined(GLPLATFORM_ENABLE_GL_ARB_texture_swizzle)
  4548. extern bool GLPLATFORM_GL_ARB_texture_swizzle;
  4549. #define GL_TEXTURE_SWIZZLE_A 0x8e45
  4550. #define GL_TEXTURE_SWIZZLE_B 0x8e44
  4551. #define GL_TEXTURE_SWIZZLE_G 0x8e43
  4552. #define GL_TEXTURE_SWIZZLE_R 0x8e42
  4553. #define GL_TEXTURE_SWIZZLE_RGBA 0x8e46
  4554. #endif
  4555. #if defined(GLPLATFORM_ENABLE_GL_ARB_texture_view)
  4556. extern bool GLPLATFORM_GL_ARB_texture_view;
  4557. #define GL_TEXTURE_IMMUTABLE_LEVELS 0x82df
  4558. #define GL_TEXTURE_VIEW_MIN_LAYER 0x82dd
  4559. #define GL_TEXTURE_VIEW_MIN_LEVEL 0x82db
  4560. #define GL_TEXTURE_VIEW_NUM_LAYERS 0x82de
  4561. #define GL_TEXTURE_VIEW_NUM_LEVELS 0x82dc
  4562. #define glTextureView _glplatform_glTextureView
  4563. extern void (*glTextureView)(GLuint, GLenum, GLuint, GLenum, GLuint, GLuint, GLuint, GLuint);
  4564. #endif
  4565. #if defined(GLPLATFORM_ENABLE_GL_ARB_timer_query)
  4566. extern bool GLPLATFORM_GL_ARB_timer_query;
  4567. #ifndef GLPLATFORM_TYPE_GLint64
  4568. #define GLPLATFORM_TYPE_GLint64
  4569. typedef int64_t GLint64;
  4570. #endif
  4571. #ifndef GLPLATFORM_TYPE_GLuint64
  4572. #define GLPLATFORM_TYPE_GLuint64
  4573. typedef uint64_t GLuint64;
  4574. #endif
  4575. #define GL_TIMESTAMP 0x8e28
  4576. #define GL_TIME_ELAPSED 0x88bf
  4577. #define glGetQueryObjecti64v _glplatform_glGetQueryObjecti64v
  4578. extern void (*glGetQueryObjecti64v)(GLuint, GLenum, GLint64 *);
  4579. #define glGetQueryObjectui64v _glplatform_glGetQueryObjectui64v
  4580. extern void (*glGetQueryObjectui64v)(GLuint, GLenum, GLuint64 *);
  4581. #define glQueryCounter _glplatform_glQueryCounter
  4582. extern void (*glQueryCounter)(GLuint, GLenum);
  4583. #endif
  4584. #if defined(GLPLATFORM_ENABLE_GL_ARB_transform_feedback2)
  4585. extern bool GLPLATFORM_GL_ARB_transform_feedback2;
  4586. #define GL_TRANSFORM_FEEDBACK 0x8e22
  4587. #define GL_TRANSFORM_FEEDBACK_BINDING 0x8e25
  4588. #define GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE 0x8e24
  4589. #define GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED 0x8e23
  4590. #define glBindTransformFeedback _glplatform_glBindTransformFeedback
  4591. extern void (*glBindTransformFeedback)(GLenum, GLuint);
  4592. #define glDeleteTransformFeedbacks _glplatform_glDeleteTransformFeedbacks
  4593. extern void (*glDeleteTransformFeedbacks)(GLsizei, const GLuint *);
  4594. #define glDrawTransformFeedback _glplatform_glDrawTransformFeedback
  4595. extern void (*glDrawTransformFeedback)(GLenum, GLuint);
  4596. #define glGenTransformFeedbacks _glplatform_glGenTransformFeedbacks
  4597. extern void (*glGenTransformFeedbacks)(GLsizei, GLuint *);
  4598. #define glIsTransformFeedback _glplatform_glIsTransformFeedback
  4599. extern GLboolean (*glIsTransformFeedback)(GLuint);
  4600. #define glPauseTransformFeedback _glplatform_glPauseTransformFeedback
  4601. extern void (*glPauseTransformFeedback)();
  4602. #define glResumeTransformFeedback _glplatform_glResumeTransformFeedback
  4603. extern void (*glResumeTransformFeedback)();
  4604. #endif
  4605. #if defined(GLPLATFORM_ENABLE_GL_ARB_transform_feedback3)
  4606. extern bool GLPLATFORM_GL_ARB_transform_feedback3;
  4607. #define GL_MAX_TRANSFORM_FEEDBACK_BUFFERS 0x8e70
  4608. #define GL_MAX_VERTEX_STREAMS 0x8e71
  4609. #define glBeginQueryIndexed _glplatform_glBeginQueryIndexed
  4610. extern void (*glBeginQueryIndexed)(GLenum, GLuint, GLuint);
  4611. #define glDrawTransformFeedbackStream _glplatform_glDrawTransformFeedbackStream
  4612. extern void (*glDrawTransformFeedbackStream)(GLenum, GLuint, GLuint);
  4613. #define glEndQueryIndexed _glplatform_glEndQueryIndexed
  4614. extern void (*glEndQueryIndexed)(GLenum, GLuint);
  4615. #define glGetQueryIndexediv _glplatform_glGetQueryIndexediv
  4616. extern void (*glGetQueryIndexediv)(GLenum, GLuint, GLenum, GLint *);
  4617. #endif
  4618. #if defined(GLPLATFORM_ENABLE_GL_ARB_transform_feedback_instanced)
  4619. extern bool GLPLATFORM_GL_ARB_transform_feedback_instanced;
  4620. #define glDrawTransformFeedbackInstanced _glplatform_glDrawTransformFeedbackInstanced
  4621. extern void (*glDrawTransformFeedbackInstanced)(GLenum, GLuint, GLsizei);
  4622. #define glDrawTransformFeedbackStreamInstanced _glplatform_glDrawTransformFeedbackStreamInstanced
  4623. extern void (*glDrawTransformFeedbackStreamInstanced)(GLenum, GLuint, GLuint, GLsizei);
  4624. #endif
  4625. #if defined(GLPLATFORM_ENABLE_GL_ARB_transform_feedback_overflow_query)
  4626. extern bool GLPLATFORM_GL_ARB_transform_feedback_overflow_query;
  4627. #define GL_TRANSFORM_FEEDBACK_OVERFLOW_ARB 0x82ec
  4628. #define GL_TRANSFORM_FEEDBACK_STREAM_OVERFLOW_ARB 0x82ed
  4629. #endif
  4630. #if defined(GLPLATFORM_ENABLE_GL_ARB_uniform_buffer_object)
  4631. extern bool GLPLATFORM_GL_ARB_uniform_buffer_object;
  4632. #ifndef GLPLATFORM_TYPE_GLchar
  4633. #define GLPLATFORM_TYPE_GLchar
  4634. typedef char GLchar;
  4635. #endif
  4636. #define GL_ACTIVE_UNIFORM_BLOCKS 0x8a36
  4637. #define GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH 0x8a35
  4638. #define GL_INVALID_INDEX 0xffffffff
  4639. #define GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS 0x8a33
  4640. #define GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS 0x8a32
  4641. #define GL_MAX_COMBINED_UNIFORM_BLOCKS 0x8a2e
  4642. #define GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS 0x8a31
  4643. #define GL_MAX_FRAGMENT_UNIFORM_BLOCKS 0x8a2d
  4644. #define GL_MAX_GEOMETRY_UNIFORM_BLOCKS 0x8a2c
  4645. #define GL_MAX_UNIFORM_BLOCK_SIZE 0x8a30
  4646. #define GL_MAX_UNIFORM_BUFFER_BINDINGS 0x8a2f
  4647. #define GL_MAX_VERTEX_UNIFORM_BLOCKS 0x8a2b
  4648. #define GL_UNIFORM_ARRAY_STRIDE 0x8a3c
  4649. #define GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS 0x8a42
  4650. #define GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES 0x8a43
  4651. #define GL_UNIFORM_BLOCK_BINDING 0x8a3f
  4652. #define GL_UNIFORM_BLOCK_DATA_SIZE 0x8a40
  4653. #define GL_UNIFORM_BLOCK_INDEX 0x8a3a
  4654. #define GL_UNIFORM_BLOCK_NAME_LENGTH 0x8a41
  4655. #define GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER 0x8a46
  4656. #define GL_UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER 0x8a45
  4657. #define GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER 0x8a44
  4658. #define GL_UNIFORM_BUFFER 0x8a11
  4659. #define GL_UNIFORM_BUFFER_BINDING 0x8a28
  4660. #define GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT 0x8a34
  4661. #define GL_UNIFORM_BUFFER_SIZE 0x8a2a
  4662. #define GL_UNIFORM_BUFFER_START 0x8a29
  4663. #define GL_UNIFORM_IS_ROW_MAJOR 0x8a3e
  4664. #define GL_UNIFORM_MATRIX_STRIDE 0x8a3d
  4665. #define GL_UNIFORM_NAME_LENGTH 0x8a39
  4666. #define GL_UNIFORM_OFFSET 0x8a3b
  4667. #define GL_UNIFORM_SIZE 0x8a38
  4668. #define GL_UNIFORM_TYPE 0x8a37
  4669. #define glGetActiveUniformBlockName _glplatform_glGetActiveUniformBlockName
  4670. extern void (*glGetActiveUniformBlockName)(GLuint, GLuint, GLsizei, GLsizei *, GLchar *);
  4671. #define glGetActiveUniformBlockiv _glplatform_glGetActiveUniformBlockiv
  4672. extern void (*glGetActiveUniformBlockiv)(GLuint, GLuint, GLenum, GLint *);
  4673. #define glGetActiveUniformName _glplatform_glGetActiveUniformName
  4674. extern void (*glGetActiveUniformName)(GLuint, GLuint, GLsizei, GLsizei *, GLchar *);
  4675. #define glGetActiveUniformsiv _glplatform_glGetActiveUniformsiv
  4676. extern void (*glGetActiveUniformsiv)(GLuint, GLsizei, const GLuint *, GLenum, GLint *);
  4677. #define glGetUniformBlockIndex _glplatform_glGetUniformBlockIndex
  4678. extern GLuint (*glGetUniformBlockIndex)(GLuint, const GLchar *);
  4679. #define glGetUniformIndices _glplatform_glGetUniformIndices
  4680. extern void (*glGetUniformIndices)(GLuint, GLsizei, const GLchar *const*, GLuint *);
  4681. #define glUniformBlockBinding _glplatform_glUniformBlockBinding
  4682. extern void (*glUniformBlockBinding)(GLuint, GLuint, GLuint);
  4683. #endif
  4684. #if defined(GLPLATFORM_ENABLE_GL_ARB_vertex_array_bgra)
  4685. extern bool GLPLATFORM_GL_ARB_vertex_array_bgra;
  4686. #define GL_BGRA 0x80e1
  4687. #endif
  4688. #if defined(GLPLATFORM_ENABLE_GL_ARB_vertex_array_object)
  4689. extern bool GLPLATFORM_GL_ARB_vertex_array_object;
  4690. #define GL_VERTEX_ARRAY_BINDING 0x85b5
  4691. #define glBindVertexArray _glplatform_glBindVertexArray
  4692. extern void (*glBindVertexArray)(GLuint);
  4693. #define glDeleteVertexArrays _glplatform_glDeleteVertexArrays
  4694. extern void (*glDeleteVertexArrays)(GLsizei, const GLuint *);
  4695. #define glGenVertexArrays _glplatform_glGenVertexArrays
  4696. extern void (*glGenVertexArrays)(GLsizei, GLuint *);
  4697. #define glIsVertexArray _glplatform_glIsVertexArray
  4698. extern GLboolean (*glIsVertexArray)(GLuint);
  4699. #endif
  4700. #if defined(GLPLATFORM_ENABLE_GL_ARB_vertex_attrib_64bit)
  4701. extern bool GLPLATFORM_GL_ARB_vertex_attrib_64bit;
  4702. #define GL_DOUBLE_MAT2 0x8f46
  4703. #define GL_DOUBLE_MAT2x3 0x8f49
  4704. #define GL_DOUBLE_MAT2x4 0x8f4a
  4705. #define GL_DOUBLE_MAT3 0x8f47
  4706. #define GL_DOUBLE_MAT3x2 0x8f4b
  4707. #define GL_DOUBLE_MAT3x4 0x8f4c
  4708. #define GL_DOUBLE_MAT4 0x8f48
  4709. #define GL_DOUBLE_MAT4x2 0x8f4d
  4710. #define GL_DOUBLE_MAT4x3 0x8f4e
  4711. #define GL_DOUBLE_VEC2 0x8ffc
  4712. #define GL_DOUBLE_VEC3 0x8ffd
  4713. #define GL_DOUBLE_VEC4 0x8ffe
  4714. #define GL_RGB32I 0x8d83
  4715. #define glGetVertexAttribLdv _glplatform_glGetVertexAttribLdv
  4716. extern void (*glGetVertexAttribLdv)(GLuint, GLenum, GLdouble *);
  4717. #define glVertexAttribL1d _glplatform_glVertexAttribL1d
  4718. extern void (*glVertexAttribL1d)(GLuint, GLdouble);
  4719. #define glVertexAttribL1dv _glplatform_glVertexAttribL1dv
  4720. extern void (*glVertexAttribL1dv)(GLuint, const GLdouble *);
  4721. #define glVertexAttribL2d _glplatform_glVertexAttribL2d
  4722. extern void (*glVertexAttribL2d)(GLuint, GLdouble, GLdouble);
  4723. #define glVertexAttribL2dv _glplatform_glVertexAttribL2dv
  4724. extern void (*glVertexAttribL2dv)(GLuint, const GLdouble *);
  4725. #define glVertexAttribL3d _glplatform_glVertexAttribL3d
  4726. extern void (*glVertexAttribL3d)(GLuint, GLdouble, GLdouble, GLdouble);
  4727. #define glVertexAttribL3dv _glplatform_glVertexAttribL3dv
  4728. extern void (*glVertexAttribL3dv)(GLuint, const GLdouble *);
  4729. #define glVertexAttribL4d _glplatform_glVertexAttribL4d
  4730. extern void (*glVertexAttribL4d)(GLuint, GLdouble, GLdouble, GLdouble, GLdouble);
  4731. #define glVertexAttribL4dv _glplatform_glVertexAttribL4dv
  4732. extern void (*glVertexAttribL4dv)(GLuint, const GLdouble *);
  4733. #define glVertexAttribLPointer _glplatform_glVertexAttribLPointer
  4734. extern void (*glVertexAttribLPointer)(GLuint, GLint, GLenum, GLsizei, const void *);
  4735. #endif
  4736. #if defined(GLPLATFORM_ENABLE_GL_ARB_vertex_attrib_binding)
  4737. extern bool GLPLATFORM_GL_ARB_vertex_attrib_binding;
  4738. #define GL_MAX_VERTEX_ATTRIB_BINDINGS 0x82da
  4739. #define GL_MAX_VERTEX_ATTRIB_RELATIVE_OFFSET 0x82d9
  4740. #define GL_VERTEX_ATTRIB_BINDING 0x82d4
  4741. #define GL_VERTEX_ATTRIB_RELATIVE_OFFSET 0x82d5
  4742. #define GL_VERTEX_BINDING_DIVISOR 0x82d6
  4743. #define GL_VERTEX_BINDING_OFFSET 0x82d7
  4744. #define GL_VERTEX_BINDING_STRIDE 0x82d8
  4745. #define glBindVertexBuffer _glplatform_glBindVertexBuffer
  4746. extern void (*glBindVertexBuffer)(GLuint, GLuint, GLintptr, GLsizei);
  4747. #define glVertexAttribBinding _glplatform_glVertexAttribBinding
  4748. extern void (*glVertexAttribBinding)(GLuint, GLuint);
  4749. #define glVertexAttribFormat _glplatform_glVertexAttribFormat
  4750. extern void (*glVertexAttribFormat)(GLuint, GLint, GLenum, GLboolean, GLuint);
  4751. #define glVertexAttribIFormat _glplatform_glVertexAttribIFormat
  4752. extern void (*glVertexAttribIFormat)(GLuint, GLint, GLenum, GLuint);
  4753. #define glVertexAttribLFormat _glplatform_glVertexAttribLFormat
  4754. extern void (*glVertexAttribLFormat)(GLuint, GLint, GLenum, GLuint);
  4755. #define glVertexBindingDivisor _glplatform_glVertexBindingDivisor
  4756. extern void (*glVertexBindingDivisor)(GLuint, GLuint);
  4757. #endif
  4758. #if defined(GLPLATFORM_ENABLE_GL_ARB_vertex_type_10f_11f_11f_rev)
  4759. extern bool GLPLATFORM_GL_ARB_vertex_type_10f_11f_11f_rev;
  4760. #define GL_UNSIGNED_INT_10F_11F_11F_REV 0x8c3b
  4761. #endif
  4762. #if defined(GLPLATFORM_ENABLE_GL_ARB_vertex_type_2_10_10_10_rev)
  4763. extern bool GLPLATFORM_GL_ARB_vertex_type_2_10_10_10_rev;
  4764. #define GL_INT_2_10_10_10_REV 0x8d9f
  4765. #define GL_UNSIGNED_INT_2_10_10_10_REV 0x8368
  4766. #define glVertexAttribP1ui _glplatform_glVertexAttribP1ui
  4767. extern void (*glVertexAttribP1ui)(GLuint, GLenum, GLboolean, GLuint);
  4768. #define glVertexAttribP1uiv _glplatform_glVertexAttribP1uiv
  4769. extern void (*glVertexAttribP1uiv)(GLuint, GLenum, GLboolean, const GLuint *);
  4770. #define glVertexAttribP2ui _glplatform_glVertexAttribP2ui
  4771. extern void (*glVertexAttribP2ui)(GLuint, GLenum, GLboolean, GLuint);
  4772. #define glVertexAttribP2uiv _glplatform_glVertexAttribP2uiv
  4773. extern void (*glVertexAttribP2uiv)(GLuint, GLenum, GLboolean, const GLuint *);
  4774. #define glVertexAttribP3ui _glplatform_glVertexAttribP3ui
  4775. extern void (*glVertexAttribP3ui)(GLuint, GLenum, GLboolean, GLuint);
  4776. #define glVertexAttribP3uiv _glplatform_glVertexAttribP3uiv
  4777. extern void (*glVertexAttribP3uiv)(GLuint, GLenum, GLboolean, const GLuint *);
  4778. #define glVertexAttribP4ui _glplatform_glVertexAttribP4ui
  4779. extern void (*glVertexAttribP4ui)(GLuint, GLenum, GLboolean, GLuint);
  4780. #define glVertexAttribP4uiv _glplatform_glVertexAttribP4uiv
  4781. extern void (*glVertexAttribP4uiv)(GLuint, GLenum, GLboolean, const GLuint *);
  4782. #endif
  4783. #if defined(GLPLATFORM_ENABLE_GL_ARB_viewport_array)
  4784. extern bool GLPLATFORM_GL_ARB_viewport_array;
  4785. #define GL_DEPTH_RANGE 0xb70
  4786. #define GL_FIRST_VERTEX_CONVENTION 0x8e4d
  4787. #define GL_LAST_VERTEX_CONVENTION 0x8e4e
  4788. #define GL_LAYER_PROVOKING_VERTEX 0x825e
  4789. #define GL_MAX_VIEWPORTS 0x825b
  4790. #define GL_PROVOKING_VERTEX 0x8e4f
  4791. #define GL_SCISSOR_BOX 0xc10
  4792. #define GL_SCISSOR_TEST 0xc11
  4793. #define GL_UNDEFINED_VERTEX 0x8260
  4794. #define GL_VIEWPORT 0xba2
  4795. #define GL_VIEWPORT_BOUNDS_RANGE 0x825d
  4796. #define GL_VIEWPORT_INDEX_PROVOKING_VERTEX 0x825f
  4797. #define GL_VIEWPORT_SUBPIXEL_BITS 0x825c
  4798. #define glDepthRangeArrayv _glplatform_glDepthRangeArrayv
  4799. extern void (*glDepthRangeArrayv)(GLuint, GLsizei, const GLdouble *);
  4800. #define glDepthRangeIndexed _glplatform_glDepthRangeIndexed
  4801. extern void (*glDepthRangeIndexed)(GLuint, GLdouble, GLdouble);
  4802. #define glGetDoublei_v _glplatform_glGetDoublei_v
  4803. extern void (*glGetDoublei_v)(GLenum, GLuint, GLdouble *);
  4804. #define glGetFloati_v _glplatform_glGetFloati_v
  4805. extern void (*glGetFloati_v)(GLenum, GLuint, GLfloat *);
  4806. #define glScissorArrayv _glplatform_glScissorArrayv
  4807. extern void (*glScissorArrayv)(GLuint, GLsizei, const GLint *);
  4808. #define glScissorIndexed _glplatform_glScissorIndexed
  4809. extern void (*glScissorIndexed)(GLuint, GLint, GLint, GLsizei, GLsizei);
  4810. #define glScissorIndexedv _glplatform_glScissorIndexedv
  4811. extern void (*glScissorIndexedv)(GLuint, const GLint *);
  4812. #define glViewportArrayv _glplatform_glViewportArrayv
  4813. extern void (*glViewportArrayv)(GLuint, GLsizei, const GLfloat *);
  4814. #define glViewportIndexedf _glplatform_glViewportIndexedf
  4815. extern void (*glViewportIndexedf)(GLuint, GLfloat, GLfloat, GLfloat, GLfloat);
  4816. #define glViewportIndexedfv _glplatform_glViewportIndexedfv
  4817. extern void (*glViewportIndexedfv)(GLuint, const GLfloat *);
  4818. #endif
  4819. #if defined(GLPLATFORM_ENABLE_GL_EXT_direct_state_access)
  4820. extern bool GLPLATFORM_GL_EXT_direct_state_access;
  4821. #define GL_PROGRAM_MATRIX_EXT 0x8e2d
  4822. #define GL_PROGRAM_MATRIX_STACK_DEPTH_EXT 0x8e2f
  4823. #define GL_TRANSPOSE_PROGRAM_MATRIX_EXT 0x8e2e
  4824. #define glBindMultiTextureEXT _glplatform_glBindMultiTextureEXT
  4825. extern void (*glBindMultiTextureEXT)(GLenum, GLenum, GLuint);
  4826. #define glCheckNamedFramebufferStatusEXT _glplatform_glCheckNamedFramebufferStatusEXT
  4827. extern GLenum (*glCheckNamedFramebufferStatusEXT)(GLuint, GLenum);
  4828. #define glClearNamedBufferDataEXT _glplatform_glClearNamedBufferDataEXT
  4829. extern void (*glClearNamedBufferDataEXT)(GLuint, GLenum, GLenum, GLenum, const void *);
  4830. #define glClearNamedBufferSubDataEXT _glplatform_glClearNamedBufferSubDataEXT
  4831. extern void (*glClearNamedBufferSubDataEXT)(GLuint, GLenum, GLsizeiptr, GLsizeiptr, GLenum, GLenum, const void *);
  4832. #define glClientAttribDefaultEXT _glplatform_glClientAttribDefaultEXT
  4833. extern void (*glClientAttribDefaultEXT)(GLbitfield);
  4834. #define glCompressedMultiTexImage1DEXT _glplatform_glCompressedMultiTexImage1DEXT
  4835. extern void (*glCompressedMultiTexImage1DEXT)(GLenum, GLenum, GLint, GLenum, GLsizei, GLint, GLsizei, const void *);
  4836. #define glCompressedMultiTexImage2DEXT _glplatform_glCompressedMultiTexImage2DEXT
  4837. extern void (*glCompressedMultiTexImage2DEXT)(GLenum, GLenum, GLint, GLenum, GLsizei, GLsizei, GLint, GLsizei, const void *);
  4838. #define glCompressedMultiTexImage3DEXT _glplatform_glCompressedMultiTexImage3DEXT
  4839. extern void (*glCompressedMultiTexImage3DEXT)(GLenum, GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLsizei, const void *);
  4840. #define glCompressedMultiTexSubImage1DEXT _glplatform_glCompressedMultiTexSubImage1DEXT
  4841. extern void (*glCompressedMultiTexSubImage1DEXT)(GLenum, GLenum, GLint, GLint, GLsizei, GLenum, GLsizei, const void *);
  4842. #define glCompressedMultiTexSubImage2DEXT _glplatform_glCompressedMultiTexSubImage2DEXT
  4843. extern void (*glCompressedMultiTexSubImage2DEXT)(GLenum, GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLsizei, const void *);
  4844. #define glCompressedMultiTexSubImage3DEXT _glplatform_glCompressedMultiTexSubImage3DEXT
  4845. extern void (*glCompressedMultiTexSubImage3DEXT)(GLenum, GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLsizei, const void *);
  4846. #define glCompressedTextureImage1DEXT _glplatform_glCompressedTextureImage1DEXT
  4847. extern void (*glCompressedTextureImage1DEXT)(GLuint, GLenum, GLint, GLenum, GLsizei, GLint, GLsizei, const void *);
  4848. #define glCompressedTextureImage2DEXT _glplatform_glCompressedTextureImage2DEXT
  4849. extern void (*glCompressedTextureImage2DEXT)(GLuint, GLenum, GLint, GLenum, GLsizei, GLsizei, GLint, GLsizei, const void *);
  4850. #define glCompressedTextureImage3DEXT _glplatform_glCompressedTextureImage3DEXT
  4851. extern void (*glCompressedTextureImage3DEXT)(GLuint, GLenum, GLint, GLenum, GLsizei, GLsizei, GLsizei, GLint, GLsizei, const void *);
  4852. #define glCompressedTextureSubImage1DEXT _glplatform_glCompressedTextureSubImage1DEXT
  4853. extern void (*glCompressedTextureSubImage1DEXT)(GLuint, GLenum, GLint, GLint, GLsizei, GLenum, GLsizei, const void *);
  4854. #define glCompressedTextureSubImage2DEXT _glplatform_glCompressedTextureSubImage2DEXT
  4855. extern void (*glCompressedTextureSubImage2DEXT)(GLuint, GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLsizei, const void *);
  4856. #define glCompressedTextureSubImage3DEXT _glplatform_glCompressedTextureSubImage3DEXT
  4857. extern void (*glCompressedTextureSubImage3DEXT)(GLuint, GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLsizei, const void *);
  4858. #define glCopyMultiTexImage1DEXT _glplatform_glCopyMultiTexImage1DEXT
  4859. extern void (*glCopyMultiTexImage1DEXT)(GLenum, GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLint);
  4860. #define glCopyMultiTexImage2DEXT _glplatform_glCopyMultiTexImage2DEXT
  4861. extern void (*glCopyMultiTexImage2DEXT)(GLenum, GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLsizei, GLint);
  4862. #define glCopyMultiTexSubImage1DEXT _glplatform_glCopyMultiTexSubImage1DEXT
  4863. extern void (*glCopyMultiTexSubImage1DEXT)(GLenum, GLenum, GLint, GLint, GLint, GLint, GLsizei);
  4864. #define glCopyMultiTexSubImage2DEXT _glplatform_glCopyMultiTexSubImage2DEXT
  4865. extern void (*glCopyMultiTexSubImage2DEXT)(GLenum, GLenum, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei);
  4866. #define glCopyMultiTexSubImage3DEXT _glplatform_glCopyMultiTexSubImage3DEXT
  4867. extern void (*glCopyMultiTexSubImage3DEXT)(GLenum, GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei);
  4868. #define glCopyTextureImage1DEXT _glplatform_glCopyTextureImage1DEXT
  4869. extern void (*glCopyTextureImage1DEXT)(GLuint, GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLint);
  4870. #define glCopyTextureImage2DEXT _glplatform_glCopyTextureImage2DEXT
  4871. extern void (*glCopyTextureImage2DEXT)(GLuint, GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLsizei, GLint);
  4872. #define glCopyTextureSubImage1DEXT _glplatform_glCopyTextureSubImage1DEXT
  4873. extern void (*glCopyTextureSubImage1DEXT)(GLuint, GLenum, GLint, GLint, GLint, GLint, GLsizei);
  4874. #define glCopyTextureSubImage2DEXT _glplatform_glCopyTextureSubImage2DEXT
  4875. extern void (*glCopyTextureSubImage2DEXT)(GLuint, GLenum, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei);
  4876. #define glCopyTextureSubImage3DEXT _glplatform_glCopyTextureSubImage3DEXT
  4877. extern void (*glCopyTextureSubImage3DEXT)(GLuint, GLenum, GLint, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei);
  4878. #define glDisableClientStateIndexedEXT _glplatform_glDisableClientStateIndexedEXT
  4879. extern void (*glDisableClientStateIndexedEXT)(GLenum, GLuint);
  4880. #define glDisableClientStateiEXT _glplatform_glDisableClientStateiEXT
  4881. extern void (*glDisableClientStateiEXT)(GLenum, GLuint);
  4882. #define glDisableIndexedEXT _glplatform_glDisableIndexedEXT
  4883. extern void (*glDisableIndexedEXT)(GLenum, GLuint);
  4884. #define glDisableVertexArrayAttribEXT _glplatform_glDisableVertexArrayAttribEXT
  4885. extern void (*glDisableVertexArrayAttribEXT)(GLuint, GLuint);
  4886. #define glDisableVertexArrayEXT _glplatform_glDisableVertexArrayEXT
  4887. extern void (*glDisableVertexArrayEXT)(GLuint, GLenum);
  4888. #define glEnableClientStateIndexedEXT _glplatform_glEnableClientStateIndexedEXT
  4889. extern void (*glEnableClientStateIndexedEXT)(GLenum, GLuint);
  4890. #define glEnableClientStateiEXT _glplatform_glEnableClientStateiEXT
  4891. extern void (*glEnableClientStateiEXT)(GLenum, GLuint);
  4892. #define glEnableIndexedEXT _glplatform_glEnableIndexedEXT
  4893. extern void (*glEnableIndexedEXT)(GLenum, GLuint);
  4894. #define glEnableVertexArrayAttribEXT _glplatform_glEnableVertexArrayAttribEXT
  4895. extern void (*glEnableVertexArrayAttribEXT)(GLuint, GLuint);
  4896. #define glEnableVertexArrayEXT _glplatform_glEnableVertexArrayEXT
  4897. extern void (*glEnableVertexArrayEXT)(GLuint, GLenum);
  4898. #define glFlushMappedNamedBufferRangeEXT _glplatform_glFlushMappedNamedBufferRangeEXT
  4899. extern void (*glFlushMappedNamedBufferRangeEXT)(GLuint, GLintptr, GLsizeiptr);
  4900. #define glFramebufferDrawBufferEXT _glplatform_glFramebufferDrawBufferEXT
  4901. extern void (*glFramebufferDrawBufferEXT)(GLuint, GLenum);
  4902. #define glFramebufferDrawBuffersEXT _glplatform_glFramebufferDrawBuffersEXT
  4903. extern void (*glFramebufferDrawBuffersEXT)(GLuint, GLsizei, const GLenum *);
  4904. #define glFramebufferReadBufferEXT _glplatform_glFramebufferReadBufferEXT
  4905. extern void (*glFramebufferReadBufferEXT)(GLuint, GLenum);
  4906. #define glGenerateMultiTexMipmapEXT _glplatform_glGenerateMultiTexMipmapEXT
  4907. extern void (*glGenerateMultiTexMipmapEXT)(GLenum, GLenum);
  4908. #define glGenerateTextureMipmapEXT _glplatform_glGenerateTextureMipmapEXT
  4909. extern void (*glGenerateTextureMipmapEXT)(GLuint, GLenum);
  4910. #define glGetBooleanIndexedvEXT _glplatform_glGetBooleanIndexedvEXT
  4911. extern void (*glGetBooleanIndexedvEXT)(GLenum, GLuint, GLboolean *);
  4912. #define glGetCompressedMultiTexImageEXT _glplatform_glGetCompressedMultiTexImageEXT
  4913. extern void (*glGetCompressedMultiTexImageEXT)(GLenum, GLenum, GLint, void *);
  4914. #define glGetCompressedTextureImageEXT _glplatform_glGetCompressedTextureImageEXT
  4915. extern void (*glGetCompressedTextureImageEXT)(GLuint, GLenum, GLint, void *);
  4916. #define glGetDoubleIndexedvEXT _glplatform_glGetDoubleIndexedvEXT
  4917. extern void (*glGetDoubleIndexedvEXT)(GLenum, GLuint, GLdouble *);
  4918. #define glGetDoublei_vEXT _glplatform_glGetDoublei_vEXT
  4919. extern void (*glGetDoublei_vEXT)(GLenum, GLuint, GLdouble *);
  4920. #define glGetFloatIndexedvEXT _glplatform_glGetFloatIndexedvEXT
  4921. extern void (*glGetFloatIndexedvEXT)(GLenum, GLuint, GLfloat *);
  4922. #define glGetFloati_vEXT _glplatform_glGetFloati_vEXT
  4923. extern void (*glGetFloati_vEXT)(GLenum, GLuint, GLfloat *);
  4924. #define glGetFramebufferParameterivEXT _glplatform_glGetFramebufferParameterivEXT
  4925. extern void (*glGetFramebufferParameterivEXT)(GLuint, GLenum, GLint *);
  4926. #define glGetIntegerIndexedvEXT _glplatform_glGetIntegerIndexedvEXT
  4927. extern void (*glGetIntegerIndexedvEXT)(GLenum, GLuint, GLint *);
  4928. #define glGetMultiTexEnvfvEXT _glplatform_glGetMultiTexEnvfvEXT
  4929. extern void (*glGetMultiTexEnvfvEXT)(GLenum, GLenum, GLenum, GLfloat *);
  4930. #define glGetMultiTexEnvivEXT _glplatform_glGetMultiTexEnvivEXT
  4931. extern void (*glGetMultiTexEnvivEXT)(GLenum, GLenum, GLenum, GLint *);
  4932. #define glGetMultiTexGendvEXT _glplatform_glGetMultiTexGendvEXT
  4933. extern void (*glGetMultiTexGendvEXT)(GLenum, GLenum, GLenum, GLdouble *);
  4934. #define glGetMultiTexGenfvEXT _glplatform_glGetMultiTexGenfvEXT
  4935. extern void (*glGetMultiTexGenfvEXT)(GLenum, GLenum, GLenum, GLfloat *);
  4936. #define glGetMultiTexGenivEXT _glplatform_glGetMultiTexGenivEXT
  4937. extern void (*glGetMultiTexGenivEXT)(GLenum, GLenum, GLenum, GLint *);
  4938. #define glGetMultiTexImageEXT _glplatform_glGetMultiTexImageEXT
  4939. extern void (*glGetMultiTexImageEXT)(GLenum, GLenum, GLint, GLenum, GLenum, void *);
  4940. #define glGetMultiTexLevelParameterfvEXT _glplatform_glGetMultiTexLevelParameterfvEXT
  4941. extern void (*glGetMultiTexLevelParameterfvEXT)(GLenum, GLenum, GLint, GLenum, GLfloat *);
  4942. #define glGetMultiTexLevelParameterivEXT _glplatform_glGetMultiTexLevelParameterivEXT
  4943. extern void (*glGetMultiTexLevelParameterivEXT)(GLenum, GLenum, GLint, GLenum, GLint *);
  4944. #define glGetMultiTexParameterIivEXT _glplatform_glGetMultiTexParameterIivEXT
  4945. extern void (*glGetMultiTexParameterIivEXT)(GLenum, GLenum, GLenum, GLint *);
  4946. #define glGetMultiTexParameterIuivEXT _glplatform_glGetMultiTexParameterIuivEXT
  4947. extern void (*glGetMultiTexParameterIuivEXT)(GLenum, GLenum, GLenum, GLuint *);
  4948. #define glGetMultiTexParameterfvEXT _glplatform_glGetMultiTexParameterfvEXT
  4949. extern void (*glGetMultiTexParameterfvEXT)(GLenum, GLenum, GLenum, GLfloat *);
  4950. #define glGetMultiTexParameterivEXT _glplatform_glGetMultiTexParameterivEXT
  4951. extern void (*glGetMultiTexParameterivEXT)(GLenum, GLenum, GLenum, GLint *);
  4952. #define glGetNamedBufferParameterivEXT _glplatform_glGetNamedBufferParameterivEXT
  4953. extern void (*glGetNamedBufferParameterivEXT)(GLuint, GLenum, GLint *);
  4954. #define glGetNamedBufferPointervEXT _glplatform_glGetNamedBufferPointervEXT
  4955. extern void (*glGetNamedBufferPointervEXT)(GLuint, GLenum, void **);
  4956. #define glGetNamedBufferSubDataEXT _glplatform_glGetNamedBufferSubDataEXT
  4957. extern void (*glGetNamedBufferSubDataEXT)(GLuint, GLintptr, GLsizeiptr, void *);
  4958. #define glGetNamedFramebufferAttachmentParameterivEXT _glplatform_glGetNamedFramebufferAttachmentParameterivEXT
  4959. extern void (*glGetNamedFramebufferAttachmentParameterivEXT)(GLuint, GLenum, GLenum, GLint *);
  4960. #define glGetNamedFramebufferParameterivEXT _glplatform_glGetNamedFramebufferParameterivEXT
  4961. extern void (*glGetNamedFramebufferParameterivEXT)(GLuint, GLenum, GLint *);
  4962. #define glGetNamedProgramLocalParameterIivEXT _glplatform_glGetNamedProgramLocalParameterIivEXT
  4963. extern void (*glGetNamedProgramLocalParameterIivEXT)(GLuint, GLenum, GLuint, GLint *);
  4964. #define glGetNamedProgramLocalParameterIuivEXT _glplatform_glGetNamedProgramLocalParameterIuivEXT
  4965. extern void (*glGetNamedProgramLocalParameterIuivEXT)(GLuint, GLenum, GLuint, GLuint *);
  4966. #define glGetNamedProgramLocalParameterdvEXT _glplatform_glGetNamedProgramLocalParameterdvEXT
  4967. extern void (*glGetNamedProgramLocalParameterdvEXT)(GLuint, GLenum, GLuint, GLdouble *);
  4968. #define glGetNamedProgramLocalParameterfvEXT _glplatform_glGetNamedProgramLocalParameterfvEXT
  4969. extern void (*glGetNamedProgramLocalParameterfvEXT)(GLuint, GLenum, GLuint, GLfloat *);
  4970. #define glGetNamedProgramStringEXT _glplatform_glGetNamedProgramStringEXT
  4971. extern void (*glGetNamedProgramStringEXT)(GLuint, GLenum, GLenum, void *);
  4972. #define glGetNamedProgramivEXT _glplatform_glGetNamedProgramivEXT
  4973. extern void (*glGetNamedProgramivEXT)(GLuint, GLenum, GLenum, GLint *);
  4974. #define glGetNamedRenderbufferParameterivEXT _glplatform_glGetNamedRenderbufferParameterivEXT
  4975. extern void (*glGetNamedRenderbufferParameterivEXT)(GLuint, GLenum, GLint *);
  4976. #define glGetPointerIndexedvEXT _glplatform_glGetPointerIndexedvEXT
  4977. extern void (*glGetPointerIndexedvEXT)(GLenum, GLuint, void **);
  4978. #define glGetPointeri_vEXT _glplatform_glGetPointeri_vEXT
  4979. extern void (*glGetPointeri_vEXT)(GLenum, GLuint, void **);
  4980. #define glGetTextureImageEXT _glplatform_glGetTextureImageEXT
  4981. extern void (*glGetTextureImageEXT)(GLuint, GLenum, GLint, GLenum, GLenum, void *);
  4982. #define glGetTextureLevelParameterfvEXT _glplatform_glGetTextureLevelParameterfvEXT
  4983. extern void (*glGetTextureLevelParameterfvEXT)(GLuint, GLenum, GLint, GLenum, GLfloat *);
  4984. #define glGetTextureLevelParameterivEXT _glplatform_glGetTextureLevelParameterivEXT
  4985. extern void (*glGetTextureLevelParameterivEXT)(GLuint, GLenum, GLint, GLenum, GLint *);
  4986. #define glGetTextureParameterIivEXT _glplatform_glGetTextureParameterIivEXT
  4987. extern void (*glGetTextureParameterIivEXT)(GLuint, GLenum, GLenum, GLint *);
  4988. #define glGetTextureParameterIuivEXT _glplatform_glGetTextureParameterIuivEXT
  4989. extern void (*glGetTextureParameterIuivEXT)(GLuint, GLenum, GLenum, GLuint *);
  4990. #define glGetTextureParameterfvEXT _glplatform_glGetTextureParameterfvEXT
  4991. extern void (*glGetTextureParameterfvEXT)(GLuint, GLenum, GLenum, GLfloat *);
  4992. #define glGetTextureParameterivEXT _glplatform_glGetTextureParameterivEXT
  4993. extern void (*glGetTextureParameterivEXT)(GLuint, GLenum, GLenum, GLint *);
  4994. #define glGetVertexArrayIntegeri_vEXT _glplatform_glGetVertexArrayIntegeri_vEXT
  4995. extern void (*glGetVertexArrayIntegeri_vEXT)(GLuint, GLuint, GLenum, GLint *);
  4996. #define glGetVertexArrayIntegervEXT _glplatform_glGetVertexArrayIntegervEXT
  4997. extern void (*glGetVertexArrayIntegervEXT)(GLuint, GLenum, GLint *);
  4998. #define glGetVertexArrayPointeri_vEXT _glplatform_glGetVertexArrayPointeri_vEXT
  4999. extern void (*glGetVertexArrayPointeri_vEXT)(GLuint, GLuint, GLenum, void **);
  5000. #define glGetVertexArrayPointervEXT _glplatform_glGetVertexArrayPointervEXT
  5001. extern void (*glGetVertexArrayPointervEXT)(GLuint, GLenum, void **);
  5002. #define glIsEnabledIndexedEXT _glplatform_glIsEnabledIndexedEXT
  5003. extern GLboolean (*glIsEnabledIndexedEXT)(GLenum, GLuint);
  5004. #define glMapNamedBufferEXT _glplatform_glMapNamedBufferEXT
  5005. extern void * (*glMapNamedBufferEXT)(GLuint, GLenum);
  5006. #define glMapNamedBufferRangeEXT _glplatform_glMapNamedBufferRangeEXT
  5007. extern void * (*glMapNamedBufferRangeEXT)(GLuint, GLintptr, GLsizeiptr, GLbitfield);
  5008. #define glMatrixFrustumEXT _glplatform_glMatrixFrustumEXT
  5009. extern void (*glMatrixFrustumEXT)(GLenum, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble);
  5010. #define glMatrixLoadIdentityEXT _glplatform_glMatrixLoadIdentityEXT
  5011. extern void (*glMatrixLoadIdentityEXT)(GLenum);
  5012. #define glMatrixLoadTransposedEXT _glplatform_glMatrixLoadTransposedEXT
  5013. extern void (*glMatrixLoadTransposedEXT)(GLenum, const GLdouble *);
  5014. #define glMatrixLoadTransposefEXT _glplatform_glMatrixLoadTransposefEXT
  5015. extern void (*glMatrixLoadTransposefEXT)(GLenum, const GLfloat *);
  5016. #define glMatrixLoaddEXT _glplatform_glMatrixLoaddEXT
  5017. extern void (*glMatrixLoaddEXT)(GLenum, const GLdouble *);
  5018. #define glMatrixLoadfEXT _glplatform_glMatrixLoadfEXT
  5019. extern void (*glMatrixLoadfEXT)(GLenum, const GLfloat *);
  5020. #define glMatrixMultTransposedEXT _glplatform_glMatrixMultTransposedEXT
  5021. extern void (*glMatrixMultTransposedEXT)(GLenum, const GLdouble *);
  5022. #define glMatrixMultTransposefEXT _glplatform_glMatrixMultTransposefEXT
  5023. extern void (*glMatrixMultTransposefEXT)(GLenum, const GLfloat *);
  5024. #define glMatrixMultdEXT _glplatform_glMatrixMultdEXT
  5025. extern void (*glMatrixMultdEXT)(GLenum, const GLdouble *);
  5026. #define glMatrixMultfEXT _glplatform_glMatrixMultfEXT
  5027. extern void (*glMatrixMultfEXT)(GLenum, const GLfloat *);
  5028. #define glMatrixOrthoEXT _glplatform_glMatrixOrthoEXT
  5029. extern void (*glMatrixOrthoEXT)(GLenum, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble, GLdouble);
  5030. #define glMatrixPopEXT _glplatform_glMatrixPopEXT
  5031. extern void (*glMatrixPopEXT)(GLenum);
  5032. #define glMatrixPushEXT _glplatform_glMatrixPushEXT
  5033. extern void (*glMatrixPushEXT)(GLenum);
  5034. #define glMatrixRotatedEXT _glplatform_glMatrixRotatedEXT
  5035. extern void (*glMatrixRotatedEXT)(GLenum, GLdouble, GLdouble, GLdouble, GLdouble);
  5036. #define glMatrixRotatefEXT _glplatform_glMatrixRotatefEXT
  5037. extern void (*glMatrixRotatefEXT)(GLenum, GLfloat, GLfloat, GLfloat, GLfloat);
  5038. #define glMatrixScaledEXT _glplatform_glMatrixScaledEXT
  5039. extern void (*glMatrixScaledEXT)(GLenum, GLdouble, GLdouble, GLdouble);
  5040. #define glMatrixScalefEXT _glplatform_glMatrixScalefEXT
  5041. extern void (*glMatrixScalefEXT)(GLenum, GLfloat, GLfloat, GLfloat);
  5042. #define glMatrixTranslatedEXT _glplatform_glMatrixTranslatedEXT
  5043. extern void (*glMatrixTranslatedEXT)(GLenum, GLdouble, GLdouble, GLdouble);
  5044. #define glMatrixTranslatefEXT _glplatform_glMatrixTranslatefEXT
  5045. extern void (*glMatrixTranslatefEXT)(GLenum, GLfloat, GLfloat, GLfloat);
  5046. #define glMultiTexBufferEXT _glplatform_glMultiTexBufferEXT
  5047. extern void (*glMultiTexBufferEXT)(GLenum, GLenum, GLenum, GLuint);
  5048. #define glMultiTexCoordPointerEXT _glplatform_glMultiTexCoordPointerEXT
  5049. extern void (*glMultiTexCoordPointerEXT)(GLenum, GLint, GLenum, GLsizei, const void *);
  5050. #define glMultiTexEnvfEXT _glplatform_glMultiTexEnvfEXT
  5051. extern void (*glMultiTexEnvfEXT)(GLenum, GLenum, GLenum, GLfloat);
  5052. #define glMultiTexEnvfvEXT _glplatform_glMultiTexEnvfvEXT
  5053. extern void (*glMultiTexEnvfvEXT)(GLenum, GLenum, GLenum, const GLfloat *);
  5054. #define glMultiTexEnviEXT _glplatform_glMultiTexEnviEXT
  5055. extern void (*glMultiTexEnviEXT)(GLenum, GLenum, GLenum, GLint);
  5056. #define glMultiTexEnvivEXT _glplatform_glMultiTexEnvivEXT
  5057. extern void (*glMultiTexEnvivEXT)(GLenum, GLenum, GLenum, const GLint *);
  5058. #define glMultiTexGendEXT _glplatform_glMultiTexGendEXT
  5059. extern void (*glMultiTexGendEXT)(GLenum, GLenum, GLenum, GLdouble);
  5060. #define glMultiTexGendvEXT _glplatform_glMultiTexGendvEXT
  5061. extern void (*glMultiTexGendvEXT)(GLenum, GLenum, GLenum, const GLdouble *);
  5062. #define glMultiTexGenfEXT _glplatform_glMultiTexGenfEXT
  5063. extern void (*glMultiTexGenfEXT)(GLenum, GLenum, GLenum, GLfloat);
  5064. #define glMultiTexGenfvEXT _glplatform_glMultiTexGenfvEXT
  5065. extern void (*glMultiTexGenfvEXT)(GLenum, GLenum, GLenum, const GLfloat *);
  5066. #define glMultiTexGeniEXT _glplatform_glMultiTexGeniEXT
  5067. extern void (*glMultiTexGeniEXT)(GLenum, GLenum, GLenum, GLint);
  5068. #define glMultiTexGenivEXT _glplatform_glMultiTexGenivEXT
  5069. extern void (*glMultiTexGenivEXT)(GLenum, GLenum, GLenum, const GLint *);
  5070. #define glMultiTexImage1DEXT _glplatform_glMultiTexImage1DEXT
  5071. extern void (*glMultiTexImage1DEXT)(GLenum, GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const void *);
  5072. #define glMultiTexImage2DEXT _glplatform_glMultiTexImage2DEXT
  5073. extern void (*glMultiTexImage2DEXT)(GLenum, GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const void *);
  5074. #define glMultiTexImage3DEXT _glplatform_glMultiTexImage3DEXT
  5075. extern void (*glMultiTexImage3DEXT)(GLenum, GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const void *);
  5076. #define glMultiTexParameterIivEXT _glplatform_glMultiTexParameterIivEXT
  5077. extern void (*glMultiTexParameterIivEXT)(GLenum, GLenum, GLenum, const GLint *);
  5078. #define glMultiTexParameterIuivEXT _glplatform_glMultiTexParameterIuivEXT
  5079. extern void (*glMultiTexParameterIuivEXT)(GLenum, GLenum, GLenum, const GLuint *);
  5080. #define glMultiTexParameterfEXT _glplatform_glMultiTexParameterfEXT
  5081. extern void (*glMultiTexParameterfEXT)(GLenum, GLenum, GLenum, GLfloat);
  5082. #define glMultiTexParameterfvEXT _glplatform_glMultiTexParameterfvEXT
  5083. extern void (*glMultiTexParameterfvEXT)(GLenum, GLenum, GLenum, const GLfloat *);
  5084. #define glMultiTexParameteriEXT _glplatform_glMultiTexParameteriEXT
  5085. extern void (*glMultiTexParameteriEXT)(GLenum, GLenum, GLenum, GLint);
  5086. #define glMultiTexParameterivEXT _glplatform_glMultiTexParameterivEXT
  5087. extern void (*glMultiTexParameterivEXT)(GLenum, GLenum, GLenum, const GLint *);
  5088. #define glMultiTexRenderbufferEXT _glplatform_glMultiTexRenderbufferEXT
  5089. extern void (*glMultiTexRenderbufferEXT)(GLenum, GLenum, GLuint);
  5090. #define glMultiTexSubImage1DEXT _glplatform_glMultiTexSubImage1DEXT
  5091. extern void (*glMultiTexSubImage1DEXT)(GLenum, GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const void *);
  5092. #define glMultiTexSubImage2DEXT _glplatform_glMultiTexSubImage2DEXT
  5093. extern void (*glMultiTexSubImage2DEXT)(GLenum, GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const void *);
  5094. #define glMultiTexSubImage3DEXT _glplatform_glMultiTexSubImage3DEXT
  5095. extern void (*glMultiTexSubImage3DEXT)(GLenum, GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const void *);
  5096. #define glNamedBufferDataEXT _glplatform_glNamedBufferDataEXT
  5097. extern void (*glNamedBufferDataEXT)(GLuint, GLsizeiptr, const void *, GLenum);
  5098. #define glNamedBufferStorageEXT _glplatform_glNamedBufferStorageEXT
  5099. extern void (*glNamedBufferStorageEXT)(GLuint, GLsizeiptr, const void *, GLbitfield);
  5100. #define glNamedBufferSubDataEXT _glplatform_glNamedBufferSubDataEXT
  5101. extern void (*glNamedBufferSubDataEXT)(GLuint, GLintptr, GLsizeiptr, const void *);
  5102. #define glNamedCopyBufferSubDataEXT _glplatform_glNamedCopyBufferSubDataEXT
  5103. extern void (*glNamedCopyBufferSubDataEXT)(GLuint, GLuint, GLintptr, GLintptr, GLsizeiptr);
  5104. #define glNamedFramebufferParameteriEXT _glplatform_glNamedFramebufferParameteriEXT
  5105. extern void (*glNamedFramebufferParameteriEXT)(GLuint, GLenum, GLint);
  5106. #define glNamedFramebufferRenderbufferEXT _glplatform_glNamedFramebufferRenderbufferEXT
  5107. extern void (*glNamedFramebufferRenderbufferEXT)(GLuint, GLenum, GLenum, GLuint);
  5108. #define glNamedFramebufferTexture1DEXT _glplatform_glNamedFramebufferTexture1DEXT
  5109. extern void (*glNamedFramebufferTexture1DEXT)(GLuint, GLenum, GLenum, GLuint, GLint);
  5110. #define glNamedFramebufferTexture2DEXT _glplatform_glNamedFramebufferTexture2DEXT
  5111. extern void (*glNamedFramebufferTexture2DEXT)(GLuint, GLenum, GLenum, GLuint, GLint);
  5112. #define glNamedFramebufferTexture3DEXT _glplatform_glNamedFramebufferTexture3DEXT
  5113. extern void (*glNamedFramebufferTexture3DEXT)(GLuint, GLenum, GLenum, GLuint, GLint, GLint);
  5114. #define glNamedFramebufferTextureEXT _glplatform_glNamedFramebufferTextureEXT
  5115. extern void (*glNamedFramebufferTextureEXT)(GLuint, GLenum, GLuint, GLint);
  5116. #define glNamedFramebufferTextureFaceEXT _glplatform_glNamedFramebufferTextureFaceEXT
  5117. extern void (*glNamedFramebufferTextureFaceEXT)(GLuint, GLenum, GLuint, GLint, GLenum);
  5118. #define glNamedFramebufferTextureLayerEXT _glplatform_glNamedFramebufferTextureLayerEXT
  5119. extern void (*glNamedFramebufferTextureLayerEXT)(GLuint, GLenum, GLuint, GLint, GLint);
  5120. #define glNamedProgramLocalParameter4dEXT _glplatform_glNamedProgramLocalParameter4dEXT
  5121. extern void (*glNamedProgramLocalParameter4dEXT)(GLuint, GLenum, GLuint, GLdouble, GLdouble, GLdouble, GLdouble);
  5122. #define glNamedProgramLocalParameter4dvEXT _glplatform_glNamedProgramLocalParameter4dvEXT
  5123. extern void (*glNamedProgramLocalParameter4dvEXT)(GLuint, GLenum, GLuint, const GLdouble *);
  5124. #define glNamedProgramLocalParameter4fEXT _glplatform_glNamedProgramLocalParameter4fEXT
  5125. extern void (*glNamedProgramLocalParameter4fEXT)(GLuint, GLenum, GLuint, GLfloat, GLfloat, GLfloat, GLfloat);
  5126. #define glNamedProgramLocalParameter4fvEXT _glplatform_glNamedProgramLocalParameter4fvEXT
  5127. extern void (*glNamedProgramLocalParameter4fvEXT)(GLuint, GLenum, GLuint, const GLfloat *);
  5128. #define glNamedProgramLocalParameterI4iEXT _glplatform_glNamedProgramLocalParameterI4iEXT
  5129. extern void (*glNamedProgramLocalParameterI4iEXT)(GLuint, GLenum, GLuint, GLint, GLint, GLint, GLint);
  5130. #define glNamedProgramLocalParameterI4ivEXT _glplatform_glNamedProgramLocalParameterI4ivEXT
  5131. extern void (*glNamedProgramLocalParameterI4ivEXT)(GLuint, GLenum, GLuint, const GLint *);
  5132. #define glNamedProgramLocalParameterI4uiEXT _glplatform_glNamedProgramLocalParameterI4uiEXT
  5133. extern void (*glNamedProgramLocalParameterI4uiEXT)(GLuint, GLenum, GLuint, GLuint, GLuint, GLuint, GLuint);
  5134. #define glNamedProgramLocalParameterI4uivEXT _glplatform_glNamedProgramLocalParameterI4uivEXT
  5135. extern void (*glNamedProgramLocalParameterI4uivEXT)(GLuint, GLenum, GLuint, const GLuint *);
  5136. #define glNamedProgramLocalParameters4fvEXT _glplatform_glNamedProgramLocalParameters4fvEXT
  5137. extern void (*glNamedProgramLocalParameters4fvEXT)(GLuint, GLenum, GLuint, GLsizei, const GLfloat *);
  5138. #define glNamedProgramLocalParametersI4ivEXT _glplatform_glNamedProgramLocalParametersI4ivEXT
  5139. extern void (*glNamedProgramLocalParametersI4ivEXT)(GLuint, GLenum, GLuint, GLsizei, const GLint *);
  5140. #define glNamedProgramLocalParametersI4uivEXT _glplatform_glNamedProgramLocalParametersI4uivEXT
  5141. extern void (*glNamedProgramLocalParametersI4uivEXT)(GLuint, GLenum, GLuint, GLsizei, const GLuint *);
  5142. #define glNamedProgramStringEXT _glplatform_glNamedProgramStringEXT
  5143. extern void (*glNamedProgramStringEXT)(GLuint, GLenum, GLenum, GLsizei, const void *);
  5144. #define glNamedRenderbufferStorageEXT _glplatform_glNamedRenderbufferStorageEXT
  5145. extern void (*glNamedRenderbufferStorageEXT)(GLuint, GLenum, GLsizei, GLsizei);
  5146. #define glNamedRenderbufferStorageMultisampleCoverageEXT _glplatform_glNamedRenderbufferStorageMultisampleCoverageEXT
  5147. extern void (*glNamedRenderbufferStorageMultisampleCoverageEXT)(GLuint, GLsizei, GLsizei, GLenum, GLsizei, GLsizei);
  5148. #define glNamedRenderbufferStorageMultisampleEXT _glplatform_glNamedRenderbufferStorageMultisampleEXT
  5149. extern void (*glNamedRenderbufferStorageMultisampleEXT)(GLuint, GLsizei, GLenum, GLsizei, GLsizei);
  5150. #define glProgramUniform1dEXT _glplatform_glProgramUniform1dEXT
  5151. extern void (*glProgramUniform1dEXT)(GLuint, GLint, GLdouble);
  5152. #define glProgramUniform1dvEXT _glplatform_glProgramUniform1dvEXT
  5153. extern void (*glProgramUniform1dvEXT)(GLuint, GLint, GLsizei, const GLdouble *);
  5154. #define glProgramUniform1fEXT _glplatform_glProgramUniform1fEXT
  5155. extern void (*glProgramUniform1fEXT)(GLuint, GLint, GLfloat);
  5156. #define glProgramUniform1fvEXT _glplatform_glProgramUniform1fvEXT
  5157. extern void (*glProgramUniform1fvEXT)(GLuint, GLint, GLsizei, const GLfloat *);
  5158. #define glProgramUniform1iEXT _glplatform_glProgramUniform1iEXT
  5159. extern void (*glProgramUniform1iEXT)(GLuint, GLint, GLint);
  5160. #define glProgramUniform1ivEXT _glplatform_glProgramUniform1ivEXT
  5161. extern void (*glProgramUniform1ivEXT)(GLuint, GLint, GLsizei, const GLint *);
  5162. #define glProgramUniform1uiEXT _glplatform_glProgramUniform1uiEXT
  5163. extern void (*glProgramUniform1uiEXT)(GLuint, GLint, GLuint);
  5164. #define glProgramUniform1uivEXT _glplatform_glProgramUniform1uivEXT
  5165. extern void (*glProgramUniform1uivEXT)(GLuint, GLint, GLsizei, const GLuint *);
  5166. #define glProgramUniform2dEXT _glplatform_glProgramUniform2dEXT
  5167. extern void (*glProgramUniform2dEXT)(GLuint, GLint, GLdouble, GLdouble);
  5168. #define glProgramUniform2dvEXT _glplatform_glProgramUniform2dvEXT
  5169. extern void (*glProgramUniform2dvEXT)(GLuint, GLint, GLsizei, const GLdouble *);
  5170. #define glProgramUniform2fEXT _glplatform_glProgramUniform2fEXT
  5171. extern void (*glProgramUniform2fEXT)(GLuint, GLint, GLfloat, GLfloat);
  5172. #define glProgramUniform2fvEXT _glplatform_glProgramUniform2fvEXT
  5173. extern void (*glProgramUniform2fvEXT)(GLuint, GLint, GLsizei, const GLfloat *);
  5174. #define glProgramUniform2iEXT _glplatform_glProgramUniform2iEXT
  5175. extern void (*glProgramUniform2iEXT)(GLuint, GLint, GLint, GLint);
  5176. #define glProgramUniform2ivEXT _glplatform_glProgramUniform2ivEXT
  5177. extern void (*glProgramUniform2ivEXT)(GLuint, GLint, GLsizei, const GLint *);
  5178. #define glProgramUniform2uiEXT _glplatform_glProgramUniform2uiEXT
  5179. extern void (*glProgramUniform2uiEXT)(GLuint, GLint, GLuint, GLuint);
  5180. #define glProgramUniform2uivEXT _glplatform_glProgramUniform2uivEXT
  5181. extern void (*glProgramUniform2uivEXT)(GLuint, GLint, GLsizei, const GLuint *);
  5182. #define glProgramUniform3dEXT _glplatform_glProgramUniform3dEXT
  5183. extern void (*glProgramUniform3dEXT)(GLuint, GLint, GLdouble, GLdouble, GLdouble);
  5184. #define glProgramUniform3dvEXT _glplatform_glProgramUniform3dvEXT
  5185. extern void (*glProgramUniform3dvEXT)(GLuint, GLint, GLsizei, const GLdouble *);
  5186. #define glProgramUniform3fEXT _glplatform_glProgramUniform3fEXT
  5187. extern void (*glProgramUniform3fEXT)(GLuint, GLint, GLfloat, GLfloat, GLfloat);
  5188. #define glProgramUniform3fvEXT _glplatform_glProgramUniform3fvEXT
  5189. extern void (*glProgramUniform3fvEXT)(GLuint, GLint, GLsizei, const GLfloat *);
  5190. #define glProgramUniform3iEXT _glplatform_glProgramUniform3iEXT
  5191. extern void (*glProgramUniform3iEXT)(GLuint, GLint, GLint, GLint, GLint);
  5192. #define glProgramUniform3ivEXT _glplatform_glProgramUniform3ivEXT
  5193. extern void (*glProgramUniform3ivEXT)(GLuint, GLint, GLsizei, const GLint *);
  5194. #define glProgramUniform3uiEXT _glplatform_glProgramUniform3uiEXT
  5195. extern void (*glProgramUniform3uiEXT)(GLuint, GLint, GLuint, GLuint, GLuint);
  5196. #define glProgramUniform3uivEXT _glplatform_glProgramUniform3uivEXT
  5197. extern void (*glProgramUniform3uivEXT)(GLuint, GLint, GLsizei, const GLuint *);
  5198. #define glProgramUniform4dEXT _glplatform_glProgramUniform4dEXT
  5199. extern void (*glProgramUniform4dEXT)(GLuint, GLint, GLdouble, GLdouble, GLdouble, GLdouble);
  5200. #define glProgramUniform4dvEXT _glplatform_glProgramUniform4dvEXT
  5201. extern void (*glProgramUniform4dvEXT)(GLuint, GLint, GLsizei, const GLdouble *);
  5202. #define glProgramUniform4fEXT _glplatform_glProgramUniform4fEXT
  5203. extern void (*glProgramUniform4fEXT)(GLuint, GLint, GLfloat, GLfloat, GLfloat, GLfloat);
  5204. #define glProgramUniform4fvEXT _glplatform_glProgramUniform4fvEXT
  5205. extern void (*glProgramUniform4fvEXT)(GLuint, GLint, GLsizei, const GLfloat *);
  5206. #define glProgramUniform4iEXT _glplatform_glProgramUniform4iEXT
  5207. extern void (*glProgramUniform4iEXT)(GLuint, GLint, GLint, GLint, GLint, GLint);
  5208. #define glProgramUniform4ivEXT _glplatform_glProgramUniform4ivEXT
  5209. extern void (*glProgramUniform4ivEXT)(GLuint, GLint, GLsizei, const GLint *);
  5210. #define glProgramUniform4uiEXT _glplatform_glProgramUniform4uiEXT
  5211. extern void (*glProgramUniform4uiEXT)(GLuint, GLint, GLuint, GLuint, GLuint, GLuint);
  5212. #define glProgramUniform4uivEXT _glplatform_glProgramUniform4uivEXT
  5213. extern void (*glProgramUniform4uivEXT)(GLuint, GLint, GLsizei, const GLuint *);
  5214. #define glProgramUniformMatrix2dvEXT _glplatform_glProgramUniformMatrix2dvEXT
  5215. extern void (*glProgramUniformMatrix2dvEXT)(GLuint, GLint, GLsizei, GLboolean, const GLdouble *);
  5216. #define glProgramUniformMatrix2fvEXT _glplatform_glProgramUniformMatrix2fvEXT
  5217. extern void (*glProgramUniformMatrix2fvEXT)(GLuint, GLint, GLsizei, GLboolean, const GLfloat *);
  5218. #define glProgramUniformMatrix2x3dvEXT _glplatform_glProgramUniformMatrix2x3dvEXT
  5219. extern void (*glProgramUniformMatrix2x3dvEXT)(GLuint, GLint, GLsizei, GLboolean, const GLdouble *);
  5220. #define glProgramUniformMatrix2x3fvEXT _glplatform_glProgramUniformMatrix2x3fvEXT
  5221. extern void (*glProgramUniformMatrix2x3fvEXT)(GLuint, GLint, GLsizei, GLboolean, const GLfloat *);
  5222. #define glProgramUniformMatrix2x4dvEXT _glplatform_glProgramUniformMatrix2x4dvEXT
  5223. extern void (*glProgramUniformMatrix2x4dvEXT)(GLuint, GLint, GLsizei, GLboolean, const GLdouble *);
  5224. #define glProgramUniformMatrix2x4fvEXT _glplatform_glProgramUniformMatrix2x4fvEXT
  5225. extern void (*glProgramUniformMatrix2x4fvEXT)(GLuint, GLint, GLsizei, GLboolean, const GLfloat *);
  5226. #define glProgramUniformMatrix3dvEXT _glplatform_glProgramUniformMatrix3dvEXT
  5227. extern void (*glProgramUniformMatrix3dvEXT)(GLuint, GLint, GLsizei, GLboolean, const GLdouble *);
  5228. #define glProgramUniformMatrix3fvEXT _glplatform_glProgramUniformMatrix3fvEXT
  5229. extern void (*glProgramUniformMatrix3fvEXT)(GLuint, GLint, GLsizei, GLboolean, const GLfloat *);
  5230. #define glProgramUniformMatrix3x2dvEXT _glplatform_glProgramUniformMatrix3x2dvEXT
  5231. extern void (*glProgramUniformMatrix3x2dvEXT)(GLuint, GLint, GLsizei, GLboolean, const GLdouble *);
  5232. #define glProgramUniformMatrix3x2fvEXT _glplatform_glProgramUniformMatrix3x2fvEXT
  5233. extern void (*glProgramUniformMatrix3x2fvEXT)(GLuint, GLint, GLsizei, GLboolean, const GLfloat *);
  5234. #define glProgramUniformMatrix3x4dvEXT _glplatform_glProgramUniformMatrix3x4dvEXT
  5235. extern void (*glProgramUniformMatrix3x4dvEXT)(GLuint, GLint, GLsizei, GLboolean, const GLdouble *);
  5236. #define glProgramUniformMatrix3x4fvEXT _glplatform_glProgramUniformMatrix3x4fvEXT
  5237. extern void (*glProgramUniformMatrix3x4fvEXT)(GLuint, GLint, GLsizei, GLboolean, const GLfloat *);
  5238. #define glProgramUniformMatrix4dvEXT _glplatform_glProgramUniformMatrix4dvEXT
  5239. extern void (*glProgramUniformMatrix4dvEXT)(GLuint, GLint, GLsizei, GLboolean, const GLdouble *);
  5240. #define glProgramUniformMatrix4fvEXT _glplatform_glProgramUniformMatrix4fvEXT
  5241. extern void (*glProgramUniformMatrix4fvEXT)(GLuint, GLint, GLsizei, GLboolean, const GLfloat *);
  5242. #define glProgramUniformMatrix4x2dvEXT _glplatform_glProgramUniformMatrix4x2dvEXT
  5243. extern void (*glProgramUniformMatrix4x2dvEXT)(GLuint, GLint, GLsizei, GLboolean, const GLdouble *);
  5244. #define glProgramUniformMatrix4x2fvEXT _glplatform_glProgramUniformMatrix4x2fvEXT
  5245. extern void (*glProgramUniformMatrix4x2fvEXT)(GLuint, GLint, GLsizei, GLboolean, const GLfloat *);
  5246. #define glProgramUniformMatrix4x3dvEXT _glplatform_glProgramUniformMatrix4x3dvEXT
  5247. extern void (*glProgramUniformMatrix4x3dvEXT)(GLuint, GLint, GLsizei, GLboolean, const GLdouble *);
  5248. #define glProgramUniformMatrix4x3fvEXT _glplatform_glProgramUniformMatrix4x3fvEXT
  5249. extern void (*glProgramUniformMatrix4x3fvEXT)(GLuint, GLint, GLsizei, GLboolean, const GLfloat *);
  5250. #define glPushClientAttribDefaultEXT _glplatform_glPushClientAttribDefaultEXT
  5251. extern void (*glPushClientAttribDefaultEXT)(GLbitfield);
  5252. #define glTextureBufferEXT _glplatform_glTextureBufferEXT
  5253. extern void (*glTextureBufferEXT)(GLuint, GLenum, GLenum, GLuint);
  5254. #define glTextureBufferRangeEXT _glplatform_glTextureBufferRangeEXT
  5255. extern void (*glTextureBufferRangeEXT)(GLuint, GLenum, GLenum, GLuint, GLintptr, GLsizeiptr);
  5256. #define glTextureImage1DEXT _glplatform_glTextureImage1DEXT
  5257. extern void (*glTextureImage1DEXT)(GLuint, GLenum, GLint, GLint, GLsizei, GLint, GLenum, GLenum, const void *);
  5258. #define glTextureImage2DEXT _glplatform_glTextureImage2DEXT
  5259. extern void (*glTextureImage2DEXT)(GLuint, GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const void *);
  5260. #define glTextureImage3DEXT _glplatform_glTextureImage3DEXT
  5261. extern void (*glTextureImage3DEXT)(GLuint, GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const void *);
  5262. #define glTexturePageCommitmentEXT _glplatform_glTexturePageCommitmentEXT
  5263. extern void (*glTexturePageCommitmentEXT)(GLuint, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLboolean);
  5264. #define glTextureParameterIivEXT _glplatform_glTextureParameterIivEXT
  5265. extern void (*glTextureParameterIivEXT)(GLuint, GLenum, GLenum, const GLint *);
  5266. #define glTextureParameterIuivEXT _glplatform_glTextureParameterIuivEXT
  5267. extern void (*glTextureParameterIuivEXT)(GLuint, GLenum, GLenum, const GLuint *);
  5268. #define glTextureParameterfEXT _glplatform_glTextureParameterfEXT
  5269. extern void (*glTextureParameterfEXT)(GLuint, GLenum, GLenum, GLfloat);
  5270. #define glTextureParameterfvEXT _glplatform_glTextureParameterfvEXT
  5271. extern void (*glTextureParameterfvEXT)(GLuint, GLenum, GLenum, const GLfloat *);
  5272. #define glTextureParameteriEXT _glplatform_glTextureParameteriEXT
  5273. extern void (*glTextureParameteriEXT)(GLuint, GLenum, GLenum, GLint);
  5274. #define glTextureParameterivEXT _glplatform_glTextureParameterivEXT
  5275. extern void (*glTextureParameterivEXT)(GLuint, GLenum, GLenum, const GLint *);
  5276. #define glTextureRenderbufferEXT _glplatform_glTextureRenderbufferEXT
  5277. extern void (*glTextureRenderbufferEXT)(GLuint, GLenum, GLuint);
  5278. #define glTextureStorage1DEXT _glplatform_glTextureStorage1DEXT
  5279. extern void (*glTextureStorage1DEXT)(GLuint, GLenum, GLsizei, GLenum, GLsizei);
  5280. #define glTextureStorage2DEXT _glplatform_glTextureStorage2DEXT
  5281. extern void (*glTextureStorage2DEXT)(GLuint, GLenum, GLsizei, GLenum, GLsizei, GLsizei);
  5282. #define glTextureStorage2DMultisampleEXT _glplatform_glTextureStorage2DMultisampleEXT
  5283. extern void (*glTextureStorage2DMultisampleEXT)(GLuint, GLenum, GLsizei, GLenum, GLsizei, GLsizei, GLboolean);
  5284. #define glTextureStorage3DEXT _glplatform_glTextureStorage3DEXT
  5285. extern void (*glTextureStorage3DEXT)(GLuint, GLenum, GLsizei, GLenum, GLsizei, GLsizei, GLsizei);
  5286. #define glTextureStorage3DMultisampleEXT _glplatform_glTextureStorage3DMultisampleEXT
  5287. extern void (*glTextureStorage3DMultisampleEXT)(GLuint, GLenum, GLsizei, GLenum, GLsizei, GLsizei, GLsizei, GLboolean);
  5288. #define glTextureSubImage1DEXT _glplatform_glTextureSubImage1DEXT
  5289. extern void (*glTextureSubImage1DEXT)(GLuint, GLenum, GLint, GLint, GLsizei, GLenum, GLenum, const void *);
  5290. #define glTextureSubImage2DEXT _glplatform_glTextureSubImage2DEXT
  5291. extern void (*glTextureSubImage2DEXT)(GLuint, GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const void *);
  5292. #define glTextureSubImage3DEXT _glplatform_glTextureSubImage3DEXT
  5293. extern void (*glTextureSubImage3DEXT)(GLuint, GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei, GLenum, GLenum, const void *);
  5294. #define glUnmapNamedBufferEXT _glplatform_glUnmapNamedBufferEXT
  5295. extern GLboolean (*glUnmapNamedBufferEXT)(GLuint);
  5296. #define glVertexArrayBindVertexBufferEXT _glplatform_glVertexArrayBindVertexBufferEXT
  5297. extern void (*glVertexArrayBindVertexBufferEXT)(GLuint, GLuint, GLuint, GLintptr, GLsizei);
  5298. #define glVertexArrayColorOffsetEXT _glplatform_glVertexArrayColorOffsetEXT
  5299. extern void (*glVertexArrayColorOffsetEXT)(GLuint, GLuint, GLint, GLenum, GLsizei, GLintptr);
  5300. #define glVertexArrayEdgeFlagOffsetEXT _glplatform_glVertexArrayEdgeFlagOffsetEXT
  5301. extern void (*glVertexArrayEdgeFlagOffsetEXT)(GLuint, GLuint, GLsizei, GLintptr);
  5302. #define glVertexArrayFogCoordOffsetEXT _glplatform_glVertexArrayFogCoordOffsetEXT
  5303. extern void (*glVertexArrayFogCoordOffsetEXT)(GLuint, GLuint, GLenum, GLsizei, GLintptr);
  5304. #define glVertexArrayIndexOffsetEXT _glplatform_glVertexArrayIndexOffsetEXT
  5305. extern void (*glVertexArrayIndexOffsetEXT)(GLuint, GLuint, GLenum, GLsizei, GLintptr);
  5306. #define glVertexArrayMultiTexCoordOffsetEXT _glplatform_glVertexArrayMultiTexCoordOffsetEXT
  5307. extern void (*glVertexArrayMultiTexCoordOffsetEXT)(GLuint, GLuint, GLenum, GLint, GLenum, GLsizei, GLintptr);
  5308. #define glVertexArrayNormalOffsetEXT _glplatform_glVertexArrayNormalOffsetEXT
  5309. extern void (*glVertexArrayNormalOffsetEXT)(GLuint, GLuint, GLenum, GLsizei, GLintptr);
  5310. #define glVertexArraySecondaryColorOffsetEXT _glplatform_glVertexArraySecondaryColorOffsetEXT
  5311. extern void (*glVertexArraySecondaryColorOffsetEXT)(GLuint, GLuint, GLint, GLenum, GLsizei, GLintptr);
  5312. #define glVertexArrayTexCoordOffsetEXT _glplatform_glVertexArrayTexCoordOffsetEXT
  5313. extern void (*glVertexArrayTexCoordOffsetEXT)(GLuint, GLuint, GLint, GLenum, GLsizei, GLintptr);
  5314. #define glVertexArrayVertexAttribBindingEXT _glplatform_glVertexArrayVertexAttribBindingEXT
  5315. extern void (*glVertexArrayVertexAttribBindingEXT)(GLuint, GLuint, GLuint);
  5316. #define glVertexArrayVertexAttribDivisorEXT _glplatform_glVertexArrayVertexAttribDivisorEXT
  5317. extern void (*glVertexArrayVertexAttribDivisorEXT)(GLuint, GLuint, GLuint);
  5318. #define glVertexArrayVertexAttribFormatEXT _glplatform_glVertexArrayVertexAttribFormatEXT
  5319. extern void (*glVertexArrayVertexAttribFormatEXT)(GLuint, GLuint, GLint, GLenum, GLboolean, GLuint);
  5320. #define glVertexArrayVertexAttribIFormatEXT _glplatform_glVertexArrayVertexAttribIFormatEXT
  5321. extern void (*glVertexArrayVertexAttribIFormatEXT)(GLuint, GLuint, GLint, GLenum, GLuint);
  5322. #define glVertexArrayVertexAttribIOffsetEXT _glplatform_glVertexArrayVertexAttribIOffsetEXT
  5323. extern void (*glVertexArrayVertexAttribIOffsetEXT)(GLuint, GLuint, GLuint, GLint, GLenum, GLsizei, GLintptr);
  5324. #define glVertexArrayVertexAttribLFormatEXT _glplatform_glVertexArrayVertexAttribLFormatEXT
  5325. extern void (*glVertexArrayVertexAttribLFormatEXT)(GLuint, GLuint, GLint, GLenum, GLuint);
  5326. #define glVertexArrayVertexAttribLOffsetEXT _glplatform_glVertexArrayVertexAttribLOffsetEXT
  5327. extern void (*glVertexArrayVertexAttribLOffsetEXT)(GLuint, GLuint, GLuint, GLint, GLenum, GLsizei, GLintptr);
  5328. #define glVertexArrayVertexAttribOffsetEXT _glplatform_glVertexArrayVertexAttribOffsetEXT
  5329. extern void (*glVertexArrayVertexAttribOffsetEXT)(GLuint, GLuint, GLuint, GLint, GLenum, GLboolean, GLsizei, GLintptr);
  5330. #define glVertexArrayVertexBindingDivisorEXT _glplatform_glVertexArrayVertexBindingDivisorEXT
  5331. extern void (*glVertexArrayVertexBindingDivisorEXT)(GLuint, GLuint, GLuint);
  5332. #define glVertexArrayVertexOffsetEXT _glplatform_glVertexArrayVertexOffsetEXT
  5333. extern void (*glVertexArrayVertexOffsetEXT)(GLuint, GLuint, GLint, GLenum, GLsizei, GLintptr);
  5334. #endif
  5335. #if defined(GLPLATFORM_ENABLE_GL_KHR_context_flush_control)
  5336. extern bool GLPLATFORM_GL_KHR_context_flush_control;
  5337. #define GL_CONTEXT_RELEASE_BEHAVIOR 0x82fb
  5338. #define GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH 0x82fc
  5339. #define GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH_KHR 0x82fc
  5340. #define GL_CONTEXT_RELEASE_BEHAVIOR_KHR 0x82fb
  5341. #define GL_NONE 0x0
  5342. #endif
  5343. #if defined(GLPLATFORM_ENABLE_GL_KHR_debug)
  5344. extern bool GLPLATFORM_GL_KHR_debug;
  5345. #ifndef GLPLATFORM_TYPE_GLDEBUGPROC
  5346. #define GLPLATFORM_TYPE_GLDEBUGPROC
  5347. typedef void ( *GLDEBUGPROC)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam);
  5348. #endif
  5349. #ifndef GLPLATFORM_TYPE_GLDEBUGPROCKHR
  5350. #define GLPLATFORM_TYPE_GLDEBUGPROCKHR
  5351. typedef void ( *GLDEBUGPROCKHR)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar *message,const void *userParam);
  5352. #endif
  5353. #ifndef GLPLATFORM_TYPE_GLchar
  5354. #define GLPLATFORM_TYPE_GLchar
  5355. typedef char GLchar;
  5356. #endif
  5357. #define GL_BUFFER 0x82e0
  5358. #define GL_BUFFER_KHR 0x82e0
  5359. #define GL_CONTEXT_FLAG_DEBUG_BIT 0x2
  5360. #define GL_CONTEXT_FLAG_DEBUG_BIT_KHR 0x2
  5361. #define GL_DEBUG_CALLBACK_FUNCTION 0x8244
  5362. #define GL_DEBUG_CALLBACK_FUNCTION_KHR 0x8244
  5363. #define GL_DEBUG_CALLBACK_USER_PARAM 0x8245
  5364. #define GL_DEBUG_CALLBACK_USER_PARAM_KHR 0x8245
  5365. #define GL_DEBUG_GROUP_STACK_DEPTH 0x826d
  5366. #define GL_DEBUG_GROUP_STACK_DEPTH_KHR 0x826d
  5367. #define GL_DEBUG_LOGGED_MESSAGES 0x9145
  5368. #define GL_DEBUG_LOGGED_MESSAGES_KHR 0x9145
  5369. #define GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH 0x8243
  5370. #define GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH_KHR 0x8243
  5371. #define GL_DEBUG_OUTPUT 0x92e0
  5372. #define GL_DEBUG_OUTPUT_KHR 0x92e0
  5373. #define GL_DEBUG_OUTPUT_SYNCHRONOUS 0x8242
  5374. #define GL_DEBUG_OUTPUT_SYNCHRONOUS_KHR 0x8242
  5375. #define GL_DEBUG_SEVERITY_HIGH 0x9146
  5376. #define GL_DEBUG_SEVERITY_HIGH_KHR 0x9146
  5377. #define GL_DEBUG_SEVERITY_LOW 0x9148
  5378. #define GL_DEBUG_SEVERITY_LOW_KHR 0x9148
  5379. #define GL_DEBUG_SEVERITY_MEDIUM 0x9147
  5380. #define GL_DEBUG_SEVERITY_MEDIUM_KHR 0x9147
  5381. #define GL_DEBUG_SEVERITY_NOTIFICATION 0x826b
  5382. #define GL_DEBUG_SEVERITY_NOTIFICATION_KHR 0x826b
  5383. #define GL_DEBUG_SOURCE_API 0x8246
  5384. #define GL_DEBUG_SOURCE_API_KHR 0x8246
  5385. #define GL_DEBUG_SOURCE_APPLICATION 0x824a
  5386. #define GL_DEBUG_SOURCE_APPLICATION_KHR 0x824a
  5387. #define GL_DEBUG_SOURCE_OTHER 0x824b
  5388. #define GL_DEBUG_SOURCE_OTHER_KHR 0x824b
  5389. #define GL_DEBUG_SOURCE_SHADER_COMPILER 0x8248
  5390. #define GL_DEBUG_SOURCE_SHADER_COMPILER_KHR 0x8248
  5391. #define GL_DEBUG_SOURCE_THIRD_PARTY 0x8249
  5392. #define GL_DEBUG_SOURCE_THIRD_PARTY_KHR 0x8249
  5393. #define GL_DEBUG_SOURCE_WINDOW_SYSTEM 0x8247
  5394. #define GL_DEBUG_SOURCE_WINDOW_SYSTEM_KHR 0x8247
  5395. #define GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR 0x824d
  5396. #define GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR_KHR 0x824d
  5397. #define GL_DEBUG_TYPE_ERROR 0x824c
  5398. #define GL_DEBUG_TYPE_ERROR_KHR 0x824c
  5399. #define GL_DEBUG_TYPE_MARKER 0x8268
  5400. #define GL_DEBUG_TYPE_MARKER_KHR 0x8268
  5401. #define GL_DEBUG_TYPE_OTHER 0x8251
  5402. #define GL_DEBUG_TYPE_OTHER_KHR 0x8251
  5403. #define GL_DEBUG_TYPE_PERFORMANCE 0x8250
  5404. #define GL_DEBUG_TYPE_PERFORMANCE_KHR 0x8250
  5405. #define GL_DEBUG_TYPE_POP_GROUP 0x826a
  5406. #define GL_DEBUG_TYPE_POP_GROUP_KHR 0x826a
  5407. #define GL_DEBUG_TYPE_PORTABILITY 0x824f
  5408. #define GL_DEBUG_TYPE_PORTABILITY_KHR 0x824f
  5409. #define GL_DEBUG_TYPE_PUSH_GROUP 0x8269
  5410. #define GL_DEBUG_TYPE_PUSH_GROUP_KHR 0x8269
  5411. #define GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR 0x824e
  5412. #define GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR_KHR 0x824e
  5413. #define GL_MAX_DEBUG_GROUP_STACK_DEPTH 0x826c
  5414. #define GL_MAX_DEBUG_GROUP_STACK_DEPTH_KHR 0x826c
  5415. #define GL_MAX_DEBUG_LOGGED_MESSAGES 0x9144
  5416. #define GL_MAX_DEBUG_LOGGED_MESSAGES_KHR 0x9144
  5417. #define GL_MAX_DEBUG_MESSAGE_LENGTH 0x9143
  5418. #define GL_MAX_DEBUG_MESSAGE_LENGTH_KHR 0x9143
  5419. #define GL_MAX_LABEL_LENGTH 0x82e8
  5420. #define GL_MAX_LABEL_LENGTH_KHR 0x82e8
  5421. #define GL_PROGRAM 0x82e2
  5422. #define GL_PROGRAM_KHR 0x82e2
  5423. #define GL_PROGRAM_PIPELINE 0x82e4
  5424. #define GL_QUERY 0x82e3
  5425. #define GL_QUERY_KHR 0x82e3
  5426. #define GL_SAMPLER 0x82e6
  5427. #define GL_SAMPLER_KHR 0x82e6
  5428. #define GL_SHADER 0x82e1
  5429. #define GL_SHADER_KHR 0x82e1
  5430. #define GL_STACK_OVERFLOW 0x503
  5431. #define GL_STACK_OVERFLOW_KHR 0x503
  5432. #define GL_STACK_UNDERFLOW 0x504
  5433. #define GL_STACK_UNDERFLOW_KHR 0x504
  5434. #define GL_VERTEX_ARRAY 0x8074
  5435. #define GL_VERTEX_ARRAY_KHR 0x8074
  5436. #define glDebugMessageCallback _glplatform_glDebugMessageCallback
  5437. extern void (*glDebugMessageCallback)(GLDEBUGPROC, const void *);
  5438. #define glDebugMessageCallbackKHR _glplatform_glDebugMessageCallbackKHR
  5439. extern void (*glDebugMessageCallbackKHR)(GLDEBUGPROCKHR, const void *);
  5440. #define glDebugMessageControl _glplatform_glDebugMessageControl
  5441. extern void (*glDebugMessageControl)(GLenum, GLenum, GLenum, GLsizei, const GLuint *, GLboolean);
  5442. #define glDebugMessageControlKHR _glplatform_glDebugMessageControlKHR
  5443. extern void (*glDebugMessageControlKHR)(GLenum, GLenum, GLenum, GLsizei, const GLuint *, GLboolean);
  5444. #define glDebugMessageInsert _glplatform_glDebugMessageInsert
  5445. extern void (*glDebugMessageInsert)(GLenum, GLenum, GLuint, GLenum, GLsizei, const GLchar *);
  5446. #define glDebugMessageInsertKHR _glplatform_glDebugMessageInsertKHR
  5447. extern void (*glDebugMessageInsertKHR)(GLenum, GLenum, GLuint, GLenum, GLsizei, const GLchar *);
  5448. #define glGetDebugMessageLog _glplatform_glGetDebugMessageLog
  5449. extern GLuint (*glGetDebugMessageLog)(GLuint, GLsizei, GLenum *, GLenum *, GLuint *, GLenum *, GLsizei *, GLchar *);
  5450. #define glGetDebugMessageLogKHR _glplatform_glGetDebugMessageLogKHR
  5451. extern GLuint (*glGetDebugMessageLogKHR)(GLuint, GLsizei, GLenum *, GLenum *, GLuint *, GLenum *, GLsizei *, GLchar *);
  5452. #define glGetObjectLabel _glplatform_glGetObjectLabel
  5453. extern void (*glGetObjectLabel)(GLenum, GLuint, GLsizei, GLsizei *, GLchar *);
  5454. #define glGetObjectLabelKHR _glplatform_glGetObjectLabelKHR
  5455. extern void (*glGetObjectLabelKHR)(GLenum, GLuint, GLsizei, GLsizei *, GLchar *);
  5456. #define glGetObjectPtrLabel _glplatform_glGetObjectPtrLabel
  5457. extern void (*glGetObjectPtrLabel)(const void *, GLsizei, GLsizei *, GLchar *);
  5458. #define glGetObjectPtrLabelKHR _glplatform_glGetObjectPtrLabelKHR
  5459. extern void (*glGetObjectPtrLabelKHR)(const void *, GLsizei, GLsizei *, GLchar *);
  5460. #define glGetPointerv _glplatform_glGetPointerv
  5461. extern void (*glGetPointerv)(GLenum, void **);
  5462. #define glGetPointervKHR _glplatform_glGetPointervKHR
  5463. extern void (*glGetPointervKHR)(GLenum, void **);
  5464. #define glObjectLabel _glplatform_glObjectLabel
  5465. extern void (*glObjectLabel)(GLenum, GLuint, GLsizei, const GLchar *);
  5466. #define glObjectLabelKHR _glplatform_glObjectLabelKHR
  5467. extern void (*glObjectLabelKHR)(GLenum, GLuint, GLsizei, const GLchar *);
  5468. #define glObjectPtrLabel _glplatform_glObjectPtrLabel
  5469. extern void (*glObjectPtrLabel)(const void *, GLsizei, const GLchar *);
  5470. #define glObjectPtrLabelKHR _glplatform_glObjectPtrLabelKHR
  5471. extern void (*glObjectPtrLabelKHR)(const void *, GLsizei, const GLchar *);
  5472. #define glPopDebugGroup _glplatform_glPopDebugGroup
  5473. extern void (*glPopDebugGroup)();
  5474. #define glPopDebugGroupKHR _glplatform_glPopDebugGroupKHR
  5475. extern void (*glPopDebugGroupKHR)();
  5476. #define glPushDebugGroup _glplatform_glPushDebugGroup
  5477. extern void (*glPushDebugGroup)(GLenum, GLuint, GLsizei, const GLchar *);
  5478. #define glPushDebugGroupKHR _glplatform_glPushDebugGroupKHR
  5479. extern void (*glPushDebugGroupKHR)(GLenum, GLuint, GLsizei, const GLchar *);
  5480. #endif
  5481. #if defined(GLPLATFORM_ENABLE_GL_KHR_robust_buffer_access_behavior)
  5482. extern bool GLPLATFORM_GL_KHR_robust_buffer_access_behavior;
  5483. #endif
  5484. #if defined(GLPLATFORM_ENABLE_GL_KHR_robustness)
  5485. extern bool GLPLATFORM_GL_KHR_robustness;
  5486. #define GL_CONTEXT_LOST 0x507
  5487. #define GL_CONTEXT_LOST_KHR 0x507
  5488. #define GL_CONTEXT_ROBUST_ACCESS 0x90f3
  5489. #define GL_CONTEXT_ROBUST_ACCESS_KHR 0x90f3
  5490. #define GL_GUILTY_CONTEXT_RESET 0x8253
  5491. #define GL_GUILTY_CONTEXT_RESET_KHR 0x8253
  5492. #define GL_INNOCENT_CONTEXT_RESET 0x8254
  5493. #define GL_INNOCENT_CONTEXT_RESET_KHR 0x8254
  5494. #define GL_LOSE_CONTEXT_ON_RESET 0x8252
  5495. #define GL_LOSE_CONTEXT_ON_RESET_KHR 0x8252
  5496. #define GL_NO_ERROR 0x0
  5497. #define GL_NO_RESET_NOTIFICATION 0x8261
  5498. #define GL_NO_RESET_NOTIFICATION_KHR 0x8261
  5499. #define GL_RESET_NOTIFICATION_STRATEGY 0x8256
  5500. #define GL_RESET_NOTIFICATION_STRATEGY_KHR 0x8256
  5501. #define GL_UNKNOWN_CONTEXT_RESET 0x8255
  5502. #define GL_UNKNOWN_CONTEXT_RESET_KHR 0x8255
  5503. #define glGetGraphicsResetStatus _glplatform_glGetGraphicsResetStatus
  5504. extern GLenum (*glGetGraphicsResetStatus)();
  5505. #define glGetGraphicsResetStatusKHR _glplatform_glGetGraphicsResetStatusKHR
  5506. extern GLenum (*glGetGraphicsResetStatusKHR)();
  5507. #define glGetnUniformfv _glplatform_glGetnUniformfv
  5508. extern void (*glGetnUniformfv)(GLuint, GLint, GLsizei, GLfloat *);
  5509. #define glGetnUniformfvKHR _glplatform_glGetnUniformfvKHR
  5510. extern void (*glGetnUniformfvKHR)(GLuint, GLint, GLsizei, GLfloat *);
  5511. #define glGetnUniformiv _glplatform_glGetnUniformiv
  5512. extern void (*glGetnUniformiv)(GLuint, GLint, GLsizei, GLint *);
  5513. #define glGetnUniformivKHR _glplatform_glGetnUniformivKHR
  5514. extern void (*glGetnUniformivKHR)(GLuint, GLint, GLsizei, GLint *);
  5515. #define glGetnUniformuiv _glplatform_glGetnUniformuiv
  5516. extern void (*glGetnUniformuiv)(GLuint, GLint, GLsizei, GLuint *);
  5517. #define glGetnUniformuivKHR _glplatform_glGetnUniformuivKHR
  5518. extern void (*glGetnUniformuivKHR)(GLuint, GLint, GLsizei, GLuint *);
  5519. #define glReadnPixels _glplatform_glReadnPixels
  5520. extern void (*glReadnPixels)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLsizei, void *);
  5521. #define glReadnPixelsKHR _glplatform_glReadnPixelsKHR
  5522. extern void (*glReadnPixelsKHR)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLsizei, void *);
  5523. #endif
  5524. #if defined(GLPLATFORM_ENABLE_GL_KHR_texture_compression_astc_hdr)
  5525. extern bool GLPLATFORM_GL_KHR_texture_compression_astc_hdr;
  5526. #define GL_COMPRESSED_RGBA_ASTC_10x10_KHR 0x93bb
  5527. #define GL_COMPRESSED_RGBA_ASTC_10x5_KHR 0x93b8
  5528. #define GL_COMPRESSED_RGBA_ASTC_10x6_KHR 0x93b9
  5529. #define GL_COMPRESSED_RGBA_ASTC_10x8_KHR 0x93ba
  5530. #define GL_COMPRESSED_RGBA_ASTC_12x10_KHR 0x93bc
  5531. #define GL_COMPRESSED_RGBA_ASTC_12x12_KHR 0x93bd
  5532. #define GL_COMPRESSED_RGBA_ASTC_4x4_KHR 0x93b0
  5533. #define GL_COMPRESSED_RGBA_ASTC_5x4_KHR 0x93b1
  5534. #define GL_COMPRESSED_RGBA_ASTC_5x5_KHR 0x93b2
  5535. #define GL_COMPRESSED_RGBA_ASTC_6x5_KHR 0x93b3
  5536. #define GL_COMPRESSED_RGBA_ASTC_6x6_KHR 0x93b4
  5537. #define GL_COMPRESSED_RGBA_ASTC_8x5_KHR 0x93b5
  5538. #define GL_COMPRESSED_RGBA_ASTC_8x6_KHR 0x93b6
  5539. #define GL_COMPRESSED_RGBA_ASTC_8x8_KHR 0x93b7
  5540. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR 0x93db
  5541. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR 0x93d8
  5542. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR 0x93d9
  5543. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR 0x93da
  5544. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR 0x93dc
  5545. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR 0x93dd
  5546. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR 0x93d0
  5547. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR 0x93d1
  5548. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR 0x93d2
  5549. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR 0x93d3
  5550. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR 0x93d4
  5551. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR 0x93d5
  5552. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR 0x93d6
  5553. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR 0x93d7
  5554. #endif
  5555. #if defined(GLPLATFORM_ENABLE_GL_KHR_texture_compression_astc_ldr)
  5556. extern bool GLPLATFORM_GL_KHR_texture_compression_astc_ldr;
  5557. #define GL_COMPRESSED_RGBA_ASTC_10x10_KHR 0x93bb
  5558. #define GL_COMPRESSED_RGBA_ASTC_10x5_KHR 0x93b8
  5559. #define GL_COMPRESSED_RGBA_ASTC_10x6_KHR 0x93b9
  5560. #define GL_COMPRESSED_RGBA_ASTC_10x8_KHR 0x93ba
  5561. #define GL_COMPRESSED_RGBA_ASTC_12x10_KHR 0x93bc
  5562. #define GL_COMPRESSED_RGBA_ASTC_12x12_KHR 0x93bd
  5563. #define GL_COMPRESSED_RGBA_ASTC_4x4_KHR 0x93b0
  5564. #define GL_COMPRESSED_RGBA_ASTC_5x4_KHR 0x93b1
  5565. #define GL_COMPRESSED_RGBA_ASTC_5x5_KHR 0x93b2
  5566. #define GL_COMPRESSED_RGBA_ASTC_6x5_KHR 0x93b3
  5567. #define GL_COMPRESSED_RGBA_ASTC_6x6_KHR 0x93b4
  5568. #define GL_COMPRESSED_RGBA_ASTC_8x5_KHR 0x93b5
  5569. #define GL_COMPRESSED_RGBA_ASTC_8x6_KHR 0x93b6
  5570. #define GL_COMPRESSED_RGBA_ASTC_8x8_KHR 0x93b7
  5571. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR 0x93db
  5572. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR 0x93d8
  5573. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR 0x93d9
  5574. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR 0x93da
  5575. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR 0x93dc
  5576. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR 0x93dd
  5577. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR 0x93d0
  5578. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR 0x93d1
  5579. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR 0x93d2
  5580. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR 0x93d3
  5581. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR 0x93d4
  5582. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR 0x93d5
  5583. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR 0x93d6
  5584. #define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR 0x93d7
  5585. #endif
  5586. bool glplatform_glcore_init(int maj, int min);
  5587. #ifdef __cplusplus
  5588. }
  5589. #endif
  5590. #endif