qgl_irix.c 169 KB

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