qgl_linux.c 169 KB

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