macosx_qgl.h 168 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096
  1. /*
  2. ===========================================================================
  3. Copyright (C) 1999-2005 Id Software, Inc.
  4. This file is part of Quake III Arena source code.
  5. Quake III Arena source code is free software; you can redistribute it
  6. and/or modify it under the terms of the GNU General Public License as
  7. published by the Free Software Foundation; either version 2 of the License,
  8. or (at your option) any later version.
  9. Quake III Arena source code is distributed in the hope that it will be
  10. useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with Foobar; if not, write to the Free Software
  15. Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  16. ===========================================================================
  17. */
  18. /**** This file is autogenerated. Run GenerateQGL.pl to update it ****/
  19. #ifdef QGL_LOG_GL_CALLS
  20. extern unsigned int QGLLogGLCalls;
  21. extern FILE *QGLDebugFile(void);
  22. #endif
  23. extern void QGLCheckError(const char *message);
  24. extern unsigned int QGLBeginStarted;
  25. // This has to be done to avoid infinite recursion between our glGetError wrapper and QGLCheckError()
  26. static inline GLenum _glGetError(void) {
  27. return glGetError();
  28. }
  29. // void glAccum (GLenum op, GLfloat value);
  30. static inline void qglAccum(GLenum op, GLfloat value)
  31. {
  32. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  33. if (QGLLogGLCalls)
  34. fprintf(QGLDebugFile(), "glAccum(op=%lu, value=%f)\n", op, value);
  35. #endif
  36. glAccum(op, value);
  37. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  38. if (!QGLBeginStarted)
  39. QGLCheckError("glAccum");
  40. #endif
  41. }
  42. // void glAlphaFunc (GLenum func, GLclampf ref);
  43. static inline void qglAlphaFunc(GLenum func, GLclampf ref)
  44. {
  45. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  46. if (QGLLogGLCalls)
  47. fprintf(QGLDebugFile(), "glAlphaFunc(func=%lu, ref=%f)\n", func, ref);
  48. #endif
  49. glAlphaFunc(func, ref);
  50. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  51. if (!QGLBeginStarted)
  52. QGLCheckError("glAlphaFunc");
  53. #endif
  54. }
  55. // GLboolean glAreTexturesResident (GLsizei n, const GLuint *textures, GLboolean *residences);
  56. static inline GLboolean qglAreTexturesResident(GLsizei n, const GLuint *textures, GLboolean *residences)
  57. {
  58. GLboolean returnValue;
  59. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  60. if (QGLLogGLCalls)
  61. fprintf(QGLDebugFile(), "glAreTexturesResident(n=%ld, textures=%p, residences=%p)\n", n, textures, residences);
  62. #endif
  63. returnValue = glAreTexturesResident(n, textures, residences);
  64. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  65. if (!QGLBeginStarted)
  66. QGLCheckError("glAreTexturesResident");
  67. #endif
  68. return returnValue;
  69. }
  70. // void glArrayElement (GLint i);
  71. static inline void qglArrayElement(GLint i)
  72. {
  73. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  74. if (QGLLogGLCalls)
  75. fprintf(QGLDebugFile(), "glArrayElement(i=%ld)\n", i);
  76. #endif
  77. glArrayElement(i);
  78. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  79. if (!QGLBeginStarted)
  80. QGLCheckError("glArrayElement");
  81. #endif
  82. }
  83. // void glBegin (GLenum mode);
  84. static inline void qglBegin(GLenum mode)
  85. {
  86. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  87. if (QGLLogGLCalls)
  88. fprintf(QGLDebugFile(), "glBegin(mode=%lu)\n", mode);
  89. #endif
  90. glBegin(mode);
  91. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  92. QGLBeginStarted++;
  93. if (!QGLBeginStarted)
  94. QGLCheckError("glBegin");
  95. #endif
  96. }
  97. // void glBindTexture (GLenum target, GLuint texture);
  98. static inline void qglBindTexture(GLenum target, GLuint texture)
  99. {
  100. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  101. if (QGLLogGLCalls)
  102. fprintf(QGLDebugFile(), "glBindTexture(target=%lu, texture=%lu)\n", target, texture);
  103. #endif
  104. glBindTexture(target, texture);
  105. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  106. if (!QGLBeginStarted)
  107. QGLCheckError("glBindTexture");
  108. #endif
  109. }
  110. // void glBitmap (GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte *bitmap);
  111. static inline void qglBitmap(GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte *bitmap)
  112. {
  113. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  114. if (QGLLogGLCalls)
  115. fprintf(QGLDebugFile(), "glBitmap(width=%ld, height=%ld, xorig=%f, yorig=%f, xmove=%f, ymove=%f, bitmap=%p)\n", width, height, xorig, yorig, xmove, ymove, bitmap);
  116. #endif
  117. glBitmap(width, height, xorig, yorig, xmove, ymove, bitmap);
  118. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  119. if (!QGLBeginStarted)
  120. QGLCheckError("glBitmap");
  121. #endif
  122. }
  123. // void glBlendFunc (GLenum sfactor, GLenum dfactor);
  124. static inline void qglBlendFunc(GLenum sfactor, GLenum dfactor)
  125. {
  126. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  127. if (QGLLogGLCalls)
  128. fprintf(QGLDebugFile(), "glBlendFunc(sfactor=%lu, dfactor=%lu)\n", sfactor, dfactor);
  129. #endif
  130. glBlendFunc(sfactor, dfactor);
  131. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  132. if (!QGLBeginStarted)
  133. QGLCheckError("glBlendFunc");
  134. #endif
  135. }
  136. // void glCallList (GLuint list);
  137. static inline void qglCallList(GLuint list)
  138. {
  139. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  140. if (QGLLogGLCalls)
  141. fprintf(QGLDebugFile(), "glCallList(list=%lu)\n", list);
  142. #endif
  143. glCallList(list);
  144. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  145. if (!QGLBeginStarted)
  146. QGLCheckError("glCallList");
  147. #endif
  148. }
  149. // void glCallLists (GLsizei n, GLenum type, const GLvoid *lists);
  150. static inline void qglCallLists(GLsizei n, GLenum type, const GLvoid *lists)
  151. {
  152. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  153. if (QGLLogGLCalls)
  154. fprintf(QGLDebugFile(), "glCallLists(n=%ld, type=%lu, lists=%p)\n", n, type, lists);
  155. #endif
  156. glCallLists(n, type, lists);
  157. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  158. if (!QGLBeginStarted)
  159. QGLCheckError("glCallLists");
  160. #endif
  161. }
  162. // void glClear (GLbitfield mask);
  163. static inline void qglClear(GLbitfield mask)
  164. {
  165. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  166. if (QGLLogGLCalls)
  167. fprintf(QGLDebugFile(), "glClear(mask=%lu)\n", mask);
  168. #endif
  169. glClear(mask);
  170. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  171. if (!QGLBeginStarted)
  172. QGLCheckError("glClear");
  173. #endif
  174. }
  175. // void glClearAccum (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
  176. static inline void qglClearAccum(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
  177. {
  178. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  179. if (QGLLogGLCalls)
  180. fprintf(QGLDebugFile(), "glClearAccum(red=%f, green=%f, blue=%f, alpha=%f)\n", red, green, blue, alpha);
  181. #endif
  182. glClearAccum(red, green, blue, alpha);
  183. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  184. if (!QGLBeginStarted)
  185. QGLCheckError("glClearAccum");
  186. #endif
  187. }
  188. // void glClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
  189. static inline void qglClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
  190. {
  191. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  192. if (QGLLogGLCalls)
  193. fprintf(QGLDebugFile(), "glClearColor(red=%f, green=%f, blue=%f, alpha=%f)\n", red, green, blue, alpha);
  194. #endif
  195. glClearColor(red, green, blue, alpha);
  196. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  197. if (!QGLBeginStarted)
  198. QGLCheckError("glClearColor");
  199. #endif
  200. }
  201. // void glClearDepth (GLclampd depth);
  202. static inline void qglClearDepth(GLclampd depth)
  203. {
  204. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  205. if (QGLLogGLCalls)
  206. fprintf(QGLDebugFile(), "glClearDepth(depth=%f)\n", depth);
  207. #endif
  208. glClearDepth(depth);
  209. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  210. if (!QGLBeginStarted)
  211. QGLCheckError("glClearDepth");
  212. #endif
  213. }
  214. // void glClearIndex (GLfloat c);
  215. static inline void qglClearIndex(GLfloat c)
  216. {
  217. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  218. if (QGLLogGLCalls)
  219. fprintf(QGLDebugFile(), "glClearIndex(c=%f)\n", c);
  220. #endif
  221. glClearIndex(c);
  222. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  223. if (!QGLBeginStarted)
  224. QGLCheckError("glClearIndex");
  225. #endif
  226. }
  227. // void glClearStencil (GLint s);
  228. static inline void qglClearStencil(GLint s)
  229. {
  230. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  231. if (QGLLogGLCalls)
  232. fprintf(QGLDebugFile(), "glClearStencil(s=%ld)\n", s);
  233. #endif
  234. glClearStencil(s);
  235. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  236. if (!QGLBeginStarted)
  237. QGLCheckError("glClearStencil");
  238. #endif
  239. }
  240. // void glClipPlane (GLenum plane, const GLdouble *equation);
  241. static inline void qglClipPlane(GLenum plane, const GLdouble *equation)
  242. {
  243. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  244. if (QGLLogGLCalls)
  245. fprintf(QGLDebugFile(), "glClipPlane(plane=%lu, equation=%p)\n", plane, equation);
  246. #endif
  247. glClipPlane(plane, equation);
  248. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  249. if (!QGLBeginStarted)
  250. QGLCheckError("glClipPlane");
  251. #endif
  252. }
  253. // void glColor3b (GLbyte red, GLbyte green, GLbyte blue);
  254. static inline void qglColor3b(GLbyte red, GLbyte green, GLbyte blue)
  255. {
  256. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  257. if (QGLLogGLCalls)
  258. fprintf(QGLDebugFile(), "glColor3b(red=%d, green=%d, blue=%d)\n", red, green, blue);
  259. #endif
  260. glColor3b(red, green, blue);
  261. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  262. if (!QGLBeginStarted)
  263. QGLCheckError("glColor3b");
  264. #endif
  265. }
  266. // void glColor3bv (const GLbyte *v);
  267. static inline void qglColor3bv(const GLbyte *v)
  268. {
  269. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  270. if (QGLLogGLCalls)
  271. fprintf(QGLDebugFile(), "glColor3bv(v=%p)\n", v);
  272. #endif
  273. glColor3bv(v);
  274. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  275. if (!QGLBeginStarted)
  276. QGLCheckError("glColor3bv");
  277. #endif
  278. }
  279. // void glColor3d (GLdouble red, GLdouble green, GLdouble blue);
  280. static inline void qglColor3d(GLdouble red, GLdouble green, GLdouble blue)
  281. {
  282. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  283. if (QGLLogGLCalls)
  284. fprintf(QGLDebugFile(), "glColor3d(red=%f, green=%f, blue=%f)\n", red, green, blue);
  285. #endif
  286. glColor3d(red, green, blue);
  287. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  288. if (!QGLBeginStarted)
  289. QGLCheckError("glColor3d");
  290. #endif
  291. }
  292. // void glColor3dv (const GLdouble *v);
  293. static inline void qglColor3dv(const GLdouble *v)
  294. {
  295. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  296. if (QGLLogGLCalls)
  297. fprintf(QGLDebugFile(), "glColor3dv(v=%p)\n", v);
  298. #endif
  299. glColor3dv(v);
  300. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  301. if (!QGLBeginStarted)
  302. QGLCheckError("glColor3dv");
  303. #endif
  304. }
  305. // void glColor3f (GLfloat red, GLfloat green, GLfloat blue);
  306. static inline void qglColor3f(GLfloat red, GLfloat green, GLfloat blue)
  307. {
  308. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  309. if (QGLLogGLCalls)
  310. fprintf(QGLDebugFile(), "glColor3f(red=%f, green=%f, blue=%f)\n", red, green, blue);
  311. #endif
  312. glColor3f(red, green, blue);
  313. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  314. if (!QGLBeginStarted)
  315. QGLCheckError("glColor3f");
  316. #endif
  317. }
  318. // void glColor3fv (const GLfloat *v);
  319. static inline void qglColor3fv(const GLfloat *v)
  320. {
  321. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  322. if (QGLLogGLCalls)
  323. fprintf(QGLDebugFile(), "glColor3fv(v=%p)\n", v);
  324. #endif
  325. glColor3fv(v);
  326. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  327. if (!QGLBeginStarted)
  328. QGLCheckError("glColor3fv");
  329. #endif
  330. }
  331. // void glColor3i (GLint red, GLint green, GLint blue);
  332. static inline void qglColor3i(GLint red, GLint green, GLint blue)
  333. {
  334. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  335. if (QGLLogGLCalls)
  336. fprintf(QGLDebugFile(), "glColor3i(red=%ld, green=%ld, blue=%ld)\n", red, green, blue);
  337. #endif
  338. glColor3i(red, green, blue);
  339. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  340. if (!QGLBeginStarted)
  341. QGLCheckError("glColor3i");
  342. #endif
  343. }
  344. // void glColor3iv (const GLint *v);
  345. static inline void qglColor3iv(const GLint *v)
  346. {
  347. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  348. if (QGLLogGLCalls)
  349. fprintf(QGLDebugFile(), "glColor3iv(v=%p)\n", v);
  350. #endif
  351. glColor3iv(v);
  352. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  353. if (!QGLBeginStarted)
  354. QGLCheckError("glColor3iv");
  355. #endif
  356. }
  357. // void glColor3s (GLshort red, GLshort green, GLshort blue);
  358. static inline void qglColor3s(GLshort red, GLshort green, GLshort blue)
  359. {
  360. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  361. if (QGLLogGLCalls)
  362. fprintf(QGLDebugFile(), "glColor3s(red=%d, green=%d, blue=%d)\n", red, green, blue);
  363. #endif
  364. glColor3s(red, green, blue);
  365. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  366. if (!QGLBeginStarted)
  367. QGLCheckError("glColor3s");
  368. #endif
  369. }
  370. // void glColor3sv (const GLshort *v);
  371. static inline void qglColor3sv(const GLshort *v)
  372. {
  373. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  374. if (QGLLogGLCalls)
  375. fprintf(QGLDebugFile(), "glColor3sv(v=%p)\n", v);
  376. #endif
  377. glColor3sv(v);
  378. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  379. if (!QGLBeginStarted)
  380. QGLCheckError("glColor3sv");
  381. #endif
  382. }
  383. // void glColor3ub (GLubyte red, GLubyte green, GLubyte blue);
  384. static inline void qglColor3ub(GLubyte red, GLubyte green, GLubyte blue)
  385. {
  386. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  387. if (QGLLogGLCalls)
  388. fprintf(QGLDebugFile(), "glColor3ub(red=%u, green=%u, blue=%u)\n", red, green, blue);
  389. #endif
  390. glColor3ub(red, green, blue);
  391. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  392. if (!QGLBeginStarted)
  393. QGLCheckError("glColor3ub");
  394. #endif
  395. }
  396. // void glColor3ubv (const GLubyte *v);
  397. static inline void qglColor3ubv(const GLubyte *v)
  398. {
  399. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  400. if (QGLLogGLCalls)
  401. fprintf(QGLDebugFile(), "glColor3ubv(v=%p)\n", v);
  402. #endif
  403. glColor3ubv(v);
  404. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  405. if (!QGLBeginStarted)
  406. QGLCheckError("glColor3ubv");
  407. #endif
  408. }
  409. // void glColor3ui (GLuint red, GLuint green, GLuint blue);
  410. static inline void qglColor3ui(GLuint red, GLuint green, GLuint blue)
  411. {
  412. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  413. if (QGLLogGLCalls)
  414. fprintf(QGLDebugFile(), "glColor3ui(red=%lu, green=%lu, blue=%lu)\n", red, green, blue);
  415. #endif
  416. glColor3ui(red, green, blue);
  417. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  418. if (!QGLBeginStarted)
  419. QGLCheckError("glColor3ui");
  420. #endif
  421. }
  422. // void glColor3uiv (const GLuint *v);
  423. static inline void qglColor3uiv(const GLuint *v)
  424. {
  425. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  426. if (QGLLogGLCalls)
  427. fprintf(QGLDebugFile(), "glColor3uiv(v=%p)\n", v);
  428. #endif
  429. glColor3uiv(v);
  430. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  431. if (!QGLBeginStarted)
  432. QGLCheckError("glColor3uiv");
  433. #endif
  434. }
  435. // void glColor3us (GLushort red, GLushort green, GLushort blue);
  436. static inline void qglColor3us(GLushort red, GLushort green, GLushort blue)
  437. {
  438. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  439. if (QGLLogGLCalls)
  440. fprintf(QGLDebugFile(), "glColor3us(red=%u, green=%u, blue=%u)\n", red, green, blue);
  441. #endif
  442. glColor3us(red, green, blue);
  443. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  444. if (!QGLBeginStarted)
  445. QGLCheckError("glColor3us");
  446. #endif
  447. }
  448. // void glColor3usv (const GLushort *v);
  449. static inline void qglColor3usv(const GLushort *v)
  450. {
  451. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  452. if (QGLLogGLCalls)
  453. fprintf(QGLDebugFile(), "glColor3usv(v=%p)\n", v);
  454. #endif
  455. glColor3usv(v);
  456. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  457. if (!QGLBeginStarted)
  458. QGLCheckError("glColor3usv");
  459. #endif
  460. }
  461. // void glColor4b (GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha);
  462. static inline void qglColor4b(GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha)
  463. {
  464. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  465. if (QGLLogGLCalls)
  466. fprintf(QGLDebugFile(), "glColor4b(red=%d, green=%d, blue=%d, alpha=%d)\n", red, green, blue, alpha);
  467. #endif
  468. glColor4b(red, green, blue, alpha);
  469. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  470. if (!QGLBeginStarted)
  471. QGLCheckError("glColor4b");
  472. #endif
  473. }
  474. // void glColor4bv (const GLbyte *v);
  475. static inline void qglColor4bv(const GLbyte *v)
  476. {
  477. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  478. if (QGLLogGLCalls)
  479. fprintf(QGLDebugFile(), "glColor4bv(v=%p)\n", v);
  480. #endif
  481. glColor4bv(v);
  482. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  483. if (!QGLBeginStarted)
  484. QGLCheckError("glColor4bv");
  485. #endif
  486. }
  487. // void glColor4d (GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha);
  488. static inline void qglColor4d(GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha)
  489. {
  490. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  491. if (QGLLogGLCalls)
  492. fprintf(QGLDebugFile(), "glColor4d(red=%f, green=%f, blue=%f, alpha=%f)\n", red, green, blue, alpha);
  493. #endif
  494. glColor4d(red, green, blue, alpha);
  495. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  496. if (!QGLBeginStarted)
  497. QGLCheckError("glColor4d");
  498. #endif
  499. }
  500. // void glColor4dv (const GLdouble *v);
  501. static inline void qglColor4dv(const GLdouble *v)
  502. {
  503. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  504. if (QGLLogGLCalls)
  505. fprintf(QGLDebugFile(), "glColor4dv(v=%p)\n", v);
  506. #endif
  507. glColor4dv(v);
  508. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  509. if (!QGLBeginStarted)
  510. QGLCheckError("glColor4dv");
  511. #endif
  512. }
  513. // void glColor4f (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
  514. static inline void qglColor4f(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
  515. {
  516. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  517. if (QGLLogGLCalls)
  518. fprintf(QGLDebugFile(), "glColor4f(red=%f, green=%f, blue=%f, alpha=%f)\n", red, green, blue, alpha);
  519. #endif
  520. glColor4f(red, green, blue, alpha);
  521. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  522. if (!QGLBeginStarted)
  523. QGLCheckError("glColor4f");
  524. #endif
  525. }
  526. // void glColor4fv (const GLfloat *v);
  527. static inline void qglColor4fv(const GLfloat *v)
  528. {
  529. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  530. if (QGLLogGLCalls)
  531. fprintf(QGLDebugFile(), "glColor4fv(v=%p)\n", v);
  532. #endif
  533. glColor4fv(v);
  534. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  535. if (!QGLBeginStarted)
  536. QGLCheckError("glColor4fv");
  537. #endif
  538. }
  539. // void glColor4i (GLint red, GLint green, GLint blue, GLint alpha);
  540. static inline void qglColor4i(GLint red, GLint green, GLint blue, GLint alpha)
  541. {
  542. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  543. if (QGLLogGLCalls)
  544. fprintf(QGLDebugFile(), "glColor4i(red=%ld, green=%ld, blue=%ld, alpha=%ld)\n", red, green, blue, alpha);
  545. #endif
  546. glColor4i(red, green, blue, alpha);
  547. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  548. if (!QGLBeginStarted)
  549. QGLCheckError("glColor4i");
  550. #endif
  551. }
  552. // void glColor4iv (const GLint *v);
  553. static inline void qglColor4iv(const GLint *v)
  554. {
  555. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  556. if (QGLLogGLCalls)
  557. fprintf(QGLDebugFile(), "glColor4iv(v=%p)\n", v);
  558. #endif
  559. glColor4iv(v);
  560. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  561. if (!QGLBeginStarted)
  562. QGLCheckError("glColor4iv");
  563. #endif
  564. }
  565. // void glColor4s (GLshort red, GLshort green, GLshort blue, GLshort alpha);
  566. static inline void qglColor4s(GLshort red, GLshort green, GLshort blue, GLshort alpha)
  567. {
  568. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  569. if (QGLLogGLCalls)
  570. fprintf(QGLDebugFile(), "glColor4s(red=%d, green=%d, blue=%d, alpha=%d)\n", red, green, blue, alpha);
  571. #endif
  572. glColor4s(red, green, blue, alpha);
  573. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  574. if (!QGLBeginStarted)
  575. QGLCheckError("glColor4s");
  576. #endif
  577. }
  578. // void glColor4sv (const GLshort *v);
  579. static inline void qglColor4sv(const GLshort *v)
  580. {
  581. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  582. if (QGLLogGLCalls)
  583. fprintf(QGLDebugFile(), "glColor4sv(v=%p)\n", v);
  584. #endif
  585. glColor4sv(v);
  586. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  587. if (!QGLBeginStarted)
  588. QGLCheckError("glColor4sv");
  589. #endif
  590. }
  591. // void glColor4ub (GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha);
  592. static inline void qglColor4ub(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha)
  593. {
  594. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  595. if (QGLLogGLCalls)
  596. fprintf(QGLDebugFile(), "glColor4ub(red=%u, green=%u, blue=%u, alpha=%u)\n", red, green, blue, alpha);
  597. #endif
  598. glColor4ub(red, green, blue, alpha);
  599. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  600. if (!QGLBeginStarted)
  601. QGLCheckError("glColor4ub");
  602. #endif
  603. }
  604. // void glColor4ubv (const GLubyte *v);
  605. static inline void qglColor4ubv(const GLubyte *v)
  606. {
  607. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  608. if (QGLLogGLCalls)
  609. fprintf(QGLDebugFile(), "glColor4ubv(v=%p)\n", v);
  610. #endif
  611. glColor4ubv(v);
  612. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  613. if (!QGLBeginStarted)
  614. QGLCheckError("glColor4ubv");
  615. #endif
  616. }
  617. // void glColor4ui (GLuint red, GLuint green, GLuint blue, GLuint alpha);
  618. static inline void qglColor4ui(GLuint red, GLuint green, GLuint blue, GLuint alpha)
  619. {
  620. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  621. if (QGLLogGLCalls)
  622. fprintf(QGLDebugFile(), "glColor4ui(red=%lu, green=%lu, blue=%lu, alpha=%lu)\n", red, green, blue, alpha);
  623. #endif
  624. glColor4ui(red, green, blue, alpha);
  625. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  626. if (!QGLBeginStarted)
  627. QGLCheckError("glColor4ui");
  628. #endif
  629. }
  630. // void glColor4uiv (const GLuint *v);
  631. static inline void qglColor4uiv(const GLuint *v)
  632. {
  633. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  634. if (QGLLogGLCalls)
  635. fprintf(QGLDebugFile(), "glColor4uiv(v=%p)\n", v);
  636. #endif
  637. glColor4uiv(v);
  638. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  639. if (!QGLBeginStarted)
  640. QGLCheckError("glColor4uiv");
  641. #endif
  642. }
  643. // void glColor4us (GLushort red, GLushort green, GLushort blue, GLushort alpha);
  644. static inline void qglColor4us(GLushort red, GLushort green, GLushort blue, GLushort alpha)
  645. {
  646. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  647. if (QGLLogGLCalls)
  648. fprintf(QGLDebugFile(), "glColor4us(red=%u, green=%u, blue=%u, alpha=%u)\n", red, green, blue, alpha);
  649. #endif
  650. glColor4us(red, green, blue, alpha);
  651. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  652. if (!QGLBeginStarted)
  653. QGLCheckError("glColor4us");
  654. #endif
  655. }
  656. // void glColor4usv (const GLushort *v);
  657. static inline void qglColor4usv(const GLushort *v)
  658. {
  659. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  660. if (QGLLogGLCalls)
  661. fprintf(QGLDebugFile(), "glColor4usv(v=%p)\n", v);
  662. #endif
  663. glColor4usv(v);
  664. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  665. if (!QGLBeginStarted)
  666. QGLCheckError("glColor4usv");
  667. #endif
  668. }
  669. // void glColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
  670. static inline void qglColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
  671. {
  672. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  673. if (QGLLogGLCalls)
  674. fprintf(QGLDebugFile(), "glColorMask(red=%u, green=%u, blue=%u, alpha=%u)\n", red, green, blue, alpha);
  675. #endif
  676. glColorMask(red, green, blue, alpha);
  677. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  678. if (!QGLBeginStarted)
  679. QGLCheckError("glColorMask");
  680. #endif
  681. }
  682. // void glColorMaterial (GLenum face, GLenum mode);
  683. static inline void qglColorMaterial(GLenum face, GLenum mode)
  684. {
  685. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  686. if (QGLLogGLCalls)
  687. fprintf(QGLDebugFile(), "glColorMaterial(face=%lu, mode=%lu)\n", face, mode);
  688. #endif
  689. glColorMaterial(face, mode);
  690. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  691. if (!QGLBeginStarted)
  692. QGLCheckError("glColorMaterial");
  693. #endif
  694. }
  695. // void glColorPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
  696. static inline void qglColorPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)
  697. {
  698. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  699. if (QGLLogGLCalls)
  700. fprintf(QGLDebugFile(), "glColorPointer(size=%ld, type=%lu, stride=%ld, pointer=%p)\n", size, type, stride, pointer);
  701. #endif
  702. glColorPointer(size, type, stride, pointer);
  703. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  704. if (!QGLBeginStarted)
  705. QGLCheckError("glColorPointer");
  706. #endif
  707. }
  708. // void glCopyPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum type);
  709. static inline void qglCopyPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum type)
  710. {
  711. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  712. if (QGLLogGLCalls)
  713. fprintf(QGLDebugFile(), "glCopyPixels(x=%ld, y=%ld, width=%ld, height=%ld, type=%lu)\n", x, y, width, height, type);
  714. #endif
  715. glCopyPixels(x, y, width, height, type);
  716. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  717. if (!QGLBeginStarted)
  718. QGLCheckError("glCopyPixels");
  719. #endif
  720. }
  721. // void glCopyTexImage1D (GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLint border);
  722. static inline void qglCopyTexImage1D(GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLint border)
  723. {
  724. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  725. if (QGLLogGLCalls)
  726. fprintf(QGLDebugFile(), "glCopyTexImage1D(target=%lu, level=%ld, internalFormat=%lu, x=%ld, y=%ld, width=%ld, border=%ld)\n", target, level, internalFormat, x, y, width, border);
  727. #endif
  728. glCopyTexImage1D(target, level, internalFormat, x, y, width, border);
  729. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  730. if (!QGLBeginStarted)
  731. QGLCheckError("glCopyTexImage1D");
  732. #endif
  733. }
  734. // void glCopyTexImage2D (GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
  735. static inline void qglCopyTexImage2D(GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border)
  736. {
  737. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  738. if (QGLLogGLCalls)
  739. fprintf(QGLDebugFile(), "glCopyTexImage2D(target=%lu, level=%ld, internalFormat=%lu, x=%ld, y=%ld, width=%ld, height=%ld, border=%ld)\n", target, level, internalFormat, x, y, width, height, border);
  740. #endif
  741. glCopyTexImage2D(target, level, internalFormat, x, y, width, height, border);
  742. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  743. if (!QGLBeginStarted)
  744. QGLCheckError("glCopyTexImage2D");
  745. #endif
  746. }
  747. // void glCopyTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
  748. static inline void qglCopyTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width)
  749. {
  750. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  751. if (QGLLogGLCalls)
  752. fprintf(QGLDebugFile(), "glCopyTexSubImage1D(target=%lu, level=%ld, xoffset=%ld, x=%ld, y=%ld, width=%ld)\n", target, level, xoffset, x, y, width);
  753. #endif
  754. glCopyTexSubImage1D(target, level, xoffset, x, y, width);
  755. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  756. if (!QGLBeginStarted)
  757. QGLCheckError("glCopyTexSubImage1D");
  758. #endif
  759. }
  760. // void glCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
  761. static inline void qglCopyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height)
  762. {
  763. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  764. if (QGLLogGLCalls)
  765. fprintf(QGLDebugFile(), "glCopyTexSubImage2D(target=%lu, level=%ld, xoffset=%ld, yoffset=%ld, x=%ld, y=%ld, width=%ld, height=%ld)\n", target, level, xoffset, yoffset, x, y, width, height);
  766. #endif
  767. glCopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height);
  768. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  769. if (!QGLBeginStarted)
  770. QGLCheckError("glCopyTexSubImage2D");
  771. #endif
  772. }
  773. // void glCullFace (GLenum mode);
  774. static inline void qglCullFace(GLenum mode)
  775. {
  776. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  777. if (QGLLogGLCalls)
  778. fprintf(QGLDebugFile(), "glCullFace(mode=%lu)\n", mode);
  779. #endif
  780. glCullFace(mode);
  781. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  782. if (!QGLBeginStarted)
  783. QGLCheckError("glCullFace");
  784. #endif
  785. }
  786. // void glDeleteLists (GLuint list, GLsizei range);
  787. static inline void qglDeleteLists(GLuint list, GLsizei range)
  788. {
  789. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  790. if (QGLLogGLCalls)
  791. fprintf(QGLDebugFile(), "glDeleteLists(list=%lu, range=%ld)\n", list, range);
  792. #endif
  793. glDeleteLists(list, range);
  794. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  795. if (!QGLBeginStarted)
  796. QGLCheckError("glDeleteLists");
  797. #endif
  798. }
  799. // void glDeleteTextures (GLsizei n, const GLuint *textures);
  800. static inline void qglDeleteTextures(GLsizei n, const GLuint *textures)
  801. {
  802. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  803. if (QGLLogGLCalls)
  804. fprintf(QGLDebugFile(), "glDeleteTextures(n=%ld, textures=%p)\n", n, textures);
  805. #endif
  806. glDeleteTextures(n, textures);
  807. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  808. if (!QGLBeginStarted)
  809. QGLCheckError("glDeleteTextures");
  810. #endif
  811. }
  812. // void glDepthFunc (GLenum func);
  813. static inline void qglDepthFunc(GLenum func)
  814. {
  815. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  816. if (QGLLogGLCalls)
  817. fprintf(QGLDebugFile(), "glDepthFunc(func=%lu)\n", func);
  818. #endif
  819. glDepthFunc(func);
  820. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  821. if (!QGLBeginStarted)
  822. QGLCheckError("glDepthFunc");
  823. #endif
  824. }
  825. // void glDepthMask (GLboolean flag);
  826. static inline void qglDepthMask(GLboolean flag)
  827. {
  828. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  829. if (QGLLogGLCalls)
  830. fprintf(QGLDebugFile(), "glDepthMask(flag=%u)\n", flag);
  831. #endif
  832. glDepthMask(flag);
  833. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  834. if (!QGLBeginStarted)
  835. QGLCheckError("glDepthMask");
  836. #endif
  837. }
  838. // void glDepthRange (GLclampd zNear, GLclampd zFar);
  839. static inline void qglDepthRange(GLclampd zNear, GLclampd zFar)
  840. {
  841. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  842. if (QGLLogGLCalls)
  843. fprintf(QGLDebugFile(), "glDepthRange(zNear=%f, zFar=%f)\n", zNear, zFar);
  844. #endif
  845. glDepthRange(zNear, zFar);
  846. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  847. if (!QGLBeginStarted)
  848. QGLCheckError("glDepthRange");
  849. #endif
  850. }
  851. // void glDisable (GLenum cap);
  852. static inline void qglDisable(GLenum cap)
  853. {
  854. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  855. if (QGLLogGLCalls)
  856. fprintf(QGLDebugFile(), "glDisable(cap=%lu)\n", cap);
  857. #endif
  858. glDisable(cap);
  859. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  860. if (!QGLBeginStarted)
  861. QGLCheckError("glDisable");
  862. #endif
  863. }
  864. // void glDisableClientState (GLenum array);
  865. static inline void qglDisableClientState(GLenum array)
  866. {
  867. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  868. if (QGLLogGLCalls)
  869. fprintf(QGLDebugFile(), "glDisableClientState(array=%lu)\n", array);
  870. #endif
  871. glDisableClientState(array);
  872. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  873. if (!QGLBeginStarted)
  874. QGLCheckError("glDisableClientState");
  875. #endif
  876. }
  877. // void glDrawArrays (GLenum mode, GLint first, GLsizei count);
  878. static inline void qglDrawArrays(GLenum mode, GLint first, GLsizei count)
  879. {
  880. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  881. if (QGLLogGLCalls)
  882. fprintf(QGLDebugFile(), "glDrawArrays(mode=%lu, first=%ld, count=%ld)\n", mode, first, count);
  883. #endif
  884. glDrawArrays(mode, first, count);
  885. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  886. if (!QGLBeginStarted)
  887. QGLCheckError("glDrawArrays");
  888. #endif
  889. }
  890. // void glDrawBuffer (GLenum mode);
  891. static inline void qglDrawBuffer(GLenum mode)
  892. {
  893. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  894. if (QGLLogGLCalls)
  895. fprintf(QGLDebugFile(), "glDrawBuffer(mode=%lu)\n", mode);
  896. #endif
  897. glDrawBuffer(mode);
  898. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  899. if (!QGLBeginStarted)
  900. QGLCheckError("glDrawBuffer");
  901. #endif
  902. }
  903. // void glDrawElements (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices);
  904. static inline void qglDrawElements(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices)
  905. {
  906. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  907. if (QGLLogGLCalls)
  908. fprintf(QGLDebugFile(), "glDrawElements(mode=%lu, count=%ld, type=%lu, indices=%p)\n", mode, count, type, indices);
  909. #endif
  910. glDrawElements(mode, count, type, indices);
  911. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  912. if (!QGLBeginStarted)
  913. QGLCheckError("glDrawElements");
  914. #endif
  915. }
  916. // void glDrawPixels (GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
  917. static inline void qglDrawPixels(GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels)
  918. {
  919. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  920. if (QGLLogGLCalls)
  921. fprintf(QGLDebugFile(), "glDrawPixels(width=%ld, height=%ld, format=%lu, type=%lu, pixels=%p)\n", width, height, format, type, pixels);
  922. #endif
  923. glDrawPixels(width, height, format, type, pixels);
  924. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  925. if (!QGLBeginStarted)
  926. QGLCheckError("glDrawPixels");
  927. #endif
  928. }
  929. // void glEdgeFlag (GLboolean flag);
  930. static inline void qglEdgeFlag(GLboolean flag)
  931. {
  932. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  933. if (QGLLogGLCalls)
  934. fprintf(QGLDebugFile(), "glEdgeFlag(flag=%u)\n", flag);
  935. #endif
  936. glEdgeFlag(flag);
  937. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  938. if (!QGLBeginStarted)
  939. QGLCheckError("glEdgeFlag");
  940. #endif
  941. }
  942. // void glEdgeFlagPointer (GLsizei stride, const GLvoid *pointer);
  943. static inline void qglEdgeFlagPointer(GLsizei stride, const GLvoid *pointer)
  944. {
  945. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  946. if (QGLLogGLCalls)
  947. fprintf(QGLDebugFile(), "glEdgeFlagPointer(stride=%ld, pointer=%p)\n", stride, pointer);
  948. #endif
  949. glEdgeFlagPointer(stride, pointer);
  950. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  951. if (!QGLBeginStarted)
  952. QGLCheckError("glEdgeFlagPointer");
  953. #endif
  954. }
  955. // void glEdgeFlagv (const GLboolean *flag);
  956. static inline void qglEdgeFlagv(const GLboolean *flag)
  957. {
  958. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  959. if (QGLLogGLCalls)
  960. fprintf(QGLDebugFile(), "glEdgeFlagv(flag=%p)\n", flag);
  961. #endif
  962. glEdgeFlagv(flag);
  963. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  964. if (!QGLBeginStarted)
  965. QGLCheckError("glEdgeFlagv");
  966. #endif
  967. }
  968. // void glEnable (GLenum cap);
  969. static inline void qglEnable(GLenum cap)
  970. {
  971. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  972. if (QGLLogGLCalls)
  973. fprintf(QGLDebugFile(), "glEnable(cap=%lu)\n", cap);
  974. #endif
  975. glEnable(cap);
  976. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  977. if (!QGLBeginStarted)
  978. QGLCheckError("glEnable");
  979. #endif
  980. }
  981. // void glEnableClientState (GLenum array);
  982. static inline void qglEnableClientState(GLenum array)
  983. {
  984. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  985. if (QGLLogGLCalls)
  986. fprintf(QGLDebugFile(), "glEnableClientState(array=%lu)\n", array);
  987. #endif
  988. glEnableClientState(array);
  989. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  990. if (!QGLBeginStarted)
  991. QGLCheckError("glEnableClientState");
  992. #endif
  993. }
  994. // void glEnd (void);
  995. static inline void qglEnd(void)
  996. {
  997. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  998. if (QGLLogGLCalls)
  999. fprintf(QGLDebugFile(), "glEnd(void)\n");
  1000. #endif
  1001. glEnd();
  1002. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1003. QGLBeginStarted--;
  1004. if (!QGLBeginStarted)
  1005. QGLCheckError("glEnd");
  1006. #endif
  1007. }
  1008. // void glEndList (void);
  1009. static inline void qglEndList(void)
  1010. {
  1011. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1012. if (QGLLogGLCalls)
  1013. fprintf(QGLDebugFile(), "glEndList(void)\n");
  1014. #endif
  1015. glEndList();
  1016. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1017. if (!QGLBeginStarted)
  1018. QGLCheckError("glEndList");
  1019. #endif
  1020. }
  1021. // void glEvalCoord1d (GLdouble u);
  1022. static inline void qglEvalCoord1d(GLdouble u)
  1023. {
  1024. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1025. if (QGLLogGLCalls)
  1026. fprintf(QGLDebugFile(), "glEvalCoord1d(u=%f)\n", u);
  1027. #endif
  1028. glEvalCoord1d(u);
  1029. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1030. if (!QGLBeginStarted)
  1031. QGLCheckError("glEvalCoord1d");
  1032. #endif
  1033. }
  1034. // void glEvalCoord1dv (const GLdouble *u);
  1035. static inline void qglEvalCoord1dv(const GLdouble *u)
  1036. {
  1037. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1038. if (QGLLogGLCalls)
  1039. fprintf(QGLDebugFile(), "glEvalCoord1dv(u=%p)\n", u);
  1040. #endif
  1041. glEvalCoord1dv(u);
  1042. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1043. if (!QGLBeginStarted)
  1044. QGLCheckError("glEvalCoord1dv");
  1045. #endif
  1046. }
  1047. // void glEvalCoord1f (GLfloat u);
  1048. static inline void qglEvalCoord1f(GLfloat u)
  1049. {
  1050. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1051. if (QGLLogGLCalls)
  1052. fprintf(QGLDebugFile(), "glEvalCoord1f(u=%f)\n", u);
  1053. #endif
  1054. glEvalCoord1f(u);
  1055. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1056. if (!QGLBeginStarted)
  1057. QGLCheckError("glEvalCoord1f");
  1058. #endif
  1059. }
  1060. // void glEvalCoord1fv (const GLfloat *u);
  1061. static inline void qglEvalCoord1fv(const GLfloat *u)
  1062. {
  1063. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1064. if (QGLLogGLCalls)
  1065. fprintf(QGLDebugFile(), "glEvalCoord1fv(u=%p)\n", u);
  1066. #endif
  1067. glEvalCoord1fv(u);
  1068. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1069. if (!QGLBeginStarted)
  1070. QGLCheckError("glEvalCoord1fv");
  1071. #endif
  1072. }
  1073. // void glEvalCoord2d (GLdouble u, GLdouble v);
  1074. static inline void qglEvalCoord2d(GLdouble u, GLdouble v)
  1075. {
  1076. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1077. if (QGLLogGLCalls)
  1078. fprintf(QGLDebugFile(), "glEvalCoord2d(u=%f, v=%f)\n", u, v);
  1079. #endif
  1080. glEvalCoord2d(u, v);
  1081. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1082. if (!QGLBeginStarted)
  1083. QGLCheckError("glEvalCoord2d");
  1084. #endif
  1085. }
  1086. // void glEvalCoord2dv (const GLdouble *u);
  1087. static inline void qglEvalCoord2dv(const GLdouble *u)
  1088. {
  1089. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1090. if (QGLLogGLCalls)
  1091. fprintf(QGLDebugFile(), "glEvalCoord2dv(u=%p)\n", u);
  1092. #endif
  1093. glEvalCoord2dv(u);
  1094. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1095. if (!QGLBeginStarted)
  1096. QGLCheckError("glEvalCoord2dv");
  1097. #endif
  1098. }
  1099. // void glEvalCoord2f (GLfloat u, GLfloat v);
  1100. static inline void qglEvalCoord2f(GLfloat u, GLfloat v)
  1101. {
  1102. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1103. if (QGLLogGLCalls)
  1104. fprintf(QGLDebugFile(), "glEvalCoord2f(u=%f, v=%f)\n", u, v);
  1105. #endif
  1106. glEvalCoord2f(u, v);
  1107. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1108. if (!QGLBeginStarted)
  1109. QGLCheckError("glEvalCoord2f");
  1110. #endif
  1111. }
  1112. // void glEvalCoord2fv (const GLfloat *u);
  1113. static inline void qglEvalCoord2fv(const GLfloat *u)
  1114. {
  1115. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1116. if (QGLLogGLCalls)
  1117. fprintf(QGLDebugFile(), "glEvalCoord2fv(u=%p)\n", u);
  1118. #endif
  1119. glEvalCoord2fv(u);
  1120. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1121. if (!QGLBeginStarted)
  1122. QGLCheckError("glEvalCoord2fv");
  1123. #endif
  1124. }
  1125. // void glEvalMesh1 (GLenum mode, GLint i1, GLint i2);
  1126. static inline void qglEvalMesh1(GLenum mode, GLint i1, GLint i2)
  1127. {
  1128. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1129. if (QGLLogGLCalls)
  1130. fprintf(QGLDebugFile(), "glEvalMesh1(mode=%lu, i1=%ld, i2=%ld)\n", mode, i1, i2);
  1131. #endif
  1132. glEvalMesh1(mode, i1, i2);
  1133. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1134. if (!QGLBeginStarted)
  1135. QGLCheckError("glEvalMesh1");
  1136. #endif
  1137. }
  1138. // void glEvalMesh2 (GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2);
  1139. static inline void qglEvalMesh2(GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2)
  1140. {
  1141. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1142. if (QGLLogGLCalls)
  1143. fprintf(QGLDebugFile(), "glEvalMesh2(mode=%lu, i1=%ld, i2=%ld, j1=%ld, j2=%ld)\n", mode, i1, i2, j1, j2);
  1144. #endif
  1145. glEvalMesh2(mode, i1, i2, j1, j2);
  1146. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1147. if (!QGLBeginStarted)
  1148. QGLCheckError("glEvalMesh2");
  1149. #endif
  1150. }
  1151. // void glEvalPoint1 (GLint i);
  1152. static inline void qglEvalPoint1(GLint i)
  1153. {
  1154. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1155. if (QGLLogGLCalls)
  1156. fprintf(QGLDebugFile(), "glEvalPoint1(i=%ld)\n", i);
  1157. #endif
  1158. glEvalPoint1(i);
  1159. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1160. if (!QGLBeginStarted)
  1161. QGLCheckError("glEvalPoint1");
  1162. #endif
  1163. }
  1164. // void glEvalPoint2 (GLint i, GLint j);
  1165. static inline void qglEvalPoint2(GLint i, GLint j)
  1166. {
  1167. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1168. if (QGLLogGLCalls)
  1169. fprintf(QGLDebugFile(), "glEvalPoint2(i=%ld, j=%ld)\n", i, j);
  1170. #endif
  1171. glEvalPoint2(i, j);
  1172. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1173. if (!QGLBeginStarted)
  1174. QGLCheckError("glEvalPoint2");
  1175. #endif
  1176. }
  1177. // void glFeedbackBuffer (GLsizei size, GLenum type, GLfloat *buffer);
  1178. static inline void qglFeedbackBuffer(GLsizei size, GLenum type, GLfloat *buffer)
  1179. {
  1180. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1181. if (QGLLogGLCalls)
  1182. fprintf(QGLDebugFile(), "glFeedbackBuffer(size=%ld, type=%lu, buffer=%p)\n", size, type, buffer);
  1183. #endif
  1184. glFeedbackBuffer(size, type, buffer);
  1185. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1186. if (!QGLBeginStarted)
  1187. QGLCheckError("glFeedbackBuffer");
  1188. #endif
  1189. }
  1190. // void glFinish (void);
  1191. static inline void qglFinish(void)
  1192. {
  1193. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1194. if (QGLLogGLCalls)
  1195. fprintf(QGLDebugFile(), "glFinish(void)\n");
  1196. #endif
  1197. glFinish();
  1198. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1199. if (!QGLBeginStarted)
  1200. QGLCheckError("glFinish");
  1201. #endif
  1202. }
  1203. // void glFlush (void);
  1204. static inline void qglFlush(void)
  1205. {
  1206. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1207. if (QGLLogGLCalls)
  1208. fprintf(QGLDebugFile(), "glFlush(void)\n");
  1209. #endif
  1210. glFlush();
  1211. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1212. if (!QGLBeginStarted)
  1213. QGLCheckError("glFlush");
  1214. #endif
  1215. }
  1216. // void glFogf (GLenum pname, GLfloat param);
  1217. static inline void qglFogf(GLenum pname, GLfloat param)
  1218. {
  1219. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1220. if (QGLLogGLCalls)
  1221. fprintf(QGLDebugFile(), "glFogf(pname=%lu, param=%f)\n", pname, param);
  1222. #endif
  1223. glFogf(pname, param);
  1224. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1225. if (!QGLBeginStarted)
  1226. QGLCheckError("glFogf");
  1227. #endif
  1228. }
  1229. // void glFogfv (GLenum pname, const GLfloat *params);
  1230. static inline void qglFogfv(GLenum pname, const GLfloat *params)
  1231. {
  1232. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1233. if (QGLLogGLCalls)
  1234. fprintf(QGLDebugFile(), "glFogfv(pname=%lu, params=%p)\n", pname, params);
  1235. #endif
  1236. glFogfv(pname, params);
  1237. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1238. if (!QGLBeginStarted)
  1239. QGLCheckError("glFogfv");
  1240. #endif
  1241. }
  1242. // void glFogi (GLenum pname, GLint param);
  1243. static inline void qglFogi(GLenum pname, GLint param)
  1244. {
  1245. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1246. if (QGLLogGLCalls)
  1247. fprintf(QGLDebugFile(), "glFogi(pname=%lu, param=%ld)\n", pname, param);
  1248. #endif
  1249. glFogi(pname, param);
  1250. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1251. if (!QGLBeginStarted)
  1252. QGLCheckError("glFogi");
  1253. #endif
  1254. }
  1255. // void glFogiv (GLenum pname, const GLint *params);
  1256. static inline void qglFogiv(GLenum pname, const GLint *params)
  1257. {
  1258. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1259. if (QGLLogGLCalls)
  1260. fprintf(QGLDebugFile(), "glFogiv(pname=%lu, params=%p)\n", pname, params);
  1261. #endif
  1262. glFogiv(pname, params);
  1263. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1264. if (!QGLBeginStarted)
  1265. QGLCheckError("glFogiv");
  1266. #endif
  1267. }
  1268. // void glFrontFace (GLenum mode);
  1269. static inline void qglFrontFace(GLenum mode)
  1270. {
  1271. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1272. if (QGLLogGLCalls)
  1273. fprintf(QGLDebugFile(), "glFrontFace(mode=%lu)\n", mode);
  1274. #endif
  1275. glFrontFace(mode);
  1276. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1277. if (!QGLBeginStarted)
  1278. QGLCheckError("glFrontFace");
  1279. #endif
  1280. }
  1281. // void glFrustum (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
  1282. static inline void qglFrustum(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar)
  1283. {
  1284. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1285. if (QGLLogGLCalls)
  1286. fprintf(QGLDebugFile(), "glFrustum(left=%f, right=%f, bottom=%f, top=%f, zNear=%f, zFar=%f)\n", left, right, bottom, top, zNear, zFar);
  1287. #endif
  1288. glFrustum(left, right, bottom, top, zNear, zFar);
  1289. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1290. if (!QGLBeginStarted)
  1291. QGLCheckError("glFrustum");
  1292. #endif
  1293. }
  1294. // GLuint glGenLists (GLsizei range);
  1295. static inline GLuint qglGenLists(GLsizei range)
  1296. {
  1297. GLuint returnValue;
  1298. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1299. if (QGLLogGLCalls)
  1300. fprintf(QGLDebugFile(), "glGenLists(range=%ld)\n", range);
  1301. #endif
  1302. returnValue = glGenLists(range);
  1303. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1304. if (!QGLBeginStarted)
  1305. QGLCheckError("glGenLists");
  1306. #endif
  1307. return returnValue;
  1308. }
  1309. // void glGenTextures (GLsizei n, GLuint *textures);
  1310. static inline void qglGenTextures(GLsizei n, GLuint *textures)
  1311. {
  1312. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1313. if (QGLLogGLCalls)
  1314. fprintf(QGLDebugFile(), "glGenTextures(n=%ld, textures=%p)\n", n, textures);
  1315. #endif
  1316. glGenTextures(n, textures);
  1317. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1318. if (!QGLBeginStarted)
  1319. QGLCheckError("glGenTextures");
  1320. #endif
  1321. }
  1322. // void glGetBooleanv (GLenum pname, GLboolean *params);
  1323. static inline void qglGetBooleanv(GLenum pname, GLboolean *params)
  1324. {
  1325. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1326. if (QGLLogGLCalls)
  1327. fprintf(QGLDebugFile(), "glGetBooleanv(pname=%lu, params=%p)\n", pname, params);
  1328. #endif
  1329. glGetBooleanv(pname, params);
  1330. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1331. if (!QGLBeginStarted)
  1332. QGLCheckError("glGetBooleanv");
  1333. #endif
  1334. }
  1335. // void glGetClipPlane (GLenum plane, GLdouble *equation);
  1336. static inline void qglGetClipPlane(GLenum plane, GLdouble *equation)
  1337. {
  1338. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1339. if (QGLLogGLCalls)
  1340. fprintf(QGLDebugFile(), "glGetClipPlane(plane=%lu, equation=%p)\n", plane, equation);
  1341. #endif
  1342. glGetClipPlane(plane, equation);
  1343. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1344. if (!QGLBeginStarted)
  1345. QGLCheckError("glGetClipPlane");
  1346. #endif
  1347. }
  1348. // void glGetDoublev (GLenum pname, GLdouble *params);
  1349. static inline void qglGetDoublev(GLenum pname, GLdouble *params)
  1350. {
  1351. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1352. if (QGLLogGLCalls)
  1353. fprintf(QGLDebugFile(), "glGetDoublev(pname=%lu, params=%p)\n", pname, params);
  1354. #endif
  1355. glGetDoublev(pname, params);
  1356. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1357. if (!QGLBeginStarted)
  1358. QGLCheckError("glGetDoublev");
  1359. #endif
  1360. }
  1361. // GLenum glGetError (void);
  1362. static inline GLenum qglGetError(void)
  1363. {
  1364. GLenum returnValue;
  1365. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1366. if (QGLLogGLCalls)
  1367. fprintf(QGLDebugFile(), "glGetError(void)\n");
  1368. #endif
  1369. returnValue = glGetError();
  1370. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1371. if (!QGLBeginStarted)
  1372. QGLCheckError("glGetError");
  1373. #endif
  1374. return returnValue;
  1375. }
  1376. // void glGetFloatv (GLenum pname, GLfloat *params);
  1377. static inline void qglGetFloatv(GLenum pname, GLfloat *params)
  1378. {
  1379. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1380. if (QGLLogGLCalls)
  1381. fprintf(QGLDebugFile(), "glGetFloatv(pname=%lu, params=%p)\n", pname, params);
  1382. #endif
  1383. glGetFloatv(pname, params);
  1384. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1385. if (!QGLBeginStarted)
  1386. QGLCheckError("glGetFloatv");
  1387. #endif
  1388. }
  1389. // void glGetIntegerv (GLenum pname, GLint *params);
  1390. static inline void qglGetIntegerv(GLenum pname, GLint *params)
  1391. {
  1392. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1393. if (QGLLogGLCalls)
  1394. fprintf(QGLDebugFile(), "glGetIntegerv(pname=%lu, params=%p)\n", pname, params);
  1395. #endif
  1396. glGetIntegerv(pname, params);
  1397. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1398. if (!QGLBeginStarted)
  1399. QGLCheckError("glGetIntegerv");
  1400. #endif
  1401. }
  1402. // void glGetLightfv (GLenum light, GLenum pname, GLfloat *params);
  1403. static inline void qglGetLightfv(GLenum light, GLenum pname, GLfloat *params)
  1404. {
  1405. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1406. if (QGLLogGLCalls)
  1407. fprintf(QGLDebugFile(), "glGetLightfv(light=%lu, pname=%lu, params=%p)\n", light, pname, params);
  1408. #endif
  1409. glGetLightfv(light, pname, params);
  1410. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1411. if (!QGLBeginStarted)
  1412. QGLCheckError("glGetLightfv");
  1413. #endif
  1414. }
  1415. // void glGetLightiv (GLenum light, GLenum pname, GLint *params);
  1416. static inline void qglGetLightiv(GLenum light, GLenum pname, GLint *params)
  1417. {
  1418. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1419. if (QGLLogGLCalls)
  1420. fprintf(QGLDebugFile(), "glGetLightiv(light=%lu, pname=%lu, params=%p)\n", light, pname, params);
  1421. #endif
  1422. glGetLightiv(light, pname, params);
  1423. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1424. if (!QGLBeginStarted)
  1425. QGLCheckError("glGetLightiv");
  1426. #endif
  1427. }
  1428. // void glGetMapdv (GLenum target, GLenum query, GLdouble *v);
  1429. static inline void qglGetMapdv(GLenum target, GLenum query, GLdouble *v)
  1430. {
  1431. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1432. if (QGLLogGLCalls)
  1433. fprintf(QGLDebugFile(), "glGetMapdv(target=%lu, query=%lu, v=%p)\n", target, query, v);
  1434. #endif
  1435. glGetMapdv(target, query, v);
  1436. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1437. if (!QGLBeginStarted)
  1438. QGLCheckError("glGetMapdv");
  1439. #endif
  1440. }
  1441. // void glGetMapfv (GLenum target, GLenum query, GLfloat *v);
  1442. static inline void qglGetMapfv(GLenum target, GLenum query, GLfloat *v)
  1443. {
  1444. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1445. if (QGLLogGLCalls)
  1446. fprintf(QGLDebugFile(), "glGetMapfv(target=%lu, query=%lu, v=%p)\n", target, query, v);
  1447. #endif
  1448. glGetMapfv(target, query, v);
  1449. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1450. if (!QGLBeginStarted)
  1451. QGLCheckError("glGetMapfv");
  1452. #endif
  1453. }
  1454. // void glGetMapiv (GLenum target, GLenum query, GLint *v);
  1455. static inline void qglGetMapiv(GLenum target, GLenum query, GLint *v)
  1456. {
  1457. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1458. if (QGLLogGLCalls)
  1459. fprintf(QGLDebugFile(), "glGetMapiv(target=%lu, query=%lu, v=%p)\n", target, query, v);
  1460. #endif
  1461. glGetMapiv(target, query, v);
  1462. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1463. if (!QGLBeginStarted)
  1464. QGLCheckError("glGetMapiv");
  1465. #endif
  1466. }
  1467. // void glGetMaterialfv (GLenum face, GLenum pname, GLfloat *params);
  1468. static inline void qglGetMaterialfv(GLenum face, GLenum pname, GLfloat *params)
  1469. {
  1470. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1471. if (QGLLogGLCalls)
  1472. fprintf(QGLDebugFile(), "glGetMaterialfv(face=%lu, pname=%lu, params=%p)\n", face, pname, params);
  1473. #endif
  1474. glGetMaterialfv(face, pname, params);
  1475. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1476. if (!QGLBeginStarted)
  1477. QGLCheckError("glGetMaterialfv");
  1478. #endif
  1479. }
  1480. // void glGetMaterialiv (GLenum face, GLenum pname, GLint *params);
  1481. static inline void qglGetMaterialiv(GLenum face, GLenum pname, GLint *params)
  1482. {
  1483. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1484. if (QGLLogGLCalls)
  1485. fprintf(QGLDebugFile(), "glGetMaterialiv(face=%lu, pname=%lu, params=%p)\n", face, pname, params);
  1486. #endif
  1487. glGetMaterialiv(face, pname, params);
  1488. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1489. if (!QGLBeginStarted)
  1490. QGLCheckError("glGetMaterialiv");
  1491. #endif
  1492. }
  1493. // void glGetPixelMapfv (GLenum map, GLfloat *values);
  1494. static inline void qglGetPixelMapfv(GLenum map, GLfloat *values)
  1495. {
  1496. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1497. if (QGLLogGLCalls)
  1498. fprintf(QGLDebugFile(), "glGetPixelMapfv(map=%lu, values=%p)\n", map, values);
  1499. #endif
  1500. glGetPixelMapfv(map, values);
  1501. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1502. if (!QGLBeginStarted)
  1503. QGLCheckError("glGetPixelMapfv");
  1504. #endif
  1505. }
  1506. // void glGetPixelMapuiv (GLenum map, GLuint *values);
  1507. static inline void qglGetPixelMapuiv(GLenum map, GLuint *values)
  1508. {
  1509. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1510. if (QGLLogGLCalls)
  1511. fprintf(QGLDebugFile(), "glGetPixelMapuiv(map=%lu, values=%p)\n", map, values);
  1512. #endif
  1513. glGetPixelMapuiv(map, values);
  1514. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1515. if (!QGLBeginStarted)
  1516. QGLCheckError("glGetPixelMapuiv");
  1517. #endif
  1518. }
  1519. // void glGetPixelMapusv (GLenum map, GLushort *values);
  1520. static inline void qglGetPixelMapusv(GLenum map, GLushort *values)
  1521. {
  1522. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1523. if (QGLLogGLCalls)
  1524. fprintf(QGLDebugFile(), "glGetPixelMapusv(map=%lu, values=%p)\n", map, values);
  1525. #endif
  1526. glGetPixelMapusv(map, values);
  1527. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1528. if (!QGLBeginStarted)
  1529. QGLCheckError("glGetPixelMapusv");
  1530. #endif
  1531. }
  1532. // void glGetPointerv (GLenum pname, GLvoid* *params);
  1533. static inline void qglGetPointerv(GLenum pname, GLvoid* *params)
  1534. {
  1535. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1536. if (QGLLogGLCalls)
  1537. fprintf(QGLDebugFile(), "glGetPointerv(pname=%lu, params=%p)\n", pname, params);
  1538. #endif
  1539. glGetPointerv(pname, params);
  1540. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1541. if (!QGLBeginStarted)
  1542. QGLCheckError("glGetPointerv");
  1543. #endif
  1544. }
  1545. // void glGetPolygonStipple (GLubyte *mask);
  1546. static inline void qglGetPolygonStipple(GLubyte *mask)
  1547. {
  1548. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1549. if (QGLLogGLCalls)
  1550. fprintf(QGLDebugFile(), "glGetPolygonStipple(mask=%p)\n", mask);
  1551. #endif
  1552. glGetPolygonStipple(mask);
  1553. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1554. if (!QGLBeginStarted)
  1555. QGLCheckError("glGetPolygonStipple");
  1556. #endif
  1557. }
  1558. // const GLubyte * glGetString (GLenum name);
  1559. static inline const GLubyte * qglGetString(GLenum name)
  1560. {
  1561. const GLubyte * returnValue;
  1562. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1563. if (QGLLogGLCalls)
  1564. fprintf(QGLDebugFile(), "glGetString(name=%lu)\n", name);
  1565. #endif
  1566. returnValue = glGetString(name);
  1567. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1568. if (!QGLBeginStarted)
  1569. QGLCheckError("glGetString");
  1570. #endif
  1571. return returnValue;
  1572. }
  1573. // void glGetTexEnvfv (GLenum target, GLenum pname, GLfloat *params);
  1574. static inline void qglGetTexEnvfv(GLenum target, GLenum pname, GLfloat *params)
  1575. {
  1576. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1577. if (QGLLogGLCalls)
  1578. fprintf(QGLDebugFile(), "glGetTexEnvfv(target=%lu, pname=%lu, params=%p)\n", target, pname, params);
  1579. #endif
  1580. glGetTexEnvfv(target, pname, params);
  1581. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1582. if (!QGLBeginStarted)
  1583. QGLCheckError("glGetTexEnvfv");
  1584. #endif
  1585. }
  1586. // void glGetTexEnviv (GLenum target, GLenum pname, GLint *params);
  1587. static inline void qglGetTexEnviv(GLenum target, GLenum pname, GLint *params)
  1588. {
  1589. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1590. if (QGLLogGLCalls)
  1591. fprintf(QGLDebugFile(), "glGetTexEnviv(target=%lu, pname=%lu, params=%p)\n", target, pname, params);
  1592. #endif
  1593. glGetTexEnviv(target, pname, params);
  1594. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1595. if (!QGLBeginStarted)
  1596. QGLCheckError("glGetTexEnviv");
  1597. #endif
  1598. }
  1599. // void glGetTexGendv (GLenum coord, GLenum pname, GLdouble *params);
  1600. static inline void qglGetTexGendv(GLenum coord, GLenum pname, GLdouble *params)
  1601. {
  1602. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1603. if (QGLLogGLCalls)
  1604. fprintf(QGLDebugFile(), "glGetTexGendv(coord=%lu, pname=%lu, params=%p)\n", coord, pname, params);
  1605. #endif
  1606. glGetTexGendv(coord, pname, params);
  1607. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1608. if (!QGLBeginStarted)
  1609. QGLCheckError("glGetTexGendv");
  1610. #endif
  1611. }
  1612. // void glGetTexGenfv (GLenum coord, GLenum pname, GLfloat *params);
  1613. static inline void qglGetTexGenfv(GLenum coord, GLenum pname, GLfloat *params)
  1614. {
  1615. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1616. if (QGLLogGLCalls)
  1617. fprintf(QGLDebugFile(), "glGetTexGenfv(coord=%lu, pname=%lu, params=%p)\n", coord, pname, params);
  1618. #endif
  1619. glGetTexGenfv(coord, pname, params);
  1620. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1621. if (!QGLBeginStarted)
  1622. QGLCheckError("glGetTexGenfv");
  1623. #endif
  1624. }
  1625. // void glGetTexGeniv (GLenum coord, GLenum pname, GLint *params);
  1626. static inline void qglGetTexGeniv(GLenum coord, GLenum pname, GLint *params)
  1627. {
  1628. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1629. if (QGLLogGLCalls)
  1630. fprintf(QGLDebugFile(), "glGetTexGeniv(coord=%lu, pname=%lu, params=%p)\n", coord, pname, params);
  1631. #endif
  1632. glGetTexGeniv(coord, pname, params);
  1633. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1634. if (!QGLBeginStarted)
  1635. QGLCheckError("glGetTexGeniv");
  1636. #endif
  1637. }
  1638. // void glGetTexImage (GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels);
  1639. static inline void qglGetTexImage(GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels)
  1640. {
  1641. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1642. if (QGLLogGLCalls)
  1643. fprintf(QGLDebugFile(), "glGetTexImage(target=%lu, level=%ld, format=%lu, type=%lu, pixels=%p)\n", target, level, format, type, pixels);
  1644. #endif
  1645. glGetTexImage(target, level, format, type, pixels);
  1646. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1647. if (!QGLBeginStarted)
  1648. QGLCheckError("glGetTexImage");
  1649. #endif
  1650. }
  1651. // void glGetTexLevelParameterfv (GLenum target, GLint level, GLenum pname, GLfloat *params);
  1652. static inline void qglGetTexLevelParameterfv(GLenum target, GLint level, GLenum pname, GLfloat *params)
  1653. {
  1654. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1655. if (QGLLogGLCalls)
  1656. fprintf(QGLDebugFile(), "glGetTexLevelParameterfv(target=%lu, level=%ld, pname=%lu, params=%p)\n", target, level, pname, params);
  1657. #endif
  1658. glGetTexLevelParameterfv(target, level, pname, params);
  1659. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1660. if (!QGLBeginStarted)
  1661. QGLCheckError("glGetTexLevelParameterfv");
  1662. #endif
  1663. }
  1664. // void glGetTexLevelParameteriv (GLenum target, GLint level, GLenum pname, GLint *params);
  1665. static inline void qglGetTexLevelParameteriv(GLenum target, GLint level, GLenum pname, GLint *params)
  1666. {
  1667. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1668. if (QGLLogGLCalls)
  1669. fprintf(QGLDebugFile(), "glGetTexLevelParameteriv(target=%lu, level=%ld, pname=%lu, params=%p)\n", target, level, pname, params);
  1670. #endif
  1671. glGetTexLevelParameteriv(target, level, pname, params);
  1672. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1673. if (!QGLBeginStarted)
  1674. QGLCheckError("glGetTexLevelParameteriv");
  1675. #endif
  1676. }
  1677. // void glGetTexParameterfv (GLenum target, GLenum pname, GLfloat *params);
  1678. static inline void qglGetTexParameterfv(GLenum target, GLenum pname, GLfloat *params)
  1679. {
  1680. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1681. if (QGLLogGLCalls)
  1682. fprintf(QGLDebugFile(), "glGetTexParameterfv(target=%lu, pname=%lu, params=%p)\n", target, pname, params);
  1683. #endif
  1684. glGetTexParameterfv(target, pname, params);
  1685. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1686. if (!QGLBeginStarted)
  1687. QGLCheckError("glGetTexParameterfv");
  1688. #endif
  1689. }
  1690. // void glGetTexParameteriv (GLenum target, GLenum pname, GLint *params);
  1691. static inline void qglGetTexParameteriv(GLenum target, GLenum pname, GLint *params)
  1692. {
  1693. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1694. if (QGLLogGLCalls)
  1695. fprintf(QGLDebugFile(), "glGetTexParameteriv(target=%lu, pname=%lu, params=%p)\n", target, pname, params);
  1696. #endif
  1697. glGetTexParameteriv(target, pname, params);
  1698. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1699. if (!QGLBeginStarted)
  1700. QGLCheckError("glGetTexParameteriv");
  1701. #endif
  1702. }
  1703. // void glHint (GLenum target, GLenum mode);
  1704. static inline void qglHint(GLenum target, GLenum mode)
  1705. {
  1706. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1707. if (QGLLogGLCalls)
  1708. fprintf(QGLDebugFile(), "glHint(target=%lu, mode=%lu)\n", target, mode);
  1709. #endif
  1710. glHint(target, mode);
  1711. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1712. if (!QGLBeginStarted)
  1713. QGLCheckError("glHint");
  1714. #endif
  1715. }
  1716. // void glIndexMask (GLuint mask);
  1717. static inline void qglIndexMask(GLuint mask)
  1718. {
  1719. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1720. if (QGLLogGLCalls)
  1721. fprintf(QGLDebugFile(), "glIndexMask(mask=%lu)\n", mask);
  1722. #endif
  1723. glIndexMask(mask);
  1724. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1725. if (!QGLBeginStarted)
  1726. QGLCheckError("glIndexMask");
  1727. #endif
  1728. }
  1729. // void glIndexPointer (GLenum type, GLsizei stride, const GLvoid *pointer);
  1730. static inline void qglIndexPointer(GLenum type, GLsizei stride, const GLvoid *pointer)
  1731. {
  1732. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1733. if (QGLLogGLCalls)
  1734. fprintf(QGLDebugFile(), "glIndexPointer(type=%lu, stride=%ld, pointer=%p)\n", type, stride, pointer);
  1735. #endif
  1736. glIndexPointer(type, stride, pointer);
  1737. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1738. if (!QGLBeginStarted)
  1739. QGLCheckError("glIndexPointer");
  1740. #endif
  1741. }
  1742. // void glIndexd (GLdouble c);
  1743. static inline void qglIndexd(GLdouble c)
  1744. {
  1745. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1746. if (QGLLogGLCalls)
  1747. fprintf(QGLDebugFile(), "glIndexd(c=%f)\n", c);
  1748. #endif
  1749. glIndexd(c);
  1750. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1751. if (!QGLBeginStarted)
  1752. QGLCheckError("glIndexd");
  1753. #endif
  1754. }
  1755. // void glIndexdv (const GLdouble *c);
  1756. static inline void qglIndexdv(const GLdouble *c)
  1757. {
  1758. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1759. if (QGLLogGLCalls)
  1760. fprintf(QGLDebugFile(), "glIndexdv(c=%p)\n", c);
  1761. #endif
  1762. glIndexdv(c);
  1763. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1764. if (!QGLBeginStarted)
  1765. QGLCheckError("glIndexdv");
  1766. #endif
  1767. }
  1768. // void glIndexf (GLfloat c);
  1769. static inline void qglIndexf(GLfloat c)
  1770. {
  1771. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1772. if (QGLLogGLCalls)
  1773. fprintf(QGLDebugFile(), "glIndexf(c=%f)\n", c);
  1774. #endif
  1775. glIndexf(c);
  1776. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1777. if (!QGLBeginStarted)
  1778. QGLCheckError("glIndexf");
  1779. #endif
  1780. }
  1781. // void glIndexfv (const GLfloat *c);
  1782. static inline void qglIndexfv(const GLfloat *c)
  1783. {
  1784. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1785. if (QGLLogGLCalls)
  1786. fprintf(QGLDebugFile(), "glIndexfv(c=%p)\n", c);
  1787. #endif
  1788. glIndexfv(c);
  1789. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1790. if (!QGLBeginStarted)
  1791. QGLCheckError("glIndexfv");
  1792. #endif
  1793. }
  1794. // void glIndexi (GLint c);
  1795. static inline void qglIndexi(GLint c)
  1796. {
  1797. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1798. if (QGLLogGLCalls)
  1799. fprintf(QGLDebugFile(), "glIndexi(c=%ld)\n", c);
  1800. #endif
  1801. glIndexi(c);
  1802. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1803. if (!QGLBeginStarted)
  1804. QGLCheckError("glIndexi");
  1805. #endif
  1806. }
  1807. // void glIndexiv (const GLint *c);
  1808. static inline void qglIndexiv(const GLint *c)
  1809. {
  1810. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1811. if (QGLLogGLCalls)
  1812. fprintf(QGLDebugFile(), "glIndexiv(c=%p)\n", c);
  1813. #endif
  1814. glIndexiv(c);
  1815. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1816. if (!QGLBeginStarted)
  1817. QGLCheckError("glIndexiv");
  1818. #endif
  1819. }
  1820. // void glIndexs (GLshort c);
  1821. static inline void qglIndexs(GLshort c)
  1822. {
  1823. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1824. if (QGLLogGLCalls)
  1825. fprintf(QGLDebugFile(), "glIndexs(c=%d)\n", c);
  1826. #endif
  1827. glIndexs(c);
  1828. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1829. if (!QGLBeginStarted)
  1830. QGLCheckError("glIndexs");
  1831. #endif
  1832. }
  1833. // void glIndexsv (const GLshort *c);
  1834. static inline void qglIndexsv(const GLshort *c)
  1835. {
  1836. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1837. if (QGLLogGLCalls)
  1838. fprintf(QGLDebugFile(), "glIndexsv(c=%p)\n", c);
  1839. #endif
  1840. glIndexsv(c);
  1841. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1842. if (!QGLBeginStarted)
  1843. QGLCheckError("glIndexsv");
  1844. #endif
  1845. }
  1846. // void glIndexub (GLubyte c);
  1847. static inline void qglIndexub(GLubyte c)
  1848. {
  1849. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1850. if (QGLLogGLCalls)
  1851. fprintf(QGLDebugFile(), "glIndexub(c=%u)\n", c);
  1852. #endif
  1853. glIndexub(c);
  1854. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1855. if (!QGLBeginStarted)
  1856. QGLCheckError("glIndexub");
  1857. #endif
  1858. }
  1859. // void glIndexubv (const GLubyte *c);
  1860. static inline void qglIndexubv(const GLubyte *c)
  1861. {
  1862. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1863. if (QGLLogGLCalls)
  1864. fprintf(QGLDebugFile(), "glIndexubv(c=%p)\n", c);
  1865. #endif
  1866. glIndexubv(c);
  1867. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1868. if (!QGLBeginStarted)
  1869. QGLCheckError("glIndexubv");
  1870. #endif
  1871. }
  1872. // void glInitNames (void);
  1873. static inline void qglInitNames(void)
  1874. {
  1875. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1876. if (QGLLogGLCalls)
  1877. fprintf(QGLDebugFile(), "glInitNames(void)\n");
  1878. #endif
  1879. glInitNames();
  1880. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1881. if (!QGLBeginStarted)
  1882. QGLCheckError("glInitNames");
  1883. #endif
  1884. }
  1885. // void glInterleavedArrays (GLenum format, GLsizei stride, const GLvoid *pointer);
  1886. static inline void qglInterleavedArrays(GLenum format, GLsizei stride, const GLvoid *pointer)
  1887. {
  1888. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1889. if (QGLLogGLCalls)
  1890. fprintf(QGLDebugFile(), "glInterleavedArrays(format=%lu, stride=%ld, pointer=%p)\n", format, stride, pointer);
  1891. #endif
  1892. glInterleavedArrays(format, stride, pointer);
  1893. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1894. if (!QGLBeginStarted)
  1895. QGLCheckError("glInterleavedArrays");
  1896. #endif
  1897. }
  1898. // GLboolean glIsEnabled (GLenum cap);
  1899. static inline GLboolean qglIsEnabled(GLenum cap)
  1900. {
  1901. GLboolean returnValue;
  1902. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1903. if (QGLLogGLCalls)
  1904. fprintf(QGLDebugFile(), "glIsEnabled(cap=%lu)\n", cap);
  1905. #endif
  1906. returnValue = glIsEnabled(cap);
  1907. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1908. if (!QGLBeginStarted)
  1909. QGLCheckError("glIsEnabled");
  1910. #endif
  1911. return returnValue;
  1912. }
  1913. // GLboolean glIsList (GLuint list);
  1914. static inline GLboolean qglIsList(GLuint list)
  1915. {
  1916. GLboolean returnValue;
  1917. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1918. if (QGLLogGLCalls)
  1919. fprintf(QGLDebugFile(), "glIsList(list=%lu)\n", list);
  1920. #endif
  1921. returnValue = glIsList(list);
  1922. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1923. if (!QGLBeginStarted)
  1924. QGLCheckError("glIsList");
  1925. #endif
  1926. return returnValue;
  1927. }
  1928. // GLboolean glIsTexture (GLuint texture);
  1929. static inline GLboolean qglIsTexture(GLuint texture)
  1930. {
  1931. GLboolean returnValue;
  1932. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1933. if (QGLLogGLCalls)
  1934. fprintf(QGLDebugFile(), "glIsTexture(texture=%lu)\n", texture);
  1935. #endif
  1936. returnValue = glIsTexture(texture);
  1937. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1938. if (!QGLBeginStarted)
  1939. QGLCheckError("glIsTexture");
  1940. #endif
  1941. return returnValue;
  1942. }
  1943. // void glLightModelf (GLenum pname, GLfloat param);
  1944. static inline void qglLightModelf(GLenum pname, GLfloat param)
  1945. {
  1946. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1947. if (QGLLogGLCalls)
  1948. fprintf(QGLDebugFile(), "glLightModelf(pname=%lu, param=%f)\n", pname, param);
  1949. #endif
  1950. glLightModelf(pname, param);
  1951. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1952. if (!QGLBeginStarted)
  1953. QGLCheckError("glLightModelf");
  1954. #endif
  1955. }
  1956. // void glLightModelfv (GLenum pname, const GLfloat *params);
  1957. static inline void qglLightModelfv(GLenum pname, const GLfloat *params)
  1958. {
  1959. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1960. if (QGLLogGLCalls)
  1961. fprintf(QGLDebugFile(), "glLightModelfv(pname=%lu, params=%p)\n", pname, params);
  1962. #endif
  1963. glLightModelfv(pname, params);
  1964. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1965. if (!QGLBeginStarted)
  1966. QGLCheckError("glLightModelfv");
  1967. #endif
  1968. }
  1969. // void glLightModeli (GLenum pname, GLint param);
  1970. static inline void qglLightModeli(GLenum pname, GLint param)
  1971. {
  1972. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1973. if (QGLLogGLCalls)
  1974. fprintf(QGLDebugFile(), "glLightModeli(pname=%lu, param=%ld)\n", pname, param);
  1975. #endif
  1976. glLightModeli(pname, param);
  1977. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1978. if (!QGLBeginStarted)
  1979. QGLCheckError("glLightModeli");
  1980. #endif
  1981. }
  1982. // void glLightModeliv (GLenum pname, const GLint *params);
  1983. static inline void qglLightModeliv(GLenum pname, const GLint *params)
  1984. {
  1985. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1986. if (QGLLogGLCalls)
  1987. fprintf(QGLDebugFile(), "glLightModeliv(pname=%lu, params=%p)\n", pname, params);
  1988. #endif
  1989. glLightModeliv(pname, params);
  1990. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  1991. if (!QGLBeginStarted)
  1992. QGLCheckError("glLightModeliv");
  1993. #endif
  1994. }
  1995. // void glLightf (GLenum light, GLenum pname, GLfloat param);
  1996. static inline void qglLightf(GLenum light, GLenum pname, GLfloat param)
  1997. {
  1998. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  1999. if (QGLLogGLCalls)
  2000. fprintf(QGLDebugFile(), "glLightf(light=%lu, pname=%lu, param=%f)\n", light, pname, param);
  2001. #endif
  2002. glLightf(light, pname, param);
  2003. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2004. if (!QGLBeginStarted)
  2005. QGLCheckError("glLightf");
  2006. #endif
  2007. }
  2008. // void glLightfv (GLenum light, GLenum pname, const GLfloat *params);
  2009. static inline void qglLightfv(GLenum light, GLenum pname, const GLfloat *params)
  2010. {
  2011. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2012. if (QGLLogGLCalls)
  2013. fprintf(QGLDebugFile(), "glLightfv(light=%lu, pname=%lu, params=%p)\n", light, pname, params);
  2014. #endif
  2015. glLightfv(light, pname, params);
  2016. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2017. if (!QGLBeginStarted)
  2018. QGLCheckError("glLightfv");
  2019. #endif
  2020. }
  2021. // void glLighti (GLenum light, GLenum pname, GLint param);
  2022. static inline void qglLighti(GLenum light, GLenum pname, GLint param)
  2023. {
  2024. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2025. if (QGLLogGLCalls)
  2026. fprintf(QGLDebugFile(), "glLighti(light=%lu, pname=%lu, param=%ld)\n", light, pname, param);
  2027. #endif
  2028. glLighti(light, pname, param);
  2029. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2030. if (!QGLBeginStarted)
  2031. QGLCheckError("glLighti");
  2032. #endif
  2033. }
  2034. // void glLightiv (GLenum light, GLenum pname, const GLint *params);
  2035. static inline void qglLightiv(GLenum light, GLenum pname, const GLint *params)
  2036. {
  2037. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2038. if (QGLLogGLCalls)
  2039. fprintf(QGLDebugFile(), "glLightiv(light=%lu, pname=%lu, params=%p)\n", light, pname, params);
  2040. #endif
  2041. glLightiv(light, pname, params);
  2042. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2043. if (!QGLBeginStarted)
  2044. QGLCheckError("glLightiv");
  2045. #endif
  2046. }
  2047. // void glLineStipple (GLint factor, GLushort pattern);
  2048. static inline void qglLineStipple(GLint factor, GLushort pattern)
  2049. {
  2050. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2051. if (QGLLogGLCalls)
  2052. fprintf(QGLDebugFile(), "glLineStipple(factor=%ld, pattern=%u)\n", factor, pattern);
  2053. #endif
  2054. glLineStipple(factor, pattern);
  2055. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2056. if (!QGLBeginStarted)
  2057. QGLCheckError("glLineStipple");
  2058. #endif
  2059. }
  2060. // void glLineWidth (GLfloat width);
  2061. static inline void qglLineWidth(GLfloat width)
  2062. {
  2063. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2064. if (QGLLogGLCalls)
  2065. fprintf(QGLDebugFile(), "glLineWidth(width=%f)\n", width);
  2066. #endif
  2067. glLineWidth(width);
  2068. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2069. if (!QGLBeginStarted)
  2070. QGLCheckError("glLineWidth");
  2071. #endif
  2072. }
  2073. // void glListBase (GLuint base);
  2074. static inline void qglListBase(GLuint base)
  2075. {
  2076. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2077. if (QGLLogGLCalls)
  2078. fprintf(QGLDebugFile(), "glListBase(base=%lu)\n", base);
  2079. #endif
  2080. glListBase(base);
  2081. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2082. if (!QGLBeginStarted)
  2083. QGLCheckError("glListBase");
  2084. #endif
  2085. }
  2086. // void glLoadIdentity (void);
  2087. static inline void qglLoadIdentity(void)
  2088. {
  2089. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2090. if (QGLLogGLCalls)
  2091. fprintf(QGLDebugFile(), "glLoadIdentity(void)\n");
  2092. #endif
  2093. glLoadIdentity();
  2094. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2095. if (!QGLBeginStarted)
  2096. QGLCheckError("glLoadIdentity");
  2097. #endif
  2098. }
  2099. // void glLoadMatrixd (const GLdouble *m);
  2100. static inline void qglLoadMatrixd(const GLdouble *m)
  2101. {
  2102. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2103. if (QGLLogGLCalls)
  2104. fprintf(QGLDebugFile(), "glLoadMatrixd(m=%p)\n", m);
  2105. #endif
  2106. glLoadMatrixd(m);
  2107. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2108. if (!QGLBeginStarted)
  2109. QGLCheckError("glLoadMatrixd");
  2110. #endif
  2111. }
  2112. // void glLoadMatrixf (const GLfloat *m);
  2113. static inline void qglLoadMatrixf(const GLfloat *m)
  2114. {
  2115. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2116. if (QGLLogGLCalls)
  2117. fprintf(QGLDebugFile(), "glLoadMatrixf(m=%p)\n", m);
  2118. #endif
  2119. glLoadMatrixf(m);
  2120. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2121. if (!QGLBeginStarted)
  2122. QGLCheckError("glLoadMatrixf");
  2123. #endif
  2124. }
  2125. // void glLoadName (GLuint name);
  2126. static inline void qglLoadName(GLuint name)
  2127. {
  2128. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2129. if (QGLLogGLCalls)
  2130. fprintf(QGLDebugFile(), "glLoadName(name=%lu)\n", name);
  2131. #endif
  2132. glLoadName(name);
  2133. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2134. if (!QGLBeginStarted)
  2135. QGLCheckError("glLoadName");
  2136. #endif
  2137. }
  2138. // void glLogicOp (GLenum opcode);
  2139. static inline void qglLogicOp(GLenum opcode)
  2140. {
  2141. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2142. if (QGLLogGLCalls)
  2143. fprintf(QGLDebugFile(), "glLogicOp(opcode=%lu)\n", opcode);
  2144. #endif
  2145. glLogicOp(opcode);
  2146. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2147. if (!QGLBeginStarted)
  2148. QGLCheckError("glLogicOp");
  2149. #endif
  2150. }
  2151. // void glMap1d (GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points);
  2152. static inline void qglMap1d(GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points)
  2153. {
  2154. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2155. if (QGLLogGLCalls)
  2156. fprintf(QGLDebugFile(), "glMap1d(target=%lu, u1=%f, u2=%f, stride=%ld, order=%ld, points=%p)\n", target, u1, u2, stride, order, points);
  2157. #endif
  2158. glMap1d(target, u1, u2, stride, order, points);
  2159. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2160. if (!QGLBeginStarted)
  2161. QGLCheckError("glMap1d");
  2162. #endif
  2163. }
  2164. // void glMap1f (GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points);
  2165. static inline void qglMap1f(GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points)
  2166. {
  2167. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2168. if (QGLLogGLCalls)
  2169. fprintf(QGLDebugFile(), "glMap1f(target=%lu, u1=%f, u2=%f, stride=%ld, order=%ld, points=%p)\n", target, u1, u2, stride, order, points);
  2170. #endif
  2171. glMap1f(target, u1, u2, stride, order, points);
  2172. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2173. if (!QGLBeginStarted)
  2174. QGLCheckError("glMap1f");
  2175. #endif
  2176. }
  2177. // void glMap2d (GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points);
  2178. static inline void qglMap2d(GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points)
  2179. {
  2180. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2181. if (QGLLogGLCalls)
  2182. fprintf(QGLDebugFile(), "glMap2d(target=%lu, u1=%f, u2=%f, ustride=%ld, uorder=%ld, v1=%f, v2=%f, vstride=%ld, vorder=%ld, points=%p)\n", target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points);
  2183. #endif
  2184. glMap2d(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points);
  2185. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2186. if (!QGLBeginStarted)
  2187. QGLCheckError("glMap2d");
  2188. #endif
  2189. }
  2190. // void glMap2f (GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points);
  2191. static inline void qglMap2f(GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points)
  2192. {
  2193. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2194. if (QGLLogGLCalls)
  2195. fprintf(QGLDebugFile(), "glMap2f(target=%lu, u1=%f, u2=%f, ustride=%ld, uorder=%ld, v1=%f, v2=%f, vstride=%ld, vorder=%ld, points=%p)\n", target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points);
  2196. #endif
  2197. glMap2f(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points);
  2198. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2199. if (!QGLBeginStarted)
  2200. QGLCheckError("glMap2f");
  2201. #endif
  2202. }
  2203. // void glMapGrid1d (GLint un, GLdouble u1, GLdouble u2);
  2204. static inline void qglMapGrid1d(GLint un, GLdouble u1, GLdouble u2)
  2205. {
  2206. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2207. if (QGLLogGLCalls)
  2208. fprintf(QGLDebugFile(), "glMapGrid1d(un=%ld, u1=%f, u2=%f)\n", un, u1, u2);
  2209. #endif
  2210. glMapGrid1d(un, u1, u2);
  2211. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2212. if (!QGLBeginStarted)
  2213. QGLCheckError("glMapGrid1d");
  2214. #endif
  2215. }
  2216. // void glMapGrid1f (GLint un, GLfloat u1, GLfloat u2);
  2217. static inline void qglMapGrid1f(GLint un, GLfloat u1, GLfloat u2)
  2218. {
  2219. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2220. if (QGLLogGLCalls)
  2221. fprintf(QGLDebugFile(), "glMapGrid1f(un=%ld, u1=%f, u2=%f)\n", un, u1, u2);
  2222. #endif
  2223. glMapGrid1f(un, u1, u2);
  2224. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2225. if (!QGLBeginStarted)
  2226. QGLCheckError("glMapGrid1f");
  2227. #endif
  2228. }
  2229. // void glMapGrid2d (GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2);
  2230. static inline void qglMapGrid2d(GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2)
  2231. {
  2232. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2233. if (QGLLogGLCalls)
  2234. fprintf(QGLDebugFile(), "glMapGrid2d(un=%ld, u1=%f, u2=%f, vn=%ld, v1=%f, v2=%f)\n", un, u1, u2, vn, v1, v2);
  2235. #endif
  2236. glMapGrid2d(un, u1, u2, vn, v1, v2);
  2237. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2238. if (!QGLBeginStarted)
  2239. QGLCheckError("glMapGrid2d");
  2240. #endif
  2241. }
  2242. // void glMapGrid2f (GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2);
  2243. static inline void qglMapGrid2f(GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2)
  2244. {
  2245. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2246. if (QGLLogGLCalls)
  2247. fprintf(QGLDebugFile(), "glMapGrid2f(un=%ld, u1=%f, u2=%f, vn=%ld, v1=%f, v2=%f)\n", un, u1, u2, vn, v1, v2);
  2248. #endif
  2249. glMapGrid2f(un, u1, u2, vn, v1, v2);
  2250. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2251. if (!QGLBeginStarted)
  2252. QGLCheckError("glMapGrid2f");
  2253. #endif
  2254. }
  2255. // void glMaterialf (GLenum face, GLenum pname, GLfloat param);
  2256. static inline void qglMaterialf(GLenum face, GLenum pname, GLfloat param)
  2257. {
  2258. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2259. if (QGLLogGLCalls)
  2260. fprintf(QGLDebugFile(), "glMaterialf(face=%lu, pname=%lu, param=%f)\n", face, pname, param);
  2261. #endif
  2262. glMaterialf(face, pname, param);
  2263. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2264. if (!QGLBeginStarted)
  2265. QGLCheckError("glMaterialf");
  2266. #endif
  2267. }
  2268. // void glMaterialfv (GLenum face, GLenum pname, const GLfloat *params);
  2269. static inline void qglMaterialfv(GLenum face, GLenum pname, const GLfloat *params)
  2270. {
  2271. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2272. if (QGLLogGLCalls)
  2273. fprintf(QGLDebugFile(), "glMaterialfv(face=%lu, pname=%lu, params=%p)\n", face, pname, params);
  2274. #endif
  2275. glMaterialfv(face, pname, params);
  2276. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2277. if (!QGLBeginStarted)
  2278. QGLCheckError("glMaterialfv");
  2279. #endif
  2280. }
  2281. // void glMateriali (GLenum face, GLenum pname, GLint param);
  2282. static inline void qglMateriali(GLenum face, GLenum pname, GLint param)
  2283. {
  2284. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2285. if (QGLLogGLCalls)
  2286. fprintf(QGLDebugFile(), "glMateriali(face=%lu, pname=%lu, param=%ld)\n", face, pname, param);
  2287. #endif
  2288. glMateriali(face, pname, param);
  2289. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2290. if (!QGLBeginStarted)
  2291. QGLCheckError("glMateriali");
  2292. #endif
  2293. }
  2294. // void glMaterialiv (GLenum face, GLenum pname, const GLint *params);
  2295. static inline void qglMaterialiv(GLenum face, GLenum pname, const GLint *params)
  2296. {
  2297. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2298. if (QGLLogGLCalls)
  2299. fprintf(QGLDebugFile(), "glMaterialiv(face=%lu, pname=%lu, params=%p)\n", face, pname, params);
  2300. #endif
  2301. glMaterialiv(face, pname, params);
  2302. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2303. if (!QGLBeginStarted)
  2304. QGLCheckError("glMaterialiv");
  2305. #endif
  2306. }
  2307. // void glMatrixMode (GLenum mode);
  2308. static inline void qglMatrixMode(GLenum mode)
  2309. {
  2310. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2311. if (QGLLogGLCalls)
  2312. fprintf(QGLDebugFile(), "glMatrixMode(mode=%lu)\n", mode);
  2313. #endif
  2314. glMatrixMode(mode);
  2315. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2316. if (!QGLBeginStarted)
  2317. QGLCheckError("glMatrixMode");
  2318. #endif
  2319. }
  2320. // void glMultMatrixd (const GLdouble *m);
  2321. static inline void qglMultMatrixd(const GLdouble *m)
  2322. {
  2323. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2324. if (QGLLogGLCalls)
  2325. fprintf(QGLDebugFile(), "glMultMatrixd(m=%p)\n", m);
  2326. #endif
  2327. glMultMatrixd(m);
  2328. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2329. if (!QGLBeginStarted)
  2330. QGLCheckError("glMultMatrixd");
  2331. #endif
  2332. }
  2333. // void glMultMatrixf (const GLfloat *m);
  2334. static inline void qglMultMatrixf(const GLfloat *m)
  2335. {
  2336. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2337. if (QGLLogGLCalls)
  2338. fprintf(QGLDebugFile(), "glMultMatrixf(m=%p)\n", m);
  2339. #endif
  2340. glMultMatrixf(m);
  2341. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2342. if (!QGLBeginStarted)
  2343. QGLCheckError("glMultMatrixf");
  2344. #endif
  2345. }
  2346. // void glNewList (GLuint list, GLenum mode);
  2347. static inline void qglNewList(GLuint list, GLenum mode)
  2348. {
  2349. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2350. if (QGLLogGLCalls)
  2351. fprintf(QGLDebugFile(), "glNewList(list=%lu, mode=%lu)\n", list, mode);
  2352. #endif
  2353. glNewList(list, mode);
  2354. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2355. if (!QGLBeginStarted)
  2356. QGLCheckError("glNewList");
  2357. #endif
  2358. }
  2359. // void glNormal3b (GLbyte nx, GLbyte ny, GLbyte nz);
  2360. static inline void qglNormal3b(GLbyte nx, GLbyte ny, GLbyte nz)
  2361. {
  2362. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2363. if (QGLLogGLCalls)
  2364. fprintf(QGLDebugFile(), "glNormal3b(nx=%d, ny=%d, nz=%d)\n", nx, ny, nz);
  2365. #endif
  2366. glNormal3b(nx, ny, nz);
  2367. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2368. if (!QGLBeginStarted)
  2369. QGLCheckError("glNormal3b");
  2370. #endif
  2371. }
  2372. // void glNormal3bv (const GLbyte *v);
  2373. static inline void qglNormal3bv(const GLbyte *v)
  2374. {
  2375. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2376. if (QGLLogGLCalls)
  2377. fprintf(QGLDebugFile(), "glNormal3bv(v=%p)\n", v);
  2378. #endif
  2379. glNormal3bv(v);
  2380. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2381. if (!QGLBeginStarted)
  2382. QGLCheckError("glNormal3bv");
  2383. #endif
  2384. }
  2385. // void glNormal3d (GLdouble nx, GLdouble ny, GLdouble nz);
  2386. static inline void qglNormal3d(GLdouble nx, GLdouble ny, GLdouble nz)
  2387. {
  2388. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2389. if (QGLLogGLCalls)
  2390. fprintf(QGLDebugFile(), "glNormal3d(nx=%f, ny=%f, nz=%f)\n", nx, ny, nz);
  2391. #endif
  2392. glNormal3d(nx, ny, nz);
  2393. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2394. if (!QGLBeginStarted)
  2395. QGLCheckError("glNormal3d");
  2396. #endif
  2397. }
  2398. // void glNormal3dv (const GLdouble *v);
  2399. static inline void qglNormal3dv(const GLdouble *v)
  2400. {
  2401. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2402. if (QGLLogGLCalls)
  2403. fprintf(QGLDebugFile(), "glNormal3dv(v=%p)\n", v);
  2404. #endif
  2405. glNormal3dv(v);
  2406. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2407. if (!QGLBeginStarted)
  2408. QGLCheckError("glNormal3dv");
  2409. #endif
  2410. }
  2411. // void glNormal3f (GLfloat nx, GLfloat ny, GLfloat nz);
  2412. static inline void qglNormal3f(GLfloat nx, GLfloat ny, GLfloat nz)
  2413. {
  2414. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2415. if (QGLLogGLCalls)
  2416. fprintf(QGLDebugFile(), "glNormal3f(nx=%f, ny=%f, nz=%f)\n", nx, ny, nz);
  2417. #endif
  2418. glNormal3f(nx, ny, nz);
  2419. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2420. if (!QGLBeginStarted)
  2421. QGLCheckError("glNormal3f");
  2422. #endif
  2423. }
  2424. // void glNormal3fv (const GLfloat *v);
  2425. static inline void qglNormal3fv(const GLfloat *v)
  2426. {
  2427. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2428. if (QGLLogGLCalls)
  2429. fprintf(QGLDebugFile(), "glNormal3fv(v=%p)\n", v);
  2430. #endif
  2431. glNormal3fv(v);
  2432. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2433. if (!QGLBeginStarted)
  2434. QGLCheckError("glNormal3fv");
  2435. #endif
  2436. }
  2437. // void glNormal3i (GLint nx, GLint ny, GLint nz);
  2438. static inline void qglNormal3i(GLint nx, GLint ny, GLint nz)
  2439. {
  2440. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2441. if (QGLLogGLCalls)
  2442. fprintf(QGLDebugFile(), "glNormal3i(nx=%ld, ny=%ld, nz=%ld)\n", nx, ny, nz);
  2443. #endif
  2444. glNormal3i(nx, ny, nz);
  2445. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2446. if (!QGLBeginStarted)
  2447. QGLCheckError("glNormal3i");
  2448. #endif
  2449. }
  2450. // void glNormal3iv (const GLint *v);
  2451. static inline void qglNormal3iv(const GLint *v)
  2452. {
  2453. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2454. if (QGLLogGLCalls)
  2455. fprintf(QGLDebugFile(), "glNormal3iv(v=%p)\n", v);
  2456. #endif
  2457. glNormal3iv(v);
  2458. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2459. if (!QGLBeginStarted)
  2460. QGLCheckError("glNormal3iv");
  2461. #endif
  2462. }
  2463. // void glNormal3s (GLshort nx, GLshort ny, GLshort nz);
  2464. static inline void qglNormal3s(GLshort nx, GLshort ny, GLshort nz)
  2465. {
  2466. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2467. if (QGLLogGLCalls)
  2468. fprintf(QGLDebugFile(), "glNormal3s(nx=%d, ny=%d, nz=%d)\n", nx, ny, nz);
  2469. #endif
  2470. glNormal3s(nx, ny, nz);
  2471. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2472. if (!QGLBeginStarted)
  2473. QGLCheckError("glNormal3s");
  2474. #endif
  2475. }
  2476. // void glNormal3sv (const GLshort *v);
  2477. static inline void qglNormal3sv(const GLshort *v)
  2478. {
  2479. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2480. if (QGLLogGLCalls)
  2481. fprintf(QGLDebugFile(), "glNormal3sv(v=%p)\n", v);
  2482. #endif
  2483. glNormal3sv(v);
  2484. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2485. if (!QGLBeginStarted)
  2486. QGLCheckError("glNormal3sv");
  2487. #endif
  2488. }
  2489. // void glNormalPointer (GLenum type, GLsizei stride, const GLvoid *pointer);
  2490. static inline void qglNormalPointer(GLenum type, GLsizei stride, const GLvoid *pointer)
  2491. {
  2492. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2493. if (QGLLogGLCalls)
  2494. fprintf(QGLDebugFile(), "glNormalPointer(type=%lu, stride=%ld, pointer=%p)\n", type, stride, pointer);
  2495. #endif
  2496. glNormalPointer(type, stride, pointer);
  2497. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2498. if (!QGLBeginStarted)
  2499. QGLCheckError("glNormalPointer");
  2500. #endif
  2501. }
  2502. // void glOrtho (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
  2503. static inline void qglOrtho(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar)
  2504. {
  2505. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2506. if (QGLLogGLCalls)
  2507. fprintf(QGLDebugFile(), "glOrtho(left=%f, right=%f, bottom=%f, top=%f, zNear=%f, zFar=%f)\n", left, right, bottom, top, zNear, zFar);
  2508. #endif
  2509. glOrtho(left, right, bottom, top, zNear, zFar);
  2510. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2511. if (!QGLBeginStarted)
  2512. QGLCheckError("glOrtho");
  2513. #endif
  2514. }
  2515. // void glPassThrough (GLfloat token);
  2516. static inline void qglPassThrough(GLfloat token)
  2517. {
  2518. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2519. if (QGLLogGLCalls)
  2520. fprintf(QGLDebugFile(), "glPassThrough(token=%f)\n", token);
  2521. #endif
  2522. glPassThrough(token);
  2523. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2524. if (!QGLBeginStarted)
  2525. QGLCheckError("glPassThrough");
  2526. #endif
  2527. }
  2528. // void glPixelMapfv (GLenum map, GLsizei mapsize, const GLfloat *values);
  2529. static inline void qglPixelMapfv(GLenum map, GLsizei mapsize, const GLfloat *values)
  2530. {
  2531. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2532. if (QGLLogGLCalls)
  2533. fprintf(QGLDebugFile(), "glPixelMapfv(map=%lu, mapsize=%ld, values=%p)\n", map, mapsize, values);
  2534. #endif
  2535. glPixelMapfv(map, mapsize, values);
  2536. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2537. if (!QGLBeginStarted)
  2538. QGLCheckError("glPixelMapfv");
  2539. #endif
  2540. }
  2541. // void glPixelMapuiv (GLenum map, GLsizei mapsize, const GLuint *values);
  2542. static inline void qglPixelMapuiv(GLenum map, GLsizei mapsize, const GLuint *values)
  2543. {
  2544. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2545. if (QGLLogGLCalls)
  2546. fprintf(QGLDebugFile(), "glPixelMapuiv(map=%lu, mapsize=%ld, values=%p)\n", map, mapsize, values);
  2547. #endif
  2548. glPixelMapuiv(map, mapsize, values);
  2549. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2550. if (!QGLBeginStarted)
  2551. QGLCheckError("glPixelMapuiv");
  2552. #endif
  2553. }
  2554. // void glPixelMapusv (GLenum map, GLsizei mapsize, const GLushort *values);
  2555. static inline void qglPixelMapusv(GLenum map, GLsizei mapsize, const GLushort *values)
  2556. {
  2557. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2558. if (QGLLogGLCalls)
  2559. fprintf(QGLDebugFile(), "glPixelMapusv(map=%lu, mapsize=%ld, values=%p)\n", map, mapsize, values);
  2560. #endif
  2561. glPixelMapusv(map, mapsize, values);
  2562. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2563. if (!QGLBeginStarted)
  2564. QGLCheckError("glPixelMapusv");
  2565. #endif
  2566. }
  2567. // void glPixelStoref (GLenum pname, GLfloat param);
  2568. static inline void qglPixelStoref(GLenum pname, GLfloat param)
  2569. {
  2570. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2571. if (QGLLogGLCalls)
  2572. fprintf(QGLDebugFile(), "glPixelStoref(pname=%lu, param=%f)\n", pname, param);
  2573. #endif
  2574. glPixelStoref(pname, param);
  2575. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2576. if (!QGLBeginStarted)
  2577. QGLCheckError("glPixelStoref");
  2578. #endif
  2579. }
  2580. // void glPixelStorei (GLenum pname, GLint param);
  2581. static inline void qglPixelStorei(GLenum pname, GLint param)
  2582. {
  2583. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2584. if (QGLLogGLCalls)
  2585. fprintf(QGLDebugFile(), "glPixelStorei(pname=%lu, param=%ld)\n", pname, param);
  2586. #endif
  2587. glPixelStorei(pname, param);
  2588. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2589. if (!QGLBeginStarted)
  2590. QGLCheckError("glPixelStorei");
  2591. #endif
  2592. }
  2593. // void glPixelTransferf (GLenum pname, GLfloat param);
  2594. static inline void qglPixelTransferf(GLenum pname, GLfloat param)
  2595. {
  2596. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2597. if (QGLLogGLCalls)
  2598. fprintf(QGLDebugFile(), "glPixelTransferf(pname=%lu, param=%f)\n", pname, param);
  2599. #endif
  2600. glPixelTransferf(pname, param);
  2601. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2602. if (!QGLBeginStarted)
  2603. QGLCheckError("glPixelTransferf");
  2604. #endif
  2605. }
  2606. // void glPixelTransferi (GLenum pname, GLint param);
  2607. static inline void qglPixelTransferi(GLenum pname, GLint param)
  2608. {
  2609. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2610. if (QGLLogGLCalls)
  2611. fprintf(QGLDebugFile(), "glPixelTransferi(pname=%lu, param=%ld)\n", pname, param);
  2612. #endif
  2613. glPixelTransferi(pname, param);
  2614. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2615. if (!QGLBeginStarted)
  2616. QGLCheckError("glPixelTransferi");
  2617. #endif
  2618. }
  2619. // void glPixelZoom (GLfloat xfactor, GLfloat yfactor);
  2620. static inline void qglPixelZoom(GLfloat xfactor, GLfloat yfactor)
  2621. {
  2622. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2623. if (QGLLogGLCalls)
  2624. fprintf(QGLDebugFile(), "glPixelZoom(xfactor=%f, yfactor=%f)\n", xfactor, yfactor);
  2625. #endif
  2626. glPixelZoom(xfactor, yfactor);
  2627. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2628. if (!QGLBeginStarted)
  2629. QGLCheckError("glPixelZoom");
  2630. #endif
  2631. }
  2632. // void glPointSize (GLfloat size);
  2633. static inline void qglPointSize(GLfloat size)
  2634. {
  2635. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2636. if (QGLLogGLCalls)
  2637. fprintf(QGLDebugFile(), "glPointSize(size=%f)\n", size);
  2638. #endif
  2639. glPointSize(size);
  2640. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2641. if (!QGLBeginStarted)
  2642. QGLCheckError("glPointSize");
  2643. #endif
  2644. }
  2645. // void glPolygonMode (GLenum face, GLenum mode);
  2646. static inline void qglPolygonMode(GLenum face, GLenum mode)
  2647. {
  2648. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2649. if (QGLLogGLCalls)
  2650. fprintf(QGLDebugFile(), "glPolygonMode(face=%lu, mode=%lu)\n", face, mode);
  2651. #endif
  2652. glPolygonMode(face, mode);
  2653. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2654. if (!QGLBeginStarted)
  2655. QGLCheckError("glPolygonMode");
  2656. #endif
  2657. }
  2658. // void glPolygonOffset (GLfloat factor, GLfloat units);
  2659. static inline void qglPolygonOffset(GLfloat factor, GLfloat units)
  2660. {
  2661. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2662. if (QGLLogGLCalls)
  2663. fprintf(QGLDebugFile(), "glPolygonOffset(factor=%f, units=%f)\n", factor, units);
  2664. #endif
  2665. glPolygonOffset(factor, units);
  2666. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2667. if (!QGLBeginStarted)
  2668. QGLCheckError("glPolygonOffset");
  2669. #endif
  2670. }
  2671. // void glPolygonStipple (const GLubyte *mask);
  2672. static inline void qglPolygonStipple(const GLubyte *mask)
  2673. {
  2674. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2675. if (QGLLogGLCalls)
  2676. fprintf(QGLDebugFile(), "glPolygonStipple(mask=%p)\n", mask);
  2677. #endif
  2678. glPolygonStipple(mask);
  2679. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2680. if (!QGLBeginStarted)
  2681. QGLCheckError("glPolygonStipple");
  2682. #endif
  2683. }
  2684. // void glPopAttrib (void);
  2685. static inline void qglPopAttrib(void)
  2686. {
  2687. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2688. if (QGLLogGLCalls)
  2689. fprintf(QGLDebugFile(), "glPopAttrib(void)\n");
  2690. #endif
  2691. glPopAttrib();
  2692. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2693. if (!QGLBeginStarted)
  2694. QGLCheckError("glPopAttrib");
  2695. #endif
  2696. }
  2697. // void glPopClientAttrib (void);
  2698. static inline void qglPopClientAttrib(void)
  2699. {
  2700. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2701. if (QGLLogGLCalls)
  2702. fprintf(QGLDebugFile(), "glPopClientAttrib(void)\n");
  2703. #endif
  2704. glPopClientAttrib();
  2705. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2706. if (!QGLBeginStarted)
  2707. QGLCheckError("glPopClientAttrib");
  2708. #endif
  2709. }
  2710. // void glPopMatrix (void);
  2711. static inline void qglPopMatrix(void)
  2712. {
  2713. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2714. if (QGLLogGLCalls)
  2715. fprintf(QGLDebugFile(), "glPopMatrix(void)\n");
  2716. #endif
  2717. glPopMatrix();
  2718. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2719. if (!QGLBeginStarted)
  2720. QGLCheckError("glPopMatrix");
  2721. #endif
  2722. }
  2723. // void glPopName (void);
  2724. static inline void qglPopName(void)
  2725. {
  2726. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2727. if (QGLLogGLCalls)
  2728. fprintf(QGLDebugFile(), "glPopName(void)\n");
  2729. #endif
  2730. glPopName();
  2731. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2732. if (!QGLBeginStarted)
  2733. QGLCheckError("glPopName");
  2734. #endif
  2735. }
  2736. // void glPrioritizeTextures (GLsizei n, const GLuint *textures, const GLclampf *priorities);
  2737. static inline void qglPrioritizeTextures(GLsizei n, const GLuint *textures, const GLclampf *priorities)
  2738. {
  2739. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2740. if (QGLLogGLCalls)
  2741. fprintf(QGLDebugFile(), "glPrioritizeTextures(n=%ld, textures=%p, priorities=%p)\n", n, textures, priorities);
  2742. #endif
  2743. glPrioritizeTextures(n, textures, priorities);
  2744. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2745. if (!QGLBeginStarted)
  2746. QGLCheckError("glPrioritizeTextures");
  2747. #endif
  2748. }
  2749. // void glPushAttrib (GLbitfield mask);
  2750. static inline void qglPushAttrib(GLbitfield mask)
  2751. {
  2752. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2753. if (QGLLogGLCalls)
  2754. fprintf(QGLDebugFile(), "glPushAttrib(mask=%lu)\n", mask);
  2755. #endif
  2756. glPushAttrib(mask);
  2757. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2758. if (!QGLBeginStarted)
  2759. QGLCheckError("glPushAttrib");
  2760. #endif
  2761. }
  2762. // void glPushClientAttrib (GLbitfield mask);
  2763. static inline void qglPushClientAttrib(GLbitfield mask)
  2764. {
  2765. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2766. if (QGLLogGLCalls)
  2767. fprintf(QGLDebugFile(), "glPushClientAttrib(mask=%lu)\n", mask);
  2768. #endif
  2769. glPushClientAttrib(mask);
  2770. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2771. if (!QGLBeginStarted)
  2772. QGLCheckError("glPushClientAttrib");
  2773. #endif
  2774. }
  2775. // void glPushMatrix (void);
  2776. static inline void qglPushMatrix(void)
  2777. {
  2778. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2779. if (QGLLogGLCalls)
  2780. fprintf(QGLDebugFile(), "glPushMatrix(void)\n");
  2781. #endif
  2782. glPushMatrix();
  2783. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2784. if (!QGLBeginStarted)
  2785. QGLCheckError("glPushMatrix");
  2786. #endif
  2787. }
  2788. // void glPushName (GLuint name);
  2789. static inline void qglPushName(GLuint name)
  2790. {
  2791. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2792. if (QGLLogGLCalls)
  2793. fprintf(QGLDebugFile(), "glPushName(name=%lu)\n", name);
  2794. #endif
  2795. glPushName(name);
  2796. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2797. if (!QGLBeginStarted)
  2798. QGLCheckError("glPushName");
  2799. #endif
  2800. }
  2801. // void glRasterPos2d (GLdouble x, GLdouble y);
  2802. static inline void qglRasterPos2d(GLdouble x, GLdouble y)
  2803. {
  2804. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2805. if (QGLLogGLCalls)
  2806. fprintf(QGLDebugFile(), "glRasterPos2d(x=%f, y=%f)\n", x, y);
  2807. #endif
  2808. glRasterPos2d(x, y);
  2809. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2810. if (!QGLBeginStarted)
  2811. QGLCheckError("glRasterPos2d");
  2812. #endif
  2813. }
  2814. // void glRasterPos2dv (const GLdouble *v);
  2815. static inline void qglRasterPos2dv(const GLdouble *v)
  2816. {
  2817. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2818. if (QGLLogGLCalls)
  2819. fprintf(QGLDebugFile(), "glRasterPos2dv(v=%p)\n", v);
  2820. #endif
  2821. glRasterPos2dv(v);
  2822. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2823. if (!QGLBeginStarted)
  2824. QGLCheckError("glRasterPos2dv");
  2825. #endif
  2826. }
  2827. // void glRasterPos2f (GLfloat x, GLfloat y);
  2828. static inline void qglRasterPos2f(GLfloat x, GLfloat y)
  2829. {
  2830. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2831. if (QGLLogGLCalls)
  2832. fprintf(QGLDebugFile(), "glRasterPos2f(x=%f, y=%f)\n", x, y);
  2833. #endif
  2834. glRasterPos2f(x, y);
  2835. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2836. if (!QGLBeginStarted)
  2837. QGLCheckError("glRasterPos2f");
  2838. #endif
  2839. }
  2840. // void glRasterPos2fv (const GLfloat *v);
  2841. static inline void qglRasterPos2fv(const GLfloat *v)
  2842. {
  2843. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2844. if (QGLLogGLCalls)
  2845. fprintf(QGLDebugFile(), "glRasterPos2fv(v=%p)\n", v);
  2846. #endif
  2847. glRasterPos2fv(v);
  2848. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2849. if (!QGLBeginStarted)
  2850. QGLCheckError("glRasterPos2fv");
  2851. #endif
  2852. }
  2853. // void glRasterPos2i (GLint x, GLint y);
  2854. static inline void qglRasterPos2i(GLint x, GLint y)
  2855. {
  2856. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2857. if (QGLLogGLCalls)
  2858. fprintf(QGLDebugFile(), "glRasterPos2i(x=%ld, y=%ld)\n", x, y);
  2859. #endif
  2860. glRasterPos2i(x, y);
  2861. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2862. if (!QGLBeginStarted)
  2863. QGLCheckError("glRasterPos2i");
  2864. #endif
  2865. }
  2866. // void glRasterPos2iv (const GLint *v);
  2867. static inline void qglRasterPos2iv(const GLint *v)
  2868. {
  2869. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2870. if (QGLLogGLCalls)
  2871. fprintf(QGLDebugFile(), "glRasterPos2iv(v=%p)\n", v);
  2872. #endif
  2873. glRasterPos2iv(v);
  2874. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2875. if (!QGLBeginStarted)
  2876. QGLCheckError("glRasterPos2iv");
  2877. #endif
  2878. }
  2879. // void glRasterPos2s (GLshort x, GLshort y);
  2880. static inline void qglRasterPos2s(GLshort x, GLshort y)
  2881. {
  2882. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2883. if (QGLLogGLCalls)
  2884. fprintf(QGLDebugFile(), "glRasterPos2s(x=%d, y=%d)\n", x, y);
  2885. #endif
  2886. glRasterPos2s(x, y);
  2887. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2888. if (!QGLBeginStarted)
  2889. QGLCheckError("glRasterPos2s");
  2890. #endif
  2891. }
  2892. // void glRasterPos2sv (const GLshort *v);
  2893. static inline void qglRasterPos2sv(const GLshort *v)
  2894. {
  2895. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2896. if (QGLLogGLCalls)
  2897. fprintf(QGLDebugFile(), "glRasterPos2sv(v=%p)\n", v);
  2898. #endif
  2899. glRasterPos2sv(v);
  2900. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2901. if (!QGLBeginStarted)
  2902. QGLCheckError("glRasterPos2sv");
  2903. #endif
  2904. }
  2905. // void glRasterPos3d (GLdouble x, GLdouble y, GLdouble z);
  2906. static inline void qglRasterPos3d(GLdouble x, GLdouble y, GLdouble z)
  2907. {
  2908. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2909. if (QGLLogGLCalls)
  2910. fprintf(QGLDebugFile(), "glRasterPos3d(x=%f, y=%f, z=%f)\n", x, y, z);
  2911. #endif
  2912. glRasterPos3d(x, y, z);
  2913. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2914. if (!QGLBeginStarted)
  2915. QGLCheckError("glRasterPos3d");
  2916. #endif
  2917. }
  2918. // void glRasterPos3dv (const GLdouble *v);
  2919. static inline void qglRasterPos3dv(const GLdouble *v)
  2920. {
  2921. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2922. if (QGLLogGLCalls)
  2923. fprintf(QGLDebugFile(), "glRasterPos3dv(v=%p)\n", v);
  2924. #endif
  2925. glRasterPos3dv(v);
  2926. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2927. if (!QGLBeginStarted)
  2928. QGLCheckError("glRasterPos3dv");
  2929. #endif
  2930. }
  2931. // void glRasterPos3f (GLfloat x, GLfloat y, GLfloat z);
  2932. static inline void qglRasterPos3f(GLfloat x, GLfloat y, GLfloat z)
  2933. {
  2934. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2935. if (QGLLogGLCalls)
  2936. fprintf(QGLDebugFile(), "glRasterPos3f(x=%f, y=%f, z=%f)\n", x, y, z);
  2937. #endif
  2938. glRasterPos3f(x, y, z);
  2939. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2940. if (!QGLBeginStarted)
  2941. QGLCheckError("glRasterPos3f");
  2942. #endif
  2943. }
  2944. // void glRasterPos3fv (const GLfloat *v);
  2945. static inline void qglRasterPos3fv(const GLfloat *v)
  2946. {
  2947. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2948. if (QGLLogGLCalls)
  2949. fprintf(QGLDebugFile(), "glRasterPos3fv(v=%p)\n", v);
  2950. #endif
  2951. glRasterPos3fv(v);
  2952. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2953. if (!QGLBeginStarted)
  2954. QGLCheckError("glRasterPos3fv");
  2955. #endif
  2956. }
  2957. // void glRasterPos3i (GLint x, GLint y, GLint z);
  2958. static inline void qglRasterPos3i(GLint x, GLint y, GLint z)
  2959. {
  2960. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2961. if (QGLLogGLCalls)
  2962. fprintf(QGLDebugFile(), "glRasterPos3i(x=%ld, y=%ld, z=%ld)\n", x, y, z);
  2963. #endif
  2964. glRasterPos3i(x, y, z);
  2965. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2966. if (!QGLBeginStarted)
  2967. QGLCheckError("glRasterPos3i");
  2968. #endif
  2969. }
  2970. // void glRasterPos3iv (const GLint *v);
  2971. static inline void qglRasterPos3iv(const GLint *v)
  2972. {
  2973. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2974. if (QGLLogGLCalls)
  2975. fprintf(QGLDebugFile(), "glRasterPos3iv(v=%p)\n", v);
  2976. #endif
  2977. glRasterPos3iv(v);
  2978. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2979. if (!QGLBeginStarted)
  2980. QGLCheckError("glRasterPos3iv");
  2981. #endif
  2982. }
  2983. // void glRasterPos3s (GLshort x, GLshort y, GLshort z);
  2984. static inline void qglRasterPos3s(GLshort x, GLshort y, GLshort z)
  2985. {
  2986. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  2987. if (QGLLogGLCalls)
  2988. fprintf(QGLDebugFile(), "glRasterPos3s(x=%d, y=%d, z=%d)\n", x, y, z);
  2989. #endif
  2990. glRasterPos3s(x, y, z);
  2991. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  2992. if (!QGLBeginStarted)
  2993. QGLCheckError("glRasterPos3s");
  2994. #endif
  2995. }
  2996. // void glRasterPos3sv (const GLshort *v);
  2997. static inline void qglRasterPos3sv(const GLshort *v)
  2998. {
  2999. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3000. if (QGLLogGLCalls)
  3001. fprintf(QGLDebugFile(), "glRasterPos3sv(v=%p)\n", v);
  3002. #endif
  3003. glRasterPos3sv(v);
  3004. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3005. if (!QGLBeginStarted)
  3006. QGLCheckError("glRasterPos3sv");
  3007. #endif
  3008. }
  3009. // void glRasterPos4d (GLdouble x, GLdouble y, GLdouble z, GLdouble w);
  3010. static inline void qglRasterPos4d(GLdouble x, GLdouble y, GLdouble z, GLdouble w)
  3011. {
  3012. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3013. if (QGLLogGLCalls)
  3014. fprintf(QGLDebugFile(), "glRasterPos4d(x=%f, y=%f, z=%f, w=%f)\n", x, y, z, w);
  3015. #endif
  3016. glRasterPos4d(x, y, z, w);
  3017. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3018. if (!QGLBeginStarted)
  3019. QGLCheckError("glRasterPos4d");
  3020. #endif
  3021. }
  3022. // void glRasterPos4dv (const GLdouble *v);
  3023. static inline void qglRasterPos4dv(const GLdouble *v)
  3024. {
  3025. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3026. if (QGLLogGLCalls)
  3027. fprintf(QGLDebugFile(), "glRasterPos4dv(v=%p)\n", v);
  3028. #endif
  3029. glRasterPos4dv(v);
  3030. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3031. if (!QGLBeginStarted)
  3032. QGLCheckError("glRasterPos4dv");
  3033. #endif
  3034. }
  3035. // void glRasterPos4f (GLfloat x, GLfloat y, GLfloat z, GLfloat w);
  3036. static inline void qglRasterPos4f(GLfloat x, GLfloat y, GLfloat z, GLfloat w)
  3037. {
  3038. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3039. if (QGLLogGLCalls)
  3040. fprintf(QGLDebugFile(), "glRasterPos4f(x=%f, y=%f, z=%f, w=%f)\n", x, y, z, w);
  3041. #endif
  3042. glRasterPos4f(x, y, z, w);
  3043. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3044. if (!QGLBeginStarted)
  3045. QGLCheckError("glRasterPos4f");
  3046. #endif
  3047. }
  3048. // void glRasterPos4fv (const GLfloat *v);
  3049. static inline void qglRasterPos4fv(const GLfloat *v)
  3050. {
  3051. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3052. if (QGLLogGLCalls)
  3053. fprintf(QGLDebugFile(), "glRasterPos4fv(v=%p)\n", v);
  3054. #endif
  3055. glRasterPos4fv(v);
  3056. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3057. if (!QGLBeginStarted)
  3058. QGLCheckError("glRasterPos4fv");
  3059. #endif
  3060. }
  3061. // void glRasterPos4i (GLint x, GLint y, GLint z, GLint w);
  3062. static inline void qglRasterPos4i(GLint x, GLint y, GLint z, GLint w)
  3063. {
  3064. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3065. if (QGLLogGLCalls)
  3066. fprintf(QGLDebugFile(), "glRasterPos4i(x=%ld, y=%ld, z=%ld, w=%ld)\n", x, y, z, w);
  3067. #endif
  3068. glRasterPos4i(x, y, z, w);
  3069. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3070. if (!QGLBeginStarted)
  3071. QGLCheckError("glRasterPos4i");
  3072. #endif
  3073. }
  3074. // void glRasterPos4iv (const GLint *v);
  3075. static inline void qglRasterPos4iv(const GLint *v)
  3076. {
  3077. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3078. if (QGLLogGLCalls)
  3079. fprintf(QGLDebugFile(), "glRasterPos4iv(v=%p)\n", v);
  3080. #endif
  3081. glRasterPos4iv(v);
  3082. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3083. if (!QGLBeginStarted)
  3084. QGLCheckError("glRasterPos4iv");
  3085. #endif
  3086. }
  3087. // void glRasterPos4s (GLshort x, GLshort y, GLshort z, GLshort w);
  3088. static inline void qglRasterPos4s(GLshort x, GLshort y, GLshort z, GLshort w)
  3089. {
  3090. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3091. if (QGLLogGLCalls)
  3092. fprintf(QGLDebugFile(), "glRasterPos4s(x=%d, y=%d, z=%d, w=%d)\n", x, y, z, w);
  3093. #endif
  3094. glRasterPos4s(x, y, z, w);
  3095. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3096. if (!QGLBeginStarted)
  3097. QGLCheckError("glRasterPos4s");
  3098. #endif
  3099. }
  3100. // void glRasterPos4sv (const GLshort *v);
  3101. static inline void qglRasterPos4sv(const GLshort *v)
  3102. {
  3103. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3104. if (QGLLogGLCalls)
  3105. fprintf(QGLDebugFile(), "glRasterPos4sv(v=%p)\n", v);
  3106. #endif
  3107. glRasterPos4sv(v);
  3108. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3109. if (!QGLBeginStarted)
  3110. QGLCheckError("glRasterPos4sv");
  3111. #endif
  3112. }
  3113. // void glReadBuffer (GLenum mode);
  3114. static inline void qglReadBuffer(GLenum mode)
  3115. {
  3116. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3117. if (QGLLogGLCalls)
  3118. fprintf(QGLDebugFile(), "glReadBuffer(mode=%lu)\n", mode);
  3119. #endif
  3120. glReadBuffer(mode);
  3121. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3122. if (!QGLBeginStarted)
  3123. QGLCheckError("glReadBuffer");
  3124. #endif
  3125. }
  3126. // void glReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels);
  3127. static inline void qglReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels)
  3128. {
  3129. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3130. if (QGLLogGLCalls)
  3131. fprintf(QGLDebugFile(), "glReadPixels(x=%ld, y=%ld, width=%ld, height=%ld, format=%lu, type=%lu, pixels=%p)\n", x, y, width, height, format, type, pixels);
  3132. #endif
  3133. glReadPixels(x, y, width, height, format, type, pixels);
  3134. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3135. if (!QGLBeginStarted)
  3136. QGLCheckError("glReadPixels");
  3137. #endif
  3138. }
  3139. // void glRectd (GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2);
  3140. static inline void qglRectd(GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2)
  3141. {
  3142. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3143. if (QGLLogGLCalls)
  3144. fprintf(QGLDebugFile(), "glRectd(x1=%f, y1=%f, x2=%f, y2=%f)\n", x1, y1, x2, y2);
  3145. #endif
  3146. glRectd(x1, y1, x2, y2);
  3147. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3148. if (!QGLBeginStarted)
  3149. QGLCheckError("glRectd");
  3150. #endif
  3151. }
  3152. // void glRectdv (const GLdouble *v1, const GLdouble *v2);
  3153. static inline void qglRectdv(const GLdouble *v1, const GLdouble *v2)
  3154. {
  3155. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3156. if (QGLLogGLCalls)
  3157. fprintf(QGLDebugFile(), "glRectdv(v1=%p, v2=%p)\n", v1, v2);
  3158. #endif
  3159. glRectdv(v1, v2);
  3160. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3161. if (!QGLBeginStarted)
  3162. QGLCheckError("glRectdv");
  3163. #endif
  3164. }
  3165. // void glRectf (GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2);
  3166. static inline void qglRectf(GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2)
  3167. {
  3168. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3169. if (QGLLogGLCalls)
  3170. fprintf(QGLDebugFile(), "glRectf(x1=%f, y1=%f, x2=%f, y2=%f)\n", x1, y1, x2, y2);
  3171. #endif
  3172. glRectf(x1, y1, x2, y2);
  3173. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3174. if (!QGLBeginStarted)
  3175. QGLCheckError("glRectf");
  3176. #endif
  3177. }
  3178. // void glRectfv (const GLfloat *v1, const GLfloat *v2);
  3179. static inline void qglRectfv(const GLfloat *v1, const GLfloat *v2)
  3180. {
  3181. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3182. if (QGLLogGLCalls)
  3183. fprintf(QGLDebugFile(), "glRectfv(v1=%p, v2=%p)\n", v1, v2);
  3184. #endif
  3185. glRectfv(v1, v2);
  3186. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3187. if (!QGLBeginStarted)
  3188. QGLCheckError("glRectfv");
  3189. #endif
  3190. }
  3191. // void glRecti (GLint x1, GLint y1, GLint x2, GLint y2);
  3192. static inline void qglRecti(GLint x1, GLint y1, GLint x2, GLint y2)
  3193. {
  3194. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3195. if (QGLLogGLCalls)
  3196. fprintf(QGLDebugFile(), "glRecti(x1=%ld, y1=%ld, x2=%ld, y2=%ld)\n", x1, y1, x2, y2);
  3197. #endif
  3198. glRecti(x1, y1, x2, y2);
  3199. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3200. if (!QGLBeginStarted)
  3201. QGLCheckError("glRecti");
  3202. #endif
  3203. }
  3204. // void glRectiv (const GLint *v1, const GLint *v2);
  3205. static inline void qglRectiv(const GLint *v1, const GLint *v2)
  3206. {
  3207. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3208. if (QGLLogGLCalls)
  3209. fprintf(QGLDebugFile(), "glRectiv(v1=%p, v2=%p)\n", v1, v2);
  3210. #endif
  3211. glRectiv(v1, v2);
  3212. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3213. if (!QGLBeginStarted)
  3214. QGLCheckError("glRectiv");
  3215. #endif
  3216. }
  3217. // void glRects (GLshort x1, GLshort y1, GLshort x2, GLshort y2);
  3218. static inline void qglRects(GLshort x1, GLshort y1, GLshort x2, GLshort y2)
  3219. {
  3220. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3221. if (QGLLogGLCalls)
  3222. fprintf(QGLDebugFile(), "glRects(x1=%d, y1=%d, x2=%d, y2=%d)\n", x1, y1, x2, y2);
  3223. #endif
  3224. glRects(x1, y1, x2, y2);
  3225. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3226. if (!QGLBeginStarted)
  3227. QGLCheckError("glRects");
  3228. #endif
  3229. }
  3230. // void glRectsv (const GLshort *v1, const GLshort *v2);
  3231. static inline void qglRectsv(const GLshort *v1, const GLshort *v2)
  3232. {
  3233. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3234. if (QGLLogGLCalls)
  3235. fprintf(QGLDebugFile(), "glRectsv(v1=%p, v2=%p)\n", v1, v2);
  3236. #endif
  3237. glRectsv(v1, v2);
  3238. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3239. if (!QGLBeginStarted)
  3240. QGLCheckError("glRectsv");
  3241. #endif
  3242. }
  3243. // GLint glRenderMode (GLenum mode);
  3244. static inline GLint qglRenderMode(GLenum mode)
  3245. {
  3246. GLint returnValue;
  3247. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3248. if (QGLLogGLCalls)
  3249. fprintf(QGLDebugFile(), "glRenderMode(mode=%lu)\n", mode);
  3250. #endif
  3251. returnValue = glRenderMode(mode);
  3252. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3253. if (!QGLBeginStarted)
  3254. QGLCheckError("glRenderMode");
  3255. #endif
  3256. return returnValue;
  3257. }
  3258. // void glRotated (GLdouble angle, GLdouble x, GLdouble y, GLdouble z);
  3259. static inline void qglRotated(GLdouble angle, GLdouble x, GLdouble y, GLdouble z)
  3260. {
  3261. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3262. if (QGLLogGLCalls)
  3263. fprintf(QGLDebugFile(), "glRotated(angle=%f, x=%f, y=%f, z=%f)\n", angle, x, y, z);
  3264. #endif
  3265. glRotated(angle, x, y, z);
  3266. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3267. if (!QGLBeginStarted)
  3268. QGLCheckError("glRotated");
  3269. #endif
  3270. }
  3271. // void glRotatef (GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
  3272. static inline void qglRotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z)
  3273. {
  3274. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3275. if (QGLLogGLCalls)
  3276. fprintf(QGLDebugFile(), "glRotatef(angle=%f, x=%f, y=%f, z=%f)\n", angle, x, y, z);
  3277. #endif
  3278. glRotatef(angle, x, y, z);
  3279. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3280. if (!QGLBeginStarted)
  3281. QGLCheckError("glRotatef");
  3282. #endif
  3283. }
  3284. // void glScaled (GLdouble x, GLdouble y, GLdouble z);
  3285. static inline void qglScaled(GLdouble x, GLdouble y, GLdouble z)
  3286. {
  3287. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3288. if (QGLLogGLCalls)
  3289. fprintf(QGLDebugFile(), "glScaled(x=%f, y=%f, z=%f)\n", x, y, z);
  3290. #endif
  3291. glScaled(x, y, z);
  3292. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3293. if (!QGLBeginStarted)
  3294. QGLCheckError("glScaled");
  3295. #endif
  3296. }
  3297. // void glScalef (GLfloat x, GLfloat y, GLfloat z);
  3298. static inline void qglScalef(GLfloat x, GLfloat y, GLfloat z)
  3299. {
  3300. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3301. if (QGLLogGLCalls)
  3302. fprintf(QGLDebugFile(), "glScalef(x=%f, y=%f, z=%f)\n", x, y, z);
  3303. #endif
  3304. glScalef(x, y, z);
  3305. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3306. if (!QGLBeginStarted)
  3307. QGLCheckError("glScalef");
  3308. #endif
  3309. }
  3310. // void glScissor (GLint x, GLint y, GLsizei width, GLsizei height);
  3311. static inline void qglScissor(GLint x, GLint y, GLsizei width, GLsizei height)
  3312. {
  3313. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3314. if (QGLLogGLCalls)
  3315. fprintf(QGLDebugFile(), "glScissor(x=%ld, y=%ld, width=%ld, height=%ld)\n", x, y, width, height);
  3316. #endif
  3317. glScissor(x, y, width, height);
  3318. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3319. if (!QGLBeginStarted)
  3320. QGLCheckError("glScissor");
  3321. #endif
  3322. }
  3323. // void glSelectBuffer (GLsizei size, GLuint *buffer);
  3324. static inline void qglSelectBuffer(GLsizei size, GLuint *buffer)
  3325. {
  3326. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3327. if (QGLLogGLCalls)
  3328. fprintf(QGLDebugFile(), "glSelectBuffer(size=%ld, buffer=%p)\n", size, buffer);
  3329. #endif
  3330. glSelectBuffer(size, buffer);
  3331. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3332. if (!QGLBeginStarted)
  3333. QGLCheckError("glSelectBuffer");
  3334. #endif
  3335. }
  3336. // void glShadeModel (GLenum mode);
  3337. static inline void qglShadeModel(GLenum mode)
  3338. {
  3339. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3340. if (QGLLogGLCalls)
  3341. fprintf(QGLDebugFile(), "glShadeModel(mode=%lu)\n", mode);
  3342. #endif
  3343. glShadeModel(mode);
  3344. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3345. if (!QGLBeginStarted)
  3346. QGLCheckError("glShadeModel");
  3347. #endif
  3348. }
  3349. // void glStencilFunc (GLenum func, GLint ref, GLuint mask);
  3350. static inline void qglStencilFunc(GLenum func, GLint ref, GLuint mask)
  3351. {
  3352. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3353. if (QGLLogGLCalls)
  3354. fprintf(QGLDebugFile(), "glStencilFunc(func=%lu, ref=%ld, mask=%lu)\n", func, ref, mask);
  3355. #endif
  3356. glStencilFunc(func, ref, mask);
  3357. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3358. if (!QGLBeginStarted)
  3359. QGLCheckError("glStencilFunc");
  3360. #endif
  3361. }
  3362. // void glStencilMask (GLuint mask);
  3363. static inline void qglStencilMask(GLuint mask)
  3364. {
  3365. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3366. if (QGLLogGLCalls)
  3367. fprintf(QGLDebugFile(), "glStencilMask(mask=%lu)\n", mask);
  3368. #endif
  3369. glStencilMask(mask);
  3370. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3371. if (!QGLBeginStarted)
  3372. QGLCheckError("glStencilMask");
  3373. #endif
  3374. }
  3375. // void glStencilOp (GLenum fail, GLenum zfail, GLenum zpass);
  3376. static inline void qglStencilOp(GLenum fail, GLenum zfail, GLenum zpass)
  3377. {
  3378. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3379. if (QGLLogGLCalls)
  3380. fprintf(QGLDebugFile(), "glStencilOp(fail=%lu, zfail=%lu, zpass=%lu)\n", fail, zfail, zpass);
  3381. #endif
  3382. glStencilOp(fail, zfail, zpass);
  3383. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3384. if (!QGLBeginStarted)
  3385. QGLCheckError("glStencilOp");
  3386. #endif
  3387. }
  3388. // void glTexCoord1d (GLdouble s);
  3389. static inline void qglTexCoord1d(GLdouble s)
  3390. {
  3391. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3392. if (QGLLogGLCalls)
  3393. fprintf(QGLDebugFile(), "glTexCoord1d(s=%f)\n", s);
  3394. #endif
  3395. glTexCoord1d(s);
  3396. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3397. if (!QGLBeginStarted)
  3398. QGLCheckError("glTexCoord1d");
  3399. #endif
  3400. }
  3401. // void glTexCoord1dv (const GLdouble *v);
  3402. static inline void qglTexCoord1dv(const GLdouble *v)
  3403. {
  3404. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3405. if (QGLLogGLCalls)
  3406. fprintf(QGLDebugFile(), "glTexCoord1dv(v=%p)\n", v);
  3407. #endif
  3408. glTexCoord1dv(v);
  3409. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3410. if (!QGLBeginStarted)
  3411. QGLCheckError("glTexCoord1dv");
  3412. #endif
  3413. }
  3414. // void glTexCoord1f (GLfloat s);
  3415. static inline void qglTexCoord1f(GLfloat s)
  3416. {
  3417. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3418. if (QGLLogGLCalls)
  3419. fprintf(QGLDebugFile(), "glTexCoord1f(s=%f)\n", s);
  3420. #endif
  3421. glTexCoord1f(s);
  3422. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3423. if (!QGLBeginStarted)
  3424. QGLCheckError("glTexCoord1f");
  3425. #endif
  3426. }
  3427. // void glTexCoord1fv (const GLfloat *v);
  3428. static inline void qglTexCoord1fv(const GLfloat *v)
  3429. {
  3430. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3431. if (QGLLogGLCalls)
  3432. fprintf(QGLDebugFile(), "glTexCoord1fv(v=%p)\n", v);
  3433. #endif
  3434. glTexCoord1fv(v);
  3435. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3436. if (!QGLBeginStarted)
  3437. QGLCheckError("glTexCoord1fv");
  3438. #endif
  3439. }
  3440. // void glTexCoord1i (GLint s);
  3441. static inline void qglTexCoord1i(GLint s)
  3442. {
  3443. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3444. if (QGLLogGLCalls)
  3445. fprintf(QGLDebugFile(), "glTexCoord1i(s=%ld)\n", s);
  3446. #endif
  3447. glTexCoord1i(s);
  3448. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3449. if (!QGLBeginStarted)
  3450. QGLCheckError("glTexCoord1i");
  3451. #endif
  3452. }
  3453. // void glTexCoord1iv (const GLint *v);
  3454. static inline void qglTexCoord1iv(const GLint *v)
  3455. {
  3456. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3457. if (QGLLogGLCalls)
  3458. fprintf(QGLDebugFile(), "glTexCoord1iv(v=%p)\n", v);
  3459. #endif
  3460. glTexCoord1iv(v);
  3461. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3462. if (!QGLBeginStarted)
  3463. QGLCheckError("glTexCoord1iv");
  3464. #endif
  3465. }
  3466. // void glTexCoord1s (GLshort s);
  3467. static inline void qglTexCoord1s(GLshort s)
  3468. {
  3469. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3470. if (QGLLogGLCalls)
  3471. fprintf(QGLDebugFile(), "glTexCoord1s(s=%d)\n", s);
  3472. #endif
  3473. glTexCoord1s(s);
  3474. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3475. if (!QGLBeginStarted)
  3476. QGLCheckError("glTexCoord1s");
  3477. #endif
  3478. }
  3479. // void glTexCoord1sv (const GLshort *v);
  3480. static inline void qglTexCoord1sv(const GLshort *v)
  3481. {
  3482. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3483. if (QGLLogGLCalls)
  3484. fprintf(QGLDebugFile(), "glTexCoord1sv(v=%p)\n", v);
  3485. #endif
  3486. glTexCoord1sv(v);
  3487. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3488. if (!QGLBeginStarted)
  3489. QGLCheckError("glTexCoord1sv");
  3490. #endif
  3491. }
  3492. // void glTexCoord2d (GLdouble s, GLdouble t);
  3493. static inline void qglTexCoord2d(GLdouble s, GLdouble t)
  3494. {
  3495. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3496. if (QGLLogGLCalls)
  3497. fprintf(QGLDebugFile(), "glTexCoord2d(s=%f, t=%f)\n", s, t);
  3498. #endif
  3499. glTexCoord2d(s, t);
  3500. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3501. if (!QGLBeginStarted)
  3502. QGLCheckError("glTexCoord2d");
  3503. #endif
  3504. }
  3505. // void glTexCoord2dv (const GLdouble *v);
  3506. static inline void qglTexCoord2dv(const GLdouble *v)
  3507. {
  3508. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3509. if (QGLLogGLCalls)
  3510. fprintf(QGLDebugFile(), "glTexCoord2dv(v=%p)\n", v);
  3511. #endif
  3512. glTexCoord2dv(v);
  3513. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3514. if (!QGLBeginStarted)
  3515. QGLCheckError("glTexCoord2dv");
  3516. #endif
  3517. }
  3518. // void glTexCoord2f (GLfloat s, GLfloat t);
  3519. static inline void qglTexCoord2f(GLfloat s, GLfloat t)
  3520. {
  3521. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3522. if (QGLLogGLCalls)
  3523. fprintf(QGLDebugFile(), "glTexCoord2f(s=%f, t=%f)\n", s, t);
  3524. #endif
  3525. glTexCoord2f(s, t);
  3526. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3527. if (!QGLBeginStarted)
  3528. QGLCheckError("glTexCoord2f");
  3529. #endif
  3530. }
  3531. // void glTexCoord2fv (const GLfloat *v);
  3532. static inline void qglTexCoord2fv(const GLfloat *v)
  3533. {
  3534. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3535. if (QGLLogGLCalls)
  3536. fprintf(QGLDebugFile(), "glTexCoord2fv(v=%p)\n", v);
  3537. #endif
  3538. glTexCoord2fv(v);
  3539. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3540. if (!QGLBeginStarted)
  3541. QGLCheckError("glTexCoord2fv");
  3542. #endif
  3543. }
  3544. // void glTexCoord2i (GLint s, GLint t);
  3545. static inline void qglTexCoord2i(GLint s, GLint t)
  3546. {
  3547. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3548. if (QGLLogGLCalls)
  3549. fprintf(QGLDebugFile(), "glTexCoord2i(s=%ld, t=%ld)\n", s, t);
  3550. #endif
  3551. glTexCoord2i(s, t);
  3552. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3553. if (!QGLBeginStarted)
  3554. QGLCheckError("glTexCoord2i");
  3555. #endif
  3556. }
  3557. // void glTexCoord2iv (const GLint *v);
  3558. static inline void qglTexCoord2iv(const GLint *v)
  3559. {
  3560. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3561. if (QGLLogGLCalls)
  3562. fprintf(QGLDebugFile(), "glTexCoord2iv(v=%p)\n", v);
  3563. #endif
  3564. glTexCoord2iv(v);
  3565. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3566. if (!QGLBeginStarted)
  3567. QGLCheckError("glTexCoord2iv");
  3568. #endif
  3569. }
  3570. // void glTexCoord2s (GLshort s, GLshort t);
  3571. static inline void qglTexCoord2s(GLshort s, GLshort t)
  3572. {
  3573. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3574. if (QGLLogGLCalls)
  3575. fprintf(QGLDebugFile(), "glTexCoord2s(s=%d, t=%d)\n", s, t);
  3576. #endif
  3577. glTexCoord2s(s, t);
  3578. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3579. if (!QGLBeginStarted)
  3580. QGLCheckError("glTexCoord2s");
  3581. #endif
  3582. }
  3583. // void glTexCoord2sv (const GLshort *v);
  3584. static inline void qglTexCoord2sv(const GLshort *v)
  3585. {
  3586. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3587. if (QGLLogGLCalls)
  3588. fprintf(QGLDebugFile(), "glTexCoord2sv(v=%p)\n", v);
  3589. #endif
  3590. glTexCoord2sv(v);
  3591. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3592. if (!QGLBeginStarted)
  3593. QGLCheckError("glTexCoord2sv");
  3594. #endif
  3595. }
  3596. // void glTexCoord3d (GLdouble s, GLdouble t, GLdouble r);
  3597. static inline void qglTexCoord3d(GLdouble s, GLdouble t, GLdouble r)
  3598. {
  3599. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3600. if (QGLLogGLCalls)
  3601. fprintf(QGLDebugFile(), "glTexCoord3d(s=%f, t=%f, r=%f)\n", s, t, r);
  3602. #endif
  3603. glTexCoord3d(s, t, r);
  3604. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3605. if (!QGLBeginStarted)
  3606. QGLCheckError("glTexCoord3d");
  3607. #endif
  3608. }
  3609. // void glTexCoord3dv (const GLdouble *v);
  3610. static inline void qglTexCoord3dv(const GLdouble *v)
  3611. {
  3612. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3613. if (QGLLogGLCalls)
  3614. fprintf(QGLDebugFile(), "glTexCoord3dv(v=%p)\n", v);
  3615. #endif
  3616. glTexCoord3dv(v);
  3617. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3618. if (!QGLBeginStarted)
  3619. QGLCheckError("glTexCoord3dv");
  3620. #endif
  3621. }
  3622. // void glTexCoord3f (GLfloat s, GLfloat t, GLfloat r);
  3623. static inline void qglTexCoord3f(GLfloat s, GLfloat t, GLfloat r)
  3624. {
  3625. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3626. if (QGLLogGLCalls)
  3627. fprintf(QGLDebugFile(), "glTexCoord3f(s=%f, t=%f, r=%f)\n", s, t, r);
  3628. #endif
  3629. glTexCoord3f(s, t, r);
  3630. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3631. if (!QGLBeginStarted)
  3632. QGLCheckError("glTexCoord3f");
  3633. #endif
  3634. }
  3635. // void glTexCoord3fv (const GLfloat *v);
  3636. static inline void qglTexCoord3fv(const GLfloat *v)
  3637. {
  3638. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3639. if (QGLLogGLCalls)
  3640. fprintf(QGLDebugFile(), "glTexCoord3fv(v=%p)\n", v);
  3641. #endif
  3642. glTexCoord3fv(v);
  3643. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3644. if (!QGLBeginStarted)
  3645. QGLCheckError("glTexCoord3fv");
  3646. #endif
  3647. }
  3648. // void glTexCoord3i (GLint s, GLint t, GLint r);
  3649. static inline void qglTexCoord3i(GLint s, GLint t, GLint r)
  3650. {
  3651. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3652. if (QGLLogGLCalls)
  3653. fprintf(QGLDebugFile(), "glTexCoord3i(s=%ld, t=%ld, r=%ld)\n", s, t, r);
  3654. #endif
  3655. glTexCoord3i(s, t, r);
  3656. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3657. if (!QGLBeginStarted)
  3658. QGLCheckError("glTexCoord3i");
  3659. #endif
  3660. }
  3661. // void glTexCoord3iv (const GLint *v);
  3662. static inline void qglTexCoord3iv(const GLint *v)
  3663. {
  3664. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3665. if (QGLLogGLCalls)
  3666. fprintf(QGLDebugFile(), "glTexCoord3iv(v=%p)\n", v);
  3667. #endif
  3668. glTexCoord3iv(v);
  3669. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3670. if (!QGLBeginStarted)
  3671. QGLCheckError("glTexCoord3iv");
  3672. #endif
  3673. }
  3674. // void glTexCoord3s (GLshort s, GLshort t, GLshort r);
  3675. static inline void qglTexCoord3s(GLshort s, GLshort t, GLshort r)
  3676. {
  3677. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3678. if (QGLLogGLCalls)
  3679. fprintf(QGLDebugFile(), "glTexCoord3s(s=%d, t=%d, r=%d)\n", s, t, r);
  3680. #endif
  3681. glTexCoord3s(s, t, r);
  3682. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3683. if (!QGLBeginStarted)
  3684. QGLCheckError("glTexCoord3s");
  3685. #endif
  3686. }
  3687. // void glTexCoord3sv (const GLshort *v);
  3688. static inline void qglTexCoord3sv(const GLshort *v)
  3689. {
  3690. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3691. if (QGLLogGLCalls)
  3692. fprintf(QGLDebugFile(), "glTexCoord3sv(v=%p)\n", v);
  3693. #endif
  3694. glTexCoord3sv(v);
  3695. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3696. if (!QGLBeginStarted)
  3697. QGLCheckError("glTexCoord3sv");
  3698. #endif
  3699. }
  3700. // void glTexCoord4d (GLdouble s, GLdouble t, GLdouble r, GLdouble q);
  3701. static inline void qglTexCoord4d(GLdouble s, GLdouble t, GLdouble r, GLdouble q)
  3702. {
  3703. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3704. if (QGLLogGLCalls)
  3705. fprintf(QGLDebugFile(), "glTexCoord4d(s=%f, t=%f, r=%f, q=%f)\n", s, t, r, q);
  3706. #endif
  3707. glTexCoord4d(s, t, r, q);
  3708. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3709. if (!QGLBeginStarted)
  3710. QGLCheckError("glTexCoord4d");
  3711. #endif
  3712. }
  3713. // void glTexCoord4dv (const GLdouble *v);
  3714. static inline void qglTexCoord4dv(const GLdouble *v)
  3715. {
  3716. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3717. if (QGLLogGLCalls)
  3718. fprintf(QGLDebugFile(), "glTexCoord4dv(v=%p)\n", v);
  3719. #endif
  3720. glTexCoord4dv(v);
  3721. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3722. if (!QGLBeginStarted)
  3723. QGLCheckError("glTexCoord4dv");
  3724. #endif
  3725. }
  3726. // void glTexCoord4f (GLfloat s, GLfloat t, GLfloat r, GLfloat q);
  3727. static inline void qglTexCoord4f(GLfloat s, GLfloat t, GLfloat r, GLfloat q)
  3728. {
  3729. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3730. if (QGLLogGLCalls)
  3731. fprintf(QGLDebugFile(), "glTexCoord4f(s=%f, t=%f, r=%f, q=%f)\n", s, t, r, q);
  3732. #endif
  3733. glTexCoord4f(s, t, r, q);
  3734. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3735. if (!QGLBeginStarted)
  3736. QGLCheckError("glTexCoord4f");
  3737. #endif
  3738. }
  3739. // void glTexCoord4fv (const GLfloat *v);
  3740. static inline void qglTexCoord4fv(const GLfloat *v)
  3741. {
  3742. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3743. if (QGLLogGLCalls)
  3744. fprintf(QGLDebugFile(), "glTexCoord4fv(v=%p)\n", v);
  3745. #endif
  3746. glTexCoord4fv(v);
  3747. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3748. if (!QGLBeginStarted)
  3749. QGLCheckError("glTexCoord4fv");
  3750. #endif
  3751. }
  3752. // void glTexCoord4i (GLint s, GLint t, GLint r, GLint q);
  3753. static inline void qglTexCoord4i(GLint s, GLint t, GLint r, GLint q)
  3754. {
  3755. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3756. if (QGLLogGLCalls)
  3757. fprintf(QGLDebugFile(), "glTexCoord4i(s=%ld, t=%ld, r=%ld, q=%ld)\n", s, t, r, q);
  3758. #endif
  3759. glTexCoord4i(s, t, r, q);
  3760. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3761. if (!QGLBeginStarted)
  3762. QGLCheckError("glTexCoord4i");
  3763. #endif
  3764. }
  3765. // void glTexCoord4iv (const GLint *v);
  3766. static inline void qglTexCoord4iv(const GLint *v)
  3767. {
  3768. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3769. if (QGLLogGLCalls)
  3770. fprintf(QGLDebugFile(), "glTexCoord4iv(v=%p)\n", v);
  3771. #endif
  3772. glTexCoord4iv(v);
  3773. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3774. if (!QGLBeginStarted)
  3775. QGLCheckError("glTexCoord4iv");
  3776. #endif
  3777. }
  3778. // void glTexCoord4s (GLshort s, GLshort t, GLshort r, GLshort q);
  3779. static inline void qglTexCoord4s(GLshort s, GLshort t, GLshort r, GLshort q)
  3780. {
  3781. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3782. if (QGLLogGLCalls)
  3783. fprintf(QGLDebugFile(), "glTexCoord4s(s=%d, t=%d, r=%d, q=%d)\n", s, t, r, q);
  3784. #endif
  3785. glTexCoord4s(s, t, r, q);
  3786. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3787. if (!QGLBeginStarted)
  3788. QGLCheckError("glTexCoord4s");
  3789. #endif
  3790. }
  3791. // void glTexCoord4sv (const GLshort *v);
  3792. static inline void qglTexCoord4sv(const GLshort *v)
  3793. {
  3794. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3795. if (QGLLogGLCalls)
  3796. fprintf(QGLDebugFile(), "glTexCoord4sv(v=%p)\n", v);
  3797. #endif
  3798. glTexCoord4sv(v);
  3799. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3800. if (!QGLBeginStarted)
  3801. QGLCheckError("glTexCoord4sv");
  3802. #endif
  3803. }
  3804. // void glTexCoordPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
  3805. static inline void qglTexCoordPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)
  3806. {
  3807. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3808. if (QGLLogGLCalls)
  3809. fprintf(QGLDebugFile(), "glTexCoordPointer(size=%ld, type=%lu, stride=%ld, pointer=%p)\n", size, type, stride, pointer);
  3810. #endif
  3811. glTexCoordPointer(size, type, stride, pointer);
  3812. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3813. if (!QGLBeginStarted)
  3814. QGLCheckError("glTexCoordPointer");
  3815. #endif
  3816. }
  3817. // void glTexEnvf (GLenum target, GLenum pname, GLfloat param);
  3818. static inline void qglTexEnvf(GLenum target, GLenum pname, GLfloat param)
  3819. {
  3820. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3821. if (QGLLogGLCalls)
  3822. fprintf(QGLDebugFile(), "glTexEnvf(target=%lu, pname=%lu, param=%f)\n", target, pname, param);
  3823. #endif
  3824. glTexEnvf(target, pname, param);
  3825. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3826. if (!QGLBeginStarted)
  3827. QGLCheckError("glTexEnvf");
  3828. #endif
  3829. }
  3830. // void glTexEnvfv (GLenum target, GLenum pname, const GLfloat *params);
  3831. static inline void qglTexEnvfv(GLenum target, GLenum pname, const GLfloat *params)
  3832. {
  3833. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3834. if (QGLLogGLCalls)
  3835. fprintf(QGLDebugFile(), "glTexEnvfv(target=%lu, pname=%lu, params=%p)\n", target, pname, params);
  3836. #endif
  3837. glTexEnvfv(target, pname, params);
  3838. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3839. if (!QGLBeginStarted)
  3840. QGLCheckError("glTexEnvfv");
  3841. #endif
  3842. }
  3843. // void glTexEnvi (GLenum target, GLenum pname, GLint param);
  3844. static inline void qglTexEnvi(GLenum target, GLenum pname, GLint param)
  3845. {
  3846. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3847. if (QGLLogGLCalls)
  3848. fprintf(QGLDebugFile(), "glTexEnvi(target=%lu, pname=%lu, param=%ld)\n", target, pname, param);
  3849. #endif
  3850. glTexEnvi(target, pname, param);
  3851. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3852. if (!QGLBeginStarted)
  3853. QGLCheckError("glTexEnvi");
  3854. #endif
  3855. }
  3856. // void glTexEnviv (GLenum target, GLenum pname, const GLint *params);
  3857. static inline void qglTexEnviv(GLenum target, GLenum pname, const GLint *params)
  3858. {
  3859. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3860. if (QGLLogGLCalls)
  3861. fprintf(QGLDebugFile(), "glTexEnviv(target=%lu, pname=%lu, params=%p)\n", target, pname, params);
  3862. #endif
  3863. glTexEnviv(target, pname, params);
  3864. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3865. if (!QGLBeginStarted)
  3866. QGLCheckError("glTexEnviv");
  3867. #endif
  3868. }
  3869. // void glTexGend (GLenum coord, GLenum pname, GLdouble param);
  3870. static inline void qglTexGend(GLenum coord, GLenum pname, GLdouble param)
  3871. {
  3872. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3873. if (QGLLogGLCalls)
  3874. fprintf(QGLDebugFile(), "glTexGend(coord=%lu, pname=%lu, param=%f)\n", coord, pname, param);
  3875. #endif
  3876. glTexGend(coord, pname, param);
  3877. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3878. if (!QGLBeginStarted)
  3879. QGLCheckError("glTexGend");
  3880. #endif
  3881. }
  3882. // void glTexGendv (GLenum coord, GLenum pname, const GLdouble *params);
  3883. static inline void qglTexGendv(GLenum coord, GLenum pname, const GLdouble *params)
  3884. {
  3885. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3886. if (QGLLogGLCalls)
  3887. fprintf(QGLDebugFile(), "glTexGendv(coord=%lu, pname=%lu, params=%p)\n", coord, pname, params);
  3888. #endif
  3889. glTexGendv(coord, pname, params);
  3890. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3891. if (!QGLBeginStarted)
  3892. QGLCheckError("glTexGendv");
  3893. #endif
  3894. }
  3895. // void glTexGenf (GLenum coord, GLenum pname, GLfloat param);
  3896. static inline void qglTexGenf(GLenum coord, GLenum pname, GLfloat param)
  3897. {
  3898. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3899. if (QGLLogGLCalls)
  3900. fprintf(QGLDebugFile(), "glTexGenf(coord=%lu, pname=%lu, param=%f)\n", coord, pname, param);
  3901. #endif
  3902. glTexGenf(coord, pname, param);
  3903. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3904. if (!QGLBeginStarted)
  3905. QGLCheckError("glTexGenf");
  3906. #endif
  3907. }
  3908. // void glTexGenfv (GLenum coord, GLenum pname, const GLfloat *params);
  3909. static inline void qglTexGenfv(GLenum coord, GLenum pname, const GLfloat *params)
  3910. {
  3911. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3912. if (QGLLogGLCalls)
  3913. fprintf(QGLDebugFile(), "glTexGenfv(coord=%lu, pname=%lu, params=%p)\n", coord, pname, params);
  3914. #endif
  3915. glTexGenfv(coord, pname, params);
  3916. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3917. if (!QGLBeginStarted)
  3918. QGLCheckError("glTexGenfv");
  3919. #endif
  3920. }
  3921. // void glTexGeni (GLenum coord, GLenum pname, GLint param);
  3922. static inline void qglTexGeni(GLenum coord, GLenum pname, GLint param)
  3923. {
  3924. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3925. if (QGLLogGLCalls)
  3926. fprintf(QGLDebugFile(), "glTexGeni(coord=%lu, pname=%lu, param=%ld)\n", coord, pname, param);
  3927. #endif
  3928. glTexGeni(coord, pname, param);
  3929. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3930. if (!QGLBeginStarted)
  3931. QGLCheckError("glTexGeni");
  3932. #endif
  3933. }
  3934. // void glTexGeniv (GLenum coord, GLenum pname, const GLint *params);
  3935. static inline void qglTexGeniv(GLenum coord, GLenum pname, const GLint *params)
  3936. {
  3937. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3938. if (QGLLogGLCalls)
  3939. fprintf(QGLDebugFile(), "glTexGeniv(coord=%lu, pname=%lu, params=%p)\n", coord, pname, params);
  3940. #endif
  3941. glTexGeniv(coord, pname, params);
  3942. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3943. if (!QGLBeginStarted)
  3944. QGLCheckError("glTexGeniv");
  3945. #endif
  3946. }
  3947. // void glTexImage1D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
  3948. static inline void qglTexImage1D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels)
  3949. {
  3950. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3951. if (QGLLogGLCalls)
  3952. fprintf(QGLDebugFile(), "glTexImage1D(target=%lu, level=%ld, internalformat=%ld, width=%ld, border=%ld, format=%lu, type=%lu, pixels=%p)\n", target, level, internalformat, width, border, format, type, pixels);
  3953. #endif
  3954. glTexImage1D(target, level, internalformat, width, border, format, type, pixels);
  3955. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3956. if (!QGLBeginStarted)
  3957. QGLCheckError("glTexImage1D");
  3958. #endif
  3959. }
  3960. // void glTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
  3961. static inline void qglTexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels)
  3962. {
  3963. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3964. if (QGLLogGLCalls)
  3965. fprintf(QGLDebugFile(), "glTexImage2D(target=%lu, level=%ld, internalformat=%ld, width=%ld, height=%ld, border=%ld, format=%lu, type=%lu, pixels=%p)\n", target, level, internalformat, width, height, border, format, type, pixels);
  3966. #endif
  3967. glTexImage2D(target, level, internalformat, width, height, border, format, type, pixels);
  3968. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3969. if (!QGLBeginStarted)
  3970. QGLCheckError("glTexImage2D");
  3971. #endif
  3972. }
  3973. // void glTexParameterf (GLenum target, GLenum pname, GLfloat param);
  3974. static inline void qglTexParameterf(GLenum target, GLenum pname, GLfloat param)
  3975. {
  3976. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3977. if (QGLLogGLCalls)
  3978. fprintf(QGLDebugFile(), "glTexParameterf(target=%lu, pname=%lu, param=%f)\n", target, pname, param);
  3979. #endif
  3980. glTexParameterf(target, pname, param);
  3981. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3982. if (!QGLBeginStarted)
  3983. QGLCheckError("glTexParameterf");
  3984. #endif
  3985. }
  3986. // void glTexParameterfv (GLenum target, GLenum pname, const GLfloat *params);
  3987. static inline void qglTexParameterfv(GLenum target, GLenum pname, const GLfloat *params)
  3988. {
  3989. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  3990. if (QGLLogGLCalls)
  3991. fprintf(QGLDebugFile(), "glTexParameterfv(target=%lu, pname=%lu, params=%p)\n", target, pname, params);
  3992. #endif
  3993. glTexParameterfv(target, pname, params);
  3994. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  3995. if (!QGLBeginStarted)
  3996. QGLCheckError("glTexParameterfv");
  3997. #endif
  3998. }
  3999. // void glTexParameteri (GLenum target, GLenum pname, GLint param);
  4000. static inline void qglTexParameteri(GLenum target, GLenum pname, GLint param)
  4001. {
  4002. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  4003. if (QGLLogGLCalls)
  4004. fprintf(QGLDebugFile(), "glTexParameteri(target=%lu, pname=%lu, param=%ld)\n", target, pname, param);
  4005. #endif
  4006. glTexParameteri(target, pname, param);
  4007. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  4008. if (!QGLBeginStarted)
  4009. QGLCheckError("glTexParameteri");
  4010. #endif
  4011. }
  4012. // void glTexParameteriv (GLenum target, GLenum pname, const GLint *params);
  4013. static inline void qglTexParameteriv(GLenum target, GLenum pname, const GLint *params)
  4014. {
  4015. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  4016. if (QGLLogGLCalls)
  4017. fprintf(QGLDebugFile(), "glTexParameteriv(target=%lu, pname=%lu, params=%p)\n", target, pname, params);
  4018. #endif
  4019. glTexParameteriv(target, pname, params);
  4020. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  4021. if (!QGLBeginStarted)
  4022. QGLCheckError("glTexParameteriv");
  4023. #endif
  4024. }
  4025. // void glTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels);
  4026. static inline void qglTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels)
  4027. {
  4028. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  4029. if (QGLLogGLCalls)
  4030. fprintf(QGLDebugFile(), "glTexSubImage1D(target=%lu, level=%ld, xoffset=%ld, width=%ld, format=%lu, type=%lu, pixels=%p)\n", target, level, xoffset, width, format, type, pixels);
  4031. #endif
  4032. glTexSubImage1D(target, level, xoffset, width, format, type, pixels);
  4033. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  4034. if (!QGLBeginStarted)
  4035. QGLCheckError("glTexSubImage1D");
  4036. #endif
  4037. }
  4038. // void glTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
  4039. static inline void qglTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels)
  4040. {
  4041. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  4042. if (QGLLogGLCalls)
  4043. fprintf(QGLDebugFile(), "glTexSubImage2D(target=%lu, level=%ld, xoffset=%ld, yoffset=%ld, width=%ld, height=%ld, format=%lu, type=%lu, pixels=%p)\n", target, level, xoffset, yoffset, width, height, format, type, pixels);
  4044. #endif
  4045. glTexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels);
  4046. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  4047. if (!QGLBeginStarted)
  4048. QGLCheckError("glTexSubImage2D");
  4049. #endif
  4050. }
  4051. // void glTranslated (GLdouble x, GLdouble y, GLdouble z);
  4052. static inline void qglTranslated(GLdouble x, GLdouble y, GLdouble z)
  4053. {
  4054. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  4055. if (QGLLogGLCalls)
  4056. fprintf(QGLDebugFile(), "glTranslated(x=%f, y=%f, z=%f)\n", x, y, z);
  4057. #endif
  4058. glTranslated(x, y, z);
  4059. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  4060. if (!QGLBeginStarted)
  4061. QGLCheckError("glTranslated");
  4062. #endif
  4063. }
  4064. // void glTranslatef (GLfloat x, GLfloat y, GLfloat z);
  4065. static inline void qglTranslatef(GLfloat x, GLfloat y, GLfloat z)
  4066. {
  4067. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  4068. if (QGLLogGLCalls)
  4069. fprintf(QGLDebugFile(), "glTranslatef(x=%f, y=%f, z=%f)\n", x, y, z);
  4070. #endif
  4071. glTranslatef(x, y, z);
  4072. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  4073. if (!QGLBeginStarted)
  4074. QGLCheckError("glTranslatef");
  4075. #endif
  4076. }
  4077. // void glVertex2d (GLdouble x, GLdouble y);
  4078. static inline void qglVertex2d(GLdouble x, GLdouble y)
  4079. {
  4080. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  4081. if (QGLLogGLCalls)
  4082. fprintf(QGLDebugFile(), "glVertex2d(x=%f, y=%f)\n", x, y);
  4083. #endif
  4084. glVertex2d(x, y);
  4085. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  4086. if (!QGLBeginStarted)
  4087. QGLCheckError("glVertex2d");
  4088. #endif
  4089. }
  4090. // void glVertex2dv (const GLdouble *v);
  4091. static inline void qglVertex2dv(const GLdouble *v)
  4092. {
  4093. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  4094. if (QGLLogGLCalls)
  4095. fprintf(QGLDebugFile(), "glVertex2dv(v=%p)\n", v);
  4096. #endif
  4097. glVertex2dv(v);
  4098. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  4099. if (!QGLBeginStarted)
  4100. QGLCheckError("glVertex2dv");
  4101. #endif
  4102. }
  4103. // void glVertex2f (GLfloat x, GLfloat y);
  4104. static inline void qglVertex2f(GLfloat x, GLfloat y)
  4105. {
  4106. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  4107. if (QGLLogGLCalls)
  4108. fprintf(QGLDebugFile(), "glVertex2f(x=%f, y=%f)\n", x, y);
  4109. #endif
  4110. glVertex2f(x, y);
  4111. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  4112. if (!QGLBeginStarted)
  4113. QGLCheckError("glVertex2f");
  4114. #endif
  4115. }
  4116. // void glVertex2fv (const GLfloat *v);
  4117. static inline void qglVertex2fv(const GLfloat *v)
  4118. {
  4119. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  4120. if (QGLLogGLCalls)
  4121. fprintf(QGLDebugFile(), "glVertex2fv(v=%p)\n", v);
  4122. #endif
  4123. glVertex2fv(v);
  4124. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  4125. if (!QGLBeginStarted)
  4126. QGLCheckError("glVertex2fv");
  4127. #endif
  4128. }
  4129. // void glVertex2i (GLint x, GLint y);
  4130. static inline void qglVertex2i(GLint x, GLint y)
  4131. {
  4132. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  4133. if (QGLLogGLCalls)
  4134. fprintf(QGLDebugFile(), "glVertex2i(x=%ld, y=%ld)\n", x, y);
  4135. #endif
  4136. glVertex2i(x, y);
  4137. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  4138. if (!QGLBeginStarted)
  4139. QGLCheckError("glVertex2i");
  4140. #endif
  4141. }
  4142. // void glVertex2iv (const GLint *v);
  4143. static inline void qglVertex2iv(const GLint *v)
  4144. {
  4145. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  4146. if (QGLLogGLCalls)
  4147. fprintf(QGLDebugFile(), "glVertex2iv(v=%p)\n", v);
  4148. #endif
  4149. glVertex2iv(v);
  4150. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  4151. if (!QGLBeginStarted)
  4152. QGLCheckError("glVertex2iv");
  4153. #endif
  4154. }
  4155. // void glVertex2s (GLshort x, GLshort y);
  4156. static inline void qglVertex2s(GLshort x, GLshort y)
  4157. {
  4158. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  4159. if (QGLLogGLCalls)
  4160. fprintf(QGLDebugFile(), "glVertex2s(x=%d, y=%d)\n", x, y);
  4161. #endif
  4162. glVertex2s(x, y);
  4163. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  4164. if (!QGLBeginStarted)
  4165. QGLCheckError("glVertex2s");
  4166. #endif
  4167. }
  4168. // void glVertex2sv (const GLshort *v);
  4169. static inline void qglVertex2sv(const GLshort *v)
  4170. {
  4171. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  4172. if (QGLLogGLCalls)
  4173. fprintf(QGLDebugFile(), "glVertex2sv(v=%p)\n", v);
  4174. #endif
  4175. glVertex2sv(v);
  4176. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  4177. if (!QGLBeginStarted)
  4178. QGLCheckError("glVertex2sv");
  4179. #endif
  4180. }
  4181. // void glVertex3d (GLdouble x, GLdouble y, GLdouble z);
  4182. static inline void qglVertex3d(GLdouble x, GLdouble y, GLdouble z)
  4183. {
  4184. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  4185. if (QGLLogGLCalls)
  4186. fprintf(QGLDebugFile(), "glVertex3d(x=%f, y=%f, z=%f)\n", x, y, z);
  4187. #endif
  4188. glVertex3d(x, y, z);
  4189. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  4190. if (!QGLBeginStarted)
  4191. QGLCheckError("glVertex3d");
  4192. #endif
  4193. }
  4194. // void glVertex3dv (const GLdouble *v);
  4195. static inline void qglVertex3dv(const GLdouble *v)
  4196. {
  4197. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  4198. if (QGLLogGLCalls)
  4199. fprintf(QGLDebugFile(), "glVertex3dv(v=%p)\n", v);
  4200. #endif
  4201. glVertex3dv(v);
  4202. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  4203. if (!QGLBeginStarted)
  4204. QGLCheckError("glVertex3dv");
  4205. #endif
  4206. }
  4207. // void glVertex3f (GLfloat x, GLfloat y, GLfloat z);
  4208. static inline void qglVertex3f(GLfloat x, GLfloat y, GLfloat z)
  4209. {
  4210. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  4211. if (QGLLogGLCalls)
  4212. fprintf(QGLDebugFile(), "glVertex3f(x=%f, y=%f, z=%f)\n", x, y, z);
  4213. #endif
  4214. glVertex3f(x, y, z);
  4215. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  4216. if (!QGLBeginStarted)
  4217. QGLCheckError("glVertex3f");
  4218. #endif
  4219. }
  4220. // void glVertex3fv (const GLfloat *v);
  4221. static inline void qglVertex3fv(const GLfloat *v)
  4222. {
  4223. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  4224. if (QGLLogGLCalls)
  4225. fprintf(QGLDebugFile(), "glVertex3fv(v=%p)\n", v);
  4226. #endif
  4227. glVertex3fv(v);
  4228. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  4229. if (!QGLBeginStarted)
  4230. QGLCheckError("glVertex3fv");
  4231. #endif
  4232. }
  4233. // void glVertex3i (GLint x, GLint y, GLint z);
  4234. static inline void qglVertex3i(GLint x, GLint y, GLint z)
  4235. {
  4236. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  4237. if (QGLLogGLCalls)
  4238. fprintf(QGLDebugFile(), "glVertex3i(x=%ld, y=%ld, z=%ld)\n", x, y, z);
  4239. #endif
  4240. glVertex3i(x, y, z);
  4241. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  4242. if (!QGLBeginStarted)
  4243. QGLCheckError("glVertex3i");
  4244. #endif
  4245. }
  4246. // void glVertex3iv (const GLint *v);
  4247. static inline void qglVertex3iv(const GLint *v)
  4248. {
  4249. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  4250. if (QGLLogGLCalls)
  4251. fprintf(QGLDebugFile(), "glVertex3iv(v=%p)\n", v);
  4252. #endif
  4253. glVertex3iv(v);
  4254. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  4255. if (!QGLBeginStarted)
  4256. QGLCheckError("glVertex3iv");
  4257. #endif
  4258. }
  4259. // void glVertex3s (GLshort x, GLshort y, GLshort z);
  4260. static inline void qglVertex3s(GLshort x, GLshort y, GLshort z)
  4261. {
  4262. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  4263. if (QGLLogGLCalls)
  4264. fprintf(QGLDebugFile(), "glVertex3s(x=%d, y=%d, z=%d)\n", x, y, z);
  4265. #endif
  4266. glVertex3s(x, y, z);
  4267. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  4268. if (!QGLBeginStarted)
  4269. QGLCheckError("glVertex3s");
  4270. #endif
  4271. }
  4272. // void glVertex3sv (const GLshort *v);
  4273. static inline void qglVertex3sv(const GLshort *v)
  4274. {
  4275. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  4276. if (QGLLogGLCalls)
  4277. fprintf(QGLDebugFile(), "glVertex3sv(v=%p)\n", v);
  4278. #endif
  4279. glVertex3sv(v);
  4280. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  4281. if (!QGLBeginStarted)
  4282. QGLCheckError("glVertex3sv");
  4283. #endif
  4284. }
  4285. // void glVertex4d (GLdouble x, GLdouble y, GLdouble z, GLdouble w);
  4286. static inline void qglVertex4d(GLdouble x, GLdouble y, GLdouble z, GLdouble w)
  4287. {
  4288. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  4289. if (QGLLogGLCalls)
  4290. fprintf(QGLDebugFile(), "glVertex4d(x=%f, y=%f, z=%f, w=%f)\n", x, y, z, w);
  4291. #endif
  4292. glVertex4d(x, y, z, w);
  4293. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  4294. if (!QGLBeginStarted)
  4295. QGLCheckError("glVertex4d");
  4296. #endif
  4297. }
  4298. // void glVertex4dv (const GLdouble *v);
  4299. static inline void qglVertex4dv(const GLdouble *v)
  4300. {
  4301. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  4302. if (QGLLogGLCalls)
  4303. fprintf(QGLDebugFile(), "glVertex4dv(v=%p)\n", v);
  4304. #endif
  4305. glVertex4dv(v);
  4306. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  4307. if (!QGLBeginStarted)
  4308. QGLCheckError("glVertex4dv");
  4309. #endif
  4310. }
  4311. // void glVertex4f (GLfloat x, GLfloat y, GLfloat z, GLfloat w);
  4312. static inline void qglVertex4f(GLfloat x, GLfloat y, GLfloat z, GLfloat w)
  4313. {
  4314. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  4315. if (QGLLogGLCalls)
  4316. fprintf(QGLDebugFile(), "glVertex4f(x=%f, y=%f, z=%f, w=%f)\n", x, y, z, w);
  4317. #endif
  4318. glVertex4f(x, y, z, w);
  4319. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  4320. if (!QGLBeginStarted)
  4321. QGLCheckError("glVertex4f");
  4322. #endif
  4323. }
  4324. // void glVertex4fv (const GLfloat *v);
  4325. static inline void qglVertex4fv(const GLfloat *v)
  4326. {
  4327. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  4328. if (QGLLogGLCalls)
  4329. fprintf(QGLDebugFile(), "glVertex4fv(v=%p)\n", v);
  4330. #endif
  4331. glVertex4fv(v);
  4332. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  4333. if (!QGLBeginStarted)
  4334. QGLCheckError("glVertex4fv");
  4335. #endif
  4336. }
  4337. // void glVertex4i (GLint x, GLint y, GLint z, GLint w);
  4338. static inline void qglVertex4i(GLint x, GLint y, GLint z, GLint w)
  4339. {
  4340. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  4341. if (QGLLogGLCalls)
  4342. fprintf(QGLDebugFile(), "glVertex4i(x=%ld, y=%ld, z=%ld, w=%ld)\n", x, y, z, w);
  4343. #endif
  4344. glVertex4i(x, y, z, w);
  4345. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  4346. if (!QGLBeginStarted)
  4347. QGLCheckError("glVertex4i");
  4348. #endif
  4349. }
  4350. // void glVertex4iv (const GLint *v);
  4351. static inline void qglVertex4iv(const GLint *v)
  4352. {
  4353. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  4354. if (QGLLogGLCalls)
  4355. fprintf(QGLDebugFile(), "glVertex4iv(v=%p)\n", v);
  4356. #endif
  4357. glVertex4iv(v);
  4358. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  4359. if (!QGLBeginStarted)
  4360. QGLCheckError("glVertex4iv");
  4361. #endif
  4362. }
  4363. // void glVertex4s (GLshort x, GLshort y, GLshort z, GLshort w);
  4364. static inline void qglVertex4s(GLshort x, GLshort y, GLshort z, GLshort w)
  4365. {
  4366. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  4367. if (QGLLogGLCalls)
  4368. fprintf(QGLDebugFile(), "glVertex4s(x=%d, y=%d, z=%d, w=%d)\n", x, y, z, w);
  4369. #endif
  4370. glVertex4s(x, y, z, w);
  4371. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  4372. if (!QGLBeginStarted)
  4373. QGLCheckError("glVertex4s");
  4374. #endif
  4375. }
  4376. // void glVertex4sv (const GLshort *v);
  4377. static inline void qglVertex4sv(const GLshort *v)
  4378. {
  4379. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  4380. if (QGLLogGLCalls)
  4381. fprintf(QGLDebugFile(), "glVertex4sv(v=%p)\n", v);
  4382. #endif
  4383. glVertex4sv(v);
  4384. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  4385. if (!QGLBeginStarted)
  4386. QGLCheckError("glVertex4sv");
  4387. #endif
  4388. }
  4389. // void glVertexPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
  4390. static inline void qglVertexPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)
  4391. {
  4392. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  4393. if (QGLLogGLCalls)
  4394. fprintf(QGLDebugFile(), "glVertexPointer(size=%ld, type=%lu, stride=%ld, pointer=%p)\n", size, type, stride, pointer);
  4395. #endif
  4396. glVertexPointer(size, type, stride, pointer);
  4397. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  4398. if (!QGLBeginStarted)
  4399. QGLCheckError("glVertexPointer");
  4400. #endif
  4401. }
  4402. // void glViewport (GLint x, GLint y, GLsizei width, GLsizei height);
  4403. static inline void qglViewport(GLint x, GLint y, GLsizei width, GLsizei height)
  4404. {
  4405. #if !defined(NDEBUG) && defined(QGL_LOG_GL_CALLS)
  4406. if (QGLLogGLCalls)
  4407. fprintf(QGLDebugFile(), "glViewport(x=%ld, y=%ld, width=%ld, height=%ld)\n", x, y, width, height);
  4408. #endif
  4409. glViewport(x, y, width, height);
  4410. #if !defined(NDEBUG) && defined(QGL_CHECK_GL_ERRORS)
  4411. if (!QGLBeginStarted)
  4412. QGLCheckError("glViewport");
  4413. #endif
  4414. }
  4415. // Prevent calls to the 'normal' GL functions
  4416. #define glAccum CALL_THE_QGL_VERSION_OF_glAccum
  4417. #define glAlphaFunc CALL_THE_QGL_VERSION_OF_glAlphaFunc
  4418. #define glAreTexturesResident CALL_THE_QGL_VERSION_OF_glAreTexturesResident
  4419. #define glArrayElement CALL_THE_QGL_VERSION_OF_glArrayElement
  4420. #define glBegin CALL_THE_QGL_VERSION_OF_glBegin
  4421. #define glBindTexture CALL_THE_QGL_VERSION_OF_glBindTexture
  4422. #define glBitmap CALL_THE_QGL_VERSION_OF_glBitmap
  4423. #define glBlendFunc CALL_THE_QGL_VERSION_OF_glBlendFunc
  4424. #define glCallList CALL_THE_QGL_VERSION_OF_glCallList
  4425. #define glCallLists CALL_THE_QGL_VERSION_OF_glCallLists
  4426. #define glClear CALL_THE_QGL_VERSION_OF_glClear
  4427. #define glClearAccum CALL_THE_QGL_VERSION_OF_glClearAccum
  4428. #define glClearColor CALL_THE_QGL_VERSION_OF_glClearColor
  4429. #define glClearDepth CALL_THE_QGL_VERSION_OF_glClearDepth
  4430. #define glClearIndex CALL_THE_QGL_VERSION_OF_glClearIndex
  4431. #define glClearStencil CALL_THE_QGL_VERSION_OF_glClearStencil
  4432. #define glClipPlane CALL_THE_QGL_VERSION_OF_glClipPlane
  4433. #define glColor3b CALL_THE_QGL_VERSION_OF_glColor3b
  4434. #define glColor3bv CALL_THE_QGL_VERSION_OF_glColor3bv
  4435. #define glColor3d CALL_THE_QGL_VERSION_OF_glColor3d
  4436. #define glColor3dv CALL_THE_QGL_VERSION_OF_glColor3dv
  4437. #define glColor3f CALL_THE_QGL_VERSION_OF_glColor3f
  4438. #define glColor3fv CALL_THE_QGL_VERSION_OF_glColor3fv
  4439. #define glColor3i CALL_THE_QGL_VERSION_OF_glColor3i
  4440. #define glColor3iv CALL_THE_QGL_VERSION_OF_glColor3iv
  4441. #define glColor3s CALL_THE_QGL_VERSION_OF_glColor3s
  4442. #define glColor3sv CALL_THE_QGL_VERSION_OF_glColor3sv
  4443. #define glColor3ub CALL_THE_QGL_VERSION_OF_glColor3ub
  4444. #define glColor3ubv CALL_THE_QGL_VERSION_OF_glColor3ubv
  4445. #define glColor3ui CALL_THE_QGL_VERSION_OF_glColor3ui
  4446. #define glColor3uiv CALL_THE_QGL_VERSION_OF_glColor3uiv
  4447. #define glColor3us CALL_THE_QGL_VERSION_OF_glColor3us
  4448. #define glColor3usv CALL_THE_QGL_VERSION_OF_glColor3usv
  4449. #define glColor4b CALL_THE_QGL_VERSION_OF_glColor4b
  4450. #define glColor4bv CALL_THE_QGL_VERSION_OF_glColor4bv
  4451. #define glColor4d CALL_THE_QGL_VERSION_OF_glColor4d
  4452. #define glColor4dv CALL_THE_QGL_VERSION_OF_glColor4dv
  4453. #define glColor4f CALL_THE_QGL_VERSION_OF_glColor4f
  4454. #define glColor4fv CALL_THE_QGL_VERSION_OF_glColor4fv
  4455. #define glColor4i CALL_THE_QGL_VERSION_OF_glColor4i
  4456. #define glColor4iv CALL_THE_QGL_VERSION_OF_glColor4iv
  4457. #define glColor4s CALL_THE_QGL_VERSION_OF_glColor4s
  4458. #define glColor4sv CALL_THE_QGL_VERSION_OF_glColor4sv
  4459. #define glColor4ub CALL_THE_QGL_VERSION_OF_glColor4ub
  4460. #define glColor4ubv CALL_THE_QGL_VERSION_OF_glColor4ubv
  4461. #define glColor4ui CALL_THE_QGL_VERSION_OF_glColor4ui
  4462. #define glColor4uiv CALL_THE_QGL_VERSION_OF_glColor4uiv
  4463. #define glColor4us CALL_THE_QGL_VERSION_OF_glColor4us
  4464. #define glColor4usv CALL_THE_QGL_VERSION_OF_glColor4usv
  4465. #define glColorMask CALL_THE_QGL_VERSION_OF_glColorMask
  4466. #define glColorMaterial CALL_THE_QGL_VERSION_OF_glColorMaterial
  4467. #define glColorPointer CALL_THE_QGL_VERSION_OF_glColorPointer
  4468. #define glCopyPixels CALL_THE_QGL_VERSION_OF_glCopyPixels
  4469. #define glCopyTexImage1D CALL_THE_QGL_VERSION_OF_glCopyTexImage1D
  4470. #define glCopyTexImage2D CALL_THE_QGL_VERSION_OF_glCopyTexImage2D
  4471. #define glCopyTexSubImage1D CALL_THE_QGL_VERSION_OF_glCopyTexSubImage1D
  4472. #define glCopyTexSubImage2D CALL_THE_QGL_VERSION_OF_glCopyTexSubImage2D
  4473. #define glCullFace CALL_THE_QGL_VERSION_OF_glCullFace
  4474. #define glDeleteLists CALL_THE_QGL_VERSION_OF_glDeleteLists
  4475. #define glDeleteTextures CALL_THE_QGL_VERSION_OF_glDeleteTextures
  4476. #define glDepthFunc CALL_THE_QGL_VERSION_OF_glDepthFunc
  4477. #define glDepthMask CALL_THE_QGL_VERSION_OF_glDepthMask
  4478. #define glDepthRange CALL_THE_QGL_VERSION_OF_glDepthRange
  4479. #define glDisable CALL_THE_QGL_VERSION_OF_glDisable
  4480. #define glDisableClientState CALL_THE_QGL_VERSION_OF_glDisableClientState
  4481. #define glDrawArrays CALL_THE_QGL_VERSION_OF_glDrawArrays
  4482. #define glDrawBuffer CALL_THE_QGL_VERSION_OF_glDrawBuffer
  4483. #define glDrawElements CALL_THE_QGL_VERSION_OF_glDrawElements
  4484. #define glDrawPixels CALL_THE_QGL_VERSION_OF_glDrawPixels
  4485. #define glEdgeFlag CALL_THE_QGL_VERSION_OF_glEdgeFlag
  4486. #define glEdgeFlagPointer CALL_THE_QGL_VERSION_OF_glEdgeFlagPointer
  4487. #define glEdgeFlagv CALL_THE_QGL_VERSION_OF_glEdgeFlagv
  4488. #define glEnable CALL_THE_QGL_VERSION_OF_glEnable
  4489. #define glEnableClientState CALL_THE_QGL_VERSION_OF_glEnableClientState
  4490. #define glEnd CALL_THE_QGL_VERSION_OF_glEnd
  4491. #define glEndList CALL_THE_QGL_VERSION_OF_glEndList
  4492. #define glEvalCoord1d CALL_THE_QGL_VERSION_OF_glEvalCoord1d
  4493. #define glEvalCoord1dv CALL_THE_QGL_VERSION_OF_glEvalCoord1dv
  4494. #define glEvalCoord1f CALL_THE_QGL_VERSION_OF_glEvalCoord1f
  4495. #define glEvalCoord1fv CALL_THE_QGL_VERSION_OF_glEvalCoord1fv
  4496. #define glEvalCoord2d CALL_THE_QGL_VERSION_OF_glEvalCoord2d
  4497. #define glEvalCoord2dv CALL_THE_QGL_VERSION_OF_glEvalCoord2dv
  4498. #define glEvalCoord2f CALL_THE_QGL_VERSION_OF_glEvalCoord2f
  4499. #define glEvalCoord2fv CALL_THE_QGL_VERSION_OF_glEvalCoord2fv
  4500. #define glEvalMesh1 CALL_THE_QGL_VERSION_OF_glEvalMesh1
  4501. #define glEvalMesh2 CALL_THE_QGL_VERSION_OF_glEvalMesh2
  4502. #define glEvalPoint1 CALL_THE_QGL_VERSION_OF_glEvalPoint1
  4503. #define glEvalPoint2 CALL_THE_QGL_VERSION_OF_glEvalPoint2
  4504. #define glFeedbackBuffer CALL_THE_QGL_VERSION_OF_glFeedbackBuffer
  4505. #define glFinish CALL_THE_QGL_VERSION_OF_glFinish
  4506. #define glFlush CALL_THE_QGL_VERSION_OF_glFlush
  4507. #define glFogf CALL_THE_QGL_VERSION_OF_glFogf
  4508. #define glFogfv CALL_THE_QGL_VERSION_OF_glFogfv
  4509. #define glFogi CALL_THE_QGL_VERSION_OF_glFogi
  4510. #define glFogiv CALL_THE_QGL_VERSION_OF_glFogiv
  4511. #define glFrontFace CALL_THE_QGL_VERSION_OF_glFrontFace
  4512. #define glFrustum CALL_THE_QGL_VERSION_OF_glFrustum
  4513. #define glGenLists CALL_THE_QGL_VERSION_OF_glGenLists
  4514. #define glGenTextures CALL_THE_QGL_VERSION_OF_glGenTextures
  4515. #define glGetBooleanv CALL_THE_QGL_VERSION_OF_glGetBooleanv
  4516. #define glGetClipPlane CALL_THE_QGL_VERSION_OF_glGetClipPlane
  4517. #define glGetDoublev CALL_THE_QGL_VERSION_OF_glGetDoublev
  4518. #define glGetError CALL_THE_QGL_VERSION_OF_glGetError
  4519. #define glGetFloatv CALL_THE_QGL_VERSION_OF_glGetFloatv
  4520. #define glGetIntegerv CALL_THE_QGL_VERSION_OF_glGetIntegerv
  4521. #define glGetLightfv CALL_THE_QGL_VERSION_OF_glGetLightfv
  4522. #define glGetLightiv CALL_THE_QGL_VERSION_OF_glGetLightiv
  4523. #define glGetMapdv CALL_THE_QGL_VERSION_OF_glGetMapdv
  4524. #define glGetMapfv CALL_THE_QGL_VERSION_OF_glGetMapfv
  4525. #define glGetMapiv CALL_THE_QGL_VERSION_OF_glGetMapiv
  4526. #define glGetMaterialfv CALL_THE_QGL_VERSION_OF_glGetMaterialfv
  4527. #define glGetMaterialiv CALL_THE_QGL_VERSION_OF_glGetMaterialiv
  4528. #define glGetPixelMapfv CALL_THE_QGL_VERSION_OF_glGetPixelMapfv
  4529. #define glGetPixelMapuiv CALL_THE_QGL_VERSION_OF_glGetPixelMapuiv
  4530. #define glGetPixelMapusv CALL_THE_QGL_VERSION_OF_glGetPixelMapusv
  4531. #define glGetPointerv CALL_THE_QGL_VERSION_OF_glGetPointerv
  4532. #define glGetPolygonStipple CALL_THE_QGL_VERSION_OF_glGetPolygonStipple
  4533. #define glGetString CALL_THE_QGL_VERSION_OF_glGetString
  4534. #define glGetTexEnvfv CALL_THE_QGL_VERSION_OF_glGetTexEnvfv
  4535. #define glGetTexEnviv CALL_THE_QGL_VERSION_OF_glGetTexEnviv
  4536. #define glGetTexGendv CALL_THE_QGL_VERSION_OF_glGetTexGendv
  4537. #define glGetTexGenfv CALL_THE_QGL_VERSION_OF_glGetTexGenfv
  4538. #define glGetTexGeniv CALL_THE_QGL_VERSION_OF_glGetTexGeniv
  4539. #define glGetTexImage CALL_THE_QGL_VERSION_OF_glGetTexImage
  4540. #define glGetTexLevelParameterfv CALL_THE_QGL_VERSION_OF_glGetTexLevelParameterfv
  4541. #define glGetTexLevelParameteriv CALL_THE_QGL_VERSION_OF_glGetTexLevelParameteriv
  4542. #define glGetTexParameterfv CALL_THE_QGL_VERSION_OF_glGetTexParameterfv
  4543. #define glGetTexParameteriv CALL_THE_QGL_VERSION_OF_glGetTexParameteriv
  4544. #define glHint CALL_THE_QGL_VERSION_OF_glHint
  4545. #define glIndexMask CALL_THE_QGL_VERSION_OF_glIndexMask
  4546. #define glIndexPointer CALL_THE_QGL_VERSION_OF_glIndexPointer
  4547. #define glIndexd CALL_THE_QGL_VERSION_OF_glIndexd
  4548. #define glIndexdv CALL_THE_QGL_VERSION_OF_glIndexdv
  4549. #define glIndexf CALL_THE_QGL_VERSION_OF_glIndexf
  4550. #define glIndexfv CALL_THE_QGL_VERSION_OF_glIndexfv
  4551. #define glIndexi CALL_THE_QGL_VERSION_OF_glIndexi
  4552. #define glIndexiv CALL_THE_QGL_VERSION_OF_glIndexiv
  4553. #define glIndexs CALL_THE_QGL_VERSION_OF_glIndexs
  4554. #define glIndexsv CALL_THE_QGL_VERSION_OF_glIndexsv
  4555. #define glIndexub CALL_THE_QGL_VERSION_OF_glIndexub
  4556. #define glIndexubv CALL_THE_QGL_VERSION_OF_glIndexubv
  4557. #define glInitNames CALL_THE_QGL_VERSION_OF_glInitNames
  4558. #define glInterleavedArrays CALL_THE_QGL_VERSION_OF_glInterleavedArrays
  4559. #define glIsEnabled CALL_THE_QGL_VERSION_OF_glIsEnabled
  4560. #define glIsList CALL_THE_QGL_VERSION_OF_glIsList
  4561. #define glIsTexture CALL_THE_QGL_VERSION_OF_glIsTexture
  4562. #define glLightModelf CALL_THE_QGL_VERSION_OF_glLightModelf
  4563. #define glLightModelfv CALL_THE_QGL_VERSION_OF_glLightModelfv
  4564. #define glLightModeli CALL_THE_QGL_VERSION_OF_glLightModeli
  4565. #define glLightModeliv CALL_THE_QGL_VERSION_OF_glLightModeliv
  4566. #define glLightf CALL_THE_QGL_VERSION_OF_glLightf
  4567. #define glLightfv CALL_THE_QGL_VERSION_OF_glLightfv
  4568. #define glLighti CALL_THE_QGL_VERSION_OF_glLighti
  4569. #define glLightiv CALL_THE_QGL_VERSION_OF_glLightiv
  4570. #define glLineStipple CALL_THE_QGL_VERSION_OF_glLineStipple
  4571. #define glLineWidth CALL_THE_QGL_VERSION_OF_glLineWidth
  4572. #define glListBase CALL_THE_QGL_VERSION_OF_glListBase
  4573. #define glLoadIdentity CALL_THE_QGL_VERSION_OF_glLoadIdentity
  4574. #define glLoadMatrixd CALL_THE_QGL_VERSION_OF_glLoadMatrixd
  4575. #define glLoadMatrixf CALL_THE_QGL_VERSION_OF_glLoadMatrixf
  4576. #define glLoadName CALL_THE_QGL_VERSION_OF_glLoadName
  4577. #define glLogicOp CALL_THE_QGL_VERSION_OF_glLogicOp
  4578. #define glMap1d CALL_THE_QGL_VERSION_OF_glMap1d
  4579. #define glMap1f CALL_THE_QGL_VERSION_OF_glMap1f
  4580. #define glMap2d CALL_THE_QGL_VERSION_OF_glMap2d
  4581. #define glMap2f CALL_THE_QGL_VERSION_OF_glMap2f
  4582. #define glMapGrid1d CALL_THE_QGL_VERSION_OF_glMapGrid1d
  4583. #define glMapGrid1f CALL_THE_QGL_VERSION_OF_glMapGrid1f
  4584. #define glMapGrid2d CALL_THE_QGL_VERSION_OF_glMapGrid2d
  4585. #define glMapGrid2f CALL_THE_QGL_VERSION_OF_glMapGrid2f
  4586. #define glMaterialf CALL_THE_QGL_VERSION_OF_glMaterialf
  4587. #define glMaterialfv CALL_THE_QGL_VERSION_OF_glMaterialfv
  4588. #define glMateriali CALL_THE_QGL_VERSION_OF_glMateriali
  4589. #define glMaterialiv CALL_THE_QGL_VERSION_OF_glMaterialiv
  4590. #define glMatrixMode CALL_THE_QGL_VERSION_OF_glMatrixMode
  4591. #define glMultMatrixd CALL_THE_QGL_VERSION_OF_glMultMatrixd
  4592. #define glMultMatrixf CALL_THE_QGL_VERSION_OF_glMultMatrixf
  4593. #define glNewList CALL_THE_QGL_VERSION_OF_glNewList
  4594. #define glNormal3b CALL_THE_QGL_VERSION_OF_glNormal3b
  4595. #define glNormal3bv CALL_THE_QGL_VERSION_OF_glNormal3bv
  4596. #define glNormal3d CALL_THE_QGL_VERSION_OF_glNormal3d
  4597. #define glNormal3dv CALL_THE_QGL_VERSION_OF_glNormal3dv
  4598. #define glNormal3f CALL_THE_QGL_VERSION_OF_glNormal3f
  4599. #define glNormal3fv CALL_THE_QGL_VERSION_OF_glNormal3fv
  4600. #define glNormal3i CALL_THE_QGL_VERSION_OF_glNormal3i
  4601. #define glNormal3iv CALL_THE_QGL_VERSION_OF_glNormal3iv
  4602. #define glNormal3s CALL_THE_QGL_VERSION_OF_glNormal3s
  4603. #define glNormal3sv CALL_THE_QGL_VERSION_OF_glNormal3sv
  4604. #define glNormalPointer CALL_THE_QGL_VERSION_OF_glNormalPointer
  4605. #define glOrtho CALL_THE_QGL_VERSION_OF_glOrtho
  4606. #define glPassThrough CALL_THE_QGL_VERSION_OF_glPassThrough
  4607. #define glPixelMapfv CALL_THE_QGL_VERSION_OF_glPixelMapfv
  4608. #define glPixelMapuiv CALL_THE_QGL_VERSION_OF_glPixelMapuiv
  4609. #define glPixelMapusv CALL_THE_QGL_VERSION_OF_glPixelMapusv
  4610. #define glPixelStoref CALL_THE_QGL_VERSION_OF_glPixelStoref
  4611. #define glPixelStorei CALL_THE_QGL_VERSION_OF_glPixelStorei
  4612. #define glPixelTransferf CALL_THE_QGL_VERSION_OF_glPixelTransferf
  4613. #define glPixelTransferi CALL_THE_QGL_VERSION_OF_glPixelTransferi
  4614. #define glPixelZoom CALL_THE_QGL_VERSION_OF_glPixelZoom
  4615. #define glPointSize CALL_THE_QGL_VERSION_OF_glPointSize
  4616. #define glPolygonMode CALL_THE_QGL_VERSION_OF_glPolygonMode
  4617. #define glPolygonOffset CALL_THE_QGL_VERSION_OF_glPolygonOffset
  4618. #define glPolygonStipple CALL_THE_QGL_VERSION_OF_glPolygonStipple
  4619. #define glPopAttrib CALL_THE_QGL_VERSION_OF_glPopAttrib
  4620. #define glPopClientAttrib CALL_THE_QGL_VERSION_OF_glPopClientAttrib
  4621. #define glPopMatrix CALL_THE_QGL_VERSION_OF_glPopMatrix
  4622. #define glPopName CALL_THE_QGL_VERSION_OF_glPopName
  4623. #define glPrioritizeTextures CALL_THE_QGL_VERSION_OF_glPrioritizeTextures
  4624. #define glPushAttrib CALL_THE_QGL_VERSION_OF_glPushAttrib
  4625. #define glPushClientAttrib CALL_THE_QGL_VERSION_OF_glPushClientAttrib
  4626. #define glPushMatrix CALL_THE_QGL_VERSION_OF_glPushMatrix
  4627. #define glPushName CALL_THE_QGL_VERSION_OF_glPushName
  4628. #define glRasterPos2d CALL_THE_QGL_VERSION_OF_glRasterPos2d
  4629. #define glRasterPos2dv CALL_THE_QGL_VERSION_OF_glRasterPos2dv
  4630. #define glRasterPos2f CALL_THE_QGL_VERSION_OF_glRasterPos2f
  4631. #define glRasterPos2fv CALL_THE_QGL_VERSION_OF_glRasterPos2fv
  4632. #define glRasterPos2i CALL_THE_QGL_VERSION_OF_glRasterPos2i
  4633. #define glRasterPos2iv CALL_THE_QGL_VERSION_OF_glRasterPos2iv
  4634. #define glRasterPos2s CALL_THE_QGL_VERSION_OF_glRasterPos2s
  4635. #define glRasterPos2sv CALL_THE_QGL_VERSION_OF_glRasterPos2sv
  4636. #define glRasterPos3d CALL_THE_QGL_VERSION_OF_glRasterPos3d
  4637. #define glRasterPos3dv CALL_THE_QGL_VERSION_OF_glRasterPos3dv
  4638. #define glRasterPos3f CALL_THE_QGL_VERSION_OF_glRasterPos3f
  4639. #define glRasterPos3fv CALL_THE_QGL_VERSION_OF_glRasterPos3fv
  4640. #define glRasterPos3i CALL_THE_QGL_VERSION_OF_glRasterPos3i
  4641. #define glRasterPos3iv CALL_THE_QGL_VERSION_OF_glRasterPos3iv
  4642. #define glRasterPos3s CALL_THE_QGL_VERSION_OF_glRasterPos3s
  4643. #define glRasterPos3sv CALL_THE_QGL_VERSION_OF_glRasterPos3sv
  4644. #define glRasterPos4d CALL_THE_QGL_VERSION_OF_glRasterPos4d
  4645. #define glRasterPos4dv CALL_THE_QGL_VERSION_OF_glRasterPos4dv
  4646. #define glRasterPos4f CALL_THE_QGL_VERSION_OF_glRasterPos4f
  4647. #define glRasterPos4fv CALL_THE_QGL_VERSION_OF_glRasterPos4fv
  4648. #define glRasterPos4i CALL_THE_QGL_VERSION_OF_glRasterPos4i
  4649. #define glRasterPos4iv CALL_THE_QGL_VERSION_OF_glRasterPos4iv
  4650. #define glRasterPos4s CALL_THE_QGL_VERSION_OF_glRasterPos4s
  4651. #define glRasterPos4sv CALL_THE_QGL_VERSION_OF_glRasterPos4sv
  4652. #define glReadBuffer CALL_THE_QGL_VERSION_OF_glReadBuffer
  4653. #define glReadPixels CALL_THE_QGL_VERSION_OF_glReadPixels
  4654. #define glRectd CALL_THE_QGL_VERSION_OF_glRectd
  4655. #define glRectdv CALL_THE_QGL_VERSION_OF_glRectdv
  4656. #define glRectf CALL_THE_QGL_VERSION_OF_glRectf
  4657. #define glRectfv CALL_THE_QGL_VERSION_OF_glRectfv
  4658. #define glRecti CALL_THE_QGL_VERSION_OF_glRecti
  4659. #define glRectiv CALL_THE_QGL_VERSION_OF_glRectiv
  4660. #define glRects CALL_THE_QGL_VERSION_OF_glRects
  4661. #define glRectsv CALL_THE_QGL_VERSION_OF_glRectsv
  4662. #define glRenderMode CALL_THE_QGL_VERSION_OF_glRenderMode
  4663. #define glRotated CALL_THE_QGL_VERSION_OF_glRotated
  4664. #define glRotatef CALL_THE_QGL_VERSION_OF_glRotatef
  4665. #define glScaled CALL_THE_QGL_VERSION_OF_glScaled
  4666. #define glScalef CALL_THE_QGL_VERSION_OF_glScalef
  4667. #define glScissor CALL_THE_QGL_VERSION_OF_glScissor
  4668. #define glSelectBuffer CALL_THE_QGL_VERSION_OF_glSelectBuffer
  4669. #define glShadeModel CALL_THE_QGL_VERSION_OF_glShadeModel
  4670. #define glStencilFunc CALL_THE_QGL_VERSION_OF_glStencilFunc
  4671. #define glStencilMask CALL_THE_QGL_VERSION_OF_glStencilMask
  4672. #define glStencilOp CALL_THE_QGL_VERSION_OF_glStencilOp
  4673. #define glTexCoord1d CALL_THE_QGL_VERSION_OF_glTexCoord1d
  4674. #define glTexCoord1dv CALL_THE_QGL_VERSION_OF_glTexCoord1dv
  4675. #define glTexCoord1f CALL_THE_QGL_VERSION_OF_glTexCoord1f
  4676. #define glTexCoord1fv CALL_THE_QGL_VERSION_OF_glTexCoord1fv
  4677. #define glTexCoord1i CALL_THE_QGL_VERSION_OF_glTexCoord1i
  4678. #define glTexCoord1iv CALL_THE_QGL_VERSION_OF_glTexCoord1iv
  4679. #define glTexCoord1s CALL_THE_QGL_VERSION_OF_glTexCoord1s
  4680. #define glTexCoord1sv CALL_THE_QGL_VERSION_OF_glTexCoord1sv
  4681. #define glTexCoord2d CALL_THE_QGL_VERSION_OF_glTexCoord2d
  4682. #define glTexCoord2dv CALL_THE_QGL_VERSION_OF_glTexCoord2dv
  4683. #define glTexCoord2f CALL_THE_QGL_VERSION_OF_glTexCoord2f
  4684. #define glTexCoord2fv CALL_THE_QGL_VERSION_OF_glTexCoord2fv
  4685. #define glTexCoord2i CALL_THE_QGL_VERSION_OF_glTexCoord2i
  4686. #define glTexCoord2iv CALL_THE_QGL_VERSION_OF_glTexCoord2iv
  4687. #define glTexCoord2s CALL_THE_QGL_VERSION_OF_glTexCoord2s
  4688. #define glTexCoord2sv CALL_THE_QGL_VERSION_OF_glTexCoord2sv
  4689. #define glTexCoord3d CALL_THE_QGL_VERSION_OF_glTexCoord3d
  4690. #define glTexCoord3dv CALL_THE_QGL_VERSION_OF_glTexCoord3dv
  4691. #define glTexCoord3f CALL_THE_QGL_VERSION_OF_glTexCoord3f
  4692. #define glTexCoord3fv CALL_THE_QGL_VERSION_OF_glTexCoord3fv
  4693. #define glTexCoord3i CALL_THE_QGL_VERSION_OF_glTexCoord3i
  4694. #define glTexCoord3iv CALL_THE_QGL_VERSION_OF_glTexCoord3iv
  4695. #define glTexCoord3s CALL_THE_QGL_VERSION_OF_glTexCoord3s
  4696. #define glTexCoord3sv CALL_THE_QGL_VERSION_OF_glTexCoord3sv
  4697. #define glTexCoord4d CALL_THE_QGL_VERSION_OF_glTexCoord4d
  4698. #define glTexCoord4dv CALL_THE_QGL_VERSION_OF_glTexCoord4dv
  4699. #define glTexCoord4f CALL_THE_QGL_VERSION_OF_glTexCoord4f
  4700. #define glTexCoord4fv CALL_THE_QGL_VERSION_OF_glTexCoord4fv
  4701. #define glTexCoord4i CALL_THE_QGL_VERSION_OF_glTexCoord4i
  4702. #define glTexCoord4iv CALL_THE_QGL_VERSION_OF_glTexCoord4iv
  4703. #define glTexCoord4s CALL_THE_QGL_VERSION_OF_glTexCoord4s
  4704. #define glTexCoord4sv CALL_THE_QGL_VERSION_OF_glTexCoord4sv
  4705. #define glTexCoordPointer CALL_THE_QGL_VERSION_OF_glTexCoordPointer
  4706. #define glTexEnvf CALL_THE_QGL_VERSION_OF_glTexEnvf
  4707. #define glTexEnvfv CALL_THE_QGL_VERSION_OF_glTexEnvfv
  4708. #define glTexEnvi CALL_THE_QGL_VERSION_OF_glTexEnvi
  4709. #define glTexEnviv CALL_THE_QGL_VERSION_OF_glTexEnviv
  4710. #define glTexGend CALL_THE_QGL_VERSION_OF_glTexGend
  4711. #define glTexGendv CALL_THE_QGL_VERSION_OF_glTexGendv
  4712. #define glTexGenf CALL_THE_QGL_VERSION_OF_glTexGenf
  4713. #define glTexGenfv CALL_THE_QGL_VERSION_OF_glTexGenfv
  4714. #define glTexGeni CALL_THE_QGL_VERSION_OF_glTexGeni
  4715. #define glTexGeniv CALL_THE_QGL_VERSION_OF_glTexGeniv
  4716. #define glTexImage1D CALL_THE_QGL_VERSION_OF_glTexImage1D
  4717. #define glTexImage2D CALL_THE_QGL_VERSION_OF_glTexImage2D
  4718. #define glTexParameterf CALL_THE_QGL_VERSION_OF_glTexParameterf
  4719. #define glTexParameterfv CALL_THE_QGL_VERSION_OF_glTexParameterfv
  4720. #define glTexParameteri CALL_THE_QGL_VERSION_OF_glTexParameteri
  4721. #define glTexParameteriv CALL_THE_QGL_VERSION_OF_glTexParameteriv
  4722. #define glTexSubImage1D CALL_THE_QGL_VERSION_OF_glTexSubImage1D
  4723. #define glTexSubImage2D CALL_THE_QGL_VERSION_OF_glTexSubImage2D
  4724. #define glTranslated CALL_THE_QGL_VERSION_OF_glTranslated
  4725. #define glTranslatef CALL_THE_QGL_VERSION_OF_glTranslatef
  4726. #define glVertex2d CALL_THE_QGL_VERSION_OF_glVertex2d
  4727. #define glVertex2dv CALL_THE_QGL_VERSION_OF_glVertex2dv
  4728. #define glVertex2f CALL_THE_QGL_VERSION_OF_glVertex2f
  4729. #define glVertex2fv CALL_THE_QGL_VERSION_OF_glVertex2fv
  4730. #define glVertex2i CALL_THE_QGL_VERSION_OF_glVertex2i
  4731. #define glVertex2iv CALL_THE_QGL_VERSION_OF_glVertex2iv
  4732. #define glVertex2s CALL_THE_QGL_VERSION_OF_glVertex2s
  4733. #define glVertex2sv CALL_THE_QGL_VERSION_OF_glVertex2sv
  4734. #define glVertex3d CALL_THE_QGL_VERSION_OF_glVertex3d
  4735. #define glVertex3dv CALL_THE_QGL_VERSION_OF_glVertex3dv
  4736. #define glVertex3f CALL_THE_QGL_VERSION_OF_glVertex3f
  4737. #define glVertex3fv CALL_THE_QGL_VERSION_OF_glVertex3fv
  4738. #define glVertex3i CALL_THE_QGL_VERSION_OF_glVertex3i
  4739. #define glVertex3iv CALL_THE_QGL_VERSION_OF_glVertex3iv
  4740. #define glVertex3s CALL_THE_QGL_VERSION_OF_glVertex3s
  4741. #define glVertex3sv CALL_THE_QGL_VERSION_OF_glVertex3sv
  4742. #define glVertex4d CALL_THE_QGL_VERSION_OF_glVertex4d
  4743. #define glVertex4dv CALL_THE_QGL_VERSION_OF_glVertex4dv
  4744. #define glVertex4f CALL_THE_QGL_VERSION_OF_glVertex4f
  4745. #define glVertex4fv CALL_THE_QGL_VERSION_OF_glVertex4fv
  4746. #define glVertex4i CALL_THE_QGL_VERSION_OF_glVertex4i
  4747. #define glVertex4iv CALL_THE_QGL_VERSION_OF_glVertex4iv
  4748. #define glVertex4s CALL_THE_QGL_VERSION_OF_glVertex4s
  4749. #define glVertex4sv CALL_THE_QGL_VERSION_OF_glVertex4sv
  4750. #define glVertexPointer CALL_THE_QGL_VERSION_OF_glVertexPointer
  4751. #define glViewport CALL_THE_QGL_VERSION_OF_glViewport