qgl_win.c 178 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134
  1. /*
  2. Copyright (C) 1997-2001 Id Software, Inc.
  3. This program is free software; you can redistribute it and/or
  4. modify it under the terms of the GNU General Public License
  5. as published by the Free Software Foundation; either version 2
  6. of the License, or (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  10. See the GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program; if not, write to the Free Software
  13. Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  14. */
  15. /*
  16. ** QGL_WIN.C
  17. **
  18. ** This file implements the operating system binding of GL to QGL function
  19. ** pointers. When doing a port of Quake2 you must implement the following
  20. ** two functions:
  21. **
  22. ** QGL_Init() - loads libraries, assigns function pointers, etc.
  23. ** QGL_Shutdown() - unloads libraries, NULLs function pointers
  24. */
  25. #include <float.h>
  26. #include "../ref_gl/gl_local.h"
  27. #include "glw_win.h"
  28. int ( WINAPI * qwglChoosePixelFormat )(HDC, CONST PIXELFORMATDESCRIPTOR *);
  29. int ( WINAPI * qwglDescribePixelFormat) (HDC, int, UINT, LPPIXELFORMATDESCRIPTOR);
  30. int ( WINAPI * qwglGetPixelFormat)(HDC);
  31. BOOL ( WINAPI * qwglSetPixelFormat)(HDC, int, CONST PIXELFORMATDESCRIPTOR *);
  32. BOOL ( WINAPI * qwglSwapBuffers)(HDC);
  33. BOOL ( WINAPI * qwglCopyContext)(HGLRC, HGLRC, UINT);
  34. HGLRC ( WINAPI * qwglCreateContext)(HDC);
  35. HGLRC ( WINAPI * qwglCreateLayerContext)(HDC, int);
  36. BOOL ( WINAPI * qwglDeleteContext)(HGLRC);
  37. HGLRC ( WINAPI * qwglGetCurrentContext)(VOID);
  38. HDC ( WINAPI * qwglGetCurrentDC)(VOID);
  39. PROC ( WINAPI * qwglGetProcAddress)(LPCSTR);
  40. BOOL ( WINAPI * qwglMakeCurrent)(HDC, HGLRC);
  41. BOOL ( WINAPI * qwglShareLists)(HGLRC, HGLRC);
  42. BOOL ( WINAPI * qwglUseFontBitmaps)(HDC, DWORD, DWORD, DWORD);
  43. BOOL ( WINAPI * qwglUseFontOutlines)(HDC, DWORD, DWORD, DWORD, FLOAT,
  44. FLOAT, int, LPGLYPHMETRICSFLOAT);
  45. BOOL ( WINAPI * qwglDescribeLayerPlane)(HDC, int, int, UINT,
  46. LPLAYERPLANEDESCRIPTOR);
  47. int ( WINAPI * qwglSetLayerPaletteEntries)(HDC, int, int, int,
  48. CONST COLORREF *);
  49. int ( WINAPI * qwglGetLayerPaletteEntries)(HDC, int, int, int,
  50. COLORREF *);
  51. BOOL ( WINAPI * qwglRealizeLayerPalette)(HDC, int, BOOL);
  52. BOOL ( WINAPI * qwglSwapLayerBuffers)(HDC, UINT);
  53. void ( APIENTRY * qglAccum )(GLenum op, GLfloat value);
  54. void ( APIENTRY * qglAlphaFunc )(GLenum func, GLclampf ref);
  55. GLboolean ( APIENTRY * qglAreTexturesResident )(GLsizei n, const GLuint *textures, GLboolean *residences);
  56. void ( APIENTRY * qglArrayElement )(GLint i);
  57. void ( APIENTRY * qglBegin )(GLenum mode);
  58. void ( APIENTRY * qglBindTexture )(GLenum target, GLuint texture);
  59. void ( APIENTRY * qglBitmap )(GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte *bitmap);
  60. void ( APIENTRY * qglBlendFunc )(GLenum sfactor, GLenum dfactor);
  61. void ( APIENTRY * qglCallList )(GLuint list);
  62. void ( APIENTRY * qglCallLists )(GLsizei n, GLenum type, const GLvoid *lists);
  63. void ( APIENTRY * qglClear )(GLbitfield mask);
  64. void ( APIENTRY * qglClearAccum )(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
  65. void ( APIENTRY * qglClearColor )(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
  66. void ( APIENTRY * qglClearDepth )(GLclampd depth);
  67. void ( APIENTRY * qglClearIndex )(GLfloat c);
  68. void ( APIENTRY * qglClearStencil )(GLint s);
  69. void ( APIENTRY * qglClipPlane )(GLenum plane, const GLdouble *equation);
  70. void ( APIENTRY * qglColor3b )(GLbyte red, GLbyte green, GLbyte blue);
  71. void ( APIENTRY * qglColor3bv )(const GLbyte *v);
  72. void ( APIENTRY * qglColor3d )(GLdouble red, GLdouble green, GLdouble blue);
  73. void ( APIENTRY * qglColor3dv )(const GLdouble *v);
  74. void ( APIENTRY * qglColor3f )(GLfloat red, GLfloat green, GLfloat blue);
  75. void ( APIENTRY * qglColor3fv )(const GLfloat *v);
  76. void ( APIENTRY * qglColor3i )(GLint red, GLint green, GLint blue);
  77. void ( APIENTRY * qglColor3iv )(const GLint *v);
  78. void ( APIENTRY * qglColor3s )(GLshort red, GLshort green, GLshort blue);
  79. void ( APIENTRY * qglColor3sv )(const GLshort *v);
  80. void ( APIENTRY * qglColor3ub )(GLubyte red, GLubyte green, GLubyte blue);
  81. void ( APIENTRY * qglColor3ubv )(const GLubyte *v);
  82. void ( APIENTRY * qglColor3ui )(GLuint red, GLuint green, GLuint blue);
  83. void ( APIENTRY * qglColor3uiv )(const GLuint *v);
  84. void ( APIENTRY * qglColor3us )(GLushort red, GLushort green, GLushort blue);
  85. void ( APIENTRY * qglColor3usv )(const GLushort *v);
  86. void ( APIENTRY * qglColor4b )(GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha);
  87. void ( APIENTRY * qglColor4bv )(const GLbyte *v);
  88. void ( APIENTRY * qglColor4d )(GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha);
  89. void ( APIENTRY * qglColor4dv )(const GLdouble *v);
  90. void ( APIENTRY * qglColor4f )(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
  91. void ( APIENTRY * qglColor4fv )(const GLfloat *v);
  92. void ( APIENTRY * qglColor4i )(GLint red, GLint green, GLint blue, GLint alpha);
  93. void ( APIENTRY * qglColor4iv )(const GLint *v);
  94. void ( APIENTRY * qglColor4s )(GLshort red, GLshort green, GLshort blue, GLshort alpha);
  95. void ( APIENTRY * qglColor4sv )(const GLshort *v);
  96. void ( APIENTRY * qglColor4ub )(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha);
  97. void ( APIENTRY * qglColor4ubv )(const GLubyte *v);
  98. void ( APIENTRY * qglColor4ui )(GLuint red, GLuint green, GLuint blue, GLuint alpha);
  99. void ( APIENTRY * qglColor4uiv )(const GLuint *v);
  100. void ( APIENTRY * qglColor4us )(GLushort red, GLushort green, GLushort blue, GLushort alpha);
  101. void ( APIENTRY * qglColor4usv )(const GLushort *v);
  102. void ( APIENTRY * qglColorMask )(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
  103. void ( APIENTRY * qglColorMaterial )(GLenum face, GLenum mode);
  104. void ( APIENTRY * qglColorPointer )(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
  105. void ( APIENTRY * qglCopyPixels )(GLint x, GLint y, GLsizei width, GLsizei height, GLenum type);
  106. void ( APIENTRY * qglCopyTexImage1D )(GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLint border);
  107. void ( APIENTRY * qglCopyTexImage2D )(GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
  108. void ( APIENTRY * qglCopyTexSubImage1D )(GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
  109. void ( APIENTRY * qglCopyTexSubImage2D )(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
  110. void ( APIENTRY * qglCullFace )(GLenum mode);
  111. void ( APIENTRY * qglDeleteLists )(GLuint list, GLsizei range);
  112. void ( APIENTRY * qglDeleteTextures )(GLsizei n, const GLuint *textures);
  113. void ( APIENTRY * qglDepthFunc )(GLenum func);
  114. void ( APIENTRY * qglDepthMask )(GLboolean flag);
  115. void ( APIENTRY * qglDepthRange )(GLclampd zNear, GLclampd zFar);
  116. void ( APIENTRY * qglDisable )(GLenum cap);
  117. void ( APIENTRY * qglDisableClientState )(GLenum array);
  118. void ( APIENTRY * qglDrawArrays )(GLenum mode, GLint first, GLsizei count);
  119. void ( APIENTRY * qglDrawBuffer )(GLenum mode);
  120. void ( APIENTRY * qglDrawElements )(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices);
  121. void ( APIENTRY * qglDrawPixels )(GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
  122. void ( APIENTRY * qglEdgeFlag )(GLboolean flag);
  123. void ( APIENTRY * qglEdgeFlagPointer )(GLsizei stride, const GLvoid *pointer);
  124. void ( APIENTRY * qglEdgeFlagv )(const GLboolean *flag);
  125. void ( APIENTRY * qglEnable )(GLenum cap);
  126. void ( APIENTRY * qglEnableClientState )(GLenum array);
  127. void ( APIENTRY * qglEnd )(void);
  128. void ( APIENTRY * qglEndList )(void);
  129. void ( APIENTRY * qglEvalCoord1d )(GLdouble u);
  130. void ( APIENTRY * qglEvalCoord1dv )(const GLdouble *u);
  131. void ( APIENTRY * qglEvalCoord1f )(GLfloat u);
  132. void ( APIENTRY * qglEvalCoord1fv )(const GLfloat *u);
  133. void ( APIENTRY * qglEvalCoord2d )(GLdouble u, GLdouble v);
  134. void ( APIENTRY * qglEvalCoord2dv )(const GLdouble *u);
  135. void ( APIENTRY * qglEvalCoord2f )(GLfloat u, GLfloat v);
  136. void ( APIENTRY * qglEvalCoord2fv )(const GLfloat *u);
  137. void ( APIENTRY * qglEvalMesh1 )(GLenum mode, GLint i1, GLint i2);
  138. void ( APIENTRY * qglEvalMesh2 )(GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2);
  139. void ( APIENTRY * qglEvalPoint1 )(GLint i);
  140. void ( APIENTRY * qglEvalPoint2 )(GLint i, GLint j);
  141. void ( APIENTRY * qglFeedbackBuffer )(GLsizei size, GLenum type, GLfloat *buffer);
  142. void ( APIENTRY * qglFinish )(void);
  143. void ( APIENTRY * qglFlush )(void);
  144. void ( APIENTRY * qglFogf )(GLenum pname, GLfloat param);
  145. void ( APIENTRY * qglFogfv )(GLenum pname, const GLfloat *params);
  146. void ( APIENTRY * qglFogi )(GLenum pname, GLint param);
  147. void ( APIENTRY * qglFogiv )(GLenum pname, const GLint *params);
  148. void ( APIENTRY * qglFrontFace )(GLenum mode);
  149. void ( APIENTRY * qglFrustum )(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
  150. GLuint ( APIENTRY * qglGenLists )(GLsizei range);
  151. void ( APIENTRY * qglGenTextures )(GLsizei n, GLuint *textures);
  152. void ( APIENTRY * qglGetBooleanv )(GLenum pname, GLboolean *params);
  153. void ( APIENTRY * qglGetClipPlane )(GLenum plane, GLdouble *equation);
  154. void ( APIENTRY * qglGetDoublev )(GLenum pname, GLdouble *params);
  155. GLenum ( APIENTRY * qglGetError )(void);
  156. void ( APIENTRY * qglGetFloatv )(GLenum pname, GLfloat *params);
  157. void ( APIENTRY * qglGetIntegerv )(GLenum pname, GLint *params);
  158. void ( APIENTRY * qglGetLightfv )(GLenum light, GLenum pname, GLfloat *params);
  159. void ( APIENTRY * qglGetLightiv )(GLenum light, GLenum pname, GLint *params);
  160. void ( APIENTRY * qglGetMapdv )(GLenum target, GLenum query, GLdouble *v);
  161. void ( APIENTRY * qglGetMapfv )(GLenum target, GLenum query, GLfloat *v);
  162. void ( APIENTRY * qglGetMapiv )(GLenum target, GLenum query, GLint *v);
  163. void ( APIENTRY * qglGetMaterialfv )(GLenum face, GLenum pname, GLfloat *params);
  164. void ( APIENTRY * qglGetMaterialiv )(GLenum face, GLenum pname, GLint *params);
  165. void ( APIENTRY * qglGetPixelMapfv )(GLenum map, GLfloat *values);
  166. void ( APIENTRY * qglGetPixelMapuiv )(GLenum map, GLuint *values);
  167. void ( APIENTRY * qglGetPixelMapusv )(GLenum map, GLushort *values);
  168. void ( APIENTRY * qglGetPointerv )(GLenum pname, GLvoid* *params);
  169. void ( APIENTRY * qglGetPolygonStipple )(GLubyte *mask);
  170. const GLubyte * ( APIENTRY * qglGetString )(GLenum name);
  171. void ( APIENTRY * qglGetTexEnvfv )(GLenum target, GLenum pname, GLfloat *params);
  172. void ( APIENTRY * qglGetTexEnviv )(GLenum target, GLenum pname, GLint *params);
  173. void ( APIENTRY * qglGetTexGendv )(GLenum coord, GLenum pname, GLdouble *params);
  174. void ( APIENTRY * qglGetTexGenfv )(GLenum coord, GLenum pname, GLfloat *params);
  175. void ( APIENTRY * qglGetTexGeniv )(GLenum coord, GLenum pname, GLint *params);
  176. void ( APIENTRY * qglGetTexImage )(GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels);
  177. void ( APIENTRY * qglGetTexLevelParameterfv )(GLenum target, GLint level, GLenum pname, GLfloat *params);
  178. void ( APIENTRY * qglGetTexLevelParameteriv )(GLenum target, GLint level, GLenum pname, GLint *params);
  179. void ( APIENTRY * qglGetTexParameterfv )(GLenum target, GLenum pname, GLfloat *params);
  180. void ( APIENTRY * qglGetTexParameteriv )(GLenum target, GLenum pname, GLint *params);
  181. void ( APIENTRY * qglHint )(GLenum target, GLenum mode);
  182. void ( APIENTRY * qglIndexMask )(GLuint mask);
  183. void ( APIENTRY * qglIndexPointer )(GLenum type, GLsizei stride, const GLvoid *pointer);
  184. void ( APIENTRY * qglIndexd )(GLdouble c);
  185. void ( APIENTRY * qglIndexdv )(const GLdouble *c);
  186. void ( APIENTRY * qglIndexf )(GLfloat c);
  187. void ( APIENTRY * qglIndexfv )(const GLfloat *c);
  188. void ( APIENTRY * qglIndexi )(GLint c);
  189. void ( APIENTRY * qglIndexiv )(const GLint *c);
  190. void ( APIENTRY * qglIndexs )(GLshort c);
  191. void ( APIENTRY * qglIndexsv )(const GLshort *c);
  192. void ( APIENTRY * qglIndexub )(GLubyte c);
  193. void ( APIENTRY * qglIndexubv )(const GLubyte *c);
  194. void ( APIENTRY * qglInitNames )(void);
  195. void ( APIENTRY * qglInterleavedArrays )(GLenum format, GLsizei stride, const GLvoid *pointer);
  196. GLboolean ( APIENTRY * qglIsEnabled )(GLenum cap);
  197. GLboolean ( APIENTRY * qglIsList )(GLuint list);
  198. GLboolean ( APIENTRY * qglIsTexture )(GLuint texture);
  199. void ( APIENTRY * qglLightModelf )(GLenum pname, GLfloat param);
  200. void ( APIENTRY * qglLightModelfv )(GLenum pname, const GLfloat *params);
  201. void ( APIENTRY * qglLightModeli )(GLenum pname, GLint param);
  202. void ( APIENTRY * qglLightModeliv )(GLenum pname, const GLint *params);
  203. void ( APIENTRY * qglLightf )(GLenum light, GLenum pname, GLfloat param);
  204. void ( APIENTRY * qglLightfv )(GLenum light, GLenum pname, const GLfloat *params);
  205. void ( APIENTRY * qglLighti )(GLenum light, GLenum pname, GLint param);
  206. void ( APIENTRY * qglLightiv )(GLenum light, GLenum pname, const GLint *params);
  207. void ( APIENTRY * qglLineStipple )(GLint factor, GLushort pattern);
  208. void ( APIENTRY * qglLineWidth )(GLfloat width);
  209. void ( APIENTRY * qglListBase )(GLuint base);
  210. void ( APIENTRY * qglLoadIdentity )(void);
  211. void ( APIENTRY * qglLoadMatrixd )(const GLdouble *m);
  212. void ( APIENTRY * qglLoadMatrixf )(const GLfloat *m);
  213. void ( APIENTRY * qglLoadName )(GLuint name);
  214. void ( APIENTRY * qglLogicOp )(GLenum opcode);
  215. void ( APIENTRY * qglMap1d )(GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points);
  216. void ( APIENTRY * qglMap1f )(GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points);
  217. void ( APIENTRY * qglMap2d )(GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points);
  218. void ( APIENTRY * qglMap2f )(GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points);
  219. void ( APIENTRY * qglMapGrid1d )(GLint un, GLdouble u1, GLdouble u2);
  220. void ( APIENTRY * qglMapGrid1f )(GLint un, GLfloat u1, GLfloat u2);
  221. void ( APIENTRY * qglMapGrid2d )(GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2);
  222. void ( APIENTRY * qglMapGrid2f )(GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2);
  223. void ( APIENTRY * qglMaterialf )(GLenum face, GLenum pname, GLfloat param);
  224. void ( APIENTRY * qglMaterialfv )(GLenum face, GLenum pname, const GLfloat *params);
  225. void ( APIENTRY * qglMateriali )(GLenum face, GLenum pname, GLint param);
  226. void ( APIENTRY * qglMaterialiv )(GLenum face, GLenum pname, const GLint *params);
  227. void ( APIENTRY * qglMatrixMode )(GLenum mode);
  228. void ( APIENTRY * qglMultMatrixd )(const GLdouble *m);
  229. void ( APIENTRY * qglMultMatrixf )(const GLfloat *m);
  230. void ( APIENTRY * qglNewList )(GLuint list, GLenum mode);
  231. void ( APIENTRY * qglNormal3b )(GLbyte nx, GLbyte ny, GLbyte nz);
  232. void ( APIENTRY * qglNormal3bv )(const GLbyte *v);
  233. void ( APIENTRY * qglNormal3d )(GLdouble nx, GLdouble ny, GLdouble nz);
  234. void ( APIENTRY * qglNormal3dv )(const GLdouble *v);
  235. void ( APIENTRY * qglNormal3f )(GLfloat nx, GLfloat ny, GLfloat nz);
  236. void ( APIENTRY * qglNormal3fv )(const GLfloat *v);
  237. void ( APIENTRY * qglNormal3i )(GLint nx, GLint ny, GLint nz);
  238. void ( APIENTRY * qglNormal3iv )(const GLint *v);
  239. void ( APIENTRY * qglNormal3s )(GLshort nx, GLshort ny, GLshort nz);
  240. void ( APIENTRY * qglNormal3sv )(const GLshort *v);
  241. void ( APIENTRY * qglNormalPointer )(GLenum type, GLsizei stride, const GLvoid *pointer);
  242. void ( APIENTRY * qglOrtho )(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
  243. void ( APIENTRY * qglPassThrough )(GLfloat token);
  244. void ( APIENTRY * qglPixelMapfv )(GLenum map, GLsizei mapsize, const GLfloat *values);
  245. void ( APIENTRY * qglPixelMapuiv )(GLenum map, GLsizei mapsize, const GLuint *values);
  246. void ( APIENTRY * qglPixelMapusv )(GLenum map, GLsizei mapsize, const GLushort *values);
  247. void ( APIENTRY * qglPixelStoref )(GLenum pname, GLfloat param);
  248. void ( APIENTRY * qglPixelStorei )(GLenum pname, GLint param);
  249. void ( APIENTRY * qglPixelTransferf )(GLenum pname, GLfloat param);
  250. void ( APIENTRY * qglPixelTransferi )(GLenum pname, GLint param);
  251. void ( APIENTRY * qglPixelZoom )(GLfloat xfactor, GLfloat yfactor);
  252. void ( APIENTRY * qglPointSize )(GLfloat size);
  253. void ( APIENTRY * qglPolygonMode )(GLenum face, GLenum mode);
  254. void ( APIENTRY * qglPolygonOffset )(GLfloat factor, GLfloat units);
  255. void ( APIENTRY * qglPolygonStipple )(const GLubyte *mask);
  256. void ( APIENTRY * qglPopAttrib )(void);
  257. void ( APIENTRY * qglPopClientAttrib )(void);
  258. void ( APIENTRY * qglPopMatrix )(void);
  259. void ( APIENTRY * qglPopName )(void);
  260. void ( APIENTRY * qglPrioritizeTextures )(GLsizei n, const GLuint *textures, const GLclampf *priorities);
  261. void ( APIENTRY * qglPushAttrib )(GLbitfield mask);
  262. void ( APIENTRY * qglPushClientAttrib )(GLbitfield mask);
  263. void ( APIENTRY * qglPushMatrix )(void);
  264. void ( APIENTRY * qglPushName )(GLuint name);
  265. void ( APIENTRY * qglRasterPos2d )(GLdouble x, GLdouble y);
  266. void ( APIENTRY * qglRasterPos2dv )(const GLdouble *v);
  267. void ( APIENTRY * qglRasterPos2f )(GLfloat x, GLfloat y);
  268. void ( APIENTRY * qglRasterPos2fv )(const GLfloat *v);
  269. void ( APIENTRY * qglRasterPos2i )(GLint x, GLint y);
  270. void ( APIENTRY * qglRasterPos2iv )(const GLint *v);
  271. void ( APIENTRY * qglRasterPos2s )(GLshort x, GLshort y);
  272. void ( APIENTRY * qglRasterPos2sv )(const GLshort *v);
  273. void ( APIENTRY * qglRasterPos3d )(GLdouble x, GLdouble y, GLdouble z);
  274. void ( APIENTRY * qglRasterPos3dv )(const GLdouble *v);
  275. void ( APIENTRY * qglRasterPos3f )(GLfloat x, GLfloat y, GLfloat z);
  276. void ( APIENTRY * qglRasterPos3fv )(const GLfloat *v);
  277. void ( APIENTRY * qglRasterPos3i )(GLint x, GLint y, GLint z);
  278. void ( APIENTRY * qglRasterPos3iv )(const GLint *v);
  279. void ( APIENTRY * qglRasterPos3s )(GLshort x, GLshort y, GLshort z);
  280. void ( APIENTRY * qglRasterPos3sv )(const GLshort *v);
  281. void ( APIENTRY * qglRasterPos4d )(GLdouble x, GLdouble y, GLdouble z, GLdouble w);
  282. void ( APIENTRY * qglRasterPos4dv )(const GLdouble *v);
  283. void ( APIENTRY * qglRasterPos4f )(GLfloat x, GLfloat y, GLfloat z, GLfloat w);
  284. void ( APIENTRY * qglRasterPos4fv )(const GLfloat *v);
  285. void ( APIENTRY * qglRasterPos4i )(GLint x, GLint y, GLint z, GLint w);
  286. void ( APIENTRY * qglRasterPos4iv )(const GLint *v);
  287. void ( APIENTRY * qglRasterPos4s )(GLshort x, GLshort y, GLshort z, GLshort w);
  288. void ( APIENTRY * qglRasterPos4sv )(const GLshort *v);
  289. void ( APIENTRY * qglReadBuffer )(GLenum mode);
  290. void ( APIENTRY * qglReadPixels )(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels);
  291. void ( APIENTRY * qglRectd )(GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2);
  292. void ( APIENTRY * qglRectdv )(const GLdouble *v1, const GLdouble *v2);
  293. void ( APIENTRY * qglRectf )(GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2);
  294. void ( APIENTRY * qglRectfv )(const GLfloat *v1, const GLfloat *v2);
  295. void ( APIENTRY * qglRecti )(GLint x1, GLint y1, GLint x2, GLint y2);
  296. void ( APIENTRY * qglRectiv )(const GLint *v1, const GLint *v2);
  297. void ( APIENTRY * qglRects )(GLshort x1, GLshort y1, GLshort x2, GLshort y2);
  298. void ( APIENTRY * qglRectsv )(const GLshort *v1, const GLshort *v2);
  299. GLint ( APIENTRY * qglRenderMode )(GLenum mode);
  300. void ( APIENTRY * qglRotated )(GLdouble angle, GLdouble x, GLdouble y, GLdouble z);
  301. void ( APIENTRY * qglRotatef )(GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
  302. void ( APIENTRY * qglScaled )(GLdouble x, GLdouble y, GLdouble z);
  303. void ( APIENTRY * qglScalef )(GLfloat x, GLfloat y, GLfloat z);
  304. void ( APIENTRY * qglScissor )(GLint x, GLint y, GLsizei width, GLsizei height);
  305. void ( APIENTRY * qglSelectBuffer )(GLsizei size, GLuint *buffer);
  306. void ( APIENTRY * qglShadeModel )(GLenum mode);
  307. void ( APIENTRY * qglStencilFunc )(GLenum func, GLint ref, GLuint mask);
  308. void ( APIENTRY * qglStencilMask )(GLuint mask);
  309. void ( APIENTRY * qglStencilOp )(GLenum fail, GLenum zfail, GLenum zpass);
  310. void ( APIENTRY * qglTexCoord1d )(GLdouble s);
  311. void ( APIENTRY * qglTexCoord1dv )(const GLdouble *v);
  312. void ( APIENTRY * qglTexCoord1f )(GLfloat s);
  313. void ( APIENTRY * qglTexCoord1fv )(const GLfloat *v);
  314. void ( APIENTRY * qglTexCoord1i )(GLint s);
  315. void ( APIENTRY * qglTexCoord1iv )(const GLint *v);
  316. void ( APIENTRY * qglTexCoord1s )(GLshort s);
  317. void ( APIENTRY * qglTexCoord1sv )(const GLshort *v);
  318. void ( APIENTRY * qglTexCoord2d )(GLdouble s, GLdouble t);
  319. void ( APIENTRY * qglTexCoord2dv )(const GLdouble *v);
  320. void ( APIENTRY * qglTexCoord2f )(GLfloat s, GLfloat t);
  321. void ( APIENTRY * qglTexCoord2fv )(const GLfloat *v);
  322. void ( APIENTRY * qglTexCoord2i )(GLint s, GLint t);
  323. void ( APIENTRY * qglTexCoord2iv )(const GLint *v);
  324. void ( APIENTRY * qglTexCoord2s )(GLshort s, GLshort t);
  325. void ( APIENTRY * qglTexCoord2sv )(const GLshort *v);
  326. void ( APIENTRY * qglTexCoord3d )(GLdouble s, GLdouble t, GLdouble r);
  327. void ( APIENTRY * qglTexCoord3dv )(const GLdouble *v);
  328. void ( APIENTRY * qglTexCoord3f )(GLfloat s, GLfloat t, GLfloat r);
  329. void ( APIENTRY * qglTexCoord3fv )(const GLfloat *v);
  330. void ( APIENTRY * qglTexCoord3i )(GLint s, GLint t, GLint r);
  331. void ( APIENTRY * qglTexCoord3iv )(const GLint *v);
  332. void ( APIENTRY * qglTexCoord3s )(GLshort s, GLshort t, GLshort r);
  333. void ( APIENTRY * qglTexCoord3sv )(const GLshort *v);
  334. void ( APIENTRY * qglTexCoord4d )(GLdouble s, GLdouble t, GLdouble r, GLdouble q);
  335. void ( APIENTRY * qglTexCoord4dv )(const GLdouble *v);
  336. void ( APIENTRY * qglTexCoord4f )(GLfloat s, GLfloat t, GLfloat r, GLfloat q);
  337. void ( APIENTRY * qglTexCoord4fv )(const GLfloat *v);
  338. void ( APIENTRY * qglTexCoord4i )(GLint s, GLint t, GLint r, GLint q);
  339. void ( APIENTRY * qglTexCoord4iv )(const GLint *v);
  340. void ( APIENTRY * qglTexCoord4s )(GLshort s, GLshort t, GLshort r, GLshort q);
  341. void ( APIENTRY * qglTexCoord4sv )(const GLshort *v);
  342. void ( APIENTRY * qglTexCoordPointer )(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
  343. void ( APIENTRY * qglTexEnvf )(GLenum target, GLenum pname, GLfloat param);
  344. void ( APIENTRY * qglTexEnvfv )(GLenum target, GLenum pname, const GLfloat *params);
  345. void ( APIENTRY * qglTexEnvi )(GLenum target, GLenum pname, GLint param);
  346. void ( APIENTRY * qglTexEnviv )(GLenum target, GLenum pname, const GLint *params);
  347. void ( APIENTRY * qglTexGend )(GLenum coord, GLenum pname, GLdouble param);
  348. void ( APIENTRY * qglTexGendv )(GLenum coord, GLenum pname, const GLdouble *params);
  349. void ( APIENTRY * qglTexGenf )(GLenum coord, GLenum pname, GLfloat param);
  350. void ( APIENTRY * qglTexGenfv )(GLenum coord, GLenum pname, const GLfloat *params);
  351. void ( APIENTRY * qglTexGeni )(GLenum coord, GLenum pname, GLint param);
  352. void ( APIENTRY * qglTexGeniv )(GLenum coord, GLenum pname, const GLint *params);
  353. void ( APIENTRY * qglTexImage1D )(GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
  354. void ( APIENTRY * qglTexImage2D )(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
  355. void ( APIENTRY * qglTexParameterf )(GLenum target, GLenum pname, GLfloat param);
  356. void ( APIENTRY * qglTexParameterfv )(GLenum target, GLenum pname, const GLfloat *params);
  357. void ( APIENTRY * qglTexParameteri )(GLenum target, GLenum pname, GLint param);
  358. void ( APIENTRY * qglTexParameteriv )(GLenum target, GLenum pname, const GLint *params);
  359. void ( APIENTRY * qglTexSubImage1D )(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels);
  360. void ( APIENTRY * qglTexSubImage2D )(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
  361. void ( APIENTRY * qglTranslated )(GLdouble x, GLdouble y, GLdouble z);
  362. void ( APIENTRY * qglTranslatef )(GLfloat x, GLfloat y, GLfloat z);
  363. void ( APIENTRY * qglVertex2d )(GLdouble x, GLdouble y);
  364. void ( APIENTRY * qglVertex2dv )(const GLdouble *v);
  365. void ( APIENTRY * qglVertex2f )(GLfloat x, GLfloat y);
  366. void ( APIENTRY * qglVertex2fv )(const GLfloat *v);
  367. void ( APIENTRY * qglVertex2i )(GLint x, GLint y);
  368. void ( APIENTRY * qglVertex2iv )(const GLint *v);
  369. void ( APIENTRY * qglVertex2s )(GLshort x, GLshort y);
  370. void ( APIENTRY * qglVertex2sv )(const GLshort *v);
  371. void ( APIENTRY * qglVertex3d )(GLdouble x, GLdouble y, GLdouble z);
  372. void ( APIENTRY * qglVertex3dv )(const GLdouble *v);
  373. void ( APIENTRY * qglVertex3f )(GLfloat x, GLfloat y, GLfloat z);
  374. void ( APIENTRY * qglVertex3fv )(const GLfloat *v);
  375. void ( APIENTRY * qglVertex3i )(GLint x, GLint y, GLint z);
  376. void ( APIENTRY * qglVertex3iv )(const GLint *v);
  377. void ( APIENTRY * qglVertex3s )(GLshort x, GLshort y, GLshort z);
  378. void ( APIENTRY * qglVertex3sv )(const GLshort *v);
  379. void ( APIENTRY * qglVertex4d )(GLdouble x, GLdouble y, GLdouble z, GLdouble w);
  380. void ( APIENTRY * qglVertex4dv )(const GLdouble *v);
  381. void ( APIENTRY * qglVertex4f )(GLfloat x, GLfloat y, GLfloat z, GLfloat w);
  382. void ( APIENTRY * qglVertex4fv )(const GLfloat *v);
  383. void ( APIENTRY * qglVertex4i )(GLint x, GLint y, GLint z, GLint w);
  384. void ( APIENTRY * qglVertex4iv )(const GLint *v);
  385. void ( APIENTRY * qglVertex4s )(GLshort x, GLshort y, GLshort z, GLshort w);
  386. void ( APIENTRY * qglVertex4sv )(const GLshort *v);
  387. void ( APIENTRY * qglVertexPointer )(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
  388. void ( APIENTRY * qglViewport )(GLint x, GLint y, GLsizei width, GLsizei height);
  389. void ( APIENTRY * qglLockArraysEXT)( int, int);
  390. void ( APIENTRY * qglUnlockArraysEXT) ( void );
  391. BOOL ( WINAPI * qwglSwapIntervalEXT)( int interval );
  392. BOOL ( WINAPI * qwglGetDeviceGammaRampEXT)( unsigned char *, unsigned char *, unsigned char * );
  393. BOOL ( WINAPI * qwglSetDeviceGammaRampEXT)( const unsigned char *, const unsigned char *, const unsigned char * );
  394. void ( APIENTRY * qglPointParameterfEXT)( GLenum param, GLfloat value );
  395. void ( APIENTRY * qglPointParameterfvEXT)( GLenum param, const GLfloat *value );
  396. void ( APIENTRY * qglColorTableEXT)( int, int, int, int, int, const void * );
  397. void ( APIENTRY * qglSelectTextureSGIS)( GLenum );
  398. void ( APIENTRY * qglMTexCoord2fSGIS)( GLenum, GLfloat, GLfloat );
  399. static void ( APIENTRY * dllAccum )(GLenum op, GLfloat value);
  400. static void ( APIENTRY * dllAlphaFunc )(GLenum func, GLclampf ref);
  401. GLboolean ( APIENTRY * dllAreTexturesResident )(GLsizei n, const GLuint *textures, GLboolean *residences);
  402. static void ( APIENTRY * dllArrayElement )(GLint i);
  403. static void ( APIENTRY * dllBegin )(GLenum mode);
  404. static void ( APIENTRY * dllBindTexture )(GLenum target, GLuint texture);
  405. static void ( APIENTRY * dllBitmap )(GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte *bitmap);
  406. static void ( APIENTRY * dllBlendFunc )(GLenum sfactor, GLenum dfactor);
  407. static void ( APIENTRY * dllCallList )(GLuint list);
  408. static void ( APIENTRY * dllCallLists )(GLsizei n, GLenum type, const GLvoid *lists);
  409. static void ( APIENTRY * dllClear )(GLbitfield mask);
  410. static void ( APIENTRY * dllClearAccum )(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
  411. static void ( APIENTRY * dllClearColor )(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
  412. static void ( APIENTRY * dllClearDepth )(GLclampd depth);
  413. static void ( APIENTRY * dllClearIndex )(GLfloat c);
  414. static void ( APIENTRY * dllClearStencil )(GLint s);
  415. static void ( APIENTRY * dllClipPlane )(GLenum plane, const GLdouble *equation);
  416. static void ( APIENTRY * dllColor3b )(GLbyte red, GLbyte green, GLbyte blue);
  417. static void ( APIENTRY * dllColor3bv )(const GLbyte *v);
  418. static void ( APIENTRY * dllColor3d )(GLdouble red, GLdouble green, GLdouble blue);
  419. static void ( APIENTRY * dllColor3dv )(const GLdouble *v);
  420. static void ( APIENTRY * dllColor3f )(GLfloat red, GLfloat green, GLfloat blue);
  421. static void ( APIENTRY * dllColor3fv )(const GLfloat *v);
  422. static void ( APIENTRY * dllColor3i )(GLint red, GLint green, GLint blue);
  423. static void ( APIENTRY * dllColor3iv )(const GLint *v);
  424. static void ( APIENTRY * dllColor3s )(GLshort red, GLshort green, GLshort blue);
  425. static void ( APIENTRY * dllColor3sv )(const GLshort *v);
  426. static void ( APIENTRY * dllColor3ub )(GLubyte red, GLubyte green, GLubyte blue);
  427. static void ( APIENTRY * dllColor3ubv )(const GLubyte *v);
  428. static void ( APIENTRY * dllColor3ui )(GLuint red, GLuint green, GLuint blue);
  429. static void ( APIENTRY * dllColor3uiv )(const GLuint *v);
  430. static void ( APIENTRY * dllColor3us )(GLushort red, GLushort green, GLushort blue);
  431. static void ( APIENTRY * dllColor3usv )(const GLushort *v);
  432. static void ( APIENTRY * dllColor4b )(GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha);
  433. static void ( APIENTRY * dllColor4bv )(const GLbyte *v);
  434. static void ( APIENTRY * dllColor4d )(GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha);
  435. static void ( APIENTRY * dllColor4dv )(const GLdouble *v);
  436. static void ( APIENTRY * dllColor4f )(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
  437. static void ( APIENTRY * dllColor4fv )(const GLfloat *v);
  438. static void ( APIENTRY * dllColor4i )(GLint red, GLint green, GLint blue, GLint alpha);
  439. static void ( APIENTRY * dllColor4iv )(const GLint *v);
  440. static void ( APIENTRY * dllColor4s )(GLshort red, GLshort green, GLshort blue, GLshort alpha);
  441. static void ( APIENTRY * dllColor4sv )(const GLshort *v);
  442. static void ( APIENTRY * dllColor4ub )(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha);
  443. static void ( APIENTRY * dllColor4ubv )(const GLubyte *v);
  444. static void ( APIENTRY * dllColor4ui )(GLuint red, GLuint green, GLuint blue, GLuint alpha);
  445. static void ( APIENTRY * dllColor4uiv )(const GLuint *v);
  446. static void ( APIENTRY * dllColor4us )(GLushort red, GLushort green, GLushort blue, GLushort alpha);
  447. static void ( APIENTRY * dllColor4usv )(const GLushort *v);
  448. static void ( APIENTRY * dllColorMask )(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
  449. static void ( APIENTRY * dllColorMaterial )(GLenum face, GLenum mode);
  450. static void ( APIENTRY * dllColorPointer )(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
  451. static void ( APIENTRY * dllCopyPixels )(GLint x, GLint y, GLsizei width, GLsizei height, GLenum type);
  452. static void ( APIENTRY * dllCopyTexImage1D )(GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLint border);
  453. static void ( APIENTRY * dllCopyTexImage2D )(GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
  454. static void ( APIENTRY * dllCopyTexSubImage1D )(GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
  455. static void ( APIENTRY * dllCopyTexSubImage2D )(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
  456. static void ( APIENTRY * dllCullFace )(GLenum mode);
  457. static void ( APIENTRY * dllDeleteLists )(GLuint list, GLsizei range);
  458. static void ( APIENTRY * dllDeleteTextures )(GLsizei n, const GLuint *textures);
  459. static void ( APIENTRY * dllDepthFunc )(GLenum func);
  460. static void ( APIENTRY * dllDepthMask )(GLboolean flag);
  461. static void ( APIENTRY * dllDepthRange )(GLclampd zNear, GLclampd zFar);
  462. static void ( APIENTRY * dllDisable )(GLenum cap);
  463. static void ( APIENTRY * dllDisableClientState )(GLenum array);
  464. static void ( APIENTRY * dllDrawArrays )(GLenum mode, GLint first, GLsizei count);
  465. static void ( APIENTRY * dllDrawBuffer )(GLenum mode);
  466. static void ( APIENTRY * dllDrawElements )(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices);
  467. static void ( APIENTRY * dllDrawPixels )(GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
  468. static void ( APIENTRY * dllEdgeFlag )(GLboolean flag);
  469. static void ( APIENTRY * dllEdgeFlagPointer )(GLsizei stride, const GLvoid *pointer);
  470. static void ( APIENTRY * dllEdgeFlagv )(const GLboolean *flag);
  471. static void ( APIENTRY * dllEnable )(GLenum cap);
  472. static void ( APIENTRY * dllEnableClientState )(GLenum array);
  473. static void ( APIENTRY * dllEnd )(void);
  474. static void ( APIENTRY * dllEndList )(void);
  475. static void ( APIENTRY * dllEvalCoord1d )(GLdouble u);
  476. static void ( APIENTRY * dllEvalCoord1dv )(const GLdouble *u);
  477. static void ( APIENTRY * dllEvalCoord1f )(GLfloat u);
  478. static void ( APIENTRY * dllEvalCoord1fv )(const GLfloat *u);
  479. static void ( APIENTRY * dllEvalCoord2d )(GLdouble u, GLdouble v);
  480. static void ( APIENTRY * dllEvalCoord2dv )(const GLdouble *u);
  481. static void ( APIENTRY * dllEvalCoord2f )(GLfloat u, GLfloat v);
  482. static void ( APIENTRY * dllEvalCoord2fv )(const GLfloat *u);
  483. static void ( APIENTRY * dllEvalMesh1 )(GLenum mode, GLint i1, GLint i2);
  484. static void ( APIENTRY * dllEvalMesh2 )(GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2);
  485. static void ( APIENTRY * dllEvalPoint1 )(GLint i);
  486. static void ( APIENTRY * dllEvalPoint2 )(GLint i, GLint j);
  487. static void ( APIENTRY * dllFeedbackBuffer )(GLsizei size, GLenum type, GLfloat *buffer);
  488. static void ( APIENTRY * dllFinish )(void);
  489. static void ( APIENTRY * dllFlush )(void);
  490. static void ( APIENTRY * dllFogf )(GLenum pname, GLfloat param);
  491. static void ( APIENTRY * dllFogfv )(GLenum pname, const GLfloat *params);
  492. static void ( APIENTRY * dllFogi )(GLenum pname, GLint param);
  493. static void ( APIENTRY * dllFogiv )(GLenum pname, const GLint *params);
  494. static void ( APIENTRY * dllFrontFace )(GLenum mode);
  495. static void ( APIENTRY * dllFrustum )(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
  496. GLuint ( APIENTRY * dllGenLists )(GLsizei range);
  497. static void ( APIENTRY * dllGenTextures )(GLsizei n, GLuint *textures);
  498. static void ( APIENTRY * dllGetBooleanv )(GLenum pname, GLboolean *params);
  499. static void ( APIENTRY * dllGetClipPlane )(GLenum plane, GLdouble *equation);
  500. static void ( APIENTRY * dllGetDoublev )(GLenum pname, GLdouble *params);
  501. GLenum ( APIENTRY * dllGetError )(void);
  502. static void ( APIENTRY * dllGetFloatv )(GLenum pname, GLfloat *params);
  503. static void ( APIENTRY * dllGetIntegerv )(GLenum pname, GLint *params);
  504. static void ( APIENTRY * dllGetLightfv )(GLenum light, GLenum pname, GLfloat *params);
  505. static void ( APIENTRY * dllGetLightiv )(GLenum light, GLenum pname, GLint *params);
  506. static void ( APIENTRY * dllGetMapdv )(GLenum target, GLenum query, GLdouble *v);
  507. static void ( APIENTRY * dllGetMapfv )(GLenum target, GLenum query, GLfloat *v);
  508. static void ( APIENTRY * dllGetMapiv )(GLenum target, GLenum query, GLint *v);
  509. static void ( APIENTRY * dllGetMaterialfv )(GLenum face, GLenum pname, GLfloat *params);
  510. static void ( APIENTRY * dllGetMaterialiv )(GLenum face, GLenum pname, GLint *params);
  511. static void ( APIENTRY * dllGetPixelMapfv )(GLenum map, GLfloat *values);
  512. static void ( APIENTRY * dllGetPixelMapuiv )(GLenum map, GLuint *values);
  513. static void ( APIENTRY * dllGetPixelMapusv )(GLenum map, GLushort *values);
  514. static void ( APIENTRY * dllGetPointerv )(GLenum pname, GLvoid* *params);
  515. static void ( APIENTRY * dllGetPolygonStipple )(GLubyte *mask);
  516. const GLubyte * ( APIENTRY * dllGetString )(GLenum name);
  517. static void ( APIENTRY * dllGetTexEnvfv )(GLenum target, GLenum pname, GLfloat *params);
  518. static void ( APIENTRY * dllGetTexEnviv )(GLenum target, GLenum pname, GLint *params);
  519. static void ( APIENTRY * dllGetTexGendv )(GLenum coord, GLenum pname, GLdouble *params);
  520. static void ( APIENTRY * dllGetTexGenfv )(GLenum coord, GLenum pname, GLfloat *params);
  521. static void ( APIENTRY * dllGetTexGeniv )(GLenum coord, GLenum pname, GLint *params);
  522. static void ( APIENTRY * dllGetTexImage )(GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels);
  523. static void ( APIENTRY * dllGetTexLevelParameterfv )(GLenum target, GLint level, GLenum pname, GLfloat *params);
  524. static void ( APIENTRY * dllGetTexLevelParameteriv )(GLenum target, GLint level, GLenum pname, GLint *params);
  525. static void ( APIENTRY * dllGetTexParameterfv )(GLenum target, GLenum pname, GLfloat *params);
  526. static void ( APIENTRY * dllGetTexParameteriv )(GLenum target, GLenum pname, GLint *params);
  527. static void ( APIENTRY * dllHint )(GLenum target, GLenum mode);
  528. static void ( APIENTRY * dllIndexMask )(GLuint mask);
  529. static void ( APIENTRY * dllIndexPointer )(GLenum type, GLsizei stride, const GLvoid *pointer);
  530. static void ( APIENTRY * dllIndexd )(GLdouble c);
  531. static void ( APIENTRY * dllIndexdv )(const GLdouble *c);
  532. static void ( APIENTRY * dllIndexf )(GLfloat c);
  533. static void ( APIENTRY * dllIndexfv )(const GLfloat *c);
  534. static void ( APIENTRY * dllIndexi )(GLint c);
  535. static void ( APIENTRY * dllIndexiv )(const GLint *c);
  536. static void ( APIENTRY * dllIndexs )(GLshort c);
  537. static void ( APIENTRY * dllIndexsv )(const GLshort *c);
  538. static void ( APIENTRY * dllIndexub )(GLubyte c);
  539. static void ( APIENTRY * dllIndexubv )(const GLubyte *c);
  540. static void ( APIENTRY * dllInitNames )(void);
  541. static void ( APIENTRY * dllInterleavedArrays )(GLenum format, GLsizei stride, const GLvoid *pointer);
  542. GLboolean ( APIENTRY * dllIsEnabled )(GLenum cap);
  543. GLboolean ( APIENTRY * dllIsList )(GLuint list);
  544. GLboolean ( APIENTRY * dllIsTexture )(GLuint texture);
  545. static void ( APIENTRY * dllLightModelf )(GLenum pname, GLfloat param);
  546. static void ( APIENTRY * dllLightModelfv )(GLenum pname, const GLfloat *params);
  547. static void ( APIENTRY * dllLightModeli )(GLenum pname, GLint param);
  548. static void ( APIENTRY * dllLightModeliv )(GLenum pname, const GLint *params);
  549. static void ( APIENTRY * dllLightf )(GLenum light, GLenum pname, GLfloat param);
  550. static void ( APIENTRY * dllLightfv )(GLenum light, GLenum pname, const GLfloat *params);
  551. static void ( APIENTRY * dllLighti )(GLenum light, GLenum pname, GLint param);
  552. static void ( APIENTRY * dllLightiv )(GLenum light, GLenum pname, const GLint *params);
  553. static void ( APIENTRY * dllLineStipple )(GLint factor, GLushort pattern);
  554. static void ( APIENTRY * dllLineWidth )(GLfloat width);
  555. static void ( APIENTRY * dllListBase )(GLuint base);
  556. static void ( APIENTRY * dllLoadIdentity )(void);
  557. static void ( APIENTRY * dllLoadMatrixd )(const GLdouble *m);
  558. static void ( APIENTRY * dllLoadMatrixf )(const GLfloat *m);
  559. static void ( APIENTRY * dllLoadName )(GLuint name);
  560. static void ( APIENTRY * dllLogicOp )(GLenum opcode);
  561. static void ( APIENTRY * dllMap1d )(GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points);
  562. static void ( APIENTRY * dllMap1f )(GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points);
  563. static void ( APIENTRY * dllMap2d )(GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points);
  564. static void ( APIENTRY * dllMap2f )(GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points);
  565. static void ( APIENTRY * dllMapGrid1d )(GLint un, GLdouble u1, GLdouble u2);
  566. static void ( APIENTRY * dllMapGrid1f )(GLint un, GLfloat u1, GLfloat u2);
  567. static void ( APIENTRY * dllMapGrid2d )(GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2);
  568. static void ( APIENTRY * dllMapGrid2f )(GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2);
  569. static void ( APIENTRY * dllMaterialf )(GLenum face, GLenum pname, GLfloat param);
  570. static void ( APIENTRY * dllMaterialfv )(GLenum face, GLenum pname, const GLfloat *params);
  571. static void ( APIENTRY * dllMateriali )(GLenum face, GLenum pname, GLint param);
  572. static void ( APIENTRY * dllMaterialiv )(GLenum face, GLenum pname, const GLint *params);
  573. static void ( APIENTRY * dllMatrixMode )(GLenum mode);
  574. static void ( APIENTRY * dllMultMatrixd )(const GLdouble *m);
  575. static void ( APIENTRY * dllMultMatrixf )(const GLfloat *m);
  576. static void ( APIENTRY * dllNewList )(GLuint list, GLenum mode);
  577. static void ( APIENTRY * dllNormal3b )(GLbyte nx, GLbyte ny, GLbyte nz);
  578. static void ( APIENTRY * dllNormal3bv )(const GLbyte *v);
  579. static void ( APIENTRY * dllNormal3d )(GLdouble nx, GLdouble ny, GLdouble nz);
  580. static void ( APIENTRY * dllNormal3dv )(const GLdouble *v);
  581. static void ( APIENTRY * dllNormal3f )(GLfloat nx, GLfloat ny, GLfloat nz);
  582. static void ( APIENTRY * dllNormal3fv )(const GLfloat *v);
  583. static void ( APIENTRY * dllNormal3i )(GLint nx, GLint ny, GLint nz);
  584. static void ( APIENTRY * dllNormal3iv )(const GLint *v);
  585. static void ( APIENTRY * dllNormal3s )(GLshort nx, GLshort ny, GLshort nz);
  586. static void ( APIENTRY * dllNormal3sv )(const GLshort *v);
  587. static void ( APIENTRY * dllNormalPointer )(GLenum type, GLsizei stride, const GLvoid *pointer);
  588. static void ( APIENTRY * dllOrtho )(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
  589. static void ( APIENTRY * dllPassThrough )(GLfloat token);
  590. static void ( APIENTRY * dllPixelMapfv )(GLenum map, GLsizei mapsize, const GLfloat *values);
  591. static void ( APIENTRY * dllPixelMapuiv )(GLenum map, GLsizei mapsize, const GLuint *values);
  592. static void ( APIENTRY * dllPixelMapusv )(GLenum map, GLsizei mapsize, const GLushort *values);
  593. static void ( APIENTRY * dllPixelStoref )(GLenum pname, GLfloat param);
  594. static void ( APIENTRY * dllPixelStorei )(GLenum pname, GLint param);
  595. static void ( APIENTRY * dllPixelTransferf )(GLenum pname, GLfloat param);
  596. static void ( APIENTRY * dllPixelTransferi )(GLenum pname, GLint param);
  597. static void ( APIENTRY * dllPixelZoom )(GLfloat xfactor, GLfloat yfactor);
  598. static void ( APIENTRY * dllPointSize )(GLfloat size);
  599. static void ( APIENTRY * dllPolygonMode )(GLenum face, GLenum mode);
  600. static void ( APIENTRY * dllPolygonOffset )(GLfloat factor, GLfloat units);
  601. static void ( APIENTRY * dllPolygonStipple )(const GLubyte *mask);
  602. static void ( APIENTRY * dllPopAttrib )(void);
  603. static void ( APIENTRY * dllPopClientAttrib )(void);
  604. static void ( APIENTRY * dllPopMatrix )(void);
  605. static void ( APIENTRY * dllPopName )(void);
  606. static void ( APIENTRY * dllPrioritizeTextures )(GLsizei n, const GLuint *textures, const GLclampf *priorities);
  607. static void ( APIENTRY * dllPushAttrib )(GLbitfield mask);
  608. static void ( APIENTRY * dllPushClientAttrib )(GLbitfield mask);
  609. static void ( APIENTRY * dllPushMatrix )(void);
  610. static void ( APIENTRY * dllPushName )(GLuint name);
  611. static void ( APIENTRY * dllRasterPos2d )(GLdouble x, GLdouble y);
  612. static void ( APIENTRY * dllRasterPos2dv )(const GLdouble *v);
  613. static void ( APIENTRY * dllRasterPos2f )(GLfloat x, GLfloat y);
  614. static void ( APIENTRY * dllRasterPos2fv )(const GLfloat *v);
  615. static void ( APIENTRY * dllRasterPos2i )(GLint x, GLint y);
  616. static void ( APIENTRY * dllRasterPos2iv )(const GLint *v);
  617. static void ( APIENTRY * dllRasterPos2s )(GLshort x, GLshort y);
  618. static void ( APIENTRY * dllRasterPos2sv )(const GLshort *v);
  619. static void ( APIENTRY * dllRasterPos3d )(GLdouble x, GLdouble y, GLdouble z);
  620. static void ( APIENTRY * dllRasterPos3dv )(const GLdouble *v);
  621. static void ( APIENTRY * dllRasterPos3f )(GLfloat x, GLfloat y, GLfloat z);
  622. static void ( APIENTRY * dllRasterPos3fv )(const GLfloat *v);
  623. static void ( APIENTRY * dllRasterPos3i )(GLint x, GLint y, GLint z);
  624. static void ( APIENTRY * dllRasterPos3iv )(const GLint *v);
  625. static void ( APIENTRY * dllRasterPos3s )(GLshort x, GLshort y, GLshort z);
  626. static void ( APIENTRY * dllRasterPos3sv )(const GLshort *v);
  627. static void ( APIENTRY * dllRasterPos4d )(GLdouble x, GLdouble y, GLdouble z, GLdouble w);
  628. static void ( APIENTRY * dllRasterPos4dv )(const GLdouble *v);
  629. static void ( APIENTRY * dllRasterPos4f )(GLfloat x, GLfloat y, GLfloat z, GLfloat w);
  630. static void ( APIENTRY * dllRasterPos4fv )(const GLfloat *v);
  631. static void ( APIENTRY * dllRasterPos4i )(GLint x, GLint y, GLint z, GLint w);
  632. static void ( APIENTRY * dllRasterPos4iv )(const GLint *v);
  633. static void ( APIENTRY * dllRasterPos4s )(GLshort x, GLshort y, GLshort z, GLshort w);
  634. static void ( APIENTRY * dllRasterPos4sv )(const GLshort *v);
  635. static void ( APIENTRY * dllReadBuffer )(GLenum mode);
  636. static void ( APIENTRY * dllReadPixels )(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels);
  637. static void ( APIENTRY * dllRectd )(GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2);
  638. static void ( APIENTRY * dllRectdv )(const GLdouble *v1, const GLdouble *v2);
  639. static void ( APIENTRY * dllRectf )(GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2);
  640. static void ( APIENTRY * dllRectfv )(const GLfloat *v1, const GLfloat *v2);
  641. static void ( APIENTRY * dllRecti )(GLint x1, GLint y1, GLint x2, GLint y2);
  642. static void ( APIENTRY * dllRectiv )(const GLint *v1, const GLint *v2);
  643. static void ( APIENTRY * dllRects )(GLshort x1, GLshort y1, GLshort x2, GLshort y2);
  644. static void ( APIENTRY * dllRectsv )(const GLshort *v1, const GLshort *v2);
  645. GLint ( APIENTRY * dllRenderMode )(GLenum mode);
  646. static void ( APIENTRY * dllRotated )(GLdouble angle, GLdouble x, GLdouble y, GLdouble z);
  647. static void ( APIENTRY * dllRotatef )(GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
  648. static void ( APIENTRY * dllScaled )(GLdouble x, GLdouble y, GLdouble z);
  649. static void ( APIENTRY * dllScalef )(GLfloat x, GLfloat y, GLfloat z);
  650. static void ( APIENTRY * dllScissor )(GLint x, GLint y, GLsizei width, GLsizei height);
  651. static void ( APIENTRY * dllSelectBuffer )(GLsizei size, GLuint *buffer);
  652. static void ( APIENTRY * dllShadeModel )(GLenum mode);
  653. static void ( APIENTRY * dllStencilFunc )(GLenum func, GLint ref, GLuint mask);
  654. static void ( APIENTRY * dllStencilMask )(GLuint mask);
  655. static void ( APIENTRY * dllStencilOp )(GLenum fail, GLenum zfail, GLenum zpass);
  656. static void ( APIENTRY * dllTexCoord1d )(GLdouble s);
  657. static void ( APIENTRY * dllTexCoord1dv )(const GLdouble *v);
  658. static void ( APIENTRY * dllTexCoord1f )(GLfloat s);
  659. static void ( APIENTRY * dllTexCoord1fv )(const GLfloat *v);
  660. static void ( APIENTRY * dllTexCoord1i )(GLint s);
  661. static void ( APIENTRY * dllTexCoord1iv )(const GLint *v);
  662. static void ( APIENTRY * dllTexCoord1s )(GLshort s);
  663. static void ( APIENTRY * dllTexCoord1sv )(const GLshort *v);
  664. static void ( APIENTRY * dllTexCoord2d )(GLdouble s, GLdouble t);
  665. static void ( APIENTRY * dllTexCoord2dv )(const GLdouble *v);
  666. static void ( APIENTRY * dllTexCoord2f )(GLfloat s, GLfloat t);
  667. static void ( APIENTRY * dllTexCoord2fv )(const GLfloat *v);
  668. static void ( APIENTRY * dllTexCoord2i )(GLint s, GLint t);
  669. static void ( APIENTRY * dllTexCoord2iv )(const GLint *v);
  670. static void ( APIENTRY * dllTexCoord2s )(GLshort s, GLshort t);
  671. static void ( APIENTRY * dllTexCoord2sv )(const GLshort *v);
  672. static void ( APIENTRY * dllTexCoord3d )(GLdouble s, GLdouble t, GLdouble r);
  673. static void ( APIENTRY * dllTexCoord3dv )(const GLdouble *v);
  674. static void ( APIENTRY * dllTexCoord3f )(GLfloat s, GLfloat t, GLfloat r);
  675. static void ( APIENTRY * dllTexCoord3fv )(const GLfloat *v);
  676. static void ( APIENTRY * dllTexCoord3i )(GLint s, GLint t, GLint r);
  677. static void ( APIENTRY * dllTexCoord3iv )(const GLint *v);
  678. static void ( APIENTRY * dllTexCoord3s )(GLshort s, GLshort t, GLshort r);
  679. static void ( APIENTRY * dllTexCoord3sv )(const GLshort *v);
  680. static void ( APIENTRY * dllTexCoord4d )(GLdouble s, GLdouble t, GLdouble r, GLdouble q);
  681. static void ( APIENTRY * dllTexCoord4dv )(const GLdouble *v);
  682. static void ( APIENTRY * dllTexCoord4f )(GLfloat s, GLfloat t, GLfloat r, GLfloat q);
  683. static void ( APIENTRY * dllTexCoord4fv )(const GLfloat *v);
  684. static void ( APIENTRY * dllTexCoord4i )(GLint s, GLint t, GLint r, GLint q);
  685. static void ( APIENTRY * dllTexCoord4iv )(const GLint *v);
  686. static void ( APIENTRY * dllTexCoord4s )(GLshort s, GLshort t, GLshort r, GLshort q);
  687. static void ( APIENTRY * dllTexCoord4sv )(const GLshort *v);
  688. static void ( APIENTRY * dllTexCoordPointer )(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
  689. static void ( APIENTRY * dllTexEnvf )(GLenum target, GLenum pname, GLfloat param);
  690. static void ( APIENTRY * dllTexEnvfv )(GLenum target, GLenum pname, const GLfloat *params);
  691. static void ( APIENTRY * dllTexEnvi )(GLenum target, GLenum pname, GLint param);
  692. static void ( APIENTRY * dllTexEnviv )(GLenum target, GLenum pname, const GLint *params);
  693. static void ( APIENTRY * dllTexGend )(GLenum coord, GLenum pname, GLdouble param);
  694. static void ( APIENTRY * dllTexGendv )(GLenum coord, GLenum pname, const GLdouble *params);
  695. static void ( APIENTRY * dllTexGenf )(GLenum coord, GLenum pname, GLfloat param);
  696. static void ( APIENTRY * dllTexGenfv )(GLenum coord, GLenum pname, const GLfloat *params);
  697. static void ( APIENTRY * dllTexGeni )(GLenum coord, GLenum pname, GLint param);
  698. static void ( APIENTRY * dllTexGeniv )(GLenum coord, GLenum pname, const GLint *params);
  699. static void ( APIENTRY * dllTexImage1D )(GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
  700. static void ( APIENTRY * dllTexImage2D )(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
  701. static void ( APIENTRY * dllTexParameterf )(GLenum target, GLenum pname, GLfloat param);
  702. static void ( APIENTRY * dllTexParameterfv )(GLenum target, GLenum pname, const GLfloat *params);
  703. static void ( APIENTRY * dllTexParameteri )(GLenum target, GLenum pname, GLint param);
  704. static void ( APIENTRY * dllTexParameteriv )(GLenum target, GLenum pname, const GLint *params);
  705. static void ( APIENTRY * dllTexSubImage1D )(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels);
  706. static void ( APIENTRY * dllTexSubImage2D )(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
  707. static void ( APIENTRY * dllTranslated )(GLdouble x, GLdouble y, GLdouble z);
  708. static void ( APIENTRY * dllTranslatef )(GLfloat x, GLfloat y, GLfloat z);
  709. static void ( APIENTRY * dllVertex2d )(GLdouble x, GLdouble y);
  710. static void ( APIENTRY * dllVertex2dv )(const GLdouble *v);
  711. static void ( APIENTRY * dllVertex2f )(GLfloat x, GLfloat y);
  712. static void ( APIENTRY * dllVertex2fv )(const GLfloat *v);
  713. static void ( APIENTRY * dllVertex2i )(GLint x, GLint y);
  714. static void ( APIENTRY * dllVertex2iv )(const GLint *v);
  715. static void ( APIENTRY * dllVertex2s )(GLshort x, GLshort y);
  716. static void ( APIENTRY * dllVertex2sv )(const GLshort *v);
  717. static void ( APIENTRY * dllVertex3d )(GLdouble x, GLdouble y, GLdouble z);
  718. static void ( APIENTRY * dllVertex3dv )(const GLdouble *v);
  719. static void ( APIENTRY * dllVertex3f )(GLfloat x, GLfloat y, GLfloat z);
  720. static void ( APIENTRY * dllVertex3fv )(const GLfloat *v);
  721. static void ( APIENTRY * dllVertex3i )(GLint x, GLint y, GLint z);
  722. static void ( APIENTRY * dllVertex3iv )(const GLint *v);
  723. static void ( APIENTRY * dllVertex3s )(GLshort x, GLshort y, GLshort z);
  724. static void ( APIENTRY * dllVertex3sv )(const GLshort *v);
  725. static void ( APIENTRY * dllVertex4d )(GLdouble x, GLdouble y, GLdouble z, GLdouble w);
  726. static void ( APIENTRY * dllVertex4dv )(const GLdouble *v);
  727. static void ( APIENTRY * dllVertex4f )(GLfloat x, GLfloat y, GLfloat z, GLfloat w);
  728. static void ( APIENTRY * dllVertex4fv )(const GLfloat *v);
  729. static void ( APIENTRY * dllVertex4i )(GLint x, GLint y, GLint z, GLint w);
  730. static void ( APIENTRY * dllVertex4iv )(const GLint *v);
  731. static void ( APIENTRY * dllVertex4s )(GLshort x, GLshort y, GLshort z, GLshort w);
  732. static void ( APIENTRY * dllVertex4sv )(const GLshort *v);
  733. static void ( APIENTRY * dllVertexPointer )(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
  734. static void ( APIENTRY * dllViewport )(GLint x, GLint y, GLsizei width, GLsizei height);
  735. static void APIENTRY logAccum(GLenum op, GLfloat value)
  736. {
  737. fprintf( glw_state.log_fp, "glAccum\n" );
  738. dllAccum( op, value );
  739. }
  740. static void APIENTRY logAlphaFunc(GLenum func, GLclampf ref)
  741. {
  742. fprintf( glw_state.log_fp, "glAlphaFunc( 0x%x, %f )\n", func, ref );
  743. dllAlphaFunc( func, ref );
  744. }
  745. static GLboolean APIENTRY logAreTexturesResident(GLsizei n, const GLuint *textures, GLboolean *residences)
  746. {
  747. fprintf( glw_state.log_fp, "glAreTexturesResident\n" );
  748. return dllAreTexturesResident( n, textures, residences );
  749. }
  750. static void APIENTRY logArrayElement(GLint i)
  751. {
  752. fprintf( glw_state.log_fp, "glArrayElement\n" );
  753. dllArrayElement( i );
  754. }
  755. static void APIENTRY logBegin(GLenum mode)
  756. {
  757. fprintf( glw_state.log_fp, "glBegin( 0x%x )\n", mode );
  758. dllBegin( mode );
  759. }
  760. static void APIENTRY logBindTexture(GLenum target, GLuint texture)
  761. {
  762. fprintf( glw_state.log_fp, "glBindTexture( 0x%x, %u )\n", target, texture );
  763. dllBindTexture( target, texture );
  764. }
  765. static void APIENTRY logBitmap(GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte *bitmap)
  766. {
  767. fprintf( glw_state.log_fp, "glBitmap\n" );
  768. dllBitmap( width, height, xorig, yorig, xmove, ymove, bitmap );
  769. }
  770. static void APIENTRY logBlendFunc(GLenum sfactor, GLenum dfactor)
  771. {
  772. fprintf( glw_state.log_fp, "glBlendFunc( 0x%x, 0x%x )\n", sfactor, dfactor );
  773. dllBlendFunc( sfactor, dfactor );
  774. }
  775. static void APIENTRY logCallList(GLuint list)
  776. {
  777. fprintf( glw_state.log_fp, "glCallList( %u )\n", list );
  778. dllCallList( list );
  779. }
  780. static void APIENTRY logCallLists(GLsizei n, GLenum type, const void *lists)
  781. {
  782. fprintf( glw_state.log_fp, "glCallLists\n" );
  783. dllCallLists( n, type, lists );
  784. }
  785. static void APIENTRY logClear(GLbitfield mask)
  786. {
  787. fprintf( glw_state.log_fp, "glClear\n" );
  788. dllClear( mask );
  789. }
  790. static void APIENTRY logClearAccum(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
  791. {
  792. fprintf( glw_state.log_fp, "glClearAccum\n" );
  793. dllClearAccum( red, green, blue, alpha );
  794. }
  795. static void APIENTRY logClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
  796. {
  797. fprintf( glw_state.log_fp, "glClearColor\n" );
  798. dllClearColor( red, green, blue, alpha );
  799. }
  800. static void APIENTRY logClearDepth(GLclampd depth)
  801. {
  802. fprintf( glw_state.log_fp, "glClearDepth\n" );
  803. dllClearDepth( depth );
  804. }
  805. static void APIENTRY logClearIndex(GLfloat c)
  806. {
  807. fprintf( glw_state.log_fp, "glClearIndex\n" );
  808. dllClearIndex( c );
  809. }
  810. static void APIENTRY logClearStencil(GLint s)
  811. {
  812. fprintf( glw_state.log_fp, "glClearStencil\n" );
  813. dllClearStencil( s );
  814. }
  815. static void APIENTRY logClipPlane(GLenum plane, const GLdouble *equation)
  816. {
  817. fprintf( glw_state.log_fp, "glClipPlane\n" );
  818. dllClipPlane( plane, equation );
  819. }
  820. static void APIENTRY logColor3b(GLbyte red, GLbyte green, GLbyte blue)
  821. {
  822. fprintf( glw_state.log_fp, "glColor3b\n" );
  823. dllColor3b( red, green, blue );
  824. }
  825. static void APIENTRY logColor3bv(const GLbyte *v)
  826. {
  827. fprintf( glw_state.log_fp, "glColor3bv\n" );
  828. dllColor3bv( v );
  829. }
  830. static void APIENTRY logColor3d(GLdouble red, GLdouble green, GLdouble blue)
  831. {
  832. fprintf( glw_state.log_fp, "glColor3d\n" );
  833. dllColor3d( red, green, blue );
  834. }
  835. static void APIENTRY logColor3dv(const GLdouble *v)
  836. {
  837. fprintf( glw_state.log_fp, "glColor3dv\n" );
  838. dllColor3dv( v );
  839. }
  840. static void APIENTRY logColor3f(GLfloat red, GLfloat green, GLfloat blue)
  841. {
  842. fprintf( glw_state.log_fp, "glColor3f\n" );
  843. dllColor3f( red, green, blue );
  844. }
  845. static void APIENTRY logColor3fv(const GLfloat *v)
  846. {
  847. fprintf( glw_state.log_fp, "glColor3fv\n" );
  848. dllColor3fv( v );
  849. }
  850. static void APIENTRY logColor3i(GLint red, GLint green, GLint blue)
  851. {
  852. fprintf( glw_state.log_fp, "glColor3i\n" );
  853. dllColor3i( red, green, blue );
  854. }
  855. static void APIENTRY logColor3iv(const GLint *v)
  856. {
  857. fprintf( glw_state.log_fp, "glColor3iv\n" );
  858. dllColor3iv( v );
  859. }
  860. static void APIENTRY logColor3s(GLshort red, GLshort green, GLshort blue)
  861. {
  862. fprintf( glw_state.log_fp, "glColor3s\n" );
  863. dllColor3s( red, green, blue );
  864. }
  865. static void APIENTRY logColor3sv(const GLshort *v)
  866. {
  867. fprintf( glw_state.log_fp, "glColor3sv\n" );
  868. dllColor3sv( v );
  869. }
  870. static void APIENTRY logColor3ub(GLubyte red, GLubyte green, GLubyte blue)
  871. {
  872. fprintf( glw_state.log_fp, "glColor3ub\n" );
  873. dllColor3ub( red, green, blue );
  874. }
  875. static void APIENTRY logColor3ubv(const GLubyte *v)
  876. {
  877. fprintf( glw_state.log_fp, "glColor3ubv\n" );
  878. dllColor3ubv( v );
  879. }
  880. #define SIG( x ) fprintf( glw_state.log_fp, x "\n" )
  881. static void APIENTRY logColor3ui(GLuint red, GLuint green, GLuint blue)
  882. {
  883. SIG( "glColor3ui" );
  884. dllColor3ui( red, green, blue );
  885. }
  886. static void APIENTRY logColor3uiv(const GLuint *v)
  887. {
  888. SIG( "glColor3uiv" );
  889. dllColor3uiv( v );
  890. }
  891. static void APIENTRY logColor3us(GLushort red, GLushort green, GLushort blue)
  892. {
  893. SIG( "glColor3us" );
  894. dllColor3us( red, green, blue );
  895. }
  896. static void APIENTRY logColor3usv(const GLushort *v)
  897. {
  898. SIG( "glColor3usv" );
  899. dllColor3usv( v );
  900. }
  901. static void APIENTRY logColor4b(GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha)
  902. {
  903. SIG( "glColor4b" );
  904. dllColor4b( red, green, blue, alpha );
  905. }
  906. static void APIENTRY logColor4bv(const GLbyte *v)
  907. {
  908. SIG( "glColor4bv" );
  909. dllColor4bv( v );
  910. }
  911. static void APIENTRY logColor4d(GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha)
  912. {
  913. SIG( "glColor4d" );
  914. dllColor4d( red, green, blue, alpha );
  915. }
  916. static void APIENTRY logColor4dv(const GLdouble *v)
  917. {
  918. SIG( "glColor4dv" );
  919. dllColor4dv( v );
  920. }
  921. static void APIENTRY logColor4f(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
  922. {
  923. fprintf( glw_state.log_fp, "glColor4f( %f,%f,%f,%f )\n", red, green, blue, alpha );
  924. dllColor4f( red, green, blue, alpha );
  925. }
  926. static void APIENTRY logColor4fv(const GLfloat *v)
  927. {
  928. fprintf( glw_state.log_fp, "glColor4fv( %f,%f,%f,%f )\n", v[0], v[1], v[2], v[3] );
  929. dllColor4fv( v );
  930. }
  931. static void APIENTRY logColor4i(GLint red, GLint green, GLint blue, GLint alpha)
  932. {
  933. SIG( "glColor4i" );
  934. dllColor4i( red, green, blue, alpha );
  935. }
  936. static void APIENTRY logColor4iv(const GLint *v)
  937. {
  938. SIG( "glColor4iv" );
  939. dllColor4iv( v );
  940. }
  941. static void APIENTRY logColor4s(GLshort red, GLshort green, GLshort blue, GLshort alpha)
  942. {
  943. SIG( "glColor4s" );
  944. dllColor4s( red, green, blue, alpha );
  945. }
  946. static void APIENTRY logColor4sv(const GLshort *v)
  947. {
  948. SIG( "glColor4sv" );
  949. dllColor4sv( v );
  950. }
  951. static void APIENTRY logColor4ub(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha)
  952. {
  953. SIG( "glColor4b" );
  954. dllColor4b( red, green, blue, alpha );
  955. }
  956. static void APIENTRY logColor4ubv(const GLubyte *v)
  957. {
  958. SIG( "glColor4ubv" );
  959. dllColor4ubv( v );
  960. }
  961. static void APIENTRY logColor4ui(GLuint red, GLuint green, GLuint blue, GLuint alpha)
  962. {
  963. SIG( "glColor4ui" );
  964. dllColor4ui( red, green, blue, alpha );
  965. }
  966. static void APIENTRY logColor4uiv(const GLuint *v)
  967. {
  968. SIG( "glColor4uiv" );
  969. dllColor4uiv( v );
  970. }
  971. static void APIENTRY logColor4us(GLushort red, GLushort green, GLushort blue, GLushort alpha)
  972. {
  973. SIG( "glColor4us" );
  974. dllColor4us( red, green, blue, alpha );
  975. }
  976. static void APIENTRY logColor4usv(const GLushort *v)
  977. {
  978. SIG( "glColor4usv" );
  979. dllColor4usv( v );
  980. }
  981. static void APIENTRY logColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
  982. {
  983. SIG( "glColorMask" );
  984. dllColorMask( red, green, blue, alpha );
  985. }
  986. static void APIENTRY logColorMaterial(GLenum face, GLenum mode)
  987. {
  988. SIG( "glColorMaterial" );
  989. dllColorMaterial( face, mode );
  990. }
  991. static void APIENTRY logColorPointer(GLint size, GLenum type, GLsizei stride, const void *pointer)
  992. {
  993. SIG( "glColorPointer" );
  994. dllColorPointer( size, type, stride, pointer );
  995. }
  996. static void APIENTRY logCopyPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum type)
  997. {
  998. SIG( "glCopyPixels" );
  999. dllCopyPixels( x, y, width, height, type );
  1000. }
  1001. static void APIENTRY logCopyTexImage1D(GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLint border)
  1002. {
  1003. SIG( "glCopyTexImage1D" );
  1004. dllCopyTexImage1D( target, level, internalFormat, x, y, width, border );
  1005. }
  1006. static void APIENTRY logCopyTexImage2D(GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border)
  1007. {
  1008. SIG( "glCopyTexImage2D" );
  1009. dllCopyTexImage2D( target, level, internalFormat, x, y, width, height, border );
  1010. }
  1011. static void APIENTRY logCopyTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width)
  1012. {
  1013. SIG( "glCopyTexSubImage1D" );
  1014. dllCopyTexSubImage1D( target, level, xoffset, x, y, width );
  1015. }
  1016. static void APIENTRY logCopyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height)
  1017. {
  1018. SIG( "glCopyTexSubImage2D" );
  1019. dllCopyTexSubImage2D( target, level, xoffset, yoffset, x, y, width, height );
  1020. }
  1021. static void APIENTRY logCullFace(GLenum mode)
  1022. {
  1023. SIG( "glCullFace" );
  1024. dllCullFace( mode );
  1025. }
  1026. static void APIENTRY logDeleteLists(GLuint list, GLsizei range)
  1027. {
  1028. SIG( "glDeleteLists" );
  1029. dllDeleteLists( list, range );
  1030. }
  1031. static void APIENTRY logDeleteTextures(GLsizei n, const GLuint *textures)
  1032. {
  1033. SIG( "glDeleteTextures" );
  1034. dllDeleteTextures( n, textures );
  1035. }
  1036. static void APIENTRY logDepthFunc(GLenum func)
  1037. {
  1038. SIG( "glDepthFunc" );
  1039. dllDepthFunc( func );
  1040. }
  1041. static void APIENTRY logDepthMask(GLboolean flag)
  1042. {
  1043. SIG( "glDepthMask" );
  1044. dllDepthMask( flag );
  1045. }
  1046. static void APIENTRY logDepthRange(GLclampd zNear, GLclampd zFar)
  1047. {
  1048. SIG( "glDepthRange" );
  1049. dllDepthRange( zNear, zFar );
  1050. }
  1051. static void APIENTRY logDisable(GLenum cap)
  1052. {
  1053. fprintf( glw_state.log_fp, "glDisable( 0x%x )\n", cap );
  1054. dllDisable( cap );
  1055. }
  1056. static void APIENTRY logDisableClientState(GLenum array)
  1057. {
  1058. SIG( "glDisableClientState" );
  1059. dllDisableClientState( array );
  1060. }
  1061. static void APIENTRY logDrawArrays(GLenum mode, GLint first, GLsizei count)
  1062. {
  1063. SIG( "glDrawArrays" );
  1064. dllDrawArrays( mode, first, count );
  1065. }
  1066. static void APIENTRY logDrawBuffer(GLenum mode)
  1067. {
  1068. SIG( "glDrawBuffer" );
  1069. dllDrawBuffer( mode );
  1070. }
  1071. static void APIENTRY logDrawElements(GLenum mode, GLsizei count, GLenum type, const void *indices)
  1072. {
  1073. SIG( "glDrawElements" );
  1074. dllDrawElements( mode, count, type, indices );
  1075. }
  1076. static void APIENTRY logDrawPixels(GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels)
  1077. {
  1078. SIG( "glDrawPixels" );
  1079. dllDrawPixels( width, height, format, type, pixels );
  1080. }
  1081. static void APIENTRY logEdgeFlag(GLboolean flag)
  1082. {
  1083. SIG( "glEdgeFlag" );
  1084. dllEdgeFlag( flag );
  1085. }
  1086. static void APIENTRY logEdgeFlagPointer(GLsizei stride, const void *pointer)
  1087. {
  1088. SIG( "glEdgeFlagPointer" );
  1089. dllEdgeFlagPointer( stride, pointer );
  1090. }
  1091. static void APIENTRY logEdgeFlagv(const GLboolean *flag)
  1092. {
  1093. SIG( "glEdgeFlagv" );
  1094. dllEdgeFlagv( flag );
  1095. }
  1096. static void APIENTRY logEnable(GLenum cap)
  1097. {
  1098. fprintf( glw_state.log_fp, "glEnable( 0x%x )\n", cap );
  1099. dllEnable( cap );
  1100. }
  1101. static void APIENTRY logEnableClientState(GLenum array)
  1102. {
  1103. SIG( "glEnableClientState" );
  1104. dllEnableClientState( array );
  1105. }
  1106. static void APIENTRY logEnd(void)
  1107. {
  1108. SIG( "glEnd" );
  1109. dllEnd();
  1110. }
  1111. static void APIENTRY logEndList(void)
  1112. {
  1113. SIG( "glEndList" );
  1114. dllEndList();
  1115. }
  1116. static void APIENTRY logEvalCoord1d(GLdouble u)
  1117. {
  1118. SIG( "glEvalCoord1d" );
  1119. dllEvalCoord1d( u );
  1120. }
  1121. static void APIENTRY logEvalCoord1dv(const GLdouble *u)
  1122. {
  1123. SIG( "glEvalCoord1dv" );
  1124. dllEvalCoord1dv( u );
  1125. }
  1126. static void APIENTRY logEvalCoord1f(GLfloat u)
  1127. {
  1128. SIG( "glEvalCoord1f" );
  1129. dllEvalCoord1f( u );
  1130. }
  1131. static void APIENTRY logEvalCoord1fv(const GLfloat *u)
  1132. {
  1133. SIG( "glEvalCoord1fv" );
  1134. dllEvalCoord1fv( u );
  1135. }
  1136. static void APIENTRY logEvalCoord2d(GLdouble u, GLdouble v)
  1137. {
  1138. SIG( "glEvalCoord2d" );
  1139. dllEvalCoord2d( u, v );
  1140. }
  1141. static void APIENTRY logEvalCoord2dv(const GLdouble *u)
  1142. {
  1143. SIG( "glEvalCoord2dv" );
  1144. dllEvalCoord2dv( u );
  1145. }
  1146. static void APIENTRY logEvalCoord2f(GLfloat u, GLfloat v)
  1147. {
  1148. SIG( "glEvalCoord2f" );
  1149. dllEvalCoord2f( u, v );
  1150. }
  1151. static void APIENTRY logEvalCoord2fv(const GLfloat *u)
  1152. {
  1153. SIG( "glEvalCoord2fv" );
  1154. dllEvalCoord2fv( u );
  1155. }
  1156. static void APIENTRY logEvalMesh1(GLenum mode, GLint i1, GLint i2)
  1157. {
  1158. SIG( "glEvalMesh1" );
  1159. dllEvalMesh1( mode, i1, i2 );
  1160. }
  1161. static void APIENTRY logEvalMesh2(GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2)
  1162. {
  1163. SIG( "glEvalMesh2" );
  1164. dllEvalMesh2( mode, i1, i2, j1, j2 );
  1165. }
  1166. static void APIENTRY logEvalPoint1(GLint i)
  1167. {
  1168. SIG( "glEvalPoint1" );
  1169. dllEvalPoint1( i );
  1170. }
  1171. static void APIENTRY logEvalPoint2(GLint i, GLint j)
  1172. {
  1173. SIG( "glEvalPoint2" );
  1174. dllEvalPoint2( i, j );
  1175. }
  1176. static void APIENTRY logFeedbackBuffer(GLsizei size, GLenum type, GLfloat *buffer)
  1177. {
  1178. SIG( "glFeedbackBuffer" );
  1179. dllFeedbackBuffer( size, type, buffer );
  1180. }
  1181. static void APIENTRY logFinish(void)
  1182. {
  1183. SIG( "glFinish" );
  1184. dllFinish();
  1185. }
  1186. static void APIENTRY logFlush(void)
  1187. {
  1188. SIG( "glFlush" );
  1189. dllFlush();
  1190. }
  1191. static void APIENTRY logFogf(GLenum pname, GLfloat param)
  1192. {
  1193. SIG( "glFogf" );
  1194. dllFogf( pname, param );
  1195. }
  1196. static void APIENTRY logFogfv(GLenum pname, const GLfloat *params)
  1197. {
  1198. SIG( "glFogfv" );
  1199. dllFogfv( pname, params );
  1200. }
  1201. static void APIENTRY logFogi(GLenum pname, GLint param)
  1202. {
  1203. SIG( "glFogi" );
  1204. dllFogi( pname, param );
  1205. }
  1206. static void APIENTRY logFogiv(GLenum pname, const GLint *params)
  1207. {
  1208. SIG( "glFogiv" );
  1209. dllFogiv( pname, params );
  1210. }
  1211. static void APIENTRY logFrontFace(GLenum mode)
  1212. {
  1213. SIG( "glFrontFace" );
  1214. dllFrontFace( mode );
  1215. }
  1216. static void APIENTRY logFrustum(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar)
  1217. {
  1218. SIG( "glFrustum" );
  1219. dllFrustum( left, right, bottom, top, zNear, zFar );
  1220. }
  1221. static GLuint APIENTRY logGenLists(GLsizei range)
  1222. {
  1223. SIG( "glGenLists" );
  1224. return dllGenLists( range );
  1225. }
  1226. static void APIENTRY logGenTextures(GLsizei n, GLuint *textures)
  1227. {
  1228. SIG( "glGenTextures" );
  1229. dllGenTextures( n, textures );
  1230. }
  1231. static void APIENTRY logGetBooleanv(GLenum pname, GLboolean *params)
  1232. {
  1233. SIG( "glGetBooleanv" );
  1234. dllGetBooleanv( pname, params );
  1235. }
  1236. static void APIENTRY logGetClipPlane(GLenum plane, GLdouble *equation)
  1237. {
  1238. SIG( "glGetClipPlane" );
  1239. dllGetClipPlane( plane, equation );
  1240. }
  1241. static void APIENTRY logGetDoublev(GLenum pname, GLdouble *params)
  1242. {
  1243. SIG( "glGetDoublev" );
  1244. dllGetDoublev( pname, params );
  1245. }
  1246. static GLenum APIENTRY logGetError(void)
  1247. {
  1248. SIG( "glGetError" );
  1249. return dllGetError();
  1250. }
  1251. static void APIENTRY logGetFloatv(GLenum pname, GLfloat *params)
  1252. {
  1253. SIG( "glGetFloatv" );
  1254. dllGetFloatv( pname, params );
  1255. }
  1256. static void APIENTRY logGetIntegerv(GLenum pname, GLint *params)
  1257. {
  1258. SIG( "glGetIntegerv" );
  1259. dllGetIntegerv( pname, params );
  1260. }
  1261. static void APIENTRY logGetLightfv(GLenum light, GLenum pname, GLfloat *params)
  1262. {
  1263. SIG( "glGetLightfv" );
  1264. dllGetLightfv( light, pname, params );
  1265. }
  1266. static void APIENTRY logGetLightiv(GLenum light, GLenum pname, GLint *params)
  1267. {
  1268. SIG( "glGetLightiv" );
  1269. dllGetLightiv( light, pname, params );
  1270. }
  1271. static void APIENTRY logGetMapdv(GLenum target, GLenum query, GLdouble *v)
  1272. {
  1273. SIG( "glGetMapdv" );
  1274. dllGetMapdv( target, query, v );
  1275. }
  1276. static void APIENTRY logGetMapfv(GLenum target, GLenum query, GLfloat *v)
  1277. {
  1278. SIG( "glGetMapfv" );
  1279. dllGetMapfv( target, query, v );
  1280. }
  1281. static void APIENTRY logGetMapiv(GLenum target, GLenum query, GLint *v)
  1282. {
  1283. SIG( "glGetMapiv" );
  1284. dllGetMapiv( target, query, v );
  1285. }
  1286. static void APIENTRY logGetMaterialfv(GLenum face, GLenum pname, GLfloat *params)
  1287. {
  1288. SIG( "glGetMaterialfv" );
  1289. dllGetMaterialfv( face, pname, params );
  1290. }
  1291. static void APIENTRY logGetMaterialiv(GLenum face, GLenum pname, GLint *params)
  1292. {
  1293. SIG( "glGetMaterialiv" );
  1294. dllGetMaterialiv( face, pname, params );
  1295. }
  1296. static void APIENTRY logGetPixelMapfv(GLenum map, GLfloat *values)
  1297. {
  1298. SIG( "glGetPixelMapfv" );
  1299. dllGetPixelMapfv( map, values );
  1300. }
  1301. static void APIENTRY logGetPixelMapuiv(GLenum map, GLuint *values)
  1302. {
  1303. SIG( "glGetPixelMapuiv" );
  1304. dllGetPixelMapuiv( map, values );
  1305. }
  1306. static void APIENTRY logGetPixelMapusv(GLenum map, GLushort *values)
  1307. {
  1308. SIG( "glGetPixelMapusv" );
  1309. dllGetPixelMapusv( map, values );
  1310. }
  1311. static void APIENTRY logGetPointerv(GLenum pname, GLvoid* *params)
  1312. {
  1313. SIG( "glGetPointerv" );
  1314. dllGetPointerv( pname, params );
  1315. }
  1316. static void APIENTRY logGetPolygonStipple(GLubyte *mask)
  1317. {
  1318. SIG( "glGetPolygonStipple" );
  1319. dllGetPolygonStipple( mask );
  1320. }
  1321. static const GLubyte * APIENTRY logGetString(GLenum name)
  1322. {
  1323. SIG( "glGetString" );
  1324. return dllGetString( name );
  1325. }
  1326. static void APIENTRY logGetTexEnvfv(GLenum target, GLenum pname, GLfloat *params)
  1327. {
  1328. SIG( "glGetTexEnvfv" );
  1329. dllGetTexEnvfv( target, pname, params );
  1330. }
  1331. static void APIENTRY logGetTexEnviv(GLenum target, GLenum pname, GLint *params)
  1332. {
  1333. SIG( "glGetTexEnviv" );
  1334. dllGetTexEnviv( target, pname, params );
  1335. }
  1336. static void APIENTRY logGetTexGendv(GLenum coord, GLenum pname, GLdouble *params)
  1337. {
  1338. SIG( "glGetTexGendv" );
  1339. dllGetTexGendv( coord, pname, params );
  1340. }
  1341. static void APIENTRY logGetTexGenfv(GLenum coord, GLenum pname, GLfloat *params)
  1342. {
  1343. SIG( "glGetTexGenfv" );
  1344. dllGetTexGenfv( coord, pname, params );
  1345. }
  1346. static void APIENTRY logGetTexGeniv(GLenum coord, GLenum pname, GLint *params)
  1347. {
  1348. SIG( "glGetTexGeniv" );
  1349. dllGetTexGeniv( coord, pname, params );
  1350. }
  1351. static void APIENTRY logGetTexImage(GLenum target, GLint level, GLenum format, GLenum type, void *pixels)
  1352. {
  1353. SIG( "glGetTexImage" );
  1354. dllGetTexImage( target, level, format, type, pixels );
  1355. }
  1356. static void APIENTRY logGetTexLevelParameterfv(GLenum target, GLint level, GLenum pname, GLfloat *params )
  1357. {
  1358. SIG( "glGetTexLevelParameterfv" );
  1359. dllGetTexLevelParameterfv( target, level, pname, params );
  1360. }
  1361. static void APIENTRY logGetTexLevelParameteriv(GLenum target, GLint level, GLenum pname, GLint *params)
  1362. {
  1363. SIG( "glGetTexLevelParameteriv" );
  1364. dllGetTexLevelParameteriv( target, level, pname, params );
  1365. }
  1366. static void APIENTRY logGetTexParameterfv(GLenum target, GLenum pname, GLfloat *params)
  1367. {
  1368. SIG( "glGetTexParameterfv" );
  1369. dllGetTexParameterfv( target, pname, params );
  1370. }
  1371. static void APIENTRY logGetTexParameteriv(GLenum target, GLenum pname, GLint *params)
  1372. {
  1373. SIG( "glGetTexParameteriv" );
  1374. dllGetTexParameteriv( target, pname, params );
  1375. }
  1376. static void APIENTRY logHint(GLenum target, GLenum mode)
  1377. {
  1378. fprintf( glw_state.log_fp, "glHint( 0x%x, 0x%x )\n", target, mode );
  1379. dllHint( target, mode );
  1380. }
  1381. static void APIENTRY logIndexMask(GLuint mask)
  1382. {
  1383. SIG( "glIndexMask" );
  1384. dllIndexMask( mask );
  1385. }
  1386. static void APIENTRY logIndexPointer(GLenum type, GLsizei stride, const void *pointer)
  1387. {
  1388. SIG( "glIndexPointer" );
  1389. dllIndexPointer( type, stride, pointer );
  1390. }
  1391. static void APIENTRY logIndexd(GLdouble c)
  1392. {
  1393. SIG( "glIndexd" );
  1394. dllIndexd( c );
  1395. }
  1396. static void APIENTRY logIndexdv(const GLdouble *c)
  1397. {
  1398. SIG( "glIndexdv" );
  1399. dllIndexdv( c );
  1400. }
  1401. static void APIENTRY logIndexf(GLfloat c)
  1402. {
  1403. SIG( "glIndexf" );
  1404. dllIndexf( c );
  1405. }
  1406. static void APIENTRY logIndexfv(const GLfloat *c)
  1407. {
  1408. SIG( "glIndexfv" );
  1409. dllIndexfv( c );
  1410. }
  1411. static void APIENTRY logIndexi(GLint c)
  1412. {
  1413. SIG( "glIndexi" );
  1414. dllIndexi( c );
  1415. }
  1416. static void APIENTRY logIndexiv(const GLint *c)
  1417. {
  1418. SIG( "glIndexiv" );
  1419. dllIndexiv( c );
  1420. }
  1421. static void APIENTRY logIndexs(GLshort c)
  1422. {
  1423. SIG( "glIndexs" );
  1424. dllIndexs( c );
  1425. }
  1426. static void APIENTRY logIndexsv(const GLshort *c)
  1427. {
  1428. SIG( "glIndexsv" );
  1429. dllIndexsv( c );
  1430. }
  1431. static void APIENTRY logIndexub(GLubyte c)
  1432. {
  1433. SIG( "glIndexub" );
  1434. dllIndexub( c );
  1435. }
  1436. static void APIENTRY logIndexubv(const GLubyte *c)
  1437. {
  1438. SIG( "glIndexubv" );
  1439. dllIndexubv( c );
  1440. }
  1441. static void APIENTRY logInitNames(void)
  1442. {
  1443. SIG( "glInitNames" );
  1444. dllInitNames();
  1445. }
  1446. static void APIENTRY logInterleavedArrays(GLenum format, GLsizei stride, const void *pointer)
  1447. {
  1448. SIG( "glInterleavedArrays" );
  1449. dllInterleavedArrays( format, stride, pointer );
  1450. }
  1451. static GLboolean APIENTRY logIsEnabled(GLenum cap)
  1452. {
  1453. SIG( "glIsEnabled" );
  1454. return dllIsEnabled( cap );
  1455. }
  1456. static GLboolean APIENTRY logIsList(GLuint list)
  1457. {
  1458. SIG( "glIsList" );
  1459. return dllIsList( list );
  1460. }
  1461. static GLboolean APIENTRY logIsTexture(GLuint texture)
  1462. {
  1463. SIG( "glIsTexture" );
  1464. return dllIsTexture( texture );
  1465. }
  1466. static void APIENTRY logLightModelf(GLenum pname, GLfloat param)
  1467. {
  1468. SIG( "glLightModelf" );
  1469. dllLightModelf( pname, param );
  1470. }
  1471. static void APIENTRY logLightModelfv(GLenum pname, const GLfloat *params)
  1472. {
  1473. SIG( "glLightModelfv" );
  1474. dllLightModelfv( pname, params );
  1475. }
  1476. static void APIENTRY logLightModeli(GLenum pname, GLint param)
  1477. {
  1478. SIG( "glLightModeli" );
  1479. dllLightModeli( pname, param );
  1480. }
  1481. static void APIENTRY logLightModeliv(GLenum pname, const GLint *params)
  1482. {
  1483. SIG( "glLightModeliv" );
  1484. dllLightModeliv( pname, params );
  1485. }
  1486. static void APIENTRY logLightf(GLenum light, GLenum pname, GLfloat param)
  1487. {
  1488. SIG( "glLightf" );
  1489. dllLightf( light, pname, param );
  1490. }
  1491. static void APIENTRY logLightfv(GLenum light, GLenum pname, const GLfloat *params)
  1492. {
  1493. SIG( "glLightfv" );
  1494. dllLightfv( light, pname, params );
  1495. }
  1496. static void APIENTRY logLighti(GLenum light, GLenum pname, GLint param)
  1497. {
  1498. SIG( "glLighti" );
  1499. dllLighti( light, pname, param );
  1500. }
  1501. static void APIENTRY logLightiv(GLenum light, GLenum pname, const GLint *params)
  1502. {
  1503. SIG( "glLightiv" );
  1504. dllLightiv( light, pname, params );
  1505. }
  1506. static void APIENTRY logLineStipple(GLint factor, GLushort pattern)
  1507. {
  1508. SIG( "glLineStipple" );
  1509. dllLineStipple( factor, pattern );
  1510. }
  1511. static void APIENTRY logLineWidth(GLfloat width)
  1512. {
  1513. SIG( "glLineWidth" );
  1514. dllLineWidth( width );
  1515. }
  1516. static void APIENTRY logListBase(GLuint base)
  1517. {
  1518. SIG( "glListBase" );
  1519. dllListBase( base );
  1520. }
  1521. static void APIENTRY logLoadIdentity(void)
  1522. {
  1523. SIG( "glLoadIdentity" );
  1524. dllLoadIdentity();
  1525. }
  1526. static void APIENTRY logLoadMatrixd(const GLdouble *m)
  1527. {
  1528. SIG( "glLoadMatrixd" );
  1529. dllLoadMatrixd( m );
  1530. }
  1531. static void APIENTRY logLoadMatrixf(const GLfloat *m)
  1532. {
  1533. SIG( "glLoadMatrixf" );
  1534. dllLoadMatrixf( m );
  1535. }
  1536. static void APIENTRY logLoadName(GLuint name)
  1537. {
  1538. SIG( "glLoadName" );
  1539. dllLoadName( name );
  1540. }
  1541. static void APIENTRY logLogicOp(GLenum opcode)
  1542. {
  1543. SIG( "glLogicOp" );
  1544. dllLogicOp( opcode );
  1545. }
  1546. static void APIENTRY logMap1d(GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points)
  1547. {
  1548. SIG( "glMap1d" );
  1549. dllMap1d( target, u1, u2, stride, order, points );
  1550. }
  1551. static void APIENTRY logMap1f(GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points)
  1552. {
  1553. SIG( "glMap1f" );
  1554. dllMap1f( target, u1, u2, stride, order, points );
  1555. }
  1556. static void APIENTRY logMap2d(GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points)
  1557. {
  1558. SIG( "glMap2d" );
  1559. dllMap2d( target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points );
  1560. }
  1561. static void APIENTRY logMap2f(GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points)
  1562. {
  1563. SIG( "glMap2f" );
  1564. dllMap2f( target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points );
  1565. }
  1566. static void APIENTRY logMapGrid1d(GLint un, GLdouble u1, GLdouble u2)
  1567. {
  1568. SIG( "glMapGrid1d" );
  1569. dllMapGrid1d( un, u1, u2 );
  1570. }
  1571. static void APIENTRY logMapGrid1f(GLint un, GLfloat u1, GLfloat u2)
  1572. {
  1573. SIG( "glMapGrid1f" );
  1574. dllMapGrid1f( un, u1, u2 );
  1575. }
  1576. static void APIENTRY logMapGrid2d(GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2)
  1577. {
  1578. SIG( "glMapGrid2d" );
  1579. dllMapGrid2d( un, u1, u2, vn, v1, v2 );
  1580. }
  1581. static void APIENTRY logMapGrid2f(GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2)
  1582. {
  1583. SIG( "glMapGrid2f" );
  1584. dllMapGrid2f( un, u1, u2, vn, v1, v2 );
  1585. }
  1586. static void APIENTRY logMaterialf(GLenum face, GLenum pname, GLfloat param)
  1587. {
  1588. SIG( "glMaterialf" );
  1589. dllMaterialf( face, pname, param );
  1590. }
  1591. static void APIENTRY logMaterialfv(GLenum face, GLenum pname, const GLfloat *params)
  1592. {
  1593. SIG( "glMaterialfv" );
  1594. dllMaterialfv( face, pname, params );
  1595. }
  1596. static void APIENTRY logMateriali(GLenum face, GLenum pname, GLint param)
  1597. {
  1598. SIG( "glMateriali" );
  1599. dllMateriali( face, pname, param );
  1600. }
  1601. static void APIENTRY logMaterialiv(GLenum face, GLenum pname, const GLint *params)
  1602. {
  1603. SIG( "glMaterialiv" );
  1604. dllMaterialiv( face, pname, params );
  1605. }
  1606. static void APIENTRY logMatrixMode(GLenum mode)
  1607. {
  1608. SIG( "glMatrixMode" );
  1609. dllMatrixMode( mode );
  1610. }
  1611. static void APIENTRY logMultMatrixd(const GLdouble *m)
  1612. {
  1613. SIG( "glMultMatrixd" );
  1614. dllMultMatrixd( m );
  1615. }
  1616. static void APIENTRY logMultMatrixf(const GLfloat *m)
  1617. {
  1618. SIG( "glMultMatrixf" );
  1619. dllMultMatrixf( m );
  1620. }
  1621. static void APIENTRY logNewList(GLuint list, GLenum mode)
  1622. {
  1623. SIG( "glNewList" );
  1624. dllNewList( list, mode );
  1625. }
  1626. static void APIENTRY logNormal3b(GLbyte nx, GLbyte ny, GLbyte nz)
  1627. {
  1628. SIG ("glNormal3b" );
  1629. dllNormal3b( nx, ny, nz );
  1630. }
  1631. static void APIENTRY logNormal3bv(const GLbyte *v)
  1632. {
  1633. SIG( "glNormal3bv" );
  1634. dllNormal3bv( v );
  1635. }
  1636. static void APIENTRY logNormal3d(GLdouble nx, GLdouble ny, GLdouble nz)
  1637. {
  1638. SIG( "glNormal3d" );
  1639. dllNormal3d( nx, ny, nz );
  1640. }
  1641. static void APIENTRY logNormal3dv(const GLdouble *v)
  1642. {
  1643. SIG( "glNormal3dv" );
  1644. dllNormal3dv( v );
  1645. }
  1646. static void APIENTRY logNormal3f(GLfloat nx, GLfloat ny, GLfloat nz)
  1647. {
  1648. SIG( "glNormal3f" );
  1649. dllNormal3f( nx, ny, nz );
  1650. }
  1651. static void APIENTRY logNormal3fv(const GLfloat *v)
  1652. {
  1653. SIG( "glNormal3fv" );
  1654. dllNormal3fv( v );
  1655. }
  1656. static void APIENTRY logNormal3i(GLint nx, GLint ny, GLint nz)
  1657. {
  1658. SIG( "glNormal3i" );
  1659. dllNormal3i( nx, ny, nz );
  1660. }
  1661. static void APIENTRY logNormal3iv(const GLint *v)
  1662. {
  1663. SIG( "glNormal3iv" );
  1664. dllNormal3iv( v );
  1665. }
  1666. static void APIENTRY logNormal3s(GLshort nx, GLshort ny, GLshort nz)
  1667. {
  1668. SIG( "glNormal3s" );
  1669. dllNormal3s( nx, ny, nz );
  1670. }
  1671. static void APIENTRY logNormal3sv(const GLshort *v)
  1672. {
  1673. SIG( "glNormal3sv" );
  1674. dllNormal3sv( v );
  1675. }
  1676. static void APIENTRY logNormalPointer(GLenum type, GLsizei stride, const void *pointer)
  1677. {
  1678. SIG( "glNormalPointer" );
  1679. dllNormalPointer( type, stride, pointer );
  1680. }
  1681. static void APIENTRY logOrtho(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar)
  1682. {
  1683. SIG( "glOrtho" );
  1684. dllOrtho( left, right, bottom, top, zNear, zFar );
  1685. }
  1686. static void APIENTRY logPassThrough(GLfloat token)
  1687. {
  1688. SIG( "glPassThrough" );
  1689. dllPassThrough( token );
  1690. }
  1691. static void APIENTRY logPixelMapfv(GLenum map, GLsizei mapsize, const GLfloat *values)
  1692. {
  1693. SIG( "glPixelMapfv" );
  1694. dllPixelMapfv( map, mapsize, values );
  1695. }
  1696. static void APIENTRY logPixelMapuiv(GLenum map, GLsizei mapsize, const GLuint *values)
  1697. {
  1698. SIG( "glPixelMapuiv" );
  1699. dllPixelMapuiv( map, mapsize, values );
  1700. }
  1701. static void APIENTRY logPixelMapusv(GLenum map, GLsizei mapsize, const GLushort *values)
  1702. {
  1703. SIG( "glPixelMapusv" );
  1704. dllPixelMapusv( map, mapsize, values );
  1705. }
  1706. static void APIENTRY logPixelStoref(GLenum pname, GLfloat param)
  1707. {
  1708. SIG( "glPixelStoref" );
  1709. dllPixelStoref( pname, param );
  1710. }
  1711. static void APIENTRY logPixelStorei(GLenum pname, GLint param)
  1712. {
  1713. SIG( "glPixelStorei" );
  1714. dllPixelStorei( pname, param );
  1715. }
  1716. static void APIENTRY logPixelTransferf(GLenum pname, GLfloat param)
  1717. {
  1718. SIG( "glPixelTransferf" );
  1719. dllPixelTransferf( pname, param );
  1720. }
  1721. static void APIENTRY logPixelTransferi(GLenum pname, GLint param)
  1722. {
  1723. SIG( "glPixelTransferi" );
  1724. dllPixelTransferi( pname, param );
  1725. }
  1726. static void APIENTRY logPixelZoom(GLfloat xfactor, GLfloat yfactor)
  1727. {
  1728. SIG( "glPixelZoom" );
  1729. dllPixelZoom( xfactor, yfactor );
  1730. }
  1731. static void APIENTRY logPointSize(GLfloat size)
  1732. {
  1733. SIG( "glPointSize" );
  1734. dllPointSize( size );
  1735. }
  1736. static void APIENTRY logPolygonMode(GLenum face, GLenum mode)
  1737. {
  1738. fprintf( glw_state.log_fp, "glPolygonMode( 0x%x, 0x%x )\n", face, mode );
  1739. dllPolygonMode( face, mode );
  1740. }
  1741. static void APIENTRY logPolygonOffset(GLfloat factor, GLfloat units)
  1742. {
  1743. SIG( "glPolygonOffset" );
  1744. dllPolygonOffset( factor, units );
  1745. }
  1746. static void APIENTRY logPolygonStipple(const GLubyte *mask )
  1747. {
  1748. SIG( "glPolygonStipple" );
  1749. dllPolygonStipple( mask );
  1750. }
  1751. static void APIENTRY logPopAttrib(void)
  1752. {
  1753. SIG( "glPopAttrib" );
  1754. dllPopAttrib();
  1755. }
  1756. static void APIENTRY logPopClientAttrib(void)
  1757. {
  1758. SIG( "glPopClientAttrib" );
  1759. dllPopClientAttrib();
  1760. }
  1761. static void APIENTRY logPopMatrix(void)
  1762. {
  1763. SIG( "glPopMatrix" );
  1764. dllPopMatrix();
  1765. }
  1766. static void APIENTRY logPopName(void)
  1767. {
  1768. SIG( "glPopName" );
  1769. dllPopName();
  1770. }
  1771. static void APIENTRY logPrioritizeTextures(GLsizei n, const GLuint *textures, const GLclampf *priorities)
  1772. {
  1773. SIG( "glPrioritizeTextures" );
  1774. dllPrioritizeTextures( n, textures, priorities );
  1775. }
  1776. static void APIENTRY logPushAttrib(GLbitfield mask)
  1777. {
  1778. SIG( "glPushAttrib" );
  1779. dllPushAttrib( mask );
  1780. }
  1781. static void APIENTRY logPushClientAttrib(GLbitfield mask)
  1782. {
  1783. SIG( "glPushClientAttrib" );
  1784. dllPushClientAttrib( mask );
  1785. }
  1786. static void APIENTRY logPushMatrix(void)
  1787. {
  1788. SIG( "glPushMatrix" );
  1789. dllPushMatrix();
  1790. }
  1791. static void APIENTRY logPushName(GLuint name)
  1792. {
  1793. SIG( "glPushName" );
  1794. dllPushName( name );
  1795. }
  1796. static void APIENTRY logRasterPos2d(GLdouble x, GLdouble y)
  1797. {
  1798. SIG ("glRasterPot2d" );
  1799. dllRasterPos2d( x, y );
  1800. }
  1801. static void APIENTRY logRasterPos2dv(const GLdouble *v)
  1802. {
  1803. SIG( "glRasterPos2dv" );
  1804. dllRasterPos2dv( v );
  1805. }
  1806. static void APIENTRY logRasterPos2f(GLfloat x, GLfloat y)
  1807. {
  1808. SIG( "glRasterPos2f" );
  1809. dllRasterPos2f( x, y );
  1810. }
  1811. static void APIENTRY logRasterPos2fv(const GLfloat *v)
  1812. {
  1813. SIG( "glRasterPos2dv" );
  1814. dllRasterPos2fv( v );
  1815. }
  1816. static void APIENTRY logRasterPos2i(GLint x, GLint y)
  1817. {
  1818. SIG( "glRasterPos2if" );
  1819. dllRasterPos2i( x, y );
  1820. }
  1821. static void APIENTRY logRasterPos2iv(const GLint *v)
  1822. {
  1823. SIG( "glRasterPos2iv" );
  1824. dllRasterPos2iv( v );
  1825. }
  1826. static void APIENTRY logRasterPos2s(GLshort x, GLshort y)
  1827. {
  1828. SIG( "glRasterPos2s" );
  1829. dllRasterPos2s( x, y );
  1830. }
  1831. static void APIENTRY logRasterPos2sv(const GLshort *v)
  1832. {
  1833. SIG( "glRasterPos2sv" );
  1834. dllRasterPos2sv( v );
  1835. }
  1836. static void APIENTRY logRasterPos3d(GLdouble x, GLdouble y, GLdouble z)
  1837. {
  1838. SIG( "glRasterPos3d" );
  1839. dllRasterPos3d( x, y, z );
  1840. }
  1841. static void APIENTRY logRasterPos3dv(const GLdouble *v)
  1842. {
  1843. SIG( "glRasterPos3dv" );
  1844. dllRasterPos3dv( v );
  1845. }
  1846. static void APIENTRY logRasterPos3f(GLfloat x, GLfloat y, GLfloat z)
  1847. {
  1848. SIG( "glRasterPos3f" );
  1849. dllRasterPos3f( x, y, z );
  1850. }
  1851. static void APIENTRY logRasterPos3fv(const GLfloat *v)
  1852. {
  1853. SIG( "glRasterPos3fv" );
  1854. dllRasterPos3fv( v );
  1855. }
  1856. static void APIENTRY logRasterPos3i(GLint x, GLint y, GLint z)
  1857. {
  1858. SIG( "glRasterPos3i" );
  1859. dllRasterPos3i( x, y, z );
  1860. }
  1861. static void APIENTRY logRasterPos3iv(const GLint *v)
  1862. {
  1863. SIG( "glRasterPos3iv" );
  1864. dllRasterPos3iv( v );
  1865. }
  1866. static void APIENTRY logRasterPos3s(GLshort x, GLshort y, GLshort z)
  1867. {
  1868. SIG( "glRasterPos3s" );
  1869. dllRasterPos3s( x, y, z );
  1870. }
  1871. static void APIENTRY logRasterPos3sv(const GLshort *v)
  1872. {
  1873. SIG( "glRasterPos3sv" );
  1874. dllRasterPos3sv( v );
  1875. }
  1876. static void APIENTRY logRasterPos4d(GLdouble x, GLdouble y, GLdouble z, GLdouble w)
  1877. {
  1878. SIG( "glRasterPos4d" );
  1879. dllRasterPos4d( x, y, z, w );
  1880. }
  1881. static void APIENTRY logRasterPos4dv(const GLdouble *v)
  1882. {
  1883. SIG( "glRasterPos4dv" );
  1884. dllRasterPos4dv( v );
  1885. }
  1886. static void APIENTRY logRasterPos4f(GLfloat x, GLfloat y, GLfloat z, GLfloat w)
  1887. {
  1888. SIG( "glRasterPos4f" );
  1889. dllRasterPos4f( x, y, z, w );
  1890. }
  1891. static void APIENTRY logRasterPos4fv(const GLfloat *v)
  1892. {
  1893. SIG( "glRasterPos4fv" );
  1894. dllRasterPos4fv( v );
  1895. }
  1896. static void APIENTRY logRasterPos4i(GLint x, GLint y, GLint z, GLint w)
  1897. {
  1898. SIG( "glRasterPos4i" );
  1899. dllRasterPos4i( x, y, z, w );
  1900. }
  1901. static void APIENTRY logRasterPos4iv(const GLint *v)
  1902. {
  1903. SIG( "glRasterPos4iv" );
  1904. dllRasterPos4iv( v );
  1905. }
  1906. static void APIENTRY logRasterPos4s(GLshort x, GLshort y, GLshort z, GLshort w)
  1907. {
  1908. SIG( "glRasterPos4s" );
  1909. dllRasterPos4s( x, y, z, w );
  1910. }
  1911. static void APIENTRY logRasterPos4sv(const GLshort *v)
  1912. {
  1913. SIG( "glRasterPos4sv" );
  1914. dllRasterPos4sv( v );
  1915. }
  1916. static void APIENTRY logReadBuffer(GLenum mode)
  1917. {
  1918. SIG( "glReadBuffer" );
  1919. dllReadBuffer( mode );
  1920. }
  1921. static void APIENTRY logReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, void *pixels)
  1922. {
  1923. SIG( "glReadPixels" );
  1924. dllReadPixels( x, y, width, height, format, type, pixels );
  1925. }
  1926. static void APIENTRY logRectd(GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2)
  1927. {
  1928. SIG( "glRectd" );
  1929. dllRectd( x1, y1, x2, y2 );
  1930. }
  1931. static void APIENTRY logRectdv(const GLdouble *v1, const GLdouble *v2)
  1932. {
  1933. SIG( "glRectdv" );
  1934. dllRectdv( v1, v2 );
  1935. }
  1936. static void APIENTRY logRectf(GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2)
  1937. {
  1938. SIG( "glRectf" );
  1939. dllRectf( x1, y1, x2, y2 );
  1940. }
  1941. static void APIENTRY logRectfv(const GLfloat *v1, const GLfloat *v2)
  1942. {
  1943. SIG( "glRectfv" );
  1944. dllRectfv( v1, v2 );
  1945. }
  1946. static void APIENTRY logRecti(GLint x1, GLint y1, GLint x2, GLint y2)
  1947. {
  1948. SIG( "glRecti" );
  1949. dllRecti( x1, y1, x2, y2 );
  1950. }
  1951. static void APIENTRY logRectiv(const GLint *v1, const GLint *v2)
  1952. {
  1953. SIG( "glRectiv" );
  1954. dllRectiv( v1, v2 );
  1955. }
  1956. static void APIENTRY logRects(GLshort x1, GLshort y1, GLshort x2, GLshort y2)
  1957. {
  1958. SIG( "glRects" );
  1959. dllRects( x1, y1, x2, y2 );
  1960. }
  1961. static void APIENTRY logRectsv(const GLshort *v1, const GLshort *v2)
  1962. {
  1963. SIG( "glRectsv" );
  1964. dllRectsv( v1, v2 );
  1965. }
  1966. static GLint APIENTRY logRenderMode(GLenum mode)
  1967. {
  1968. SIG( "glRenderMode" );
  1969. return dllRenderMode( mode );
  1970. }
  1971. static void APIENTRY logRotated(GLdouble angle, GLdouble x, GLdouble y, GLdouble z)
  1972. {
  1973. SIG( "glRotated" );
  1974. dllRotated( angle, x, y, z );
  1975. }
  1976. static void APIENTRY logRotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z)
  1977. {
  1978. SIG( "glRotatef" );
  1979. dllRotatef( angle, x, y, z );
  1980. }
  1981. static void APIENTRY logScaled(GLdouble x, GLdouble y, GLdouble z)
  1982. {
  1983. SIG( "glScaled" );
  1984. dllScaled( x, y, z );
  1985. }
  1986. static void APIENTRY logScalef(GLfloat x, GLfloat y, GLfloat z)
  1987. {
  1988. SIG( "glScalef" );
  1989. dllScalef( x, y, z );
  1990. }
  1991. static void APIENTRY logScissor(GLint x, GLint y, GLsizei width, GLsizei height)
  1992. {
  1993. SIG( "glScissor" );
  1994. dllScissor( x, y, width, height );
  1995. }
  1996. static void APIENTRY logSelectBuffer(GLsizei size, GLuint *buffer)
  1997. {
  1998. SIG( "glSelectBuffer" );
  1999. dllSelectBuffer( size, buffer );
  2000. }
  2001. static void APIENTRY logShadeModel(GLenum mode)
  2002. {
  2003. SIG( "glShadeModel" );
  2004. dllShadeModel( mode );
  2005. }
  2006. static void APIENTRY logStencilFunc(GLenum func, GLint ref, GLuint mask)
  2007. {
  2008. SIG( "glStencilFunc" );
  2009. dllStencilFunc( func, ref, mask );
  2010. }
  2011. static void APIENTRY logStencilMask(GLuint mask)
  2012. {
  2013. SIG( "glStencilMask" );
  2014. dllStencilMask( mask );
  2015. }
  2016. static void APIENTRY logStencilOp(GLenum fail, GLenum zfail, GLenum zpass)
  2017. {
  2018. SIG( "glStencilOp" );
  2019. dllStencilOp( fail, zfail, zpass );
  2020. }
  2021. static void APIENTRY logTexCoord1d(GLdouble s)
  2022. {
  2023. SIG( "glTexCoord1d" );
  2024. dllTexCoord1d( s );
  2025. }
  2026. static void APIENTRY logTexCoord1dv(const GLdouble *v)
  2027. {
  2028. SIG( "glTexCoord1dv" );
  2029. dllTexCoord1dv( v );
  2030. }
  2031. static void APIENTRY logTexCoord1f(GLfloat s)
  2032. {
  2033. SIG( "glTexCoord1f" );
  2034. dllTexCoord1f( s );
  2035. }
  2036. static void APIENTRY logTexCoord1fv(const GLfloat *v)
  2037. {
  2038. SIG( "glTexCoord1fv" );
  2039. dllTexCoord1fv( v );
  2040. }
  2041. static void APIENTRY logTexCoord1i(GLint s)
  2042. {
  2043. SIG( "glTexCoord1i" );
  2044. dllTexCoord1i( s );
  2045. }
  2046. static void APIENTRY logTexCoord1iv(const GLint *v)
  2047. {
  2048. SIG( "glTexCoord1iv" );
  2049. dllTexCoord1iv( v );
  2050. }
  2051. static void APIENTRY logTexCoord1s(GLshort s)
  2052. {
  2053. SIG( "glTexCoord1s" );
  2054. dllTexCoord1s( s );
  2055. }
  2056. static void APIENTRY logTexCoord1sv(const GLshort *v)
  2057. {
  2058. SIG( "glTexCoord1sv" );
  2059. dllTexCoord1sv( v );
  2060. }
  2061. static void APIENTRY logTexCoord2d(GLdouble s, GLdouble t)
  2062. {
  2063. SIG( "glTexCoord2d" );
  2064. dllTexCoord2d( s, t );
  2065. }
  2066. static void APIENTRY logTexCoord2dv(const GLdouble *v)
  2067. {
  2068. SIG( "glTexCoord2dv" );
  2069. dllTexCoord2dv( v );
  2070. }
  2071. static void APIENTRY logTexCoord2f(GLfloat s, GLfloat t)
  2072. {
  2073. SIG( "glTexCoord2f" );
  2074. dllTexCoord2f( s, t );
  2075. }
  2076. static void APIENTRY logTexCoord2fv(const GLfloat *v)
  2077. {
  2078. SIG( "glTexCoord2fv" );
  2079. dllTexCoord2fv( v );
  2080. }
  2081. static void APIENTRY logTexCoord2i(GLint s, GLint t)
  2082. {
  2083. SIG( "glTexCoord2i" );
  2084. dllTexCoord2i( s, t );
  2085. }
  2086. static void APIENTRY logTexCoord2iv(const GLint *v)
  2087. {
  2088. SIG( "glTexCoord2iv" );
  2089. dllTexCoord2iv( v );
  2090. }
  2091. static void APIENTRY logTexCoord2s(GLshort s, GLshort t)
  2092. {
  2093. SIG( "glTexCoord2s" );
  2094. dllTexCoord2s( s, t );
  2095. }
  2096. static void APIENTRY logTexCoord2sv(const GLshort *v)
  2097. {
  2098. SIG( "glTexCoord2sv" );
  2099. dllTexCoord2sv( v );
  2100. }
  2101. static void APIENTRY logTexCoord3d(GLdouble s, GLdouble t, GLdouble r)
  2102. {
  2103. SIG( "glTexCoord3d" );
  2104. dllTexCoord3d( s, t, r );
  2105. }
  2106. static void APIENTRY logTexCoord3dv(const GLdouble *v)
  2107. {
  2108. SIG( "glTexCoord3dv" );
  2109. dllTexCoord3dv( v );
  2110. }
  2111. static void APIENTRY logTexCoord3f(GLfloat s, GLfloat t, GLfloat r)
  2112. {
  2113. SIG( "glTexCoord3f" );
  2114. dllTexCoord3f( s, t, r );
  2115. }
  2116. static void APIENTRY logTexCoord3fv(const GLfloat *v)
  2117. {
  2118. SIG( "glTexCoord3fv" );
  2119. dllTexCoord3fv( v );
  2120. }
  2121. static void APIENTRY logTexCoord3i(GLint s, GLint t, GLint r)
  2122. {
  2123. SIG( "glTexCoord3i" );
  2124. dllTexCoord3i( s, t, r );
  2125. }
  2126. static void APIENTRY logTexCoord3iv(const GLint *v)
  2127. {
  2128. SIG( "glTexCoord3iv" );
  2129. dllTexCoord3iv( v );
  2130. }
  2131. static void APIENTRY logTexCoord3s(GLshort s, GLshort t, GLshort r)
  2132. {
  2133. SIG( "glTexCoord3s" );
  2134. dllTexCoord3s( s, t, r );
  2135. }
  2136. static void APIENTRY logTexCoord3sv(const GLshort *v)
  2137. {
  2138. SIG( "glTexCoord3sv" );
  2139. dllTexCoord3sv( v );
  2140. }
  2141. static void APIENTRY logTexCoord4d(GLdouble s, GLdouble t, GLdouble r, GLdouble q)
  2142. {
  2143. SIG( "glTexCoord4d" );
  2144. dllTexCoord4d( s, t, r, q );
  2145. }
  2146. static void APIENTRY logTexCoord4dv(const GLdouble *v)
  2147. {
  2148. SIG( "glTexCoord4dv" );
  2149. dllTexCoord4dv( v );
  2150. }
  2151. static void APIENTRY logTexCoord4f(GLfloat s, GLfloat t, GLfloat r, GLfloat q)
  2152. {
  2153. SIG( "glTexCoord4f" );
  2154. dllTexCoord4f( s, t, r, q );
  2155. }
  2156. static void APIENTRY logTexCoord4fv(const GLfloat *v)
  2157. {
  2158. SIG( "glTexCoord4fv" );
  2159. dllTexCoord4fv( v );
  2160. }
  2161. static void APIENTRY logTexCoord4i(GLint s, GLint t, GLint r, GLint q)
  2162. {
  2163. SIG( "glTexCoord4i" );
  2164. dllTexCoord4i( s, t, r, q );
  2165. }
  2166. static void APIENTRY logTexCoord4iv(const GLint *v)
  2167. {
  2168. SIG( "glTexCoord4iv" );
  2169. dllTexCoord4iv( v );
  2170. }
  2171. static void APIENTRY logTexCoord4s(GLshort s, GLshort t, GLshort r, GLshort q)
  2172. {
  2173. SIG( "glTexCoord4s" );
  2174. dllTexCoord4s( s, t, r, q );
  2175. }
  2176. static void APIENTRY logTexCoord4sv(const GLshort *v)
  2177. {
  2178. SIG( "glTexCoord4sv" );
  2179. dllTexCoord4sv( v );
  2180. }
  2181. static void APIENTRY logTexCoordPointer(GLint size, GLenum type, GLsizei stride, const void *pointer)
  2182. {
  2183. SIG( "glTexCoordPointer" );
  2184. dllTexCoordPointer( size, type, stride, pointer );
  2185. }
  2186. static void APIENTRY logTexEnvf(GLenum target, GLenum pname, GLfloat param)
  2187. {
  2188. fprintf( glw_state.log_fp, "glTexEnvf( 0x%x, 0x%x, %f )\n", target, pname, param );
  2189. dllTexEnvf( target, pname, param );
  2190. }
  2191. static void APIENTRY logTexEnvfv(GLenum target, GLenum pname, const GLfloat *params)
  2192. {
  2193. SIG( "glTexEnvfv" );
  2194. dllTexEnvfv( target, pname, params );
  2195. }
  2196. static void APIENTRY logTexEnvi(GLenum target, GLenum pname, GLint param)
  2197. {
  2198. fprintf( glw_state.log_fp, "glTexEnvi( 0x%x, 0x%x, 0x%x )\n", target, pname, param );
  2199. dllTexEnvi( target, pname, param );
  2200. }
  2201. static void APIENTRY logTexEnviv(GLenum target, GLenum pname, const GLint *params)
  2202. {
  2203. SIG( "glTexEnviv" );
  2204. dllTexEnviv( target, pname, params );
  2205. }
  2206. static void APIENTRY logTexGend(GLenum coord, GLenum pname, GLdouble param)
  2207. {
  2208. SIG( "glTexGend" );
  2209. dllTexGend( coord, pname, param );
  2210. }
  2211. static void APIENTRY logTexGendv(GLenum coord, GLenum pname, const GLdouble *params)
  2212. {
  2213. SIG( "glTexGendv" );
  2214. dllTexGendv( coord, pname, params );
  2215. }
  2216. static void APIENTRY logTexGenf(GLenum coord, GLenum pname, GLfloat param)
  2217. {
  2218. SIG( "glTexGenf" );
  2219. dllTexGenf( coord, pname, param );
  2220. }
  2221. static void APIENTRY logTexGenfv(GLenum coord, GLenum pname, const GLfloat *params)
  2222. {
  2223. SIG( "glTexGenfv" );
  2224. dllTexGenfv( coord, pname, params );
  2225. }
  2226. static void APIENTRY logTexGeni(GLenum coord, GLenum pname, GLint param)
  2227. {
  2228. SIG( "glTexGeni" );
  2229. dllTexGeni( coord, pname, param );
  2230. }
  2231. static void APIENTRY logTexGeniv(GLenum coord, GLenum pname, const GLint *params)
  2232. {
  2233. SIG( "glTexGeniv" );
  2234. dllTexGeniv( coord, pname, params );
  2235. }
  2236. static void APIENTRY logTexImage1D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const void *pixels)
  2237. {
  2238. SIG( "glTexImage1D" );
  2239. dllTexImage1D( target, level, internalformat, width, border, format, type, pixels );
  2240. }
  2241. static void APIENTRY logTexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels)
  2242. {
  2243. SIG( "glTexImage2D" );
  2244. dllTexImage2D( target, level, internalformat, width, height, border, format, type, pixels );
  2245. }
  2246. static void APIENTRY logTexParameterf(GLenum target, GLenum pname, GLfloat param)
  2247. {
  2248. fprintf( glw_state.log_fp, "glTexParameterf( 0x%x, 0x%x, %f )\n", target, pname, param );
  2249. dllTexParameterf( target, pname, param );
  2250. }
  2251. static void APIENTRY logTexParameterfv(GLenum target, GLenum pname, const GLfloat *params)
  2252. {
  2253. SIG( "glTexParameterfv" );
  2254. dllTexParameterfv( target, pname, params );
  2255. }
  2256. static void APIENTRY logTexParameteri(GLenum target, GLenum pname, GLint param)
  2257. {
  2258. fprintf( glw_state.log_fp, "glTexParameteri( 0x%x, 0x%x, 0x%x )\n", target, pname, param );
  2259. dllTexParameteri( target, pname, param );
  2260. }
  2261. static void APIENTRY logTexParameteriv(GLenum target, GLenum pname, const GLint *params)
  2262. {
  2263. SIG( "glTexParameteriv" );
  2264. dllTexParameteriv( target, pname, params );
  2265. }
  2266. static void APIENTRY logTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels)
  2267. {
  2268. SIG( "glTexSubImage1D" );
  2269. dllTexSubImage1D( target, level, xoffset, width, format, type, pixels );
  2270. }
  2271. static void APIENTRY logTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels)
  2272. {
  2273. SIG( "glTexSubImage2D" );
  2274. dllTexSubImage2D( target, level, xoffset, yoffset, width, height, format, type, pixels );
  2275. }
  2276. static void APIENTRY logTranslated(GLdouble x, GLdouble y, GLdouble z)
  2277. {
  2278. SIG( "glTranslated" );
  2279. dllTranslated( x, y, z );
  2280. }
  2281. static void APIENTRY logTranslatef(GLfloat x, GLfloat y, GLfloat z)
  2282. {
  2283. SIG( "glTranslatef" );
  2284. dllTranslatef( x, y, z );
  2285. }
  2286. static void APIENTRY logVertex2d(GLdouble x, GLdouble y)
  2287. {
  2288. SIG( "glVertex2d" );
  2289. dllVertex2d( x, y );
  2290. }
  2291. static void APIENTRY logVertex2dv(const GLdouble *v)
  2292. {
  2293. SIG( "glVertex2dv" );
  2294. dllVertex2dv( v );
  2295. }
  2296. static void APIENTRY logVertex2f(GLfloat x, GLfloat y)
  2297. {
  2298. SIG( "glVertex2f" );
  2299. dllVertex2f( x, y );
  2300. }
  2301. static void APIENTRY logVertex2fv(const GLfloat *v)
  2302. {
  2303. SIG( "glVertex2fv" );
  2304. dllVertex2fv( v );
  2305. }
  2306. static void APIENTRY logVertex2i(GLint x, GLint y)
  2307. {
  2308. SIG( "glVertex2i" );
  2309. dllVertex2i( x, y );
  2310. }
  2311. static void APIENTRY logVertex2iv(const GLint *v)
  2312. {
  2313. SIG( "glVertex2iv" );
  2314. dllVertex2iv( v );
  2315. }
  2316. static void APIENTRY logVertex2s(GLshort x, GLshort y)
  2317. {
  2318. SIG( "glVertex2s" );
  2319. dllVertex2s( x, y );
  2320. }
  2321. static void APIENTRY logVertex2sv(const GLshort *v)
  2322. {
  2323. SIG( "glVertex2sv" );
  2324. dllVertex2sv( v );
  2325. }
  2326. static void APIENTRY logVertex3d(GLdouble x, GLdouble y, GLdouble z)
  2327. {
  2328. SIG( "glVertex3d" );
  2329. dllVertex3d( x, y, z );
  2330. }
  2331. static void APIENTRY logVertex3dv(const GLdouble *v)
  2332. {
  2333. SIG( "glVertex3dv" );
  2334. dllVertex3dv( v );
  2335. }
  2336. static void APIENTRY logVertex3f(GLfloat x, GLfloat y, GLfloat z)
  2337. {
  2338. SIG( "glVertex3f" );
  2339. dllVertex3f( x, y, z );
  2340. }
  2341. static void APIENTRY logVertex3fv(const GLfloat *v)
  2342. {
  2343. SIG( "glVertex3fv" );
  2344. dllVertex3fv( v );
  2345. }
  2346. static void APIENTRY logVertex3i(GLint x, GLint y, GLint z)
  2347. {
  2348. SIG( "glVertex3i" );
  2349. dllVertex3i( x, y, z );
  2350. }
  2351. static void APIENTRY logVertex3iv(const GLint *v)
  2352. {
  2353. SIG( "glVertex3iv" );
  2354. dllVertex3iv( v );
  2355. }
  2356. static void APIENTRY logVertex3s(GLshort x, GLshort y, GLshort z)
  2357. {
  2358. SIG( "glVertex3s" );
  2359. dllVertex3s( x, y, z );
  2360. }
  2361. static void APIENTRY logVertex3sv(const GLshort *v)
  2362. {
  2363. SIG( "glVertex3sv" );
  2364. dllVertex3sv( v );
  2365. }
  2366. static void APIENTRY logVertex4d(GLdouble x, GLdouble y, GLdouble z, GLdouble w)
  2367. {
  2368. SIG( "glVertex4d" );
  2369. dllVertex4d( x, y, z, w );
  2370. }
  2371. static void APIENTRY logVertex4dv(const GLdouble *v)
  2372. {
  2373. SIG( "glVertex4dv" );
  2374. dllVertex4dv( v );
  2375. }
  2376. static void APIENTRY logVertex4f(GLfloat x, GLfloat y, GLfloat z, GLfloat w)
  2377. {
  2378. SIG( "glVertex4f" );
  2379. dllVertex4f( x, y, z, w );
  2380. }
  2381. static void APIENTRY logVertex4fv(const GLfloat *v)
  2382. {
  2383. SIG( "glVertex4fv" );
  2384. dllVertex4fv( v );
  2385. }
  2386. static void APIENTRY logVertex4i(GLint x, GLint y, GLint z, GLint w)
  2387. {
  2388. SIG( "glVertex4i" );
  2389. dllVertex4i( x, y, z, w );
  2390. }
  2391. static void APIENTRY logVertex4iv(const GLint *v)
  2392. {
  2393. SIG( "glVertex4iv" );
  2394. dllVertex4iv( v );
  2395. }
  2396. static void APIENTRY logVertex4s(GLshort x, GLshort y, GLshort z, GLshort w)
  2397. {
  2398. SIG( "glVertex4s" );
  2399. dllVertex4s( x, y, z, w );
  2400. }
  2401. static void APIENTRY logVertex4sv(const GLshort *v)
  2402. {
  2403. SIG( "glVertex4sv" );
  2404. dllVertex4sv( v );
  2405. }
  2406. static void APIENTRY logVertexPointer(GLint size, GLenum type, GLsizei stride, const void *pointer)
  2407. {
  2408. SIG( "glVertexPointer" );
  2409. dllVertexPointer( size, type, stride, pointer );
  2410. }
  2411. static void APIENTRY logViewport(GLint x, GLint y, GLsizei width, GLsizei height)
  2412. {
  2413. SIG( "glViewport" );
  2414. dllViewport( x, y, width, height );
  2415. }
  2416. /*
  2417. ** QGL_Shutdown
  2418. **
  2419. ** Unloads the specified DLL then nulls out all the proc pointers.
  2420. */
  2421. void QGL_Shutdown( void )
  2422. {
  2423. if ( glw_state.hinstOpenGL )
  2424. {
  2425. FreeLibrary( glw_state.hinstOpenGL );
  2426. glw_state.hinstOpenGL = NULL;
  2427. }
  2428. glw_state.hinstOpenGL = NULL;
  2429. qglAccum = NULL;
  2430. qglAlphaFunc = NULL;
  2431. qglAreTexturesResident = NULL;
  2432. qglArrayElement = NULL;
  2433. qglBegin = NULL;
  2434. qglBindTexture = NULL;
  2435. qglBitmap = NULL;
  2436. qglBlendFunc = NULL;
  2437. qglCallList = NULL;
  2438. qglCallLists = NULL;
  2439. qglClear = NULL;
  2440. qglClearAccum = NULL;
  2441. qglClearColor = NULL;
  2442. qglClearDepth = NULL;
  2443. qglClearIndex = NULL;
  2444. qglClearStencil = NULL;
  2445. qglClipPlane = NULL;
  2446. qglColor3b = NULL;
  2447. qglColor3bv = NULL;
  2448. qglColor3d = NULL;
  2449. qglColor3dv = NULL;
  2450. qglColor3f = NULL;
  2451. qglColor3fv = NULL;
  2452. qglColor3i = NULL;
  2453. qglColor3iv = NULL;
  2454. qglColor3s = NULL;
  2455. qglColor3sv = NULL;
  2456. qglColor3ub = NULL;
  2457. qglColor3ubv = NULL;
  2458. qglColor3ui = NULL;
  2459. qglColor3uiv = NULL;
  2460. qglColor3us = NULL;
  2461. qglColor3usv = NULL;
  2462. qglColor4b = NULL;
  2463. qglColor4bv = NULL;
  2464. qglColor4d = NULL;
  2465. qglColor4dv = NULL;
  2466. qglColor4f = NULL;
  2467. qglColor4fv = NULL;
  2468. qglColor4i = NULL;
  2469. qglColor4iv = NULL;
  2470. qglColor4s = NULL;
  2471. qglColor4sv = NULL;
  2472. qglColor4ub = NULL;
  2473. qglColor4ubv = NULL;
  2474. qglColor4ui = NULL;
  2475. qglColor4uiv = NULL;
  2476. qglColor4us = NULL;
  2477. qglColor4usv = NULL;
  2478. qglColorMask = NULL;
  2479. qglColorMaterial = NULL;
  2480. qglColorPointer = NULL;
  2481. qglCopyPixels = NULL;
  2482. qglCopyTexImage1D = NULL;
  2483. qglCopyTexImage2D = NULL;
  2484. qglCopyTexSubImage1D = NULL;
  2485. qglCopyTexSubImage2D = NULL;
  2486. qglCullFace = NULL;
  2487. qglDeleteLists = NULL;
  2488. qglDeleteTextures = NULL;
  2489. qglDepthFunc = NULL;
  2490. qglDepthMask = NULL;
  2491. qglDepthRange = NULL;
  2492. qglDisable = NULL;
  2493. qglDisableClientState = NULL;
  2494. qglDrawArrays = NULL;
  2495. qglDrawBuffer = NULL;
  2496. qglDrawElements = NULL;
  2497. qglDrawPixels = NULL;
  2498. qglEdgeFlag = NULL;
  2499. qglEdgeFlagPointer = NULL;
  2500. qglEdgeFlagv = NULL;
  2501. qglEnable = NULL;
  2502. qglEnableClientState = NULL;
  2503. qglEnd = NULL;
  2504. qglEndList = NULL;
  2505. qglEvalCoord1d = NULL;
  2506. qglEvalCoord1dv = NULL;
  2507. qglEvalCoord1f = NULL;
  2508. qglEvalCoord1fv = NULL;
  2509. qglEvalCoord2d = NULL;
  2510. qglEvalCoord2dv = NULL;
  2511. qglEvalCoord2f = NULL;
  2512. qglEvalCoord2fv = NULL;
  2513. qglEvalMesh1 = NULL;
  2514. qglEvalMesh2 = NULL;
  2515. qglEvalPoint1 = NULL;
  2516. qglEvalPoint2 = NULL;
  2517. qglFeedbackBuffer = NULL;
  2518. qglFinish = NULL;
  2519. qglFlush = NULL;
  2520. qglFogf = NULL;
  2521. qglFogfv = NULL;
  2522. qglFogi = NULL;
  2523. qglFogiv = NULL;
  2524. qglFrontFace = NULL;
  2525. qglFrustum = NULL;
  2526. qglGenLists = NULL;
  2527. qglGenTextures = NULL;
  2528. qglGetBooleanv = NULL;
  2529. qglGetClipPlane = NULL;
  2530. qglGetDoublev = NULL;
  2531. qglGetError = NULL;
  2532. qglGetFloatv = NULL;
  2533. qglGetIntegerv = NULL;
  2534. qglGetLightfv = NULL;
  2535. qglGetLightiv = NULL;
  2536. qglGetMapdv = NULL;
  2537. qglGetMapfv = NULL;
  2538. qglGetMapiv = NULL;
  2539. qglGetMaterialfv = NULL;
  2540. qglGetMaterialiv = NULL;
  2541. qglGetPixelMapfv = NULL;
  2542. qglGetPixelMapuiv = NULL;
  2543. qglGetPixelMapusv = NULL;
  2544. qglGetPointerv = NULL;
  2545. qglGetPolygonStipple = NULL;
  2546. qglGetString = NULL;
  2547. qglGetTexEnvfv = NULL;
  2548. qglGetTexEnviv = NULL;
  2549. qglGetTexGendv = NULL;
  2550. qglGetTexGenfv = NULL;
  2551. qglGetTexGeniv = NULL;
  2552. qglGetTexImage = NULL;
  2553. qglGetTexLevelParameterfv = NULL;
  2554. qglGetTexLevelParameteriv = NULL;
  2555. qglGetTexParameterfv = NULL;
  2556. qglGetTexParameteriv = NULL;
  2557. qglHint = NULL;
  2558. qglIndexMask = NULL;
  2559. qglIndexPointer = NULL;
  2560. qglIndexd = NULL;
  2561. qglIndexdv = NULL;
  2562. qglIndexf = NULL;
  2563. qglIndexfv = NULL;
  2564. qglIndexi = NULL;
  2565. qglIndexiv = NULL;
  2566. qglIndexs = NULL;
  2567. qglIndexsv = NULL;
  2568. qglIndexub = NULL;
  2569. qglIndexubv = NULL;
  2570. qglInitNames = NULL;
  2571. qglInterleavedArrays = NULL;
  2572. qglIsEnabled = NULL;
  2573. qglIsList = NULL;
  2574. qglIsTexture = NULL;
  2575. qglLightModelf = NULL;
  2576. qglLightModelfv = NULL;
  2577. qglLightModeli = NULL;
  2578. qglLightModeliv = NULL;
  2579. qglLightf = NULL;
  2580. qglLightfv = NULL;
  2581. qglLighti = NULL;
  2582. qglLightiv = NULL;
  2583. qglLineStipple = NULL;
  2584. qglLineWidth = NULL;
  2585. qglListBase = NULL;
  2586. qglLoadIdentity = NULL;
  2587. qglLoadMatrixd = NULL;
  2588. qglLoadMatrixf = NULL;
  2589. qglLoadName = NULL;
  2590. qglLogicOp = NULL;
  2591. qglMap1d = NULL;
  2592. qglMap1f = NULL;
  2593. qglMap2d = NULL;
  2594. qglMap2f = NULL;
  2595. qglMapGrid1d = NULL;
  2596. qglMapGrid1f = NULL;
  2597. qglMapGrid2d = NULL;
  2598. qglMapGrid2f = NULL;
  2599. qglMaterialf = NULL;
  2600. qglMaterialfv = NULL;
  2601. qglMateriali = NULL;
  2602. qglMaterialiv = NULL;
  2603. qglMatrixMode = NULL;
  2604. qglMultMatrixd = NULL;
  2605. qglMultMatrixf = NULL;
  2606. qglNewList = NULL;
  2607. qglNormal3b = NULL;
  2608. qglNormal3bv = NULL;
  2609. qglNormal3d = NULL;
  2610. qglNormal3dv = NULL;
  2611. qglNormal3f = NULL;
  2612. qglNormal3fv = NULL;
  2613. qglNormal3i = NULL;
  2614. qglNormal3iv = NULL;
  2615. qglNormal3s = NULL;
  2616. qglNormal3sv = NULL;
  2617. qglNormalPointer = NULL;
  2618. qglOrtho = NULL;
  2619. qglPassThrough = NULL;
  2620. qglPixelMapfv = NULL;
  2621. qglPixelMapuiv = NULL;
  2622. qglPixelMapusv = NULL;
  2623. qglPixelStoref = NULL;
  2624. qglPixelStorei = NULL;
  2625. qglPixelTransferf = NULL;
  2626. qglPixelTransferi = NULL;
  2627. qglPixelZoom = NULL;
  2628. qglPointSize = NULL;
  2629. qglPolygonMode = NULL;
  2630. qglPolygonOffset = NULL;
  2631. qglPolygonStipple = NULL;
  2632. qglPopAttrib = NULL;
  2633. qglPopClientAttrib = NULL;
  2634. qglPopMatrix = NULL;
  2635. qglPopName = NULL;
  2636. qglPrioritizeTextures = NULL;
  2637. qglPushAttrib = NULL;
  2638. qglPushClientAttrib = NULL;
  2639. qglPushMatrix = NULL;
  2640. qglPushName = NULL;
  2641. qglRasterPos2d = NULL;
  2642. qglRasterPos2dv = NULL;
  2643. qglRasterPos2f = NULL;
  2644. qglRasterPos2fv = NULL;
  2645. qglRasterPos2i = NULL;
  2646. qglRasterPos2iv = NULL;
  2647. qglRasterPos2s = NULL;
  2648. qglRasterPos2sv = NULL;
  2649. qglRasterPos3d = NULL;
  2650. qglRasterPos3dv = NULL;
  2651. qglRasterPos3f = NULL;
  2652. qglRasterPos3fv = NULL;
  2653. qglRasterPos3i = NULL;
  2654. qglRasterPos3iv = NULL;
  2655. qglRasterPos3s = NULL;
  2656. qglRasterPos3sv = NULL;
  2657. qglRasterPos4d = NULL;
  2658. qglRasterPos4dv = NULL;
  2659. qglRasterPos4f = NULL;
  2660. qglRasterPos4fv = NULL;
  2661. qglRasterPos4i = NULL;
  2662. qglRasterPos4iv = NULL;
  2663. qglRasterPos4s = NULL;
  2664. qglRasterPos4sv = NULL;
  2665. qglReadBuffer = NULL;
  2666. qglReadPixels = NULL;
  2667. qglRectd = NULL;
  2668. qglRectdv = NULL;
  2669. qglRectf = NULL;
  2670. qglRectfv = NULL;
  2671. qglRecti = NULL;
  2672. qglRectiv = NULL;
  2673. qglRects = NULL;
  2674. qglRectsv = NULL;
  2675. qglRenderMode = NULL;
  2676. qglRotated = NULL;
  2677. qglRotatef = NULL;
  2678. qglScaled = NULL;
  2679. qglScalef = NULL;
  2680. qglScissor = NULL;
  2681. qglSelectBuffer = NULL;
  2682. qglShadeModel = NULL;
  2683. qglStencilFunc = NULL;
  2684. qglStencilMask = NULL;
  2685. qglStencilOp = NULL;
  2686. qglTexCoord1d = NULL;
  2687. qglTexCoord1dv = NULL;
  2688. qglTexCoord1f = NULL;
  2689. qglTexCoord1fv = NULL;
  2690. qglTexCoord1i = NULL;
  2691. qglTexCoord1iv = NULL;
  2692. qglTexCoord1s = NULL;
  2693. qglTexCoord1sv = NULL;
  2694. qglTexCoord2d = NULL;
  2695. qglTexCoord2dv = NULL;
  2696. qglTexCoord2f = NULL;
  2697. qglTexCoord2fv = NULL;
  2698. qglTexCoord2i = NULL;
  2699. qglTexCoord2iv = NULL;
  2700. qglTexCoord2s = NULL;
  2701. qglTexCoord2sv = NULL;
  2702. qglTexCoord3d = NULL;
  2703. qglTexCoord3dv = NULL;
  2704. qglTexCoord3f = NULL;
  2705. qglTexCoord3fv = NULL;
  2706. qglTexCoord3i = NULL;
  2707. qglTexCoord3iv = NULL;
  2708. qglTexCoord3s = NULL;
  2709. qglTexCoord3sv = NULL;
  2710. qglTexCoord4d = NULL;
  2711. qglTexCoord4dv = NULL;
  2712. qglTexCoord4f = NULL;
  2713. qglTexCoord4fv = NULL;
  2714. qglTexCoord4i = NULL;
  2715. qglTexCoord4iv = NULL;
  2716. qglTexCoord4s = NULL;
  2717. qglTexCoord4sv = NULL;
  2718. qglTexCoordPointer = NULL;
  2719. qglTexEnvf = NULL;
  2720. qglTexEnvfv = NULL;
  2721. qglTexEnvi = NULL;
  2722. qglTexEnviv = NULL;
  2723. qglTexGend = NULL;
  2724. qglTexGendv = NULL;
  2725. qglTexGenf = NULL;
  2726. qglTexGenfv = NULL;
  2727. qglTexGeni = NULL;
  2728. qglTexGeniv = NULL;
  2729. qglTexImage1D = NULL;
  2730. qglTexImage2D = NULL;
  2731. qglTexParameterf = NULL;
  2732. qglTexParameterfv = NULL;
  2733. qglTexParameteri = NULL;
  2734. qglTexParameteriv = NULL;
  2735. qglTexSubImage1D = NULL;
  2736. qglTexSubImage2D = NULL;
  2737. qglTranslated = NULL;
  2738. qglTranslatef = NULL;
  2739. qglVertex2d = NULL;
  2740. qglVertex2dv = NULL;
  2741. qglVertex2f = NULL;
  2742. qglVertex2fv = NULL;
  2743. qglVertex2i = NULL;
  2744. qglVertex2iv = NULL;
  2745. qglVertex2s = NULL;
  2746. qglVertex2sv = NULL;
  2747. qglVertex3d = NULL;
  2748. qglVertex3dv = NULL;
  2749. qglVertex3f = NULL;
  2750. qglVertex3fv = NULL;
  2751. qglVertex3i = NULL;
  2752. qglVertex3iv = NULL;
  2753. qglVertex3s = NULL;
  2754. qglVertex3sv = NULL;
  2755. qglVertex4d = NULL;
  2756. qglVertex4dv = NULL;
  2757. qglVertex4f = NULL;
  2758. qglVertex4fv = NULL;
  2759. qglVertex4i = NULL;
  2760. qglVertex4iv = NULL;
  2761. qglVertex4s = NULL;
  2762. qglVertex4sv = NULL;
  2763. qglVertexPointer = NULL;
  2764. qglViewport = NULL;
  2765. qwglCopyContext = NULL;
  2766. qwglCreateContext = NULL;
  2767. qwglCreateLayerContext = NULL;
  2768. qwglDeleteContext = NULL;
  2769. qwglDescribeLayerPlane = NULL;
  2770. qwglGetCurrentContext = NULL;
  2771. qwglGetCurrentDC = NULL;
  2772. qwglGetLayerPaletteEntries = NULL;
  2773. qwglGetProcAddress = NULL;
  2774. qwglMakeCurrent = NULL;
  2775. qwglRealizeLayerPalette = NULL;
  2776. qwglSetLayerPaletteEntries = NULL;
  2777. qwglShareLists = NULL;
  2778. qwglSwapLayerBuffers = NULL;
  2779. qwglUseFontBitmaps = NULL;
  2780. qwglUseFontOutlines = NULL;
  2781. qwglChoosePixelFormat = NULL;
  2782. qwglDescribePixelFormat = NULL;
  2783. qwglGetPixelFormat = NULL;
  2784. qwglSetPixelFormat = NULL;
  2785. qwglSwapBuffers = NULL;
  2786. qwglSwapIntervalEXT = NULL;
  2787. qwglGetDeviceGammaRampEXT = NULL;
  2788. qwglSetDeviceGammaRampEXT = NULL;
  2789. }
  2790. # pragma warning (disable : 4113 4133 4047 )
  2791. # define GPA( a ) GetProcAddress( glw_state.hinstOpenGL, a )
  2792. /*
  2793. ** QGL_Init
  2794. **
  2795. ** This is responsible for binding our qgl function pointers to
  2796. ** the appropriate GL stuff. In Windows this means doing a
  2797. ** LoadLibrary and a bunch of calls to GetProcAddress. On other
  2798. ** operating systems we need to do the right thing, whatever that
  2799. ** might be.
  2800. **
  2801. */
  2802. qboolean QGL_Init( const char *dllname )
  2803. {
  2804. // update 3Dfx gamma irrespective of underlying DLL
  2805. {
  2806. char envbuffer[1024];
  2807. float g;
  2808. g = 2.00 * ( 0.8 - ( vid_gamma->value - 0.5 ) ) + 1.0F;
  2809. Com_sprintf( envbuffer, sizeof(envbuffer), "SSTV2_GAMMA=%f", g );
  2810. putenv( envbuffer );
  2811. Com_sprintf( envbuffer, sizeof(envbuffer), "SST_GAMMA=%f", g );
  2812. putenv( envbuffer );
  2813. }
  2814. if ( ( glw_state.hinstOpenGL = LoadLibrary( dllname ) ) == 0 )
  2815. {
  2816. char *buf = NULL;
  2817. FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM, NULL, GetLastError(), MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (LPTSTR) &buf, 0, NULL);
  2818. ri.Con_Printf( PRINT_ALL, "%s\n", buf );
  2819. return false;
  2820. }
  2821. gl_config.allow_cds = true;
  2822. qglAccum = dllAccum = GPA( "glAccum" );
  2823. qglAlphaFunc = dllAlphaFunc = GPA( "glAlphaFunc" );
  2824. qglAreTexturesResident = dllAreTexturesResident = GPA( "glAreTexturesResident" );
  2825. qglArrayElement = dllArrayElement = GPA( "glArrayElement" );
  2826. qglBegin = dllBegin = GPA( "glBegin" );
  2827. qglBindTexture = dllBindTexture = GPA( "glBindTexture" );
  2828. qglBitmap = dllBitmap = GPA( "glBitmap" );
  2829. qglBlendFunc = dllBlendFunc = GPA( "glBlendFunc" );
  2830. qglCallList = dllCallList = GPA( "glCallList" );
  2831. qglCallLists = dllCallLists = GPA( "glCallLists" );
  2832. qglClear = dllClear = GPA( "glClear" );
  2833. qglClearAccum = dllClearAccum = GPA( "glClearAccum" );
  2834. qglClearColor = dllClearColor = GPA( "glClearColor" );
  2835. qglClearDepth = dllClearDepth = GPA( "glClearDepth" );
  2836. qglClearIndex = dllClearIndex = GPA( "glClearIndex" );
  2837. qglClearStencil = dllClearStencil = GPA( "glClearStencil" );
  2838. qglClipPlane = dllClipPlane = GPA( "glClipPlane" );
  2839. qglColor3b = dllColor3b = GPA( "glColor3b" );
  2840. qglColor3bv = dllColor3bv = GPA( "glColor3bv" );
  2841. qglColor3d = dllColor3d = GPA( "glColor3d" );
  2842. qglColor3dv = dllColor3dv = GPA( "glColor3dv" );
  2843. qglColor3f = dllColor3f = GPA( "glColor3f" );
  2844. qglColor3fv = dllColor3fv = GPA( "glColor3fv" );
  2845. qglColor3i = dllColor3i = GPA( "glColor3i" );
  2846. qglColor3iv = dllColor3iv = GPA( "glColor3iv" );
  2847. qglColor3s = dllColor3s = GPA( "glColor3s" );
  2848. qglColor3sv = dllColor3sv = GPA( "glColor3sv" );
  2849. qglColor3ub = dllColor3ub = GPA( "glColor3ub" );
  2850. qglColor3ubv = dllColor3ubv = GPA( "glColor3ubv" );
  2851. qglColor3ui = dllColor3ui = GPA( "glColor3ui" );
  2852. qglColor3uiv = dllColor3uiv = GPA( "glColor3uiv" );
  2853. qglColor3us = dllColor3us = GPA( "glColor3us" );
  2854. qglColor3usv = dllColor3usv = GPA( "glColor3usv" );
  2855. qglColor4b = dllColor4b = GPA( "glColor4b" );
  2856. qglColor4bv = dllColor4bv = GPA( "glColor4bv" );
  2857. qglColor4d = dllColor4d = GPA( "glColor4d" );
  2858. qglColor4dv = dllColor4dv = GPA( "glColor4dv" );
  2859. qglColor4f = dllColor4f = GPA( "glColor4f" );
  2860. qglColor4fv = dllColor4fv = GPA( "glColor4fv" );
  2861. qglColor4i = dllColor4i = GPA( "glColor4i" );
  2862. qglColor4iv = dllColor4iv = GPA( "glColor4iv" );
  2863. qglColor4s = dllColor4s = GPA( "glColor4s" );
  2864. qglColor4sv = dllColor4sv = GPA( "glColor4sv" );
  2865. qglColor4ub = dllColor4ub = GPA( "glColor4ub" );
  2866. qglColor4ubv = dllColor4ubv = GPA( "glColor4ubv" );
  2867. qglColor4ui = dllColor4ui = GPA( "glColor4ui" );
  2868. qglColor4uiv = dllColor4uiv = GPA( "glColor4uiv" );
  2869. qglColor4us = dllColor4us = GPA( "glColor4us" );
  2870. qglColor4usv = dllColor4usv = GPA( "glColor4usv" );
  2871. qglColorMask = dllColorMask = GPA( "glColorMask" );
  2872. qglColorMaterial = dllColorMaterial = GPA( "glColorMaterial" );
  2873. qglColorPointer = dllColorPointer = GPA( "glColorPointer" );
  2874. qglCopyPixels = dllCopyPixels = GPA( "glCopyPixels" );
  2875. qglCopyTexImage1D = dllCopyTexImage1D = GPA( "glCopyTexImage1D" );
  2876. qglCopyTexImage2D = dllCopyTexImage2D = GPA( "glCopyTexImage2D" );
  2877. qglCopyTexSubImage1D = dllCopyTexSubImage1D = GPA( "glCopyTexSubImage1D" );
  2878. qglCopyTexSubImage2D = dllCopyTexSubImage2D = GPA( "glCopyTexSubImage2D" );
  2879. qglCullFace = dllCullFace = GPA( "glCullFace" );
  2880. qglDeleteLists = dllDeleteLists = GPA( "glDeleteLists" );
  2881. qglDeleteTextures = dllDeleteTextures = GPA( "glDeleteTextures" );
  2882. qglDepthFunc = dllDepthFunc = GPA( "glDepthFunc" );
  2883. qglDepthMask = dllDepthMask = GPA( "glDepthMask" );
  2884. qglDepthRange = dllDepthRange = GPA( "glDepthRange" );
  2885. qglDisable = dllDisable = GPA( "glDisable" );
  2886. qglDisableClientState = dllDisableClientState = GPA( "glDisableClientState" );
  2887. qglDrawArrays = dllDrawArrays = GPA( "glDrawArrays" );
  2888. qglDrawBuffer = dllDrawBuffer = GPA( "glDrawBuffer" );
  2889. qglDrawElements = dllDrawElements = GPA( "glDrawElements" );
  2890. qglDrawPixels = dllDrawPixels = GPA( "glDrawPixels" );
  2891. qglEdgeFlag = dllEdgeFlag = GPA( "glEdgeFlag" );
  2892. qglEdgeFlagPointer = dllEdgeFlagPointer = GPA( "glEdgeFlagPointer" );
  2893. qglEdgeFlagv = dllEdgeFlagv = GPA( "glEdgeFlagv" );
  2894. qglEnable = dllEnable = GPA( "glEnable" );
  2895. qglEnableClientState = dllEnableClientState = GPA( "glEnableClientState" );
  2896. qglEnd = dllEnd = GPA( "glEnd" );
  2897. qglEndList = dllEndList = GPA( "glEndList" );
  2898. qglEvalCoord1d = dllEvalCoord1d = GPA( "glEvalCoord1d" );
  2899. qglEvalCoord1dv = dllEvalCoord1dv = GPA( "glEvalCoord1dv" );
  2900. qglEvalCoord1f = dllEvalCoord1f = GPA( "glEvalCoord1f" );
  2901. qglEvalCoord1fv = dllEvalCoord1fv = GPA( "glEvalCoord1fv" );
  2902. qglEvalCoord2d = dllEvalCoord2d = GPA( "glEvalCoord2d" );
  2903. qglEvalCoord2dv = dllEvalCoord2dv = GPA( "glEvalCoord2dv" );
  2904. qglEvalCoord2f = dllEvalCoord2f = GPA( "glEvalCoord2f" );
  2905. qglEvalCoord2fv = dllEvalCoord2fv = GPA( "glEvalCoord2fv" );
  2906. qglEvalMesh1 = dllEvalMesh1 = GPA( "glEvalMesh1" );
  2907. qglEvalMesh2 = dllEvalMesh2 = GPA( "glEvalMesh2" );
  2908. qglEvalPoint1 = dllEvalPoint1 = GPA( "glEvalPoint1" );
  2909. qglEvalPoint2 = dllEvalPoint2 = GPA( "glEvalPoint2" );
  2910. qglFeedbackBuffer = dllFeedbackBuffer = GPA( "glFeedbackBuffer" );
  2911. qglFinish = dllFinish = GPA( "glFinish" );
  2912. qglFlush = dllFlush = GPA( "glFlush" );
  2913. qglFogf = dllFogf = GPA( "glFogf" );
  2914. qglFogfv = dllFogfv = GPA( "glFogfv" );
  2915. qglFogi = dllFogi = GPA( "glFogi" );
  2916. qglFogiv = dllFogiv = GPA( "glFogiv" );
  2917. qglFrontFace = dllFrontFace = GPA( "glFrontFace" );
  2918. qglFrustum = dllFrustum = GPA( "glFrustum" );
  2919. qglGenLists = dllGenLists = GPA( "glGenLists" );
  2920. qglGenTextures = dllGenTextures = GPA( "glGenTextures" );
  2921. qglGetBooleanv = dllGetBooleanv = GPA( "glGetBooleanv" );
  2922. qglGetClipPlane = dllGetClipPlane = GPA( "glGetClipPlane" );
  2923. qglGetDoublev = dllGetDoublev = GPA( "glGetDoublev" );
  2924. qglGetError = dllGetError = GPA( "glGetError" );
  2925. qglGetFloatv = dllGetFloatv = GPA( "glGetFloatv" );
  2926. qglGetIntegerv = dllGetIntegerv = GPA( "glGetIntegerv" );
  2927. qglGetLightfv = dllGetLightfv = GPA( "glGetLightfv" );
  2928. qglGetLightiv = dllGetLightiv = GPA( "glGetLightiv" );
  2929. qglGetMapdv = dllGetMapdv = GPA( "glGetMapdv" );
  2930. qglGetMapfv = dllGetMapfv = GPA( "glGetMapfv" );
  2931. qglGetMapiv = dllGetMapiv = GPA( "glGetMapiv" );
  2932. qglGetMaterialfv = dllGetMaterialfv = GPA( "glGetMaterialfv" );
  2933. qglGetMaterialiv = dllGetMaterialiv = GPA( "glGetMaterialiv" );
  2934. qglGetPixelMapfv = dllGetPixelMapfv = GPA( "glGetPixelMapfv" );
  2935. qglGetPixelMapuiv = dllGetPixelMapuiv = GPA( "glGetPixelMapuiv" );
  2936. qglGetPixelMapusv = dllGetPixelMapusv = GPA( "glGetPixelMapusv" );
  2937. qglGetPointerv = dllGetPointerv = GPA( "glGetPointerv" );
  2938. qglGetPolygonStipple = dllGetPolygonStipple = GPA( "glGetPolygonStipple" );
  2939. qglGetString = dllGetString = GPA( "glGetString" );
  2940. qglGetTexEnvfv = dllGetTexEnvfv = GPA( "glGetTexEnvfv" );
  2941. qglGetTexEnviv = dllGetTexEnviv = GPA( "glGetTexEnviv" );
  2942. qglGetTexGendv = dllGetTexGendv = GPA( "glGetTexGendv" );
  2943. qglGetTexGenfv = dllGetTexGenfv = GPA( "glGetTexGenfv" );
  2944. qglGetTexGeniv = dllGetTexGeniv = GPA( "glGetTexGeniv" );
  2945. qglGetTexImage = dllGetTexImage = GPA( "glGetTexImage" );
  2946. qglGetTexLevelParameterfv = dllGetTexLevelParameterfv = GPA( "glGetLevelParameterfv" );
  2947. qglGetTexLevelParameteriv = dllGetTexLevelParameteriv = GPA( "glGetLevelParameteriv" );
  2948. qglGetTexParameterfv = dllGetTexParameterfv = GPA( "glGetTexParameterfv" );
  2949. qglGetTexParameteriv = dllGetTexParameteriv = GPA( "glGetTexParameteriv" );
  2950. qglHint = dllHint = GPA( "glHint" );
  2951. qglIndexMask = dllIndexMask = GPA( "glIndexMask" );
  2952. qglIndexPointer = dllIndexPointer = GPA( "glIndexPointer" );
  2953. qglIndexd = dllIndexd = GPA( "glIndexd" );
  2954. qglIndexdv = dllIndexdv = GPA( "glIndexdv" );
  2955. qglIndexf = dllIndexf = GPA( "glIndexf" );
  2956. qglIndexfv = dllIndexfv = GPA( "glIndexfv" );
  2957. qglIndexi = dllIndexi = GPA( "glIndexi" );
  2958. qglIndexiv = dllIndexiv = GPA( "glIndexiv" );
  2959. qglIndexs = dllIndexs = GPA( "glIndexs" );
  2960. qglIndexsv = dllIndexsv = GPA( "glIndexsv" );
  2961. qglIndexub = dllIndexub = GPA( "glIndexub" );
  2962. qglIndexubv = dllIndexubv = GPA( "glIndexubv" );
  2963. qglInitNames = dllInitNames = GPA( "glInitNames" );
  2964. qglInterleavedArrays = dllInterleavedArrays = GPA( "glInterleavedArrays" );
  2965. qglIsEnabled = dllIsEnabled = GPA( "glIsEnabled" );
  2966. qglIsList = dllIsList = GPA( "glIsList" );
  2967. qglIsTexture = dllIsTexture = GPA( "glIsTexture" );
  2968. qglLightModelf = dllLightModelf = GPA( "glLightModelf" );
  2969. qglLightModelfv = dllLightModelfv = GPA( "glLightModelfv" );
  2970. qglLightModeli = dllLightModeli = GPA( "glLightModeli" );
  2971. qglLightModeliv = dllLightModeliv = GPA( "glLightModeliv" );
  2972. qglLightf = dllLightf = GPA( "glLightf" );
  2973. qglLightfv = dllLightfv = GPA( "glLightfv" );
  2974. qglLighti = dllLighti = GPA( "glLighti" );
  2975. qglLightiv = dllLightiv = GPA( "glLightiv" );
  2976. qglLineStipple = dllLineStipple = GPA( "glLineStipple" );
  2977. qglLineWidth = dllLineWidth = GPA( "glLineWidth" );
  2978. qglListBase = dllListBase = GPA( "glListBase" );
  2979. qglLoadIdentity = dllLoadIdentity = GPA( "glLoadIdentity" );
  2980. qglLoadMatrixd = dllLoadMatrixd = GPA( "glLoadMatrixd" );
  2981. qglLoadMatrixf = dllLoadMatrixf = GPA( "glLoadMatrixf" );
  2982. qglLoadName = dllLoadName = GPA( "glLoadName" );
  2983. qglLogicOp = dllLogicOp = GPA( "glLogicOp" );
  2984. qglMap1d = dllMap1d = GPA( "glMap1d" );
  2985. qglMap1f = dllMap1f = GPA( "glMap1f" );
  2986. qglMap2d = dllMap2d = GPA( "glMap2d" );
  2987. qglMap2f = dllMap2f = GPA( "glMap2f" );
  2988. qglMapGrid1d = dllMapGrid1d = GPA( "glMapGrid1d" );
  2989. qglMapGrid1f = dllMapGrid1f = GPA( "glMapGrid1f" );
  2990. qglMapGrid2d = dllMapGrid2d = GPA( "glMapGrid2d" );
  2991. qglMapGrid2f = dllMapGrid2f = GPA( "glMapGrid2f" );
  2992. qglMaterialf = dllMaterialf = GPA( "glMaterialf" );
  2993. qglMaterialfv = dllMaterialfv = GPA( "glMaterialfv" );
  2994. qglMateriali = dllMateriali = GPA( "glMateriali" );
  2995. qglMaterialiv = dllMaterialiv = GPA( "glMaterialiv" );
  2996. qglMatrixMode = dllMatrixMode = GPA( "glMatrixMode" );
  2997. qglMultMatrixd = dllMultMatrixd = GPA( "glMultMatrixd" );
  2998. qglMultMatrixf = dllMultMatrixf = GPA( "glMultMatrixf" );
  2999. qglNewList = dllNewList = GPA( "glNewList" );
  3000. qglNormal3b = dllNormal3b = GPA( "glNormal3b" );
  3001. qglNormal3bv = dllNormal3bv = GPA( "glNormal3bv" );
  3002. qglNormal3d = dllNormal3d = GPA( "glNormal3d" );
  3003. qglNormal3dv = dllNormal3dv = GPA( "glNormal3dv" );
  3004. qglNormal3f = dllNormal3f = GPA( "glNormal3f" );
  3005. qglNormal3fv = dllNormal3fv = GPA( "glNormal3fv" );
  3006. qglNormal3i = dllNormal3i = GPA( "glNormal3i" );
  3007. qglNormal3iv = dllNormal3iv = GPA( "glNormal3iv" );
  3008. qglNormal3s = dllNormal3s = GPA( "glNormal3s" );
  3009. qglNormal3sv = dllNormal3sv = GPA( "glNormal3sv" );
  3010. qglNormalPointer = dllNormalPointer = GPA( "glNormalPointer" );
  3011. qglOrtho = dllOrtho = GPA( "glOrtho" );
  3012. qglPassThrough = dllPassThrough = GPA( "glPassThrough" );
  3013. qglPixelMapfv = dllPixelMapfv = GPA( "glPixelMapfv" );
  3014. qglPixelMapuiv = dllPixelMapuiv = GPA( "glPixelMapuiv" );
  3015. qglPixelMapusv = dllPixelMapusv = GPA( "glPixelMapusv" );
  3016. qglPixelStoref = dllPixelStoref = GPA( "glPixelStoref" );
  3017. qglPixelStorei = dllPixelStorei = GPA( "glPixelStorei" );
  3018. qglPixelTransferf = dllPixelTransferf = GPA( "glPixelTransferf" );
  3019. qglPixelTransferi = dllPixelTransferi = GPA( "glPixelTransferi" );
  3020. qglPixelZoom = dllPixelZoom = GPA( "glPixelZoom" );
  3021. qglPointSize = dllPointSize = GPA( "glPointSize" );
  3022. qglPolygonMode = dllPolygonMode = GPA( "glPolygonMode" );
  3023. qglPolygonOffset = dllPolygonOffset = GPA( "glPolygonOffset" );
  3024. qglPolygonStipple = dllPolygonStipple = GPA( "glPolygonStipple" );
  3025. qglPopAttrib = dllPopAttrib = GPA( "glPopAttrib" );
  3026. qglPopClientAttrib = dllPopClientAttrib = GPA( "glPopClientAttrib" );
  3027. qglPopMatrix = dllPopMatrix = GPA( "glPopMatrix" );
  3028. qglPopName = dllPopName = GPA( "glPopName" );
  3029. qglPrioritizeTextures = dllPrioritizeTextures = GPA( "glPrioritizeTextures" );
  3030. qglPushAttrib = dllPushAttrib = GPA( "glPushAttrib" );
  3031. qglPushClientAttrib = dllPushClientAttrib = GPA( "glPushClientAttrib" );
  3032. qglPushMatrix = dllPushMatrix = GPA( "glPushMatrix" );
  3033. qglPushName = dllPushName = GPA( "glPushName" );
  3034. qglRasterPos2d = dllRasterPos2d = GPA( "glRasterPos2d" );
  3035. qglRasterPos2dv = dllRasterPos2dv = GPA( "glRasterPos2dv" );
  3036. qglRasterPos2f = dllRasterPos2f = GPA( "glRasterPos2f" );
  3037. qglRasterPos2fv = dllRasterPos2fv = GPA( "glRasterPos2fv" );
  3038. qglRasterPos2i = dllRasterPos2i = GPA( "glRasterPos2i" );
  3039. qglRasterPos2iv = dllRasterPos2iv = GPA( "glRasterPos2iv" );
  3040. qglRasterPos2s = dllRasterPos2s = GPA( "glRasterPos2s" );
  3041. qglRasterPos2sv = dllRasterPos2sv = GPA( "glRasterPos2sv" );
  3042. qglRasterPos3d = dllRasterPos3d = GPA( "glRasterPos3d" );
  3043. qglRasterPos3dv = dllRasterPos3dv = GPA( "glRasterPos3dv" );
  3044. qglRasterPos3f = dllRasterPos3f = GPA( "glRasterPos3f" );
  3045. qglRasterPos3fv = dllRasterPos3fv = GPA( "glRasterPos3fv" );
  3046. qglRasterPos3i = dllRasterPos3i = GPA( "glRasterPos3i" );
  3047. qglRasterPos3iv = dllRasterPos3iv = GPA( "glRasterPos3iv" );
  3048. qglRasterPos3s = dllRasterPos3s = GPA( "glRasterPos3s" );
  3049. qglRasterPos3sv = dllRasterPos3sv = GPA( "glRasterPos3sv" );
  3050. qglRasterPos4d = dllRasterPos4d = GPA( "glRasterPos4d" );
  3051. qglRasterPos4dv = dllRasterPos4dv = GPA( "glRasterPos4dv" );
  3052. qglRasterPos4f = dllRasterPos4f = GPA( "glRasterPos4f" );
  3053. qglRasterPos4fv = dllRasterPos4fv = GPA( "glRasterPos4fv" );
  3054. qglRasterPos4i = dllRasterPos4i = GPA( "glRasterPos4i" );
  3055. qglRasterPos4iv = dllRasterPos4iv = GPA( "glRasterPos4iv" );
  3056. qglRasterPos4s = dllRasterPos4s = GPA( "glRasterPos4s" );
  3057. qglRasterPos4sv = dllRasterPos4sv = GPA( "glRasterPos4sv" );
  3058. qglReadBuffer = dllReadBuffer = GPA( "glReadBuffer" );
  3059. qglReadPixels = dllReadPixels = GPA( "glReadPixels" );
  3060. qglRectd = dllRectd = GPA( "glRectd" );
  3061. qglRectdv = dllRectdv = GPA( "glRectdv" );
  3062. qglRectf = dllRectf = GPA( "glRectf" );
  3063. qglRectfv = dllRectfv = GPA( "glRectfv" );
  3064. qglRecti = dllRecti = GPA( "glRecti" );
  3065. qglRectiv = dllRectiv = GPA( "glRectiv" );
  3066. qglRects = dllRects = GPA( "glRects" );
  3067. qglRectsv = dllRectsv = GPA( "glRectsv" );
  3068. qglRenderMode = dllRenderMode = GPA( "glRenderMode" );
  3069. qglRotated = dllRotated = GPA( "glRotated" );
  3070. qglRotatef = dllRotatef = GPA( "glRotatef" );
  3071. qglScaled = dllScaled = GPA( "glScaled" );
  3072. qglScalef = dllScalef = GPA( "glScalef" );
  3073. qglScissor = dllScissor = GPA( "glScissor" );
  3074. qglSelectBuffer = dllSelectBuffer = GPA( "glSelectBuffer" );
  3075. qglShadeModel = dllShadeModel = GPA( "glShadeModel" );
  3076. qglStencilFunc = dllStencilFunc = GPA( "glStencilFunc" );
  3077. qglStencilMask = dllStencilMask = GPA( "glStencilMask" );
  3078. qglStencilOp = dllStencilOp = GPA( "glStencilOp" );
  3079. qglTexCoord1d = dllTexCoord1d = GPA( "glTexCoord1d" );
  3080. qglTexCoord1dv = dllTexCoord1dv = GPA( "glTexCoord1dv" );
  3081. qglTexCoord1f = dllTexCoord1f = GPA( "glTexCoord1f" );
  3082. qglTexCoord1fv = dllTexCoord1fv = GPA( "glTexCoord1fv" );
  3083. qglTexCoord1i = dllTexCoord1i = GPA( "glTexCoord1i" );
  3084. qglTexCoord1iv = dllTexCoord1iv = GPA( "glTexCoord1iv" );
  3085. qglTexCoord1s = dllTexCoord1s = GPA( "glTexCoord1s" );
  3086. qglTexCoord1sv = dllTexCoord1sv = GPA( "glTexCoord1sv" );
  3087. qglTexCoord2d = dllTexCoord2d = GPA( "glTexCoord2d" );
  3088. qglTexCoord2dv = dllTexCoord2dv = GPA( "glTexCoord2dv" );
  3089. qglTexCoord2f = dllTexCoord2f = GPA( "glTexCoord2f" );
  3090. qglTexCoord2fv = dllTexCoord2fv = GPA( "glTexCoord2fv" );
  3091. qglTexCoord2i = dllTexCoord2i = GPA( "glTexCoord2i" );
  3092. qglTexCoord2iv = dllTexCoord2iv = GPA( "glTexCoord2iv" );
  3093. qglTexCoord2s = dllTexCoord2s = GPA( "glTexCoord2s" );
  3094. qglTexCoord2sv = dllTexCoord2sv = GPA( "glTexCoord2sv" );
  3095. qglTexCoord3d = dllTexCoord3d = GPA( "glTexCoord3d" );
  3096. qglTexCoord3dv = dllTexCoord3dv = GPA( "glTexCoord3dv" );
  3097. qglTexCoord3f = dllTexCoord3f = GPA( "glTexCoord3f" );
  3098. qglTexCoord3fv = dllTexCoord3fv = GPA( "glTexCoord3fv" );
  3099. qglTexCoord3i = dllTexCoord3i = GPA( "glTexCoord3i" );
  3100. qglTexCoord3iv = dllTexCoord3iv = GPA( "glTexCoord3iv" );
  3101. qglTexCoord3s = dllTexCoord3s = GPA( "glTexCoord3s" );
  3102. qglTexCoord3sv = dllTexCoord3sv = GPA( "glTexCoord3sv" );
  3103. qglTexCoord4d = dllTexCoord4d = GPA( "glTexCoord4d" );
  3104. qglTexCoord4dv = dllTexCoord4dv = GPA( "glTexCoord4dv" );
  3105. qglTexCoord4f = dllTexCoord4f = GPA( "glTexCoord4f" );
  3106. qglTexCoord4fv = dllTexCoord4fv = GPA( "glTexCoord4fv" );
  3107. qglTexCoord4i = dllTexCoord4i = GPA( "glTexCoord4i" );
  3108. qglTexCoord4iv = dllTexCoord4iv = GPA( "glTexCoord4iv" );
  3109. qglTexCoord4s = dllTexCoord4s = GPA( "glTexCoord4s" );
  3110. qglTexCoord4sv = dllTexCoord4sv = GPA( "glTexCoord4sv" );
  3111. qglTexCoordPointer = dllTexCoordPointer = GPA( "glTexCoordPointer" );
  3112. qglTexEnvf = dllTexEnvf = GPA( "glTexEnvf" );
  3113. qglTexEnvfv = dllTexEnvfv = GPA( "glTexEnvfv" );
  3114. qglTexEnvi = dllTexEnvi = GPA( "glTexEnvi" );
  3115. qglTexEnviv = dllTexEnviv = GPA( "glTexEnviv" );
  3116. qglTexGend = dllTexGend = GPA( "glTexGend" );
  3117. qglTexGendv = dllTexGendv = GPA( "glTexGendv" );
  3118. qglTexGenf = dllTexGenf = GPA( "glTexGenf" );
  3119. qglTexGenfv = dllTexGenfv = GPA( "glTexGenfv" );
  3120. qglTexGeni = dllTexGeni = GPA( "glTexGeni" );
  3121. qglTexGeniv = dllTexGeniv = GPA( "glTexGeniv" );
  3122. qglTexImage1D = dllTexImage1D = GPA( "glTexImage1D" );
  3123. qglTexImage2D = dllTexImage2D = GPA( "glTexImage2D" );
  3124. qglTexParameterf = dllTexParameterf = GPA( "glTexParameterf" );
  3125. qglTexParameterfv = dllTexParameterfv = GPA( "glTexParameterfv" );
  3126. qglTexParameteri = dllTexParameteri = GPA( "glTexParameteri" );
  3127. qglTexParameteriv = dllTexParameteriv = GPA( "glTexParameteriv" );
  3128. qglTexSubImage1D = dllTexSubImage1D = GPA( "glTexSubImage1D" );
  3129. qglTexSubImage2D = dllTexSubImage2D = GPA( "glTexSubImage2D" );
  3130. qglTranslated = dllTranslated = GPA( "glTranslated" );
  3131. qglTranslatef = dllTranslatef = GPA( "glTranslatef" );
  3132. qglVertex2d = dllVertex2d = GPA( "glVertex2d" );
  3133. qglVertex2dv = dllVertex2dv = GPA( "glVertex2dv" );
  3134. qglVertex2f = dllVertex2f = GPA( "glVertex2f" );
  3135. qglVertex2fv = dllVertex2fv = GPA( "glVertex2fv" );
  3136. qglVertex2i = dllVertex2i = GPA( "glVertex2i" );
  3137. qglVertex2iv = dllVertex2iv = GPA( "glVertex2iv" );
  3138. qglVertex2s = dllVertex2s = GPA( "glVertex2s" );
  3139. qglVertex2sv = dllVertex2sv = GPA( "glVertex2sv" );
  3140. qglVertex3d = dllVertex3d = GPA( "glVertex3d" );
  3141. qglVertex3dv = dllVertex3dv = GPA( "glVertex3dv" );
  3142. qglVertex3f = dllVertex3f = GPA( "glVertex3f" );
  3143. qglVertex3fv = dllVertex3fv = GPA( "glVertex3fv" );
  3144. qglVertex3i = dllVertex3i = GPA( "glVertex3i" );
  3145. qglVertex3iv = dllVertex3iv = GPA( "glVertex3iv" );
  3146. qglVertex3s = dllVertex3s = GPA( "glVertex3s" );
  3147. qglVertex3sv = dllVertex3sv = GPA( "glVertex3sv" );
  3148. qglVertex4d = dllVertex4d = GPA( "glVertex4d" );
  3149. qglVertex4dv = dllVertex4dv = GPA( "glVertex4dv" );
  3150. qglVertex4f = dllVertex4f = GPA( "glVertex4f" );
  3151. qglVertex4fv = dllVertex4fv = GPA( "glVertex4fv" );
  3152. qglVertex4i = dllVertex4i = GPA( "glVertex4i" );
  3153. qglVertex4iv = dllVertex4iv = GPA( "glVertex4iv" );
  3154. qglVertex4s = dllVertex4s = GPA( "glVertex4s" );
  3155. qglVertex4sv = dllVertex4sv = GPA( "glVertex4sv" );
  3156. qglVertexPointer = dllVertexPointer = GPA( "glVertexPointer" );
  3157. qglViewport = dllViewport = GPA( "glViewport" );
  3158. qwglCopyContext = GPA( "wglCopyContext" );
  3159. qwglCreateContext = GPA( "wglCreateContext" );
  3160. qwglCreateLayerContext = GPA( "wglCreateLayerContext" );
  3161. qwglDeleteContext = GPA( "wglDeleteContext" );
  3162. qwglDescribeLayerPlane = GPA( "wglDescribeLayerPlane" );
  3163. qwglGetCurrentContext = GPA( "wglGetCurrentContext" );
  3164. qwglGetCurrentDC = GPA( "wglGetCurrentDC" );
  3165. qwglGetLayerPaletteEntries = GPA( "wglGetLayerPaletteEntries" );
  3166. qwglGetProcAddress = GPA( "wglGetProcAddress" );
  3167. qwglMakeCurrent = GPA( "wglMakeCurrent" );
  3168. qwglRealizeLayerPalette = GPA( "wglRealizeLayerPalette" );
  3169. qwglSetLayerPaletteEntries = GPA( "wglSetLayerPaletteEntries" );
  3170. qwglShareLists = GPA( "wglShareLists" );
  3171. qwglSwapLayerBuffers = GPA( "wglSwapLayerBuffers" );
  3172. qwglUseFontBitmaps = GPA( "wglUseFontBitmapsA" );
  3173. qwglUseFontOutlines = GPA( "wglUseFontOutlinesA" );
  3174. qwglChoosePixelFormat = GPA( "wglChoosePixelFormat" );
  3175. qwglDescribePixelFormat = GPA( "wglDescribePixelFormat" );
  3176. qwglGetPixelFormat = GPA( "wglGetPixelFormat" );
  3177. qwglSetPixelFormat = GPA( "wglSetPixelFormat" );
  3178. qwglSwapBuffers = GPA( "wglSwapBuffers" );
  3179. qwglSwapIntervalEXT = 0;
  3180. qglPointParameterfEXT = 0;
  3181. qglPointParameterfvEXT = 0;
  3182. qglColorTableEXT = 0;
  3183. qglSelectTextureSGIS = 0;
  3184. qglMTexCoord2fSGIS = 0;
  3185. return true;
  3186. }
  3187. void GLimp_EnableLogging( qboolean enable )
  3188. {
  3189. if ( enable )
  3190. {
  3191. if ( !glw_state.log_fp )
  3192. {
  3193. struct tm *newtime;
  3194. time_t aclock;
  3195. char buffer[1024];
  3196. time( &aclock );
  3197. newtime = localtime( &aclock );
  3198. asctime( newtime );
  3199. Com_sprintf( buffer, sizeof(buffer), "%s/gl.log", ri.FS_Gamedir() );
  3200. glw_state.log_fp = fopen( buffer, "wt" );
  3201. fprintf( glw_state.log_fp, "%s\n", asctime( newtime ) );
  3202. }
  3203. qglAccum = logAccum;
  3204. qglAlphaFunc = logAlphaFunc;
  3205. qglAreTexturesResident = logAreTexturesResident;
  3206. qglArrayElement = logArrayElement;
  3207. qglBegin = logBegin;
  3208. qglBindTexture = logBindTexture;
  3209. qglBitmap = logBitmap;
  3210. qglBlendFunc = logBlendFunc;
  3211. qglCallList = logCallList;
  3212. qglCallLists = logCallLists;
  3213. qglClear = logClear;
  3214. qglClearAccum = logClearAccum;
  3215. qglClearColor = logClearColor;
  3216. qglClearDepth = logClearDepth;
  3217. qglClearIndex = logClearIndex;
  3218. qglClearStencil = logClearStencil;
  3219. qglClipPlane = logClipPlane;
  3220. qglColor3b = logColor3b;
  3221. qglColor3bv = logColor3bv;
  3222. qglColor3d = logColor3d;
  3223. qglColor3dv = logColor3dv;
  3224. qglColor3f = logColor3f;
  3225. qglColor3fv = logColor3fv;
  3226. qglColor3i = logColor3i;
  3227. qglColor3iv = logColor3iv;
  3228. qglColor3s = logColor3s;
  3229. qglColor3sv = logColor3sv;
  3230. qglColor3ub = logColor3ub;
  3231. qglColor3ubv = logColor3ubv;
  3232. qglColor3ui = logColor3ui;
  3233. qglColor3uiv = logColor3uiv;
  3234. qglColor3us = logColor3us;
  3235. qglColor3usv = logColor3usv;
  3236. qglColor4b = logColor4b;
  3237. qglColor4bv = logColor4bv;
  3238. qglColor4d = logColor4d;
  3239. qglColor4dv = logColor4dv;
  3240. qglColor4f = logColor4f;
  3241. qglColor4fv = logColor4fv;
  3242. qglColor4i = logColor4i;
  3243. qglColor4iv = logColor4iv;
  3244. qglColor4s = logColor4s;
  3245. qglColor4sv = logColor4sv;
  3246. qglColor4ub = logColor4ub;
  3247. qglColor4ubv = logColor4ubv;
  3248. qglColor4ui = logColor4ui;
  3249. qglColor4uiv = logColor4uiv;
  3250. qglColor4us = logColor4us;
  3251. qglColor4usv = logColor4usv;
  3252. qglColorMask = logColorMask;
  3253. qglColorMaterial = logColorMaterial;
  3254. qglColorPointer = logColorPointer;
  3255. qglCopyPixels = logCopyPixels;
  3256. qglCopyTexImage1D = logCopyTexImage1D;
  3257. qglCopyTexImage2D = logCopyTexImage2D;
  3258. qglCopyTexSubImage1D = logCopyTexSubImage1D;
  3259. qglCopyTexSubImage2D = logCopyTexSubImage2D;
  3260. qglCullFace = logCullFace;
  3261. qglDeleteLists = logDeleteLists ;
  3262. qglDeleteTextures = logDeleteTextures ;
  3263. qglDepthFunc = logDepthFunc ;
  3264. qglDepthMask = logDepthMask ;
  3265. qglDepthRange = logDepthRange ;
  3266. qglDisable = logDisable ;
  3267. qglDisableClientState = logDisableClientState ;
  3268. qglDrawArrays = logDrawArrays ;
  3269. qglDrawBuffer = logDrawBuffer ;
  3270. qglDrawElements = logDrawElements ;
  3271. qglDrawPixels = logDrawPixels ;
  3272. qglEdgeFlag = logEdgeFlag ;
  3273. qglEdgeFlagPointer = logEdgeFlagPointer ;
  3274. qglEdgeFlagv = logEdgeFlagv ;
  3275. qglEnable = logEnable ;
  3276. qglEnableClientState = logEnableClientState ;
  3277. qglEnd = logEnd ;
  3278. qglEndList = logEndList ;
  3279. qglEvalCoord1d = logEvalCoord1d ;
  3280. qglEvalCoord1dv = logEvalCoord1dv ;
  3281. qglEvalCoord1f = logEvalCoord1f ;
  3282. qglEvalCoord1fv = logEvalCoord1fv ;
  3283. qglEvalCoord2d = logEvalCoord2d ;
  3284. qglEvalCoord2dv = logEvalCoord2dv ;
  3285. qglEvalCoord2f = logEvalCoord2f ;
  3286. qglEvalCoord2fv = logEvalCoord2fv ;
  3287. qglEvalMesh1 = logEvalMesh1 ;
  3288. qglEvalMesh2 = logEvalMesh2 ;
  3289. qglEvalPoint1 = logEvalPoint1 ;
  3290. qglEvalPoint2 = logEvalPoint2 ;
  3291. qglFeedbackBuffer = logFeedbackBuffer ;
  3292. qglFinish = logFinish ;
  3293. qglFlush = logFlush ;
  3294. qglFogf = logFogf ;
  3295. qglFogfv = logFogfv ;
  3296. qglFogi = logFogi ;
  3297. qglFogiv = logFogiv ;
  3298. qglFrontFace = logFrontFace ;
  3299. qglFrustum = logFrustum ;
  3300. qglGenLists = logGenLists ;
  3301. qglGenTextures = logGenTextures ;
  3302. qglGetBooleanv = logGetBooleanv ;
  3303. qglGetClipPlane = logGetClipPlane ;
  3304. qglGetDoublev = logGetDoublev ;
  3305. qglGetError = logGetError ;
  3306. qglGetFloatv = logGetFloatv ;
  3307. qglGetIntegerv = logGetIntegerv ;
  3308. qglGetLightfv = logGetLightfv ;
  3309. qglGetLightiv = logGetLightiv ;
  3310. qglGetMapdv = logGetMapdv ;
  3311. qglGetMapfv = logGetMapfv ;
  3312. qglGetMapiv = logGetMapiv ;
  3313. qglGetMaterialfv = logGetMaterialfv ;
  3314. qglGetMaterialiv = logGetMaterialiv ;
  3315. qglGetPixelMapfv = logGetPixelMapfv ;
  3316. qglGetPixelMapuiv = logGetPixelMapuiv ;
  3317. qglGetPixelMapusv = logGetPixelMapusv ;
  3318. qglGetPointerv = logGetPointerv ;
  3319. qglGetPolygonStipple = logGetPolygonStipple ;
  3320. qglGetString = logGetString ;
  3321. qglGetTexEnvfv = logGetTexEnvfv ;
  3322. qglGetTexEnviv = logGetTexEnviv ;
  3323. qglGetTexGendv = logGetTexGendv ;
  3324. qglGetTexGenfv = logGetTexGenfv ;
  3325. qglGetTexGeniv = logGetTexGeniv ;
  3326. qglGetTexImage = logGetTexImage ;
  3327. qglGetTexLevelParameterfv = logGetTexLevelParameterfv ;
  3328. qglGetTexLevelParameteriv = logGetTexLevelParameteriv ;
  3329. qglGetTexParameterfv = logGetTexParameterfv ;
  3330. qglGetTexParameteriv = logGetTexParameteriv ;
  3331. qglHint = logHint ;
  3332. qglIndexMask = logIndexMask ;
  3333. qglIndexPointer = logIndexPointer ;
  3334. qglIndexd = logIndexd ;
  3335. qglIndexdv = logIndexdv ;
  3336. qglIndexf = logIndexf ;
  3337. qglIndexfv = logIndexfv ;
  3338. qglIndexi = logIndexi ;
  3339. qglIndexiv = logIndexiv ;
  3340. qglIndexs = logIndexs ;
  3341. qglIndexsv = logIndexsv ;
  3342. qglIndexub = logIndexub ;
  3343. qglIndexubv = logIndexubv ;
  3344. qglInitNames = logInitNames ;
  3345. qglInterleavedArrays = logInterleavedArrays ;
  3346. qglIsEnabled = logIsEnabled ;
  3347. qglIsList = logIsList ;
  3348. qglIsTexture = logIsTexture ;
  3349. qglLightModelf = logLightModelf ;
  3350. qglLightModelfv = logLightModelfv ;
  3351. qglLightModeli = logLightModeli ;
  3352. qglLightModeliv = logLightModeliv ;
  3353. qglLightf = logLightf ;
  3354. qglLightfv = logLightfv ;
  3355. qglLighti = logLighti ;
  3356. qglLightiv = logLightiv ;
  3357. qglLineStipple = logLineStipple ;
  3358. qglLineWidth = logLineWidth ;
  3359. qglListBase = logListBase ;
  3360. qglLoadIdentity = logLoadIdentity ;
  3361. qglLoadMatrixd = logLoadMatrixd ;
  3362. qglLoadMatrixf = logLoadMatrixf ;
  3363. qglLoadName = logLoadName ;
  3364. qglLogicOp = logLogicOp ;
  3365. qglMap1d = logMap1d ;
  3366. qglMap1f = logMap1f ;
  3367. qglMap2d = logMap2d ;
  3368. qglMap2f = logMap2f ;
  3369. qglMapGrid1d = logMapGrid1d ;
  3370. qglMapGrid1f = logMapGrid1f ;
  3371. qglMapGrid2d = logMapGrid2d ;
  3372. qglMapGrid2f = logMapGrid2f ;
  3373. qglMaterialf = logMaterialf ;
  3374. qglMaterialfv = logMaterialfv ;
  3375. qglMateriali = logMateriali ;
  3376. qglMaterialiv = logMaterialiv ;
  3377. qglMatrixMode = logMatrixMode ;
  3378. qglMultMatrixd = logMultMatrixd ;
  3379. qglMultMatrixf = logMultMatrixf ;
  3380. qglNewList = logNewList ;
  3381. qglNormal3b = logNormal3b ;
  3382. qglNormal3bv = logNormal3bv ;
  3383. qglNormal3d = logNormal3d ;
  3384. qglNormal3dv = logNormal3dv ;
  3385. qglNormal3f = logNormal3f ;
  3386. qglNormal3fv = logNormal3fv ;
  3387. qglNormal3i = logNormal3i ;
  3388. qglNormal3iv = logNormal3iv ;
  3389. qglNormal3s = logNormal3s ;
  3390. qglNormal3sv = logNormal3sv ;
  3391. qglNormalPointer = logNormalPointer ;
  3392. qglOrtho = logOrtho ;
  3393. qglPassThrough = logPassThrough ;
  3394. qglPixelMapfv = logPixelMapfv ;
  3395. qglPixelMapuiv = logPixelMapuiv ;
  3396. qglPixelMapusv = logPixelMapusv ;
  3397. qglPixelStoref = logPixelStoref ;
  3398. qglPixelStorei = logPixelStorei ;
  3399. qglPixelTransferf = logPixelTransferf ;
  3400. qglPixelTransferi = logPixelTransferi ;
  3401. qglPixelZoom = logPixelZoom ;
  3402. qglPointSize = logPointSize ;
  3403. qglPolygonMode = logPolygonMode ;
  3404. qglPolygonOffset = logPolygonOffset ;
  3405. qglPolygonStipple = logPolygonStipple ;
  3406. qglPopAttrib = logPopAttrib ;
  3407. qglPopClientAttrib = logPopClientAttrib ;
  3408. qglPopMatrix = logPopMatrix ;
  3409. qglPopName = logPopName ;
  3410. qglPrioritizeTextures = logPrioritizeTextures ;
  3411. qglPushAttrib = logPushAttrib ;
  3412. qglPushClientAttrib = logPushClientAttrib ;
  3413. qglPushMatrix = logPushMatrix ;
  3414. qglPushName = logPushName ;
  3415. qglRasterPos2d = logRasterPos2d ;
  3416. qglRasterPos2dv = logRasterPos2dv ;
  3417. qglRasterPos2f = logRasterPos2f ;
  3418. qglRasterPos2fv = logRasterPos2fv ;
  3419. qglRasterPos2i = logRasterPos2i ;
  3420. qglRasterPos2iv = logRasterPos2iv ;
  3421. qglRasterPos2s = logRasterPos2s ;
  3422. qglRasterPos2sv = logRasterPos2sv ;
  3423. qglRasterPos3d = logRasterPos3d ;
  3424. qglRasterPos3dv = logRasterPos3dv ;
  3425. qglRasterPos3f = logRasterPos3f ;
  3426. qglRasterPos3fv = logRasterPos3fv ;
  3427. qglRasterPos3i = logRasterPos3i ;
  3428. qglRasterPos3iv = logRasterPos3iv ;
  3429. qglRasterPos3s = logRasterPos3s ;
  3430. qglRasterPos3sv = logRasterPos3sv ;
  3431. qglRasterPos4d = logRasterPos4d ;
  3432. qglRasterPos4dv = logRasterPos4dv ;
  3433. qglRasterPos4f = logRasterPos4f ;
  3434. qglRasterPos4fv = logRasterPos4fv ;
  3435. qglRasterPos4i = logRasterPos4i ;
  3436. qglRasterPos4iv = logRasterPos4iv ;
  3437. qglRasterPos4s = logRasterPos4s ;
  3438. qglRasterPos4sv = logRasterPos4sv ;
  3439. qglReadBuffer = logReadBuffer ;
  3440. qglReadPixels = logReadPixels ;
  3441. qglRectd = logRectd ;
  3442. qglRectdv = logRectdv ;
  3443. qglRectf = logRectf ;
  3444. qglRectfv = logRectfv ;
  3445. qglRecti = logRecti ;
  3446. qglRectiv = logRectiv ;
  3447. qglRects = logRects ;
  3448. qglRectsv = logRectsv ;
  3449. qglRenderMode = logRenderMode ;
  3450. qglRotated = logRotated ;
  3451. qglRotatef = logRotatef ;
  3452. qglScaled = logScaled ;
  3453. qglScalef = logScalef ;
  3454. qglScissor = logScissor ;
  3455. qglSelectBuffer = logSelectBuffer ;
  3456. qglShadeModel = logShadeModel ;
  3457. qglStencilFunc = logStencilFunc ;
  3458. qglStencilMask = logStencilMask ;
  3459. qglStencilOp = logStencilOp ;
  3460. qglTexCoord1d = logTexCoord1d ;
  3461. qglTexCoord1dv = logTexCoord1dv ;
  3462. qglTexCoord1f = logTexCoord1f ;
  3463. qglTexCoord1fv = logTexCoord1fv ;
  3464. qglTexCoord1i = logTexCoord1i ;
  3465. qglTexCoord1iv = logTexCoord1iv ;
  3466. qglTexCoord1s = logTexCoord1s ;
  3467. qglTexCoord1sv = logTexCoord1sv ;
  3468. qglTexCoord2d = logTexCoord2d ;
  3469. qglTexCoord2dv = logTexCoord2dv ;
  3470. qglTexCoord2f = logTexCoord2f ;
  3471. qglTexCoord2fv = logTexCoord2fv ;
  3472. qglTexCoord2i = logTexCoord2i ;
  3473. qglTexCoord2iv = logTexCoord2iv ;
  3474. qglTexCoord2s = logTexCoord2s ;
  3475. qglTexCoord2sv = logTexCoord2sv ;
  3476. qglTexCoord3d = logTexCoord3d ;
  3477. qglTexCoord3dv = logTexCoord3dv ;
  3478. qglTexCoord3f = logTexCoord3f ;
  3479. qglTexCoord3fv = logTexCoord3fv ;
  3480. qglTexCoord3i = logTexCoord3i ;
  3481. qglTexCoord3iv = logTexCoord3iv ;
  3482. qglTexCoord3s = logTexCoord3s ;
  3483. qglTexCoord3sv = logTexCoord3sv ;
  3484. qglTexCoord4d = logTexCoord4d ;
  3485. qglTexCoord4dv = logTexCoord4dv ;
  3486. qglTexCoord4f = logTexCoord4f ;
  3487. qglTexCoord4fv = logTexCoord4fv ;
  3488. qglTexCoord4i = logTexCoord4i ;
  3489. qglTexCoord4iv = logTexCoord4iv ;
  3490. qglTexCoord4s = logTexCoord4s ;
  3491. qglTexCoord4sv = logTexCoord4sv ;
  3492. qglTexCoordPointer = logTexCoordPointer ;
  3493. qglTexEnvf = logTexEnvf ;
  3494. qglTexEnvfv = logTexEnvfv ;
  3495. qglTexEnvi = logTexEnvi ;
  3496. qglTexEnviv = logTexEnviv ;
  3497. qglTexGend = logTexGend ;
  3498. qglTexGendv = logTexGendv ;
  3499. qglTexGenf = logTexGenf ;
  3500. qglTexGenfv = logTexGenfv ;
  3501. qglTexGeni = logTexGeni ;
  3502. qglTexGeniv = logTexGeniv ;
  3503. qglTexImage1D = logTexImage1D ;
  3504. qglTexImage2D = logTexImage2D ;
  3505. qglTexParameterf = logTexParameterf ;
  3506. qglTexParameterfv = logTexParameterfv ;
  3507. qglTexParameteri = logTexParameteri ;
  3508. qglTexParameteriv = logTexParameteriv ;
  3509. qglTexSubImage1D = logTexSubImage1D ;
  3510. qglTexSubImage2D = logTexSubImage2D ;
  3511. qglTranslated = logTranslated ;
  3512. qglTranslatef = logTranslatef ;
  3513. qglVertex2d = logVertex2d ;
  3514. qglVertex2dv = logVertex2dv ;
  3515. qglVertex2f = logVertex2f ;
  3516. qglVertex2fv = logVertex2fv ;
  3517. qglVertex2i = logVertex2i ;
  3518. qglVertex2iv = logVertex2iv ;
  3519. qglVertex2s = logVertex2s ;
  3520. qglVertex2sv = logVertex2sv ;
  3521. qglVertex3d = logVertex3d ;
  3522. qglVertex3dv = logVertex3dv ;
  3523. qglVertex3f = logVertex3f ;
  3524. qglVertex3fv = logVertex3fv ;
  3525. qglVertex3i = logVertex3i ;
  3526. qglVertex3iv = logVertex3iv ;
  3527. qglVertex3s = logVertex3s ;
  3528. qglVertex3sv = logVertex3sv ;
  3529. qglVertex4d = logVertex4d ;
  3530. qglVertex4dv = logVertex4dv ;
  3531. qglVertex4f = logVertex4f ;
  3532. qglVertex4fv = logVertex4fv ;
  3533. qglVertex4i = logVertex4i ;
  3534. qglVertex4iv = logVertex4iv ;
  3535. qglVertex4s = logVertex4s ;
  3536. qglVertex4sv = logVertex4sv ;
  3537. qglVertexPointer = logVertexPointer ;
  3538. qglViewport = logViewport ;
  3539. }
  3540. else
  3541. {
  3542. qglAccum = dllAccum;
  3543. qglAlphaFunc = dllAlphaFunc;
  3544. qglAreTexturesResident = dllAreTexturesResident;
  3545. qglArrayElement = dllArrayElement;
  3546. qglBegin = dllBegin;
  3547. qglBindTexture = dllBindTexture;
  3548. qglBitmap = dllBitmap;
  3549. qglBlendFunc = dllBlendFunc;
  3550. qglCallList = dllCallList;
  3551. qglCallLists = dllCallLists;
  3552. qglClear = dllClear;
  3553. qglClearAccum = dllClearAccum;
  3554. qglClearColor = dllClearColor;
  3555. qglClearDepth = dllClearDepth;
  3556. qglClearIndex = dllClearIndex;
  3557. qglClearStencil = dllClearStencil;
  3558. qglClipPlane = dllClipPlane;
  3559. qglColor3b = dllColor3b;
  3560. qglColor3bv = dllColor3bv;
  3561. qglColor3d = dllColor3d;
  3562. qglColor3dv = dllColor3dv;
  3563. qglColor3f = dllColor3f;
  3564. qglColor3fv = dllColor3fv;
  3565. qglColor3i = dllColor3i;
  3566. qglColor3iv = dllColor3iv;
  3567. qglColor3s = dllColor3s;
  3568. qglColor3sv = dllColor3sv;
  3569. qglColor3ub = dllColor3ub;
  3570. qglColor3ubv = dllColor3ubv;
  3571. qglColor3ui = dllColor3ui;
  3572. qglColor3uiv = dllColor3uiv;
  3573. qglColor3us = dllColor3us;
  3574. qglColor3usv = dllColor3usv;
  3575. qglColor4b = dllColor4b;
  3576. qglColor4bv = dllColor4bv;
  3577. qglColor4d = dllColor4d;
  3578. qglColor4dv = dllColor4dv;
  3579. qglColor4f = dllColor4f;
  3580. qglColor4fv = dllColor4fv;
  3581. qglColor4i = dllColor4i;
  3582. qglColor4iv = dllColor4iv;
  3583. qglColor4s = dllColor4s;
  3584. qglColor4sv = dllColor4sv;
  3585. qglColor4ub = dllColor4ub;
  3586. qglColor4ubv = dllColor4ubv;
  3587. qglColor4ui = dllColor4ui;
  3588. qglColor4uiv = dllColor4uiv;
  3589. qglColor4us = dllColor4us;
  3590. qglColor4usv = dllColor4usv;
  3591. qglColorMask = dllColorMask;
  3592. qglColorMaterial = dllColorMaterial;
  3593. qglColorPointer = dllColorPointer;
  3594. qglCopyPixels = dllCopyPixels;
  3595. qglCopyTexImage1D = dllCopyTexImage1D;
  3596. qglCopyTexImage2D = dllCopyTexImage2D;
  3597. qglCopyTexSubImage1D = dllCopyTexSubImage1D;
  3598. qglCopyTexSubImage2D = dllCopyTexSubImage2D;
  3599. qglCullFace = dllCullFace;
  3600. qglDeleteLists = dllDeleteLists ;
  3601. qglDeleteTextures = dllDeleteTextures ;
  3602. qglDepthFunc = dllDepthFunc ;
  3603. qglDepthMask = dllDepthMask ;
  3604. qglDepthRange = dllDepthRange ;
  3605. qglDisable = dllDisable ;
  3606. qglDisableClientState = dllDisableClientState ;
  3607. qglDrawArrays = dllDrawArrays ;
  3608. qglDrawBuffer = dllDrawBuffer ;
  3609. qglDrawElements = dllDrawElements ;
  3610. qglDrawPixels = dllDrawPixels ;
  3611. qglEdgeFlag = dllEdgeFlag ;
  3612. qglEdgeFlagPointer = dllEdgeFlagPointer ;
  3613. qglEdgeFlagv = dllEdgeFlagv ;
  3614. qglEnable = dllEnable ;
  3615. qglEnableClientState = dllEnableClientState ;
  3616. qglEnd = dllEnd ;
  3617. qglEndList = dllEndList ;
  3618. qglEvalCoord1d = dllEvalCoord1d ;
  3619. qglEvalCoord1dv = dllEvalCoord1dv ;
  3620. qglEvalCoord1f = dllEvalCoord1f ;
  3621. qglEvalCoord1fv = dllEvalCoord1fv ;
  3622. qglEvalCoord2d = dllEvalCoord2d ;
  3623. qglEvalCoord2dv = dllEvalCoord2dv ;
  3624. qglEvalCoord2f = dllEvalCoord2f ;
  3625. qglEvalCoord2fv = dllEvalCoord2fv ;
  3626. qglEvalMesh1 = dllEvalMesh1 ;
  3627. qglEvalMesh2 = dllEvalMesh2 ;
  3628. qglEvalPoint1 = dllEvalPoint1 ;
  3629. qglEvalPoint2 = dllEvalPoint2 ;
  3630. qglFeedbackBuffer = dllFeedbackBuffer ;
  3631. qglFinish = dllFinish ;
  3632. qglFlush = dllFlush ;
  3633. qglFogf = dllFogf ;
  3634. qglFogfv = dllFogfv ;
  3635. qglFogi = dllFogi ;
  3636. qglFogiv = dllFogiv ;
  3637. qglFrontFace = dllFrontFace ;
  3638. qglFrustum = dllFrustum ;
  3639. qglGenLists = dllGenLists ;
  3640. qglGenTextures = dllGenTextures ;
  3641. qglGetBooleanv = dllGetBooleanv ;
  3642. qglGetClipPlane = dllGetClipPlane ;
  3643. qglGetDoublev = dllGetDoublev ;
  3644. qglGetError = dllGetError ;
  3645. qglGetFloatv = dllGetFloatv ;
  3646. qglGetIntegerv = dllGetIntegerv ;
  3647. qglGetLightfv = dllGetLightfv ;
  3648. qglGetLightiv = dllGetLightiv ;
  3649. qglGetMapdv = dllGetMapdv ;
  3650. qglGetMapfv = dllGetMapfv ;
  3651. qglGetMapiv = dllGetMapiv ;
  3652. qglGetMaterialfv = dllGetMaterialfv ;
  3653. qglGetMaterialiv = dllGetMaterialiv ;
  3654. qglGetPixelMapfv = dllGetPixelMapfv ;
  3655. qglGetPixelMapuiv = dllGetPixelMapuiv ;
  3656. qglGetPixelMapusv = dllGetPixelMapusv ;
  3657. qglGetPointerv = dllGetPointerv ;
  3658. qglGetPolygonStipple = dllGetPolygonStipple ;
  3659. qglGetString = dllGetString ;
  3660. qglGetTexEnvfv = dllGetTexEnvfv ;
  3661. qglGetTexEnviv = dllGetTexEnviv ;
  3662. qglGetTexGendv = dllGetTexGendv ;
  3663. qglGetTexGenfv = dllGetTexGenfv ;
  3664. qglGetTexGeniv = dllGetTexGeniv ;
  3665. qglGetTexImage = dllGetTexImage ;
  3666. qglGetTexLevelParameterfv = dllGetTexLevelParameterfv ;
  3667. qglGetTexLevelParameteriv = dllGetTexLevelParameteriv ;
  3668. qglGetTexParameterfv = dllGetTexParameterfv ;
  3669. qglGetTexParameteriv = dllGetTexParameteriv ;
  3670. qglHint = dllHint ;
  3671. qglIndexMask = dllIndexMask ;
  3672. qglIndexPointer = dllIndexPointer ;
  3673. qglIndexd = dllIndexd ;
  3674. qglIndexdv = dllIndexdv ;
  3675. qglIndexf = dllIndexf ;
  3676. qglIndexfv = dllIndexfv ;
  3677. qglIndexi = dllIndexi ;
  3678. qglIndexiv = dllIndexiv ;
  3679. qglIndexs = dllIndexs ;
  3680. qglIndexsv = dllIndexsv ;
  3681. qglIndexub = dllIndexub ;
  3682. qglIndexubv = dllIndexubv ;
  3683. qglInitNames = dllInitNames ;
  3684. qglInterleavedArrays = dllInterleavedArrays ;
  3685. qglIsEnabled = dllIsEnabled ;
  3686. qglIsList = dllIsList ;
  3687. qglIsTexture = dllIsTexture ;
  3688. qglLightModelf = dllLightModelf ;
  3689. qglLightModelfv = dllLightModelfv ;
  3690. qglLightModeli = dllLightModeli ;
  3691. qglLightModeliv = dllLightModeliv ;
  3692. qglLightf = dllLightf ;
  3693. qglLightfv = dllLightfv ;
  3694. qglLighti = dllLighti ;
  3695. qglLightiv = dllLightiv ;
  3696. qglLineStipple = dllLineStipple ;
  3697. qglLineWidth = dllLineWidth ;
  3698. qglListBase = dllListBase ;
  3699. qglLoadIdentity = dllLoadIdentity ;
  3700. qglLoadMatrixd = dllLoadMatrixd ;
  3701. qglLoadMatrixf = dllLoadMatrixf ;
  3702. qglLoadName = dllLoadName ;
  3703. qglLogicOp = dllLogicOp ;
  3704. qglMap1d = dllMap1d ;
  3705. qglMap1f = dllMap1f ;
  3706. qglMap2d = dllMap2d ;
  3707. qglMap2f = dllMap2f ;
  3708. qglMapGrid1d = dllMapGrid1d ;
  3709. qglMapGrid1f = dllMapGrid1f ;
  3710. qglMapGrid2d = dllMapGrid2d ;
  3711. qglMapGrid2f = dllMapGrid2f ;
  3712. qglMaterialf = dllMaterialf ;
  3713. qglMaterialfv = dllMaterialfv ;
  3714. qglMateriali = dllMateriali ;
  3715. qglMaterialiv = dllMaterialiv ;
  3716. qglMatrixMode = dllMatrixMode ;
  3717. qglMultMatrixd = dllMultMatrixd ;
  3718. qglMultMatrixf = dllMultMatrixf ;
  3719. qglNewList = dllNewList ;
  3720. qglNormal3b = dllNormal3b ;
  3721. qglNormal3bv = dllNormal3bv ;
  3722. qglNormal3d = dllNormal3d ;
  3723. qglNormal3dv = dllNormal3dv ;
  3724. qglNormal3f = dllNormal3f ;
  3725. qglNormal3fv = dllNormal3fv ;
  3726. qglNormal3i = dllNormal3i ;
  3727. qglNormal3iv = dllNormal3iv ;
  3728. qglNormal3s = dllNormal3s ;
  3729. qglNormal3sv = dllNormal3sv ;
  3730. qglNormalPointer = dllNormalPointer ;
  3731. qglOrtho = dllOrtho ;
  3732. qglPassThrough = dllPassThrough ;
  3733. qglPixelMapfv = dllPixelMapfv ;
  3734. qglPixelMapuiv = dllPixelMapuiv ;
  3735. qglPixelMapusv = dllPixelMapusv ;
  3736. qglPixelStoref = dllPixelStoref ;
  3737. qglPixelStorei = dllPixelStorei ;
  3738. qglPixelTransferf = dllPixelTransferf ;
  3739. qglPixelTransferi = dllPixelTransferi ;
  3740. qglPixelZoom = dllPixelZoom ;
  3741. qglPointSize = dllPointSize ;
  3742. qglPolygonMode = dllPolygonMode ;
  3743. qglPolygonOffset = dllPolygonOffset ;
  3744. qglPolygonStipple = dllPolygonStipple ;
  3745. qglPopAttrib = dllPopAttrib ;
  3746. qglPopClientAttrib = dllPopClientAttrib ;
  3747. qglPopMatrix = dllPopMatrix ;
  3748. qglPopName = dllPopName ;
  3749. qglPrioritizeTextures = dllPrioritizeTextures ;
  3750. qglPushAttrib = dllPushAttrib ;
  3751. qglPushClientAttrib = dllPushClientAttrib ;
  3752. qglPushMatrix = dllPushMatrix ;
  3753. qglPushName = dllPushName ;
  3754. qglRasterPos2d = dllRasterPos2d ;
  3755. qglRasterPos2dv = dllRasterPos2dv ;
  3756. qglRasterPos2f = dllRasterPos2f ;
  3757. qglRasterPos2fv = dllRasterPos2fv ;
  3758. qglRasterPos2i = dllRasterPos2i ;
  3759. qglRasterPos2iv = dllRasterPos2iv ;
  3760. qglRasterPos2s = dllRasterPos2s ;
  3761. qglRasterPos2sv = dllRasterPos2sv ;
  3762. qglRasterPos3d = dllRasterPos3d ;
  3763. qglRasterPos3dv = dllRasterPos3dv ;
  3764. qglRasterPos3f = dllRasterPos3f ;
  3765. qglRasterPos3fv = dllRasterPos3fv ;
  3766. qglRasterPos3i = dllRasterPos3i ;
  3767. qglRasterPos3iv = dllRasterPos3iv ;
  3768. qglRasterPos3s = dllRasterPos3s ;
  3769. qglRasterPos3sv = dllRasterPos3sv ;
  3770. qglRasterPos4d = dllRasterPos4d ;
  3771. qglRasterPos4dv = dllRasterPos4dv ;
  3772. qglRasterPos4f = dllRasterPos4f ;
  3773. qglRasterPos4fv = dllRasterPos4fv ;
  3774. qglRasterPos4i = dllRasterPos4i ;
  3775. qglRasterPos4iv = dllRasterPos4iv ;
  3776. qglRasterPos4s = dllRasterPos4s ;
  3777. qglRasterPos4sv = dllRasterPos4sv ;
  3778. qglReadBuffer = dllReadBuffer ;
  3779. qglReadPixels = dllReadPixels ;
  3780. qglRectd = dllRectd ;
  3781. qglRectdv = dllRectdv ;
  3782. qglRectf = dllRectf ;
  3783. qglRectfv = dllRectfv ;
  3784. qglRecti = dllRecti ;
  3785. qglRectiv = dllRectiv ;
  3786. qglRects = dllRects ;
  3787. qglRectsv = dllRectsv ;
  3788. qglRenderMode = dllRenderMode ;
  3789. qglRotated = dllRotated ;
  3790. qglRotatef = dllRotatef ;
  3791. qglScaled = dllScaled ;
  3792. qglScalef = dllScalef ;
  3793. qglScissor = dllScissor ;
  3794. qglSelectBuffer = dllSelectBuffer ;
  3795. qglShadeModel = dllShadeModel ;
  3796. qglStencilFunc = dllStencilFunc ;
  3797. qglStencilMask = dllStencilMask ;
  3798. qglStencilOp = dllStencilOp ;
  3799. qglTexCoord1d = dllTexCoord1d ;
  3800. qglTexCoord1dv = dllTexCoord1dv ;
  3801. qglTexCoord1f = dllTexCoord1f ;
  3802. qglTexCoord1fv = dllTexCoord1fv ;
  3803. qglTexCoord1i = dllTexCoord1i ;
  3804. qglTexCoord1iv = dllTexCoord1iv ;
  3805. qglTexCoord1s = dllTexCoord1s ;
  3806. qglTexCoord1sv = dllTexCoord1sv ;
  3807. qglTexCoord2d = dllTexCoord2d ;
  3808. qglTexCoord2dv = dllTexCoord2dv ;
  3809. qglTexCoord2f = dllTexCoord2f ;
  3810. qglTexCoord2fv = dllTexCoord2fv ;
  3811. qglTexCoord2i = dllTexCoord2i ;
  3812. qglTexCoord2iv = dllTexCoord2iv ;
  3813. qglTexCoord2s = dllTexCoord2s ;
  3814. qglTexCoord2sv = dllTexCoord2sv ;
  3815. qglTexCoord3d = dllTexCoord3d ;
  3816. qglTexCoord3dv = dllTexCoord3dv ;
  3817. qglTexCoord3f = dllTexCoord3f ;
  3818. qglTexCoord3fv = dllTexCoord3fv ;
  3819. qglTexCoord3i = dllTexCoord3i ;
  3820. qglTexCoord3iv = dllTexCoord3iv ;
  3821. qglTexCoord3s = dllTexCoord3s ;
  3822. qglTexCoord3sv = dllTexCoord3sv ;
  3823. qglTexCoord4d = dllTexCoord4d ;
  3824. qglTexCoord4dv = dllTexCoord4dv ;
  3825. qglTexCoord4f = dllTexCoord4f ;
  3826. qglTexCoord4fv = dllTexCoord4fv ;
  3827. qglTexCoord4i = dllTexCoord4i ;
  3828. qglTexCoord4iv = dllTexCoord4iv ;
  3829. qglTexCoord4s = dllTexCoord4s ;
  3830. qglTexCoord4sv = dllTexCoord4sv ;
  3831. qglTexCoordPointer = dllTexCoordPointer ;
  3832. qglTexEnvf = dllTexEnvf ;
  3833. qglTexEnvfv = dllTexEnvfv ;
  3834. qglTexEnvi = dllTexEnvi ;
  3835. qglTexEnviv = dllTexEnviv ;
  3836. qglTexGend = dllTexGend ;
  3837. qglTexGendv = dllTexGendv ;
  3838. qglTexGenf = dllTexGenf ;
  3839. qglTexGenfv = dllTexGenfv ;
  3840. qglTexGeni = dllTexGeni ;
  3841. qglTexGeniv = dllTexGeniv ;
  3842. qglTexImage1D = dllTexImage1D ;
  3843. qglTexImage2D = dllTexImage2D ;
  3844. qglTexParameterf = dllTexParameterf ;
  3845. qglTexParameterfv = dllTexParameterfv ;
  3846. qglTexParameteri = dllTexParameteri ;
  3847. qglTexParameteriv = dllTexParameteriv ;
  3848. qglTexSubImage1D = dllTexSubImage1D ;
  3849. qglTexSubImage2D = dllTexSubImage2D ;
  3850. qglTranslated = dllTranslated ;
  3851. qglTranslatef = dllTranslatef ;
  3852. qglVertex2d = dllVertex2d ;
  3853. qglVertex2dv = dllVertex2dv ;
  3854. qglVertex2f = dllVertex2f ;
  3855. qglVertex2fv = dllVertex2fv ;
  3856. qglVertex2i = dllVertex2i ;
  3857. qglVertex2iv = dllVertex2iv ;
  3858. qglVertex2s = dllVertex2s ;
  3859. qglVertex2sv = dllVertex2sv ;
  3860. qglVertex3d = dllVertex3d ;
  3861. qglVertex3dv = dllVertex3dv ;
  3862. qglVertex3f = dllVertex3f ;
  3863. qglVertex3fv = dllVertex3fv ;
  3864. qglVertex3i = dllVertex3i ;
  3865. qglVertex3iv = dllVertex3iv ;
  3866. qglVertex3s = dllVertex3s ;
  3867. qglVertex3sv = dllVertex3sv ;
  3868. qglVertex4d = dllVertex4d ;
  3869. qglVertex4dv = dllVertex4dv ;
  3870. qglVertex4f = dllVertex4f ;
  3871. qglVertex4fv = dllVertex4fv ;
  3872. qglVertex4i = dllVertex4i ;
  3873. qglVertex4iv = dllVertex4iv ;
  3874. qglVertex4s = dllVertex4s ;
  3875. qglVertex4sv = dllVertex4sv ;
  3876. qglVertexPointer = dllVertexPointer ;
  3877. qglViewport = dllViewport ;
  3878. }
  3879. }
  3880. void GLimp_LogNewFrame( void )
  3881. {
  3882. fprintf( glw_state.log_fp, "*** R_BeginFrame ***\n" );
  3883. }
  3884. #pragma warning (default : 4113 4133 4047 )