qopenglfunctions_2_1.h 123 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659
  1. /****************************************************************************
  2. **
  3. ** Copyright (C) 2013 Klaralvdalens Datakonsult AB (KDAB)
  4. ** Copyright (C) 2016 The Qt Company Ltd.
  5. ** Contact: https://www.qt.io/licensing/
  6. **
  7. ** This file is part of the QtGui module of the Qt Toolkit.
  8. **
  9. ** $QT_BEGIN_LICENSE:LGPL$
  10. ** Commercial License Usage
  11. ** Licensees holding valid commercial Qt licenses may use this file in
  12. ** accordance with the commercial license agreement provided with the
  13. ** Software or, alternatively, in accordance with the terms contained in
  14. ** a written agreement between you and The Qt Company. For licensing terms
  15. ** and conditions see https://www.qt.io/terms-conditions. For further
  16. ** information use the contact form at https://www.qt.io/contact-us.
  17. **
  18. ** GNU Lesser General Public License Usage
  19. ** Alternatively, this file may be used under the terms of the GNU Lesser
  20. ** General Public License version 3 as published by the Free Software
  21. ** Foundation and appearing in the file LICENSE.LGPL3 included in the
  22. ** packaging of this file. Please review the following information to
  23. ** ensure the GNU Lesser General Public License version 3 requirements
  24. ** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
  25. **
  26. ** GNU General Public License Usage
  27. ** Alternatively, this file may be used under the terms of the GNU
  28. ** General Public License version 2.0 or (at your option) the GNU General
  29. ** Public license version 3 or any later version approved by the KDE Free
  30. ** Qt Foundation. The licenses are as published by the Free Software
  31. ** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
  32. ** included in the packaging of this file. Please review the following
  33. ** information to ensure the GNU General Public License requirements will
  34. ** be met: https://www.gnu.org/licenses/gpl-2.0.html and
  35. ** https://www.gnu.org/licenses/gpl-3.0.html.
  36. **
  37. ** $QT_END_LICENSE$
  38. **
  39. **
  40. ** This file was generated by glgen version 0.1
  41. ** Command line was: glgen
  42. **
  43. ** glgen is Copyright (C) 2013 Klaralvdalens Datakonsult AB (KDAB)
  44. **
  45. ** This is an auto-generated file.
  46. ** Do not edit! All changes made to it will be lost.
  47. **
  48. ****************************************************************************/
  49. #ifndef QOPENGLVERSIONFUNCTIONS_2_1_H
  50. #define QOPENGLVERSIONFUNCTIONS_2_1_H
  51. #include <QtCore/qglobal.h>
  52. #if !defined(QT_NO_OPENGL) && !defined(QT_OPENGL_ES_2)
  53. #include <QtGui/QOpenGLVersionFunctions>
  54. #include <QtGui/qopenglcontext.h>
  55. QT_BEGIN_NAMESPACE
  56. class Q_GUI_EXPORT QOpenGLFunctions_2_1 : public QAbstractOpenGLFunctions
  57. {
  58. public:
  59. QOpenGLFunctions_2_1();
  60. ~QOpenGLFunctions_2_1();
  61. bool initializeOpenGLFunctions() Q_DECL_OVERRIDE;
  62. // OpenGL 1.0 core functions
  63. void glViewport(GLint x, GLint y, GLsizei width, GLsizei height);
  64. void glDepthRange(GLdouble nearVal, GLdouble farVal);
  65. GLboolean glIsEnabled(GLenum cap);
  66. void glGetTexLevelParameteriv(GLenum target, GLint level, GLenum pname, GLint *params);
  67. void glGetTexLevelParameterfv(GLenum target, GLint level, GLenum pname, GLfloat *params);
  68. void glGetTexParameteriv(GLenum target, GLenum pname, GLint *params);
  69. void glGetTexParameterfv(GLenum target, GLenum pname, GLfloat *params);
  70. void glGetTexImage(GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels);
  71. const GLubyte * glGetString(GLenum name);
  72. void glGetIntegerv(GLenum pname, GLint *params);
  73. void glGetFloatv(GLenum pname, GLfloat *params);
  74. GLenum glGetError();
  75. void glGetDoublev(GLenum pname, GLdouble *params);
  76. void glGetBooleanv(GLenum pname, GLboolean *params);
  77. void glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels);
  78. void glReadBuffer(GLenum mode);
  79. void glPixelStorei(GLenum pname, GLint param);
  80. void glPixelStoref(GLenum pname, GLfloat param);
  81. void glDepthFunc(GLenum func);
  82. void glStencilOp(GLenum fail, GLenum zfail, GLenum zpass);
  83. void glStencilFunc(GLenum func, GLint ref, GLuint mask);
  84. void glLogicOp(GLenum opcode);
  85. void glBlendFunc(GLenum sfactor, GLenum dfactor);
  86. void glFlush();
  87. void glFinish();
  88. void glEnable(GLenum cap);
  89. void glDisable(GLenum cap);
  90. void glDepthMask(GLboolean flag);
  91. void glColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
  92. void glStencilMask(GLuint mask);
  93. void glClearDepth(GLdouble depth);
  94. void glClearStencil(GLint s);
  95. void glClearColor(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
  96. void glClear(GLbitfield mask);
  97. void glDrawBuffer(GLenum mode);
  98. void glTexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
  99. void glTexImage1D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
  100. void glTexParameteriv(GLenum target, GLenum pname, const GLint *params);
  101. void glTexParameteri(GLenum target, GLenum pname, GLint param);
  102. void glTexParameterfv(GLenum target, GLenum pname, const GLfloat *params);
  103. void glTexParameterf(GLenum target, GLenum pname, GLfloat param);
  104. void glScissor(GLint x, GLint y, GLsizei width, GLsizei height);
  105. void glPolygonMode(GLenum face, GLenum mode);
  106. void glPointSize(GLfloat size);
  107. void glLineWidth(GLfloat width);
  108. void glHint(GLenum target, GLenum mode);
  109. void glFrontFace(GLenum mode);
  110. void glCullFace(GLenum mode);
  111. // OpenGL 1.1 core functions
  112. void glIndexubv(const GLubyte *c);
  113. void glIndexub(GLubyte c);
  114. GLboolean glIsTexture(GLuint texture);
  115. void glGenTextures(GLsizei n, GLuint *textures);
  116. void glDeleteTextures(GLsizei n, const GLuint *textures);
  117. void glBindTexture(GLenum target, GLuint texture);
  118. void glTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
  119. void glTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels);
  120. void glCopyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
  121. void glCopyTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
  122. void glCopyTexImage2D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
  123. void glCopyTexImage1D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border);
  124. void glPolygonOffset(GLfloat factor, GLfloat units);
  125. void glGetPointerv(GLenum pname, GLvoid* *params);
  126. void glDrawElements(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices);
  127. void glDrawArrays(GLenum mode, GLint first, GLsizei count);
  128. // OpenGL 1.2 core functions
  129. void glCopyTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
  130. void glTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels);
  131. void glTexImage3D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
  132. void glDrawRangeElements(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices);
  133. void glBlendEquation(GLenum mode);
  134. void glBlendColor(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
  135. // OpenGL 1.3 core functions
  136. void glGetCompressedTexImage(GLenum target, GLint level, GLvoid *img);
  137. void glCompressedTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data);
  138. void glCompressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data);
  139. void glCompressedTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *data);
  140. void glCompressedTexImage1D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data);
  141. void glCompressedTexImage2D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data);
  142. void glCompressedTexImage3D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data);
  143. void glSampleCoverage(GLfloat value, GLboolean invert);
  144. void glActiveTexture(GLenum texture);
  145. // OpenGL 1.4 core functions
  146. void glPointParameteriv(GLenum pname, const GLint *params);
  147. void glPointParameteri(GLenum pname, GLint param);
  148. void glPointParameterfv(GLenum pname, const GLfloat *params);
  149. void glPointParameterf(GLenum pname, GLfloat param);
  150. void glMultiDrawElements(GLenum mode, const GLsizei *count, GLenum type, const GLvoid* const *indices, GLsizei drawcount);
  151. void glMultiDrawArrays(GLenum mode, const GLint *first, const GLsizei *count, GLsizei drawcount);
  152. void glBlendFuncSeparate(GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
  153. // OpenGL 1.5 core functions
  154. void glGetBufferPointerv(GLenum target, GLenum pname, GLvoid* *params);
  155. void glGetBufferParameteriv(GLenum target, GLenum pname, GLint *params);
  156. GLboolean glUnmapBuffer(GLenum target);
  157. GLvoid* glMapBuffer(GLenum target, GLenum access);
  158. void glGetBufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, GLvoid *data);
  159. void glBufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid *data);
  160. void glBufferData(GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage);
  161. GLboolean glIsBuffer(GLuint buffer);
  162. void glGenBuffers(GLsizei n, GLuint *buffers);
  163. void glDeleteBuffers(GLsizei n, const GLuint *buffers);
  164. void glBindBuffer(GLenum target, GLuint buffer);
  165. void glGetQueryObjectuiv(GLuint id, GLenum pname, GLuint *params);
  166. void glGetQueryObjectiv(GLuint id, GLenum pname, GLint *params);
  167. void glGetQueryiv(GLenum target, GLenum pname, GLint *params);
  168. void glEndQuery(GLenum target);
  169. void glBeginQuery(GLenum target, GLuint id);
  170. GLboolean glIsQuery(GLuint id);
  171. void glDeleteQueries(GLsizei n, const GLuint *ids);
  172. void glGenQueries(GLsizei n, GLuint *ids);
  173. // OpenGL 2.0 core functions
  174. void glVertexAttribPointer(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer);
  175. void glValidateProgram(GLuint program);
  176. void glUniformMatrix4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  177. void glUniformMatrix3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  178. void glUniformMatrix2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  179. void glUniform4iv(GLint location, GLsizei count, const GLint *value);
  180. void glUniform3iv(GLint location, GLsizei count, const GLint *value);
  181. void glUniform2iv(GLint location, GLsizei count, const GLint *value);
  182. void glUniform1iv(GLint location, GLsizei count, const GLint *value);
  183. void glUniform4fv(GLint location, GLsizei count, const GLfloat *value);
  184. void glUniform3fv(GLint location, GLsizei count, const GLfloat *value);
  185. void glUniform2fv(GLint location, GLsizei count, const GLfloat *value);
  186. void glUniform1fv(GLint location, GLsizei count, const GLfloat *value);
  187. void glUniform4i(GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
  188. void glUniform3i(GLint location, GLint v0, GLint v1, GLint v2);
  189. void glUniform2i(GLint location, GLint v0, GLint v1);
  190. void glUniform1i(GLint location, GLint v0);
  191. void glUniform4f(GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
  192. void glUniform3f(GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
  193. void glUniform2f(GLint location, GLfloat v0, GLfloat v1);
  194. void glUniform1f(GLint location, GLfloat v0);
  195. void glUseProgram(GLuint program);
  196. void glShaderSource(GLuint shader, GLsizei count, const GLchar* const *string, const GLint *length);
  197. void glLinkProgram(GLuint program);
  198. GLboolean glIsShader(GLuint shader);
  199. GLboolean glIsProgram(GLuint program);
  200. void glGetVertexAttribPointerv(GLuint index, GLenum pname, GLvoid* *pointer);
  201. void glGetVertexAttribiv(GLuint index, GLenum pname, GLint *params);
  202. void glGetVertexAttribfv(GLuint index, GLenum pname, GLfloat *params);
  203. void glGetVertexAttribdv(GLuint index, GLenum pname, GLdouble *params);
  204. void glGetUniformiv(GLuint program, GLint location, GLint *params);
  205. void glGetUniformfv(GLuint program, GLint location, GLfloat *params);
  206. GLint glGetUniformLocation(GLuint program, const GLchar *name);
  207. void glGetShaderSource(GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source);
  208. void glGetShaderInfoLog(GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
  209. void glGetShaderiv(GLuint shader, GLenum pname, GLint *params);
  210. void glGetProgramInfoLog(GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
  211. void glGetProgramiv(GLuint program, GLenum pname, GLint *params);
  212. GLint glGetAttribLocation(GLuint program, const GLchar *name);
  213. void glGetAttachedShaders(GLuint program, GLsizei maxCount, GLsizei *count, GLuint *obj);
  214. void glGetActiveUniform(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
  215. void glGetActiveAttrib(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
  216. void glEnableVertexAttribArray(GLuint index);
  217. void glDisableVertexAttribArray(GLuint index);
  218. void glDetachShader(GLuint program, GLuint shader);
  219. void glDeleteShader(GLuint shader);
  220. void glDeleteProgram(GLuint program);
  221. GLuint glCreateShader(GLenum type);
  222. GLuint glCreateProgram();
  223. void glCompileShader(GLuint shader);
  224. void glBindAttribLocation(GLuint program, GLuint index, const GLchar *name);
  225. void glAttachShader(GLuint program, GLuint shader);
  226. void glStencilMaskSeparate(GLenum face, GLuint mask);
  227. void glStencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask);
  228. void glStencilOpSeparate(GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
  229. void glDrawBuffers(GLsizei n, const GLenum *bufs);
  230. void glBlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha);
  231. // OpenGL 2.1 core functions
  232. void glUniformMatrix4x3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  233. void glUniformMatrix3x4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  234. void glUniformMatrix4x2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  235. void glUniformMatrix2x4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  236. void glUniformMatrix3x2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  237. void glUniformMatrix2x3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
  238. // OpenGL 1.0 deprecated functions
  239. void glTranslatef(GLfloat x, GLfloat y, GLfloat z);
  240. void glTranslated(GLdouble x, GLdouble y, GLdouble z);
  241. void glScalef(GLfloat x, GLfloat y, GLfloat z);
  242. void glScaled(GLdouble x, GLdouble y, GLdouble z);
  243. void glRotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
  244. void glRotated(GLdouble angle, GLdouble x, GLdouble y, GLdouble z);
  245. void glPushMatrix();
  246. void glPopMatrix();
  247. void glOrtho(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
  248. void glMultMatrixd(const GLdouble *m);
  249. void glMultMatrixf(const GLfloat *m);
  250. void glMatrixMode(GLenum mode);
  251. void glLoadMatrixd(const GLdouble *m);
  252. void glLoadMatrixf(const GLfloat *m);
  253. void glLoadIdentity();
  254. void glFrustum(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
  255. GLboolean glIsList(GLuint list);
  256. void glGetTexGeniv(GLenum coord, GLenum pname, GLint *params);
  257. void glGetTexGenfv(GLenum coord, GLenum pname, GLfloat *params);
  258. void glGetTexGendv(GLenum coord, GLenum pname, GLdouble *params);
  259. void glGetTexEnviv(GLenum target, GLenum pname, GLint *params);
  260. void glGetTexEnvfv(GLenum target, GLenum pname, GLfloat *params);
  261. void glGetPolygonStipple(GLubyte *mask);
  262. void glGetPixelMapusv(GLenum map, GLushort *values);
  263. void glGetPixelMapuiv(GLenum map, GLuint *values);
  264. void glGetPixelMapfv(GLenum map, GLfloat *values);
  265. void glGetMaterialiv(GLenum face, GLenum pname, GLint *params);
  266. void glGetMaterialfv(GLenum face, GLenum pname, GLfloat *params);
  267. void glGetMapiv(GLenum target, GLenum query, GLint *v);
  268. void glGetMapfv(GLenum target, GLenum query, GLfloat *v);
  269. void glGetMapdv(GLenum target, GLenum query, GLdouble *v);
  270. void glGetLightiv(GLenum light, GLenum pname, GLint *params);
  271. void glGetLightfv(GLenum light, GLenum pname, GLfloat *params);
  272. void glGetClipPlane(GLenum plane, GLdouble *equation);
  273. void glDrawPixels(GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
  274. void glCopyPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum type);
  275. void glPixelMapusv(GLenum map, GLint mapsize, const GLushort *values);
  276. void glPixelMapuiv(GLenum map, GLint mapsize, const GLuint *values);
  277. void glPixelMapfv(GLenum map, GLint mapsize, const GLfloat *values);
  278. void glPixelTransferi(GLenum pname, GLint param);
  279. void glPixelTransferf(GLenum pname, GLfloat param);
  280. void glPixelZoom(GLfloat xfactor, GLfloat yfactor);
  281. void glAlphaFunc(GLenum func, GLfloat ref);
  282. void glEvalPoint2(GLint i, GLint j);
  283. void glEvalMesh2(GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2);
  284. void glEvalPoint1(GLint i);
  285. void glEvalMesh1(GLenum mode, GLint i1, GLint i2);
  286. void glEvalCoord2fv(const GLfloat *u);
  287. void glEvalCoord2f(GLfloat u, GLfloat v);
  288. void glEvalCoord2dv(const GLdouble *u);
  289. void glEvalCoord2d(GLdouble u, GLdouble v);
  290. void glEvalCoord1fv(const GLfloat *u);
  291. void glEvalCoord1f(GLfloat u);
  292. void glEvalCoord1dv(const GLdouble *u);
  293. void glEvalCoord1d(GLdouble u);
  294. void glMapGrid2f(GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2);
  295. void glMapGrid2d(GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2);
  296. void glMapGrid1f(GLint un, GLfloat u1, GLfloat u2);
  297. void glMapGrid1d(GLint un, GLdouble u1, GLdouble u2);
  298. void glMap2f(GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points);
  299. void glMap2d(GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points);
  300. void glMap1f(GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points);
  301. void glMap1d(GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points);
  302. void glPushAttrib(GLbitfield mask);
  303. void glPopAttrib();
  304. void glAccum(GLenum op, GLfloat value);
  305. void glIndexMask(GLuint mask);
  306. void glClearIndex(GLfloat c);
  307. void glClearAccum(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
  308. void glPushName(GLuint name);
  309. void glPopName();
  310. void glPassThrough(GLfloat token);
  311. void glLoadName(GLuint name);
  312. void glInitNames();
  313. GLint glRenderMode(GLenum mode);
  314. void glSelectBuffer(GLsizei size, GLuint *buffer);
  315. void glFeedbackBuffer(GLsizei size, GLenum type, GLfloat *buffer);
  316. void glTexGeniv(GLenum coord, GLenum pname, const GLint *params);
  317. void glTexGeni(GLenum coord, GLenum pname, GLint param);
  318. void glTexGenfv(GLenum coord, GLenum pname, const GLfloat *params);
  319. void glTexGenf(GLenum coord, GLenum pname, GLfloat param);
  320. void glTexGendv(GLenum coord, GLenum pname, const GLdouble *params);
  321. void glTexGend(GLenum coord, GLenum pname, GLdouble param);
  322. void glTexEnviv(GLenum target, GLenum pname, const GLint *params);
  323. void glTexEnvi(GLenum target, GLenum pname, GLint param);
  324. void glTexEnvfv(GLenum target, GLenum pname, const GLfloat *params);
  325. void glTexEnvf(GLenum target, GLenum pname, GLfloat param);
  326. void glShadeModel(GLenum mode);
  327. void glPolygonStipple(const GLubyte *mask);
  328. void glMaterialiv(GLenum face, GLenum pname, const GLint *params);
  329. void glMateriali(GLenum face, GLenum pname, GLint param);
  330. void glMaterialfv(GLenum face, GLenum pname, const GLfloat *params);
  331. void glMaterialf(GLenum face, GLenum pname, GLfloat param);
  332. void glLineStipple(GLint factor, GLushort pattern);
  333. void glLightModeliv(GLenum pname, const GLint *params);
  334. void glLightModeli(GLenum pname, GLint param);
  335. void glLightModelfv(GLenum pname, const GLfloat *params);
  336. void glLightModelf(GLenum pname, GLfloat param);
  337. void glLightiv(GLenum light, GLenum pname, const GLint *params);
  338. void glLighti(GLenum light, GLenum pname, GLint param);
  339. void glLightfv(GLenum light, GLenum pname, const GLfloat *params);
  340. void glLightf(GLenum light, GLenum pname, GLfloat param);
  341. void glFogiv(GLenum pname, const GLint *params);
  342. void glFogi(GLenum pname, GLint param);
  343. void glFogfv(GLenum pname, const GLfloat *params);
  344. void glFogf(GLenum pname, GLfloat param);
  345. void glColorMaterial(GLenum face, GLenum mode);
  346. void glClipPlane(GLenum plane, const GLdouble *equation);
  347. void glVertex4sv(const GLshort *v);
  348. void glVertex4s(GLshort x, GLshort y, GLshort z, GLshort w);
  349. void glVertex4iv(const GLint *v);
  350. void glVertex4i(GLint x, GLint y, GLint z, GLint w);
  351. void glVertex4fv(const GLfloat *v);
  352. void glVertex4f(GLfloat x, GLfloat y, GLfloat z, GLfloat w);
  353. void glVertex4dv(const GLdouble *v);
  354. void glVertex4d(GLdouble x, GLdouble y, GLdouble z, GLdouble w);
  355. void glVertex3sv(const GLshort *v);
  356. void glVertex3s(GLshort x, GLshort y, GLshort z);
  357. void glVertex3iv(const GLint *v);
  358. void glVertex3i(GLint x, GLint y, GLint z);
  359. void glVertex3fv(const GLfloat *v);
  360. void glVertex3f(GLfloat x, GLfloat y, GLfloat z);
  361. void glVertex3dv(const GLdouble *v);
  362. void glVertex3d(GLdouble x, GLdouble y, GLdouble z);
  363. void glVertex2sv(const GLshort *v);
  364. void glVertex2s(GLshort x, GLshort y);
  365. void glVertex2iv(const GLint *v);
  366. void glVertex2i(GLint x, GLint y);
  367. void glVertex2fv(const GLfloat *v);
  368. void glVertex2f(GLfloat x, GLfloat y);
  369. void glVertex2dv(const GLdouble *v);
  370. void glVertex2d(GLdouble x, GLdouble y);
  371. void glTexCoord4sv(const GLshort *v);
  372. void glTexCoord4s(GLshort s, GLshort t, GLshort r, GLshort q);
  373. void glTexCoord4iv(const GLint *v);
  374. void glTexCoord4i(GLint s, GLint t, GLint r, GLint q);
  375. void glTexCoord4fv(const GLfloat *v);
  376. void glTexCoord4f(GLfloat s, GLfloat t, GLfloat r, GLfloat q);
  377. void glTexCoord4dv(const GLdouble *v);
  378. void glTexCoord4d(GLdouble s, GLdouble t, GLdouble r, GLdouble q);
  379. void glTexCoord3sv(const GLshort *v);
  380. void glTexCoord3s(GLshort s, GLshort t, GLshort r);
  381. void glTexCoord3iv(const GLint *v);
  382. void glTexCoord3i(GLint s, GLint t, GLint r);
  383. void glTexCoord3fv(const GLfloat *v);
  384. void glTexCoord3f(GLfloat s, GLfloat t, GLfloat r);
  385. void glTexCoord3dv(const GLdouble *v);
  386. void glTexCoord3d(GLdouble s, GLdouble t, GLdouble r);
  387. void glTexCoord2sv(const GLshort *v);
  388. void glTexCoord2s(GLshort s, GLshort t);
  389. void glTexCoord2iv(const GLint *v);
  390. void glTexCoord2i(GLint s, GLint t);
  391. void glTexCoord2fv(const GLfloat *v);
  392. void glTexCoord2f(GLfloat s, GLfloat t);
  393. void glTexCoord2dv(const GLdouble *v);
  394. void glTexCoord2d(GLdouble s, GLdouble t);
  395. void glTexCoord1sv(const GLshort *v);
  396. void glTexCoord1s(GLshort s);
  397. void glTexCoord1iv(const GLint *v);
  398. void glTexCoord1i(GLint s);
  399. void glTexCoord1fv(const GLfloat *v);
  400. void glTexCoord1f(GLfloat s);
  401. void glTexCoord1dv(const GLdouble *v);
  402. void glTexCoord1d(GLdouble s);
  403. void glRectsv(const GLshort *v1, const GLshort *v2);
  404. void glRects(GLshort x1, GLshort y1, GLshort x2, GLshort y2);
  405. void glRectiv(const GLint *v1, const GLint *v2);
  406. void glRecti(GLint x1, GLint y1, GLint x2, GLint y2);
  407. void glRectfv(const GLfloat *v1, const GLfloat *v2);
  408. void glRectf(GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2);
  409. void glRectdv(const GLdouble *v1, const GLdouble *v2);
  410. void glRectd(GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2);
  411. void glRasterPos4sv(const GLshort *v);
  412. void glRasterPos4s(GLshort x, GLshort y, GLshort z, GLshort w);
  413. void glRasterPos4iv(const GLint *v);
  414. void glRasterPos4i(GLint x, GLint y, GLint z, GLint w);
  415. void glRasterPos4fv(const GLfloat *v);
  416. void glRasterPos4f(GLfloat x, GLfloat y, GLfloat z, GLfloat w);
  417. void glRasterPos4dv(const GLdouble *v);
  418. void glRasterPos4d(GLdouble x, GLdouble y, GLdouble z, GLdouble w);
  419. void glRasterPos3sv(const GLshort *v);
  420. void glRasterPos3s(GLshort x, GLshort y, GLshort z);
  421. void glRasterPos3iv(const GLint *v);
  422. void glRasterPos3i(GLint x, GLint y, GLint z);
  423. void glRasterPos3fv(const GLfloat *v);
  424. void glRasterPos3f(GLfloat x, GLfloat y, GLfloat z);
  425. void glRasterPos3dv(const GLdouble *v);
  426. void glRasterPos3d(GLdouble x, GLdouble y, GLdouble z);
  427. void glRasterPos2sv(const GLshort *v);
  428. void glRasterPos2s(GLshort x, GLshort y);
  429. void glRasterPos2iv(const GLint *v);
  430. void glRasterPos2i(GLint x, GLint y);
  431. void glRasterPos2fv(const GLfloat *v);
  432. void glRasterPos2f(GLfloat x, GLfloat y);
  433. void glRasterPos2dv(const GLdouble *v);
  434. void glRasterPos2d(GLdouble x, GLdouble y);
  435. void glNormal3sv(const GLshort *v);
  436. void glNormal3s(GLshort nx, GLshort ny, GLshort nz);
  437. void glNormal3iv(const GLint *v);
  438. void glNormal3i(GLint nx, GLint ny, GLint nz);
  439. void glNormal3fv(const GLfloat *v);
  440. void glNormal3f(GLfloat nx, GLfloat ny, GLfloat nz);
  441. void glNormal3dv(const GLdouble *v);
  442. void glNormal3d(GLdouble nx, GLdouble ny, GLdouble nz);
  443. void glNormal3bv(const GLbyte *v);
  444. void glNormal3b(GLbyte nx, GLbyte ny, GLbyte nz);
  445. void glIndexsv(const GLshort *c);
  446. void glIndexs(GLshort c);
  447. void glIndexiv(const GLint *c);
  448. void glIndexi(GLint c);
  449. void glIndexfv(const GLfloat *c);
  450. void glIndexf(GLfloat c);
  451. void glIndexdv(const GLdouble *c);
  452. void glIndexd(GLdouble c);
  453. void glEnd();
  454. void glEdgeFlagv(const GLboolean *flag);
  455. void glEdgeFlag(GLboolean flag);
  456. void glColor4usv(const GLushort *v);
  457. void glColor4us(GLushort red, GLushort green, GLushort blue, GLushort alpha);
  458. void glColor4uiv(const GLuint *v);
  459. void glColor4ui(GLuint red, GLuint green, GLuint blue, GLuint alpha);
  460. void glColor4ubv(const GLubyte *v);
  461. void glColor4ub(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha);
  462. void glColor4sv(const GLshort *v);
  463. void glColor4s(GLshort red, GLshort green, GLshort blue, GLshort alpha);
  464. void glColor4iv(const GLint *v);
  465. void glColor4i(GLint red, GLint green, GLint blue, GLint alpha);
  466. void glColor4fv(const GLfloat *v);
  467. void glColor4f(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
  468. void glColor4dv(const GLdouble *v);
  469. void glColor4d(GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha);
  470. void glColor4bv(const GLbyte *v);
  471. void glColor4b(GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha);
  472. void glColor3usv(const GLushort *v);
  473. void glColor3us(GLushort red, GLushort green, GLushort blue);
  474. void glColor3uiv(const GLuint *v);
  475. void glColor3ui(GLuint red, GLuint green, GLuint blue);
  476. void glColor3ubv(const GLubyte *v);
  477. void glColor3ub(GLubyte red, GLubyte green, GLubyte blue);
  478. void glColor3sv(const GLshort *v);
  479. void glColor3s(GLshort red, GLshort green, GLshort blue);
  480. void glColor3iv(const GLint *v);
  481. void glColor3i(GLint red, GLint green, GLint blue);
  482. void glColor3fv(const GLfloat *v);
  483. void glColor3f(GLfloat red, GLfloat green, GLfloat blue);
  484. void glColor3dv(const GLdouble *v);
  485. void glColor3d(GLdouble red, GLdouble green, GLdouble blue);
  486. void glColor3bv(const GLbyte *v);
  487. void glColor3b(GLbyte red, GLbyte green, GLbyte blue);
  488. void glBitmap(GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte *bitmap);
  489. void glBegin(GLenum mode);
  490. void glListBase(GLuint base);
  491. GLuint glGenLists(GLsizei range);
  492. void glDeleteLists(GLuint list, GLsizei range);
  493. void glCallLists(GLsizei n, GLenum type, const GLvoid *lists);
  494. void glCallList(GLuint list);
  495. void glEndList();
  496. void glNewList(GLuint list, GLenum mode);
  497. // OpenGL 1.1 deprecated functions
  498. void glPushClientAttrib(GLbitfield mask);
  499. void glPopClientAttrib();
  500. void glPrioritizeTextures(GLsizei n, const GLuint *textures, const GLfloat *priorities);
  501. GLboolean glAreTexturesResident(GLsizei n, const GLuint *textures, GLboolean *residences);
  502. void glVertexPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
  503. void glTexCoordPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
  504. void glNormalPointer(GLenum type, GLsizei stride, const GLvoid *pointer);
  505. void glInterleavedArrays(GLenum format, GLsizei stride, const GLvoid *pointer);
  506. void glIndexPointer(GLenum type, GLsizei stride, const GLvoid *pointer);
  507. void glEnableClientState(GLenum array);
  508. void glEdgeFlagPointer(GLsizei stride, const GLvoid *pointer);
  509. void glDisableClientState(GLenum array);
  510. void glColorPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
  511. void glArrayElement(GLint i);
  512. // OpenGL 1.2 deprecated functions
  513. void glResetMinmax(GLenum target);
  514. void glResetHistogram(GLenum target);
  515. void glMinmax(GLenum target, GLenum internalformat, GLboolean sink);
  516. void glHistogram(GLenum target, GLsizei width, GLenum internalformat, GLboolean sink);
  517. void glGetMinmaxParameteriv(GLenum target, GLenum pname, GLint *params);
  518. void glGetMinmaxParameterfv(GLenum target, GLenum pname, GLfloat *params);
  519. void glGetMinmax(GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values);
  520. void glGetHistogramParameteriv(GLenum target, GLenum pname, GLint *params);
  521. void glGetHistogramParameterfv(GLenum target, GLenum pname, GLfloat *params);
  522. void glGetHistogram(GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values);
  523. void glSeparableFilter2D(GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *row, const GLvoid *column);
  524. void glGetSeparableFilter(GLenum target, GLenum format, GLenum type, GLvoid *row, GLvoid *column, GLvoid *span);
  525. void glGetConvolutionParameteriv(GLenum target, GLenum pname, GLint *params);
  526. void glGetConvolutionParameterfv(GLenum target, GLenum pname, GLfloat *params);
  527. void glGetConvolutionFilter(GLenum target, GLenum format, GLenum type, GLvoid *image);
  528. void glCopyConvolutionFilter2D(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height);
  529. void glCopyConvolutionFilter1D(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
  530. void glConvolutionParameteriv(GLenum target, GLenum pname, const GLint *params);
  531. void glConvolutionParameteri(GLenum target, GLenum pname, GLint params);
  532. void glConvolutionParameterfv(GLenum target, GLenum pname, const GLfloat *params);
  533. void glConvolutionParameterf(GLenum target, GLenum pname, GLfloat params);
  534. void glConvolutionFilter2D(GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *image);
  535. void glConvolutionFilter1D(GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *image);
  536. void glCopyColorSubTable(GLenum target, GLsizei start, GLint x, GLint y, GLsizei width);
  537. void glColorSubTable(GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid *data);
  538. void glGetColorTableParameteriv(GLenum target, GLenum pname, GLint *params);
  539. void glGetColorTableParameterfv(GLenum target, GLenum pname, GLfloat *params);
  540. void glGetColorTable(GLenum target, GLenum format, GLenum type, GLvoid *table);
  541. void glCopyColorTable(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
  542. void glColorTableParameteriv(GLenum target, GLenum pname, const GLint *params);
  543. void glColorTableParameterfv(GLenum target, GLenum pname, const GLfloat *params);
  544. void glColorTable(GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *table);
  545. // OpenGL 1.3 deprecated functions
  546. void glMultTransposeMatrixd(const GLdouble *m);
  547. void glMultTransposeMatrixf(const GLfloat *m);
  548. void glLoadTransposeMatrixd(const GLdouble *m);
  549. void glLoadTransposeMatrixf(const GLfloat *m);
  550. void glMultiTexCoord4sv(GLenum target, const GLshort *v);
  551. void glMultiTexCoord4s(GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
  552. void glMultiTexCoord4iv(GLenum target, const GLint *v);
  553. void glMultiTexCoord4i(GLenum target, GLint s, GLint t, GLint r, GLint q);
  554. void glMultiTexCoord4fv(GLenum target, const GLfloat *v);
  555. void glMultiTexCoord4f(GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
  556. void glMultiTexCoord4dv(GLenum target, const GLdouble *v);
  557. void glMultiTexCoord4d(GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
  558. void glMultiTexCoord3sv(GLenum target, const GLshort *v);
  559. void glMultiTexCoord3s(GLenum target, GLshort s, GLshort t, GLshort r);
  560. void glMultiTexCoord3iv(GLenum target, const GLint *v);
  561. void glMultiTexCoord3i(GLenum target, GLint s, GLint t, GLint r);
  562. void glMultiTexCoord3fv(GLenum target, const GLfloat *v);
  563. void glMultiTexCoord3f(GLenum target, GLfloat s, GLfloat t, GLfloat r);
  564. void glMultiTexCoord3dv(GLenum target, const GLdouble *v);
  565. void glMultiTexCoord3d(GLenum target, GLdouble s, GLdouble t, GLdouble r);
  566. void glMultiTexCoord2sv(GLenum target, const GLshort *v);
  567. void glMultiTexCoord2s(GLenum target, GLshort s, GLshort t);
  568. void glMultiTexCoord2iv(GLenum target, const GLint *v);
  569. void glMultiTexCoord2i(GLenum target, GLint s, GLint t);
  570. void glMultiTexCoord2fv(GLenum target, const GLfloat *v);
  571. void glMultiTexCoord2f(GLenum target, GLfloat s, GLfloat t);
  572. void glMultiTexCoord2dv(GLenum target, const GLdouble *v);
  573. void glMultiTexCoord2d(GLenum target, GLdouble s, GLdouble t);
  574. void glMultiTexCoord1sv(GLenum target, const GLshort *v);
  575. void glMultiTexCoord1s(GLenum target, GLshort s);
  576. void glMultiTexCoord1iv(GLenum target, const GLint *v);
  577. void glMultiTexCoord1i(GLenum target, GLint s);
  578. void glMultiTexCoord1fv(GLenum target, const GLfloat *v);
  579. void glMultiTexCoord1f(GLenum target, GLfloat s);
  580. void glMultiTexCoord1dv(GLenum target, const GLdouble *v);
  581. void glMultiTexCoord1d(GLenum target, GLdouble s);
  582. void glClientActiveTexture(GLenum texture);
  583. // OpenGL 1.4 deprecated functions
  584. void glWindowPos3sv(const GLshort *v);
  585. void glWindowPos3s(GLshort x, GLshort y, GLshort z);
  586. void glWindowPos3iv(const GLint *v);
  587. void glWindowPos3i(GLint x, GLint y, GLint z);
  588. void glWindowPos3fv(const GLfloat *v);
  589. void glWindowPos3f(GLfloat x, GLfloat y, GLfloat z);
  590. void glWindowPos3dv(const GLdouble *v);
  591. void glWindowPos3d(GLdouble x, GLdouble y, GLdouble z);
  592. void glWindowPos2sv(const GLshort *v);
  593. void glWindowPos2s(GLshort x, GLshort y);
  594. void glWindowPos2iv(const GLint *v);
  595. void glWindowPos2i(GLint x, GLint y);
  596. void glWindowPos2fv(const GLfloat *v);
  597. void glWindowPos2f(GLfloat x, GLfloat y);
  598. void glWindowPos2dv(const GLdouble *v);
  599. void glWindowPos2d(GLdouble x, GLdouble y);
  600. void glSecondaryColorPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
  601. void glSecondaryColor3usv(const GLushort *v);
  602. void glSecondaryColor3us(GLushort red, GLushort green, GLushort blue);
  603. void glSecondaryColor3uiv(const GLuint *v);
  604. void glSecondaryColor3ui(GLuint red, GLuint green, GLuint blue);
  605. void glSecondaryColor3ubv(const GLubyte *v);
  606. void glSecondaryColor3ub(GLubyte red, GLubyte green, GLubyte blue);
  607. void glSecondaryColor3sv(const GLshort *v);
  608. void glSecondaryColor3s(GLshort red, GLshort green, GLshort blue);
  609. void glSecondaryColor3iv(const GLint *v);
  610. void glSecondaryColor3i(GLint red, GLint green, GLint blue);
  611. void glSecondaryColor3fv(const GLfloat *v);
  612. void glSecondaryColor3f(GLfloat red, GLfloat green, GLfloat blue);
  613. void glSecondaryColor3dv(const GLdouble *v);
  614. void glSecondaryColor3d(GLdouble red, GLdouble green, GLdouble blue);
  615. void glSecondaryColor3bv(const GLbyte *v);
  616. void glSecondaryColor3b(GLbyte red, GLbyte green, GLbyte blue);
  617. void glFogCoordPointer(GLenum type, GLsizei stride, const GLvoid *pointer);
  618. void glFogCoorddv(const GLdouble *coord);
  619. void glFogCoordd(GLdouble coord);
  620. void glFogCoordfv(const GLfloat *coord);
  621. void glFogCoordf(GLfloat coord);
  622. // OpenGL 1.5 deprecated functions
  623. // OpenGL 2.0 deprecated functions
  624. void glVertexAttrib4usv(GLuint index, const GLushort *v);
  625. void glVertexAttrib4uiv(GLuint index, const GLuint *v);
  626. void glVertexAttrib4ubv(GLuint index, const GLubyte *v);
  627. void glVertexAttrib4sv(GLuint index, const GLshort *v);
  628. void glVertexAttrib4s(GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
  629. void glVertexAttrib4iv(GLuint index, const GLint *v);
  630. void glVertexAttrib4fv(GLuint index, const GLfloat *v);
  631. void glVertexAttrib4f(GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
  632. void glVertexAttrib4dv(GLuint index, const GLdouble *v);
  633. void glVertexAttrib4d(GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
  634. void glVertexAttrib4bv(GLuint index, const GLbyte *v);
  635. void glVertexAttrib4Nusv(GLuint index, const GLushort *v);
  636. void glVertexAttrib4Nuiv(GLuint index, const GLuint *v);
  637. void glVertexAttrib4Nubv(GLuint index, const GLubyte *v);
  638. void glVertexAttrib4Nub(GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
  639. void glVertexAttrib4Nsv(GLuint index, const GLshort *v);
  640. void glVertexAttrib4Niv(GLuint index, const GLint *v);
  641. void glVertexAttrib4Nbv(GLuint index, const GLbyte *v);
  642. void glVertexAttrib3sv(GLuint index, const GLshort *v);
  643. void glVertexAttrib3s(GLuint index, GLshort x, GLshort y, GLshort z);
  644. void glVertexAttrib3fv(GLuint index, const GLfloat *v);
  645. void glVertexAttrib3f(GLuint index, GLfloat x, GLfloat y, GLfloat z);
  646. void glVertexAttrib3dv(GLuint index, const GLdouble *v);
  647. void glVertexAttrib3d(GLuint index, GLdouble x, GLdouble y, GLdouble z);
  648. void glVertexAttrib2sv(GLuint index, const GLshort *v);
  649. void glVertexAttrib2s(GLuint index, GLshort x, GLshort y);
  650. void glVertexAttrib2fv(GLuint index, const GLfloat *v);
  651. void glVertexAttrib2f(GLuint index, GLfloat x, GLfloat y);
  652. void glVertexAttrib2dv(GLuint index, const GLdouble *v);
  653. void glVertexAttrib2d(GLuint index, GLdouble x, GLdouble y);
  654. void glVertexAttrib1sv(GLuint index, const GLshort *v);
  655. void glVertexAttrib1s(GLuint index, GLshort x);
  656. void glVertexAttrib1fv(GLuint index, const GLfloat *v);
  657. void glVertexAttrib1f(GLuint index, GLfloat x);
  658. void glVertexAttrib1dv(GLuint index, const GLdouble *v);
  659. void glVertexAttrib1d(GLuint index, GLdouble x);
  660. // OpenGL 2.1 deprecated functions
  661. private:
  662. friend class QOpenGLContext;
  663. static bool isContextCompatible(QOpenGLContext *context);
  664. static QOpenGLVersionProfile versionProfile();
  665. QOpenGLFunctions_1_0_CoreBackend* d_1_0_Core;
  666. QOpenGLFunctions_1_1_CoreBackend* d_1_1_Core;
  667. QOpenGLFunctions_1_2_CoreBackend* d_1_2_Core;
  668. QOpenGLFunctions_1_3_CoreBackend* d_1_3_Core;
  669. QOpenGLFunctions_1_4_CoreBackend* d_1_4_Core;
  670. QOpenGLFunctions_1_5_CoreBackend* d_1_5_Core;
  671. QOpenGLFunctions_2_0_CoreBackend* d_2_0_Core;
  672. QOpenGLFunctions_2_1_CoreBackend* d_2_1_Core;
  673. QOpenGLFunctions_1_0_DeprecatedBackend* d_1_0_Deprecated;
  674. QOpenGLFunctions_1_1_DeprecatedBackend* d_1_1_Deprecated;
  675. QOpenGLFunctions_1_2_DeprecatedBackend* d_1_2_Deprecated;
  676. QOpenGLFunctions_1_3_DeprecatedBackend* d_1_3_Deprecated;
  677. QOpenGLFunctions_1_4_DeprecatedBackend* d_1_4_Deprecated;
  678. void *m_reserved_2_0_Deprecated; // To maintain BC
  679. };
  680. // OpenGL 1.0 core functions
  681. inline void QOpenGLFunctions_2_1::glViewport(GLint x, GLint y, GLsizei width, GLsizei height)
  682. {
  683. d_1_0_Core->f.Viewport(x, y, width, height);
  684. }
  685. inline void QOpenGLFunctions_2_1::glDepthRange(GLdouble nearVal, GLdouble farVal)
  686. {
  687. d_1_0_Core->f.DepthRange(nearVal, farVal);
  688. }
  689. inline GLboolean QOpenGLFunctions_2_1::glIsEnabled(GLenum cap)
  690. {
  691. return d_1_0_Core->f.IsEnabled(cap);
  692. }
  693. inline void QOpenGLFunctions_2_1::glGetTexLevelParameteriv(GLenum target, GLint level, GLenum pname, GLint *params)
  694. {
  695. d_1_0_Core->f.GetTexLevelParameteriv(target, level, pname, params);
  696. }
  697. inline void QOpenGLFunctions_2_1::glGetTexLevelParameterfv(GLenum target, GLint level, GLenum pname, GLfloat *params)
  698. {
  699. d_1_0_Core->f.GetTexLevelParameterfv(target, level, pname, params);
  700. }
  701. inline void QOpenGLFunctions_2_1::glGetTexParameteriv(GLenum target, GLenum pname, GLint *params)
  702. {
  703. d_1_0_Core->f.GetTexParameteriv(target, pname, params);
  704. }
  705. inline void QOpenGLFunctions_2_1::glGetTexParameterfv(GLenum target, GLenum pname, GLfloat *params)
  706. {
  707. d_1_0_Core->f.GetTexParameterfv(target, pname, params);
  708. }
  709. inline void QOpenGLFunctions_2_1::glGetTexImage(GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels)
  710. {
  711. d_1_0_Core->f.GetTexImage(target, level, format, type, pixels);
  712. }
  713. inline const GLubyte * QOpenGLFunctions_2_1::glGetString(GLenum name)
  714. {
  715. return d_1_0_Core->f.GetString(name);
  716. }
  717. inline void QOpenGLFunctions_2_1::glGetIntegerv(GLenum pname, GLint *params)
  718. {
  719. d_1_0_Core->f.GetIntegerv(pname, params);
  720. }
  721. inline void QOpenGLFunctions_2_1::glGetFloatv(GLenum pname, GLfloat *params)
  722. {
  723. d_1_0_Core->f.GetFloatv(pname, params);
  724. }
  725. inline GLenum QOpenGLFunctions_2_1::glGetError()
  726. {
  727. return d_1_0_Core->f.GetError();
  728. }
  729. inline void QOpenGLFunctions_2_1::glGetDoublev(GLenum pname, GLdouble *params)
  730. {
  731. d_1_0_Core->f.GetDoublev(pname, params);
  732. }
  733. inline void QOpenGLFunctions_2_1::glGetBooleanv(GLenum pname, GLboolean *params)
  734. {
  735. d_1_0_Core->f.GetBooleanv(pname, params);
  736. }
  737. inline void QOpenGLFunctions_2_1::glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels)
  738. {
  739. d_1_0_Core->f.ReadPixels(x, y, width, height, format, type, pixels);
  740. }
  741. inline void QOpenGLFunctions_2_1::glReadBuffer(GLenum mode)
  742. {
  743. d_1_0_Core->f.ReadBuffer(mode);
  744. }
  745. inline void QOpenGLFunctions_2_1::glPixelStorei(GLenum pname, GLint param)
  746. {
  747. d_1_0_Core->f.PixelStorei(pname, param);
  748. }
  749. inline void QOpenGLFunctions_2_1::glPixelStoref(GLenum pname, GLfloat param)
  750. {
  751. d_1_0_Core->f.PixelStoref(pname, param);
  752. }
  753. inline void QOpenGLFunctions_2_1::glDepthFunc(GLenum func)
  754. {
  755. d_1_0_Core->f.DepthFunc(func);
  756. }
  757. inline void QOpenGLFunctions_2_1::glStencilOp(GLenum fail, GLenum zfail, GLenum zpass)
  758. {
  759. d_1_0_Core->f.StencilOp(fail, zfail, zpass);
  760. }
  761. inline void QOpenGLFunctions_2_1::glStencilFunc(GLenum func, GLint ref, GLuint mask)
  762. {
  763. d_1_0_Core->f.StencilFunc(func, ref, mask);
  764. }
  765. inline void QOpenGLFunctions_2_1::glLogicOp(GLenum opcode)
  766. {
  767. d_1_0_Core->f.LogicOp(opcode);
  768. }
  769. inline void QOpenGLFunctions_2_1::glBlendFunc(GLenum sfactor, GLenum dfactor)
  770. {
  771. d_1_0_Core->f.BlendFunc(sfactor, dfactor);
  772. }
  773. inline void QOpenGLFunctions_2_1::glFlush()
  774. {
  775. d_1_0_Core->f.Flush();
  776. }
  777. inline void QOpenGLFunctions_2_1::glFinish()
  778. {
  779. d_1_0_Core->f.Finish();
  780. }
  781. inline void QOpenGLFunctions_2_1::glEnable(GLenum cap)
  782. {
  783. d_1_0_Core->f.Enable(cap);
  784. }
  785. inline void QOpenGLFunctions_2_1::glDisable(GLenum cap)
  786. {
  787. d_1_0_Core->f.Disable(cap);
  788. }
  789. inline void QOpenGLFunctions_2_1::glDepthMask(GLboolean flag)
  790. {
  791. d_1_0_Core->f.DepthMask(flag);
  792. }
  793. inline void QOpenGLFunctions_2_1::glColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
  794. {
  795. d_1_0_Core->f.ColorMask(red, green, blue, alpha);
  796. }
  797. inline void QOpenGLFunctions_2_1::glStencilMask(GLuint mask)
  798. {
  799. d_1_0_Core->f.StencilMask(mask);
  800. }
  801. inline void QOpenGLFunctions_2_1::glClearDepth(GLdouble depth)
  802. {
  803. d_1_0_Core->f.ClearDepth(depth);
  804. }
  805. inline void QOpenGLFunctions_2_1::glClearStencil(GLint s)
  806. {
  807. d_1_0_Core->f.ClearStencil(s);
  808. }
  809. inline void QOpenGLFunctions_2_1::glClearColor(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
  810. {
  811. d_1_0_Core->f.ClearColor(red, green, blue, alpha);
  812. }
  813. inline void QOpenGLFunctions_2_1::glClear(GLbitfield mask)
  814. {
  815. d_1_0_Core->f.Clear(mask);
  816. }
  817. inline void QOpenGLFunctions_2_1::glDrawBuffer(GLenum mode)
  818. {
  819. d_1_0_Core->f.DrawBuffer(mode);
  820. }
  821. inline void QOpenGLFunctions_2_1::glTexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels)
  822. {
  823. d_1_0_Core->f.TexImage2D(target, level, internalformat, width, height, border, format, type, pixels);
  824. }
  825. inline void QOpenGLFunctions_2_1::glTexImage1D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels)
  826. {
  827. d_1_0_Core->f.TexImage1D(target, level, internalformat, width, border, format, type, pixels);
  828. }
  829. inline void QOpenGLFunctions_2_1::glTexParameteriv(GLenum target, GLenum pname, const GLint *params)
  830. {
  831. d_1_0_Core->f.TexParameteriv(target, pname, params);
  832. }
  833. inline void QOpenGLFunctions_2_1::glTexParameteri(GLenum target, GLenum pname, GLint param)
  834. {
  835. d_1_0_Core->f.TexParameteri(target, pname, param);
  836. }
  837. inline void QOpenGLFunctions_2_1::glTexParameterfv(GLenum target, GLenum pname, const GLfloat *params)
  838. {
  839. d_1_0_Core->f.TexParameterfv(target, pname, params);
  840. }
  841. inline void QOpenGLFunctions_2_1::glTexParameterf(GLenum target, GLenum pname, GLfloat param)
  842. {
  843. d_1_0_Core->f.TexParameterf(target, pname, param);
  844. }
  845. inline void QOpenGLFunctions_2_1::glScissor(GLint x, GLint y, GLsizei width, GLsizei height)
  846. {
  847. d_1_0_Core->f.Scissor(x, y, width, height);
  848. }
  849. inline void QOpenGLFunctions_2_1::glPolygonMode(GLenum face, GLenum mode)
  850. {
  851. d_1_0_Core->f.PolygonMode(face, mode);
  852. }
  853. inline void QOpenGLFunctions_2_1::glPointSize(GLfloat size)
  854. {
  855. d_1_0_Core->f.PointSize(size);
  856. }
  857. inline void QOpenGLFunctions_2_1::glLineWidth(GLfloat width)
  858. {
  859. d_1_0_Core->f.LineWidth(width);
  860. }
  861. inline void QOpenGLFunctions_2_1::glHint(GLenum target, GLenum mode)
  862. {
  863. d_1_0_Core->f.Hint(target, mode);
  864. }
  865. inline void QOpenGLFunctions_2_1::glFrontFace(GLenum mode)
  866. {
  867. d_1_0_Core->f.FrontFace(mode);
  868. }
  869. inline void QOpenGLFunctions_2_1::glCullFace(GLenum mode)
  870. {
  871. d_1_0_Core->f.CullFace(mode);
  872. }
  873. // OpenGL 1.1 core functions
  874. inline void QOpenGLFunctions_2_1::glIndexubv(const GLubyte *c)
  875. {
  876. d_1_1_Deprecated->f.Indexubv(c);
  877. }
  878. inline void QOpenGLFunctions_2_1::glIndexub(GLubyte c)
  879. {
  880. d_1_1_Deprecated->f.Indexub(c);
  881. }
  882. inline GLboolean QOpenGLFunctions_2_1::glIsTexture(GLuint texture)
  883. {
  884. return d_1_1_Core->f.IsTexture(texture);
  885. }
  886. inline void QOpenGLFunctions_2_1::glGenTextures(GLsizei n, GLuint *textures)
  887. {
  888. d_1_1_Core->f.GenTextures(n, textures);
  889. }
  890. inline void QOpenGLFunctions_2_1::glDeleteTextures(GLsizei n, const GLuint *textures)
  891. {
  892. d_1_1_Core->f.DeleteTextures(n, textures);
  893. }
  894. inline void QOpenGLFunctions_2_1::glBindTexture(GLenum target, GLuint texture)
  895. {
  896. d_1_1_Core->f.BindTexture(target, texture);
  897. }
  898. inline void QOpenGLFunctions_2_1::glTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels)
  899. {
  900. d_1_1_Core->f.TexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels);
  901. }
  902. inline void QOpenGLFunctions_2_1::glTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels)
  903. {
  904. d_1_1_Core->f.TexSubImage1D(target, level, xoffset, width, format, type, pixels);
  905. }
  906. inline void QOpenGLFunctions_2_1::glCopyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height)
  907. {
  908. d_1_1_Core->f.CopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height);
  909. }
  910. inline void QOpenGLFunctions_2_1::glCopyTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width)
  911. {
  912. d_1_1_Core->f.CopyTexSubImage1D(target, level, xoffset, x, y, width);
  913. }
  914. inline void QOpenGLFunctions_2_1::glCopyTexImage2D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border)
  915. {
  916. d_1_1_Core->f.CopyTexImage2D(target, level, internalformat, x, y, width, height, border);
  917. }
  918. inline void QOpenGLFunctions_2_1::glCopyTexImage1D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border)
  919. {
  920. d_1_1_Core->f.CopyTexImage1D(target, level, internalformat, x, y, width, border);
  921. }
  922. inline void QOpenGLFunctions_2_1::glPolygonOffset(GLfloat factor, GLfloat units)
  923. {
  924. d_1_1_Core->f.PolygonOffset(factor, units);
  925. }
  926. inline void QOpenGLFunctions_2_1::glGetPointerv(GLenum pname, GLvoid* *params)
  927. {
  928. d_1_1_Deprecated->f.GetPointerv(pname, params);
  929. }
  930. inline void QOpenGLFunctions_2_1::glDrawElements(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices)
  931. {
  932. d_1_1_Core->f.DrawElements(mode, count, type, indices);
  933. }
  934. inline void QOpenGLFunctions_2_1::glDrawArrays(GLenum mode, GLint first, GLsizei count)
  935. {
  936. d_1_1_Core->f.DrawArrays(mode, first, count);
  937. }
  938. // OpenGL 1.2 core functions
  939. inline void QOpenGLFunctions_2_1::glCopyTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height)
  940. {
  941. d_1_2_Core->f.CopyTexSubImage3D(target, level, xoffset, yoffset, zoffset, x, y, width, height);
  942. }
  943. inline void QOpenGLFunctions_2_1::glTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels)
  944. {
  945. d_1_2_Core->f.TexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels);
  946. }
  947. inline void QOpenGLFunctions_2_1::glTexImage3D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels)
  948. {
  949. d_1_2_Core->f.TexImage3D(target, level, internalformat, width, height, depth, border, format, type, pixels);
  950. }
  951. inline void QOpenGLFunctions_2_1::glDrawRangeElements(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices)
  952. {
  953. d_1_2_Core->f.DrawRangeElements(mode, start, end, count, type, indices);
  954. }
  955. inline void QOpenGLFunctions_2_1::glBlendEquation(GLenum mode)
  956. {
  957. d_1_2_Core->f.BlendEquation(mode);
  958. }
  959. inline void QOpenGLFunctions_2_1::glBlendColor(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
  960. {
  961. d_1_2_Core->f.BlendColor(red, green, blue, alpha);
  962. }
  963. // OpenGL 1.3 core functions
  964. inline void QOpenGLFunctions_2_1::glGetCompressedTexImage(GLenum target, GLint level, GLvoid *img)
  965. {
  966. d_1_3_Core->f.GetCompressedTexImage(target, level, img);
  967. }
  968. inline void QOpenGLFunctions_2_1::glCompressedTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data)
  969. {
  970. d_1_3_Core->f.CompressedTexSubImage1D(target, level, xoffset, width, format, imageSize, data);
  971. }
  972. inline void QOpenGLFunctions_2_1::glCompressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data)
  973. {
  974. d_1_3_Core->f.CompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data);
  975. }
  976. inline void QOpenGLFunctions_2_1::glCompressedTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *data)
  977. {
  978. d_1_3_Core->f.CompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data);
  979. }
  980. inline void QOpenGLFunctions_2_1::glCompressedTexImage1D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data)
  981. {
  982. d_1_3_Core->f.CompressedTexImage1D(target, level, internalformat, width, border, imageSize, data);
  983. }
  984. inline void QOpenGLFunctions_2_1::glCompressedTexImage2D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data)
  985. {
  986. d_1_3_Core->f.CompressedTexImage2D(target, level, internalformat, width, height, border, imageSize, data);
  987. }
  988. inline void QOpenGLFunctions_2_1::glCompressedTexImage3D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data)
  989. {
  990. d_1_3_Core->f.CompressedTexImage3D(target, level, internalformat, width, height, depth, border, imageSize, data);
  991. }
  992. inline void QOpenGLFunctions_2_1::glSampleCoverage(GLfloat value, GLboolean invert)
  993. {
  994. d_1_3_Core->f.SampleCoverage(value, invert);
  995. }
  996. inline void QOpenGLFunctions_2_1::glActiveTexture(GLenum texture)
  997. {
  998. d_1_3_Core->f.ActiveTexture(texture);
  999. }
  1000. // OpenGL 1.4 core functions
  1001. inline void QOpenGLFunctions_2_1::glPointParameteriv(GLenum pname, const GLint *params)
  1002. {
  1003. d_1_4_Core->f.PointParameteriv(pname, params);
  1004. }
  1005. inline void QOpenGLFunctions_2_1::glPointParameteri(GLenum pname, GLint param)
  1006. {
  1007. d_1_4_Core->f.PointParameteri(pname, param);
  1008. }
  1009. inline void QOpenGLFunctions_2_1::glPointParameterfv(GLenum pname, const GLfloat *params)
  1010. {
  1011. d_1_4_Core->f.PointParameterfv(pname, params);
  1012. }
  1013. inline void QOpenGLFunctions_2_1::glPointParameterf(GLenum pname, GLfloat param)
  1014. {
  1015. d_1_4_Core->f.PointParameterf(pname, param);
  1016. }
  1017. inline void QOpenGLFunctions_2_1::glMultiDrawElements(GLenum mode, const GLsizei *count, GLenum type, const GLvoid* const *indices, GLsizei drawcount)
  1018. {
  1019. d_1_4_Core->f.MultiDrawElements(mode, count, type, indices, drawcount);
  1020. }
  1021. inline void QOpenGLFunctions_2_1::glMultiDrawArrays(GLenum mode, const GLint *first, const GLsizei *count, GLsizei drawcount)
  1022. {
  1023. d_1_4_Core->f.MultiDrawArrays(mode, first, count, drawcount);
  1024. }
  1025. inline void QOpenGLFunctions_2_1::glBlendFuncSeparate(GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha)
  1026. {
  1027. d_1_4_Core->f.BlendFuncSeparate(sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha);
  1028. }
  1029. // OpenGL 1.5 core functions
  1030. inline void QOpenGLFunctions_2_1::glGetBufferPointerv(GLenum target, GLenum pname, GLvoid* *params)
  1031. {
  1032. d_1_5_Core->f.GetBufferPointerv(target, pname, params);
  1033. }
  1034. inline void QOpenGLFunctions_2_1::glGetBufferParameteriv(GLenum target, GLenum pname, GLint *params)
  1035. {
  1036. d_1_5_Core->f.GetBufferParameteriv(target, pname, params);
  1037. }
  1038. inline GLboolean QOpenGLFunctions_2_1::glUnmapBuffer(GLenum target)
  1039. {
  1040. return d_1_5_Core->f.UnmapBuffer(target);
  1041. }
  1042. inline GLvoid* QOpenGLFunctions_2_1::glMapBuffer(GLenum target, GLenum access)
  1043. {
  1044. return d_1_5_Core->f.MapBuffer(target, access);
  1045. }
  1046. inline void QOpenGLFunctions_2_1::glGetBufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, GLvoid *data)
  1047. {
  1048. d_1_5_Core->f.GetBufferSubData(target, offset, size, data);
  1049. }
  1050. inline void QOpenGLFunctions_2_1::glBufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid *data)
  1051. {
  1052. d_1_5_Core->f.BufferSubData(target, offset, size, data);
  1053. }
  1054. inline void QOpenGLFunctions_2_1::glBufferData(GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage)
  1055. {
  1056. d_1_5_Core->f.BufferData(target, size, data, usage);
  1057. }
  1058. inline GLboolean QOpenGLFunctions_2_1::glIsBuffer(GLuint buffer)
  1059. {
  1060. return d_1_5_Core->f.IsBuffer(buffer);
  1061. }
  1062. inline void QOpenGLFunctions_2_1::glGenBuffers(GLsizei n, GLuint *buffers)
  1063. {
  1064. d_1_5_Core->f.GenBuffers(n, buffers);
  1065. }
  1066. inline void QOpenGLFunctions_2_1::glDeleteBuffers(GLsizei n, const GLuint *buffers)
  1067. {
  1068. d_1_5_Core->f.DeleteBuffers(n, buffers);
  1069. }
  1070. inline void QOpenGLFunctions_2_1::glBindBuffer(GLenum target, GLuint buffer)
  1071. {
  1072. d_1_5_Core->f.BindBuffer(target, buffer);
  1073. }
  1074. inline void QOpenGLFunctions_2_1::glGetQueryObjectuiv(GLuint id, GLenum pname, GLuint *params)
  1075. {
  1076. d_1_5_Core->f.GetQueryObjectuiv(id, pname, params);
  1077. }
  1078. inline void QOpenGLFunctions_2_1::glGetQueryObjectiv(GLuint id, GLenum pname, GLint *params)
  1079. {
  1080. d_1_5_Core->f.GetQueryObjectiv(id, pname, params);
  1081. }
  1082. inline void QOpenGLFunctions_2_1::glGetQueryiv(GLenum target, GLenum pname, GLint *params)
  1083. {
  1084. d_1_5_Core->f.GetQueryiv(target, pname, params);
  1085. }
  1086. inline void QOpenGLFunctions_2_1::glEndQuery(GLenum target)
  1087. {
  1088. d_1_5_Core->f.EndQuery(target);
  1089. }
  1090. inline void QOpenGLFunctions_2_1::glBeginQuery(GLenum target, GLuint id)
  1091. {
  1092. d_1_5_Core->f.BeginQuery(target, id);
  1093. }
  1094. inline GLboolean QOpenGLFunctions_2_1::glIsQuery(GLuint id)
  1095. {
  1096. return d_1_5_Core->f.IsQuery(id);
  1097. }
  1098. inline void QOpenGLFunctions_2_1::glDeleteQueries(GLsizei n, const GLuint *ids)
  1099. {
  1100. d_1_5_Core->f.DeleteQueries(n, ids);
  1101. }
  1102. inline void QOpenGLFunctions_2_1::glGenQueries(GLsizei n, GLuint *ids)
  1103. {
  1104. d_1_5_Core->f.GenQueries(n, ids);
  1105. }
  1106. // OpenGL 2.0 core functions
  1107. inline void QOpenGLFunctions_2_1::glVertexAttribPointer(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer)
  1108. {
  1109. d_2_0_Core->f.VertexAttribPointer(index, size, type, normalized, stride, pointer);
  1110. }
  1111. inline void QOpenGLFunctions_2_1::glValidateProgram(GLuint program)
  1112. {
  1113. d_2_0_Core->f.ValidateProgram(program);
  1114. }
  1115. inline void QOpenGLFunctions_2_1::glUniformMatrix4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
  1116. {
  1117. d_2_0_Core->f.UniformMatrix4fv(location, count, transpose, value);
  1118. }
  1119. inline void QOpenGLFunctions_2_1::glUniformMatrix3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
  1120. {
  1121. d_2_0_Core->f.UniformMatrix3fv(location, count, transpose, value);
  1122. }
  1123. inline void QOpenGLFunctions_2_1::glUniformMatrix2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
  1124. {
  1125. d_2_0_Core->f.UniformMatrix2fv(location, count, transpose, value);
  1126. }
  1127. inline void QOpenGLFunctions_2_1::glUniform4iv(GLint location, GLsizei count, const GLint *value)
  1128. {
  1129. d_2_0_Core->f.Uniform4iv(location, count, value);
  1130. }
  1131. inline void QOpenGLFunctions_2_1::glUniform3iv(GLint location, GLsizei count, const GLint *value)
  1132. {
  1133. d_2_0_Core->f.Uniform3iv(location, count, value);
  1134. }
  1135. inline void QOpenGLFunctions_2_1::glUniform2iv(GLint location, GLsizei count, const GLint *value)
  1136. {
  1137. d_2_0_Core->f.Uniform2iv(location, count, value);
  1138. }
  1139. inline void QOpenGLFunctions_2_1::glUniform1iv(GLint location, GLsizei count, const GLint *value)
  1140. {
  1141. d_2_0_Core->f.Uniform1iv(location, count, value);
  1142. }
  1143. inline void QOpenGLFunctions_2_1::glUniform4fv(GLint location, GLsizei count, const GLfloat *value)
  1144. {
  1145. d_2_0_Core->f.Uniform4fv(location, count, value);
  1146. }
  1147. inline void QOpenGLFunctions_2_1::glUniform3fv(GLint location, GLsizei count, const GLfloat *value)
  1148. {
  1149. d_2_0_Core->f.Uniform3fv(location, count, value);
  1150. }
  1151. inline void QOpenGLFunctions_2_1::glUniform2fv(GLint location, GLsizei count, const GLfloat *value)
  1152. {
  1153. d_2_0_Core->f.Uniform2fv(location, count, value);
  1154. }
  1155. inline void QOpenGLFunctions_2_1::glUniform1fv(GLint location, GLsizei count, const GLfloat *value)
  1156. {
  1157. d_2_0_Core->f.Uniform1fv(location, count, value);
  1158. }
  1159. inline void QOpenGLFunctions_2_1::glUniform4i(GLint location, GLint v0, GLint v1, GLint v2, GLint v3)
  1160. {
  1161. d_2_0_Core->f.Uniform4i(location, v0, v1, v2, v3);
  1162. }
  1163. inline void QOpenGLFunctions_2_1::glUniform3i(GLint location, GLint v0, GLint v1, GLint v2)
  1164. {
  1165. d_2_0_Core->f.Uniform3i(location, v0, v1, v2);
  1166. }
  1167. inline void QOpenGLFunctions_2_1::glUniform2i(GLint location, GLint v0, GLint v1)
  1168. {
  1169. d_2_0_Core->f.Uniform2i(location, v0, v1);
  1170. }
  1171. inline void QOpenGLFunctions_2_1::glUniform1i(GLint location, GLint v0)
  1172. {
  1173. d_2_0_Core->f.Uniform1i(location, v0);
  1174. }
  1175. inline void QOpenGLFunctions_2_1::glUniform4f(GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3)
  1176. {
  1177. d_2_0_Core->f.Uniform4f(location, v0, v1, v2, v3);
  1178. }
  1179. inline void QOpenGLFunctions_2_1::glUniform3f(GLint location, GLfloat v0, GLfloat v1, GLfloat v2)
  1180. {
  1181. d_2_0_Core->f.Uniform3f(location, v0, v1, v2);
  1182. }
  1183. inline void QOpenGLFunctions_2_1::glUniform2f(GLint location, GLfloat v0, GLfloat v1)
  1184. {
  1185. d_2_0_Core->f.Uniform2f(location, v0, v1);
  1186. }
  1187. inline void QOpenGLFunctions_2_1::glUniform1f(GLint location, GLfloat v0)
  1188. {
  1189. d_2_0_Core->f.Uniform1f(location, v0);
  1190. }
  1191. inline void QOpenGLFunctions_2_1::glUseProgram(GLuint program)
  1192. {
  1193. d_2_0_Core->f.UseProgram(program);
  1194. }
  1195. inline void QOpenGLFunctions_2_1::glShaderSource(GLuint shader, GLsizei count, const GLchar* const *string, const GLint *length)
  1196. {
  1197. d_2_0_Core->f.ShaderSource(shader, count, string, length);
  1198. }
  1199. inline void QOpenGLFunctions_2_1::glLinkProgram(GLuint program)
  1200. {
  1201. d_2_0_Core->f.LinkProgram(program);
  1202. }
  1203. inline GLboolean QOpenGLFunctions_2_1::glIsShader(GLuint shader)
  1204. {
  1205. return d_2_0_Core->f.IsShader(shader);
  1206. }
  1207. inline GLboolean QOpenGLFunctions_2_1::glIsProgram(GLuint program)
  1208. {
  1209. return d_2_0_Core->f.IsProgram(program);
  1210. }
  1211. inline void QOpenGLFunctions_2_1::glGetVertexAttribPointerv(GLuint index, GLenum pname, GLvoid* *pointer)
  1212. {
  1213. d_2_0_Core->f.GetVertexAttribPointerv(index, pname, pointer);
  1214. }
  1215. inline void QOpenGLFunctions_2_1::glGetVertexAttribiv(GLuint index, GLenum pname, GLint *params)
  1216. {
  1217. d_2_0_Core->f.GetVertexAttribiv(index, pname, params);
  1218. }
  1219. inline void QOpenGLFunctions_2_1::glGetVertexAttribfv(GLuint index, GLenum pname, GLfloat *params)
  1220. {
  1221. d_2_0_Core->f.GetVertexAttribfv(index, pname, params);
  1222. }
  1223. inline void QOpenGLFunctions_2_1::glGetVertexAttribdv(GLuint index, GLenum pname, GLdouble *params)
  1224. {
  1225. d_2_0_Core->f.GetVertexAttribdv(index, pname, params);
  1226. }
  1227. inline void QOpenGLFunctions_2_1::glGetUniformiv(GLuint program, GLint location, GLint *params)
  1228. {
  1229. d_2_0_Core->f.GetUniformiv(program, location, params);
  1230. }
  1231. inline void QOpenGLFunctions_2_1::glGetUniformfv(GLuint program, GLint location, GLfloat *params)
  1232. {
  1233. d_2_0_Core->f.GetUniformfv(program, location, params);
  1234. }
  1235. inline GLint QOpenGLFunctions_2_1::glGetUniformLocation(GLuint program, const GLchar *name)
  1236. {
  1237. return d_2_0_Core->f.GetUniformLocation(program, name);
  1238. }
  1239. inline void QOpenGLFunctions_2_1::glGetShaderSource(GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source)
  1240. {
  1241. d_2_0_Core->f.GetShaderSource(shader, bufSize, length, source);
  1242. }
  1243. inline void QOpenGLFunctions_2_1::glGetShaderInfoLog(GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog)
  1244. {
  1245. d_2_0_Core->f.GetShaderInfoLog(shader, bufSize, length, infoLog);
  1246. }
  1247. inline void QOpenGLFunctions_2_1::glGetShaderiv(GLuint shader, GLenum pname, GLint *params)
  1248. {
  1249. d_2_0_Core->f.GetShaderiv(shader, pname, params);
  1250. }
  1251. inline void QOpenGLFunctions_2_1::glGetProgramInfoLog(GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog)
  1252. {
  1253. d_2_0_Core->f.GetProgramInfoLog(program, bufSize, length, infoLog);
  1254. }
  1255. inline void QOpenGLFunctions_2_1::glGetProgramiv(GLuint program, GLenum pname, GLint *params)
  1256. {
  1257. d_2_0_Core->f.GetProgramiv(program, pname, params);
  1258. }
  1259. inline GLint QOpenGLFunctions_2_1::glGetAttribLocation(GLuint program, const GLchar *name)
  1260. {
  1261. return d_2_0_Core->f.GetAttribLocation(program, name);
  1262. }
  1263. inline void QOpenGLFunctions_2_1::glGetAttachedShaders(GLuint program, GLsizei maxCount, GLsizei *count, GLuint *obj)
  1264. {
  1265. d_2_0_Core->f.GetAttachedShaders(program, maxCount, count, obj);
  1266. }
  1267. inline void QOpenGLFunctions_2_1::glGetActiveUniform(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name)
  1268. {
  1269. d_2_0_Core->f.GetActiveUniform(program, index, bufSize, length, size, type, name);
  1270. }
  1271. inline void QOpenGLFunctions_2_1::glGetActiveAttrib(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name)
  1272. {
  1273. d_2_0_Core->f.GetActiveAttrib(program, index, bufSize, length, size, type, name);
  1274. }
  1275. inline void QOpenGLFunctions_2_1::glEnableVertexAttribArray(GLuint index)
  1276. {
  1277. d_2_0_Core->f.EnableVertexAttribArray(index);
  1278. }
  1279. inline void QOpenGLFunctions_2_1::glDisableVertexAttribArray(GLuint index)
  1280. {
  1281. d_2_0_Core->f.DisableVertexAttribArray(index);
  1282. }
  1283. inline void QOpenGLFunctions_2_1::glDetachShader(GLuint program, GLuint shader)
  1284. {
  1285. d_2_0_Core->f.DetachShader(program, shader);
  1286. }
  1287. inline void QOpenGLFunctions_2_1::glDeleteShader(GLuint shader)
  1288. {
  1289. d_2_0_Core->f.DeleteShader(shader);
  1290. }
  1291. inline void QOpenGLFunctions_2_1::glDeleteProgram(GLuint program)
  1292. {
  1293. d_2_0_Core->f.DeleteProgram(program);
  1294. }
  1295. inline GLuint QOpenGLFunctions_2_1::glCreateShader(GLenum type)
  1296. {
  1297. return d_2_0_Core->f.CreateShader(type);
  1298. }
  1299. inline GLuint QOpenGLFunctions_2_1::glCreateProgram()
  1300. {
  1301. return d_2_0_Core->f.CreateProgram();
  1302. }
  1303. inline void QOpenGLFunctions_2_1::glCompileShader(GLuint shader)
  1304. {
  1305. d_2_0_Core->f.CompileShader(shader);
  1306. }
  1307. inline void QOpenGLFunctions_2_1::glBindAttribLocation(GLuint program, GLuint index, const GLchar *name)
  1308. {
  1309. d_2_0_Core->f.BindAttribLocation(program, index, name);
  1310. }
  1311. inline void QOpenGLFunctions_2_1::glAttachShader(GLuint program, GLuint shader)
  1312. {
  1313. d_2_0_Core->f.AttachShader(program, shader);
  1314. }
  1315. inline void QOpenGLFunctions_2_1::glStencilMaskSeparate(GLenum face, GLuint mask)
  1316. {
  1317. d_2_0_Core->f.StencilMaskSeparate(face, mask);
  1318. }
  1319. inline void QOpenGLFunctions_2_1::glStencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask)
  1320. {
  1321. d_2_0_Core->f.StencilFuncSeparate(face, func, ref, mask);
  1322. }
  1323. inline void QOpenGLFunctions_2_1::glStencilOpSeparate(GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass)
  1324. {
  1325. d_2_0_Core->f.StencilOpSeparate(face, sfail, dpfail, dppass);
  1326. }
  1327. inline void QOpenGLFunctions_2_1::glDrawBuffers(GLsizei n, const GLenum *bufs)
  1328. {
  1329. d_2_0_Core->f.DrawBuffers(n, bufs);
  1330. }
  1331. inline void QOpenGLFunctions_2_1::glBlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha)
  1332. {
  1333. d_2_0_Core->f.BlendEquationSeparate(modeRGB, modeAlpha);
  1334. }
  1335. // OpenGL 2.1 core functions
  1336. inline void QOpenGLFunctions_2_1::glUniformMatrix4x3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
  1337. {
  1338. d_2_1_Core->f.UniformMatrix4x3fv(location, count, transpose, value);
  1339. }
  1340. inline void QOpenGLFunctions_2_1::glUniformMatrix3x4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
  1341. {
  1342. d_2_1_Core->f.UniformMatrix3x4fv(location, count, transpose, value);
  1343. }
  1344. inline void QOpenGLFunctions_2_1::glUniformMatrix4x2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
  1345. {
  1346. d_2_1_Core->f.UniformMatrix4x2fv(location, count, transpose, value);
  1347. }
  1348. inline void QOpenGLFunctions_2_1::glUniformMatrix2x4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
  1349. {
  1350. d_2_1_Core->f.UniformMatrix2x4fv(location, count, transpose, value);
  1351. }
  1352. inline void QOpenGLFunctions_2_1::glUniformMatrix3x2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
  1353. {
  1354. d_2_1_Core->f.UniformMatrix3x2fv(location, count, transpose, value);
  1355. }
  1356. inline void QOpenGLFunctions_2_1::glUniformMatrix2x3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
  1357. {
  1358. d_2_1_Core->f.UniformMatrix2x3fv(location, count, transpose, value);
  1359. }
  1360. // OpenGL 1.0 deprecated functions
  1361. inline void QOpenGLFunctions_2_1::glTranslatef(GLfloat x, GLfloat y, GLfloat z)
  1362. {
  1363. d_1_0_Deprecated->f.Translatef(x, y, z);
  1364. }
  1365. inline void QOpenGLFunctions_2_1::glTranslated(GLdouble x, GLdouble y, GLdouble z)
  1366. {
  1367. d_1_0_Deprecated->f.Translated(x, y, z);
  1368. }
  1369. inline void QOpenGLFunctions_2_1::glScalef(GLfloat x, GLfloat y, GLfloat z)
  1370. {
  1371. d_1_0_Deprecated->f.Scalef(x, y, z);
  1372. }
  1373. inline void QOpenGLFunctions_2_1::glScaled(GLdouble x, GLdouble y, GLdouble z)
  1374. {
  1375. d_1_0_Deprecated->f.Scaled(x, y, z);
  1376. }
  1377. inline void QOpenGLFunctions_2_1::glRotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z)
  1378. {
  1379. d_1_0_Deprecated->f.Rotatef(angle, x, y, z);
  1380. }
  1381. inline void QOpenGLFunctions_2_1::glRotated(GLdouble angle, GLdouble x, GLdouble y, GLdouble z)
  1382. {
  1383. d_1_0_Deprecated->f.Rotated(angle, x, y, z);
  1384. }
  1385. inline void QOpenGLFunctions_2_1::glPushMatrix()
  1386. {
  1387. d_1_0_Deprecated->f.PushMatrix();
  1388. }
  1389. inline void QOpenGLFunctions_2_1::glPopMatrix()
  1390. {
  1391. d_1_0_Deprecated->f.PopMatrix();
  1392. }
  1393. inline void QOpenGLFunctions_2_1::glOrtho(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar)
  1394. {
  1395. d_1_0_Deprecated->f.Ortho(left, right, bottom, top, zNear, zFar);
  1396. }
  1397. inline void QOpenGLFunctions_2_1::glMultMatrixd(const GLdouble *m)
  1398. {
  1399. d_1_0_Deprecated->f.MultMatrixd(m);
  1400. }
  1401. inline void QOpenGLFunctions_2_1::glMultMatrixf(const GLfloat *m)
  1402. {
  1403. d_1_0_Deprecated->f.MultMatrixf(m);
  1404. }
  1405. inline void QOpenGLFunctions_2_1::glMatrixMode(GLenum mode)
  1406. {
  1407. d_1_0_Deprecated->f.MatrixMode(mode);
  1408. }
  1409. inline void QOpenGLFunctions_2_1::glLoadMatrixd(const GLdouble *m)
  1410. {
  1411. d_1_0_Deprecated->f.LoadMatrixd(m);
  1412. }
  1413. inline void QOpenGLFunctions_2_1::glLoadMatrixf(const GLfloat *m)
  1414. {
  1415. d_1_0_Deprecated->f.LoadMatrixf(m);
  1416. }
  1417. inline void QOpenGLFunctions_2_1::glLoadIdentity()
  1418. {
  1419. d_1_0_Deprecated->f.LoadIdentity();
  1420. }
  1421. inline void QOpenGLFunctions_2_1::glFrustum(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar)
  1422. {
  1423. d_1_0_Deprecated->f.Frustum(left, right, bottom, top, zNear, zFar);
  1424. }
  1425. inline GLboolean QOpenGLFunctions_2_1::glIsList(GLuint list)
  1426. {
  1427. return d_1_0_Deprecated->f.IsList(list);
  1428. }
  1429. inline void QOpenGLFunctions_2_1::glGetTexGeniv(GLenum coord, GLenum pname, GLint *params)
  1430. {
  1431. d_1_0_Deprecated->f.GetTexGeniv(coord, pname, params);
  1432. }
  1433. inline void QOpenGLFunctions_2_1::glGetTexGenfv(GLenum coord, GLenum pname, GLfloat *params)
  1434. {
  1435. d_1_0_Deprecated->f.GetTexGenfv(coord, pname, params);
  1436. }
  1437. inline void QOpenGLFunctions_2_1::glGetTexGendv(GLenum coord, GLenum pname, GLdouble *params)
  1438. {
  1439. d_1_0_Deprecated->f.GetTexGendv(coord, pname, params);
  1440. }
  1441. inline void QOpenGLFunctions_2_1::glGetTexEnviv(GLenum target, GLenum pname, GLint *params)
  1442. {
  1443. d_1_0_Deprecated->f.GetTexEnviv(target, pname, params);
  1444. }
  1445. inline void QOpenGLFunctions_2_1::glGetTexEnvfv(GLenum target, GLenum pname, GLfloat *params)
  1446. {
  1447. d_1_0_Deprecated->f.GetTexEnvfv(target, pname, params);
  1448. }
  1449. inline void QOpenGLFunctions_2_1::glGetPolygonStipple(GLubyte *mask)
  1450. {
  1451. d_1_0_Deprecated->f.GetPolygonStipple(mask);
  1452. }
  1453. inline void QOpenGLFunctions_2_1::glGetPixelMapusv(GLenum map, GLushort *values)
  1454. {
  1455. d_1_0_Deprecated->f.GetPixelMapusv(map, values);
  1456. }
  1457. inline void QOpenGLFunctions_2_1::glGetPixelMapuiv(GLenum map, GLuint *values)
  1458. {
  1459. d_1_0_Deprecated->f.GetPixelMapuiv(map, values);
  1460. }
  1461. inline void QOpenGLFunctions_2_1::glGetPixelMapfv(GLenum map, GLfloat *values)
  1462. {
  1463. d_1_0_Deprecated->f.GetPixelMapfv(map, values);
  1464. }
  1465. inline void QOpenGLFunctions_2_1::glGetMaterialiv(GLenum face, GLenum pname, GLint *params)
  1466. {
  1467. d_1_0_Deprecated->f.GetMaterialiv(face, pname, params);
  1468. }
  1469. inline void QOpenGLFunctions_2_1::glGetMaterialfv(GLenum face, GLenum pname, GLfloat *params)
  1470. {
  1471. d_1_0_Deprecated->f.GetMaterialfv(face, pname, params);
  1472. }
  1473. inline void QOpenGLFunctions_2_1::glGetMapiv(GLenum target, GLenum query, GLint *v)
  1474. {
  1475. d_1_0_Deprecated->f.GetMapiv(target, query, v);
  1476. }
  1477. inline void QOpenGLFunctions_2_1::glGetMapfv(GLenum target, GLenum query, GLfloat *v)
  1478. {
  1479. d_1_0_Deprecated->f.GetMapfv(target, query, v);
  1480. }
  1481. inline void QOpenGLFunctions_2_1::glGetMapdv(GLenum target, GLenum query, GLdouble *v)
  1482. {
  1483. d_1_0_Deprecated->f.GetMapdv(target, query, v);
  1484. }
  1485. inline void QOpenGLFunctions_2_1::glGetLightiv(GLenum light, GLenum pname, GLint *params)
  1486. {
  1487. d_1_0_Deprecated->f.GetLightiv(light, pname, params);
  1488. }
  1489. inline void QOpenGLFunctions_2_1::glGetLightfv(GLenum light, GLenum pname, GLfloat *params)
  1490. {
  1491. d_1_0_Deprecated->f.GetLightfv(light, pname, params);
  1492. }
  1493. inline void QOpenGLFunctions_2_1::glGetClipPlane(GLenum plane, GLdouble *equation)
  1494. {
  1495. d_1_0_Deprecated->f.GetClipPlane(plane, equation);
  1496. }
  1497. inline void QOpenGLFunctions_2_1::glDrawPixels(GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels)
  1498. {
  1499. d_1_0_Deprecated->f.DrawPixels(width, height, format, type, pixels);
  1500. }
  1501. inline void QOpenGLFunctions_2_1::glCopyPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum type)
  1502. {
  1503. d_1_0_Deprecated->f.CopyPixels(x, y, width, height, type);
  1504. }
  1505. inline void QOpenGLFunctions_2_1::glPixelMapusv(GLenum map, GLint mapsize, const GLushort *values)
  1506. {
  1507. d_1_0_Deprecated->f.PixelMapusv(map, mapsize, values);
  1508. }
  1509. inline void QOpenGLFunctions_2_1::glPixelMapuiv(GLenum map, GLint mapsize, const GLuint *values)
  1510. {
  1511. d_1_0_Deprecated->f.PixelMapuiv(map, mapsize, values);
  1512. }
  1513. inline void QOpenGLFunctions_2_1::glPixelMapfv(GLenum map, GLint mapsize, const GLfloat *values)
  1514. {
  1515. d_1_0_Deprecated->f.PixelMapfv(map, mapsize, values);
  1516. }
  1517. inline void QOpenGLFunctions_2_1::glPixelTransferi(GLenum pname, GLint param)
  1518. {
  1519. d_1_0_Deprecated->f.PixelTransferi(pname, param);
  1520. }
  1521. inline void QOpenGLFunctions_2_1::glPixelTransferf(GLenum pname, GLfloat param)
  1522. {
  1523. d_1_0_Deprecated->f.PixelTransferf(pname, param);
  1524. }
  1525. inline void QOpenGLFunctions_2_1::glPixelZoom(GLfloat xfactor, GLfloat yfactor)
  1526. {
  1527. d_1_0_Deprecated->f.PixelZoom(xfactor, yfactor);
  1528. }
  1529. inline void QOpenGLFunctions_2_1::glAlphaFunc(GLenum func, GLfloat ref)
  1530. {
  1531. d_1_0_Deprecated->f.AlphaFunc(func, ref);
  1532. }
  1533. inline void QOpenGLFunctions_2_1::glEvalPoint2(GLint i, GLint j)
  1534. {
  1535. d_1_0_Deprecated->f.EvalPoint2(i, j);
  1536. }
  1537. inline void QOpenGLFunctions_2_1::glEvalMesh2(GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2)
  1538. {
  1539. d_1_0_Deprecated->f.EvalMesh2(mode, i1, i2, j1, j2);
  1540. }
  1541. inline void QOpenGLFunctions_2_1::glEvalPoint1(GLint i)
  1542. {
  1543. d_1_0_Deprecated->f.EvalPoint1(i);
  1544. }
  1545. inline void QOpenGLFunctions_2_1::glEvalMesh1(GLenum mode, GLint i1, GLint i2)
  1546. {
  1547. d_1_0_Deprecated->f.EvalMesh1(mode, i1, i2);
  1548. }
  1549. inline void QOpenGLFunctions_2_1::glEvalCoord2fv(const GLfloat *u)
  1550. {
  1551. d_1_0_Deprecated->f.EvalCoord2fv(u);
  1552. }
  1553. inline void QOpenGLFunctions_2_1::glEvalCoord2f(GLfloat u, GLfloat v)
  1554. {
  1555. d_1_0_Deprecated->f.EvalCoord2f(u, v);
  1556. }
  1557. inline void QOpenGLFunctions_2_1::glEvalCoord2dv(const GLdouble *u)
  1558. {
  1559. d_1_0_Deprecated->f.EvalCoord2dv(u);
  1560. }
  1561. inline void QOpenGLFunctions_2_1::glEvalCoord2d(GLdouble u, GLdouble v)
  1562. {
  1563. d_1_0_Deprecated->f.EvalCoord2d(u, v);
  1564. }
  1565. inline void QOpenGLFunctions_2_1::glEvalCoord1fv(const GLfloat *u)
  1566. {
  1567. d_1_0_Deprecated->f.EvalCoord1fv(u);
  1568. }
  1569. inline void QOpenGLFunctions_2_1::glEvalCoord1f(GLfloat u)
  1570. {
  1571. d_1_0_Deprecated->f.EvalCoord1f(u);
  1572. }
  1573. inline void QOpenGLFunctions_2_1::glEvalCoord1dv(const GLdouble *u)
  1574. {
  1575. d_1_0_Deprecated->f.EvalCoord1dv(u);
  1576. }
  1577. inline void QOpenGLFunctions_2_1::glEvalCoord1d(GLdouble u)
  1578. {
  1579. d_1_0_Deprecated->f.EvalCoord1d(u);
  1580. }
  1581. inline void QOpenGLFunctions_2_1::glMapGrid2f(GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2)
  1582. {
  1583. d_1_0_Deprecated->f.MapGrid2f(un, u1, u2, vn, v1, v2);
  1584. }
  1585. inline void QOpenGLFunctions_2_1::glMapGrid2d(GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2)
  1586. {
  1587. d_1_0_Deprecated->f.MapGrid2d(un, u1, u2, vn, v1, v2);
  1588. }
  1589. inline void QOpenGLFunctions_2_1::glMapGrid1f(GLint un, GLfloat u1, GLfloat u2)
  1590. {
  1591. d_1_0_Deprecated->f.MapGrid1f(un, u1, u2);
  1592. }
  1593. inline void QOpenGLFunctions_2_1::glMapGrid1d(GLint un, GLdouble u1, GLdouble u2)
  1594. {
  1595. d_1_0_Deprecated->f.MapGrid1d(un, u1, u2);
  1596. }
  1597. inline void QOpenGLFunctions_2_1::glMap2f(GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points)
  1598. {
  1599. d_1_0_Deprecated->f.Map2f(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points);
  1600. }
  1601. inline void QOpenGLFunctions_2_1::glMap2d(GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points)
  1602. {
  1603. d_1_0_Deprecated->f.Map2d(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points);
  1604. }
  1605. inline void QOpenGLFunctions_2_1::glMap1f(GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points)
  1606. {
  1607. d_1_0_Deprecated->f.Map1f(target, u1, u2, stride, order, points);
  1608. }
  1609. inline void QOpenGLFunctions_2_1::glMap1d(GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points)
  1610. {
  1611. d_1_0_Deprecated->f.Map1d(target, u1, u2, stride, order, points);
  1612. }
  1613. inline void QOpenGLFunctions_2_1::glPushAttrib(GLbitfield mask)
  1614. {
  1615. d_1_0_Deprecated->f.PushAttrib(mask);
  1616. }
  1617. inline void QOpenGLFunctions_2_1::glPopAttrib()
  1618. {
  1619. d_1_0_Deprecated->f.PopAttrib();
  1620. }
  1621. inline void QOpenGLFunctions_2_1::glAccum(GLenum op, GLfloat value)
  1622. {
  1623. d_1_0_Deprecated->f.Accum(op, value);
  1624. }
  1625. inline void QOpenGLFunctions_2_1::glIndexMask(GLuint mask)
  1626. {
  1627. d_1_0_Deprecated->f.IndexMask(mask);
  1628. }
  1629. inline void QOpenGLFunctions_2_1::glClearIndex(GLfloat c)
  1630. {
  1631. d_1_0_Deprecated->f.ClearIndex(c);
  1632. }
  1633. inline void QOpenGLFunctions_2_1::glClearAccum(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
  1634. {
  1635. d_1_0_Deprecated->f.ClearAccum(red, green, blue, alpha);
  1636. }
  1637. inline void QOpenGLFunctions_2_1::glPushName(GLuint name)
  1638. {
  1639. d_1_0_Deprecated->f.PushName(name);
  1640. }
  1641. inline void QOpenGLFunctions_2_1::glPopName()
  1642. {
  1643. d_1_0_Deprecated->f.PopName();
  1644. }
  1645. inline void QOpenGLFunctions_2_1::glPassThrough(GLfloat token)
  1646. {
  1647. d_1_0_Deprecated->f.PassThrough(token);
  1648. }
  1649. inline void QOpenGLFunctions_2_1::glLoadName(GLuint name)
  1650. {
  1651. d_1_0_Deprecated->f.LoadName(name);
  1652. }
  1653. inline void QOpenGLFunctions_2_1::glInitNames()
  1654. {
  1655. d_1_0_Deprecated->f.InitNames();
  1656. }
  1657. inline GLint QOpenGLFunctions_2_1::glRenderMode(GLenum mode)
  1658. {
  1659. return d_1_0_Deprecated->f.RenderMode(mode);
  1660. }
  1661. inline void QOpenGLFunctions_2_1::glSelectBuffer(GLsizei size, GLuint *buffer)
  1662. {
  1663. d_1_0_Deprecated->f.SelectBuffer(size, buffer);
  1664. }
  1665. inline void QOpenGLFunctions_2_1::glFeedbackBuffer(GLsizei size, GLenum type, GLfloat *buffer)
  1666. {
  1667. d_1_0_Deprecated->f.FeedbackBuffer(size, type, buffer);
  1668. }
  1669. inline void QOpenGLFunctions_2_1::glTexGeniv(GLenum coord, GLenum pname, const GLint *params)
  1670. {
  1671. d_1_0_Deprecated->f.TexGeniv(coord, pname, params);
  1672. }
  1673. inline void QOpenGLFunctions_2_1::glTexGeni(GLenum coord, GLenum pname, GLint param)
  1674. {
  1675. d_1_0_Deprecated->f.TexGeni(coord, pname, param);
  1676. }
  1677. inline void QOpenGLFunctions_2_1::glTexGenfv(GLenum coord, GLenum pname, const GLfloat *params)
  1678. {
  1679. d_1_0_Deprecated->f.TexGenfv(coord, pname, params);
  1680. }
  1681. inline void QOpenGLFunctions_2_1::glTexGenf(GLenum coord, GLenum pname, GLfloat param)
  1682. {
  1683. d_1_0_Deprecated->f.TexGenf(coord, pname, param);
  1684. }
  1685. inline void QOpenGLFunctions_2_1::glTexGendv(GLenum coord, GLenum pname, const GLdouble *params)
  1686. {
  1687. d_1_0_Deprecated->f.TexGendv(coord, pname, params);
  1688. }
  1689. inline void QOpenGLFunctions_2_1::glTexGend(GLenum coord, GLenum pname, GLdouble param)
  1690. {
  1691. d_1_0_Deprecated->f.TexGend(coord, pname, param);
  1692. }
  1693. inline void QOpenGLFunctions_2_1::glTexEnviv(GLenum target, GLenum pname, const GLint *params)
  1694. {
  1695. d_1_0_Deprecated->f.TexEnviv(target, pname, params);
  1696. }
  1697. inline void QOpenGLFunctions_2_1::glTexEnvi(GLenum target, GLenum pname, GLint param)
  1698. {
  1699. d_1_0_Deprecated->f.TexEnvi(target, pname, param);
  1700. }
  1701. inline void QOpenGLFunctions_2_1::glTexEnvfv(GLenum target, GLenum pname, const GLfloat *params)
  1702. {
  1703. d_1_0_Deprecated->f.TexEnvfv(target, pname, params);
  1704. }
  1705. inline void QOpenGLFunctions_2_1::glTexEnvf(GLenum target, GLenum pname, GLfloat param)
  1706. {
  1707. d_1_0_Deprecated->f.TexEnvf(target, pname, param);
  1708. }
  1709. inline void QOpenGLFunctions_2_1::glShadeModel(GLenum mode)
  1710. {
  1711. d_1_0_Deprecated->f.ShadeModel(mode);
  1712. }
  1713. inline void QOpenGLFunctions_2_1::glPolygonStipple(const GLubyte *mask)
  1714. {
  1715. d_1_0_Deprecated->f.PolygonStipple(mask);
  1716. }
  1717. inline void QOpenGLFunctions_2_1::glMaterialiv(GLenum face, GLenum pname, const GLint *params)
  1718. {
  1719. d_1_0_Deprecated->f.Materialiv(face, pname, params);
  1720. }
  1721. inline void QOpenGLFunctions_2_1::glMateriali(GLenum face, GLenum pname, GLint param)
  1722. {
  1723. d_1_0_Deprecated->f.Materiali(face, pname, param);
  1724. }
  1725. inline void QOpenGLFunctions_2_1::glMaterialfv(GLenum face, GLenum pname, const GLfloat *params)
  1726. {
  1727. d_1_0_Deprecated->f.Materialfv(face, pname, params);
  1728. }
  1729. inline void QOpenGLFunctions_2_1::glMaterialf(GLenum face, GLenum pname, GLfloat param)
  1730. {
  1731. d_1_0_Deprecated->f.Materialf(face, pname, param);
  1732. }
  1733. inline void QOpenGLFunctions_2_1::glLineStipple(GLint factor, GLushort pattern)
  1734. {
  1735. d_1_0_Deprecated->f.LineStipple(factor, pattern);
  1736. }
  1737. inline void QOpenGLFunctions_2_1::glLightModeliv(GLenum pname, const GLint *params)
  1738. {
  1739. d_1_0_Deprecated->f.LightModeliv(pname, params);
  1740. }
  1741. inline void QOpenGLFunctions_2_1::glLightModeli(GLenum pname, GLint param)
  1742. {
  1743. d_1_0_Deprecated->f.LightModeli(pname, param);
  1744. }
  1745. inline void QOpenGLFunctions_2_1::glLightModelfv(GLenum pname, const GLfloat *params)
  1746. {
  1747. d_1_0_Deprecated->f.LightModelfv(pname, params);
  1748. }
  1749. inline void QOpenGLFunctions_2_1::glLightModelf(GLenum pname, GLfloat param)
  1750. {
  1751. d_1_0_Deprecated->f.LightModelf(pname, param);
  1752. }
  1753. inline void QOpenGLFunctions_2_1::glLightiv(GLenum light, GLenum pname, const GLint *params)
  1754. {
  1755. d_1_0_Deprecated->f.Lightiv(light, pname, params);
  1756. }
  1757. inline void QOpenGLFunctions_2_1::glLighti(GLenum light, GLenum pname, GLint param)
  1758. {
  1759. d_1_0_Deprecated->f.Lighti(light, pname, param);
  1760. }
  1761. inline void QOpenGLFunctions_2_1::glLightfv(GLenum light, GLenum pname, const GLfloat *params)
  1762. {
  1763. d_1_0_Deprecated->f.Lightfv(light, pname, params);
  1764. }
  1765. inline void QOpenGLFunctions_2_1::glLightf(GLenum light, GLenum pname, GLfloat param)
  1766. {
  1767. d_1_0_Deprecated->f.Lightf(light, pname, param);
  1768. }
  1769. inline void QOpenGLFunctions_2_1::glFogiv(GLenum pname, const GLint *params)
  1770. {
  1771. d_1_0_Deprecated->f.Fogiv(pname, params);
  1772. }
  1773. inline void QOpenGLFunctions_2_1::glFogi(GLenum pname, GLint param)
  1774. {
  1775. d_1_0_Deprecated->f.Fogi(pname, param);
  1776. }
  1777. inline void QOpenGLFunctions_2_1::glFogfv(GLenum pname, const GLfloat *params)
  1778. {
  1779. d_1_0_Deprecated->f.Fogfv(pname, params);
  1780. }
  1781. inline void QOpenGLFunctions_2_1::glFogf(GLenum pname, GLfloat param)
  1782. {
  1783. d_1_0_Deprecated->f.Fogf(pname, param);
  1784. }
  1785. inline void QOpenGLFunctions_2_1::glColorMaterial(GLenum face, GLenum mode)
  1786. {
  1787. d_1_0_Deprecated->f.ColorMaterial(face, mode);
  1788. }
  1789. inline void QOpenGLFunctions_2_1::glClipPlane(GLenum plane, const GLdouble *equation)
  1790. {
  1791. d_1_0_Deprecated->f.ClipPlane(plane, equation);
  1792. }
  1793. inline void QOpenGLFunctions_2_1::glVertex4sv(const GLshort *v)
  1794. {
  1795. d_1_0_Deprecated->f.Vertex4sv(v);
  1796. }
  1797. inline void QOpenGLFunctions_2_1::glVertex4s(GLshort x, GLshort y, GLshort z, GLshort w)
  1798. {
  1799. d_1_0_Deprecated->f.Vertex4s(x, y, z, w);
  1800. }
  1801. inline void QOpenGLFunctions_2_1::glVertex4iv(const GLint *v)
  1802. {
  1803. d_1_0_Deprecated->f.Vertex4iv(v);
  1804. }
  1805. inline void QOpenGLFunctions_2_1::glVertex4i(GLint x, GLint y, GLint z, GLint w)
  1806. {
  1807. d_1_0_Deprecated->f.Vertex4i(x, y, z, w);
  1808. }
  1809. inline void QOpenGLFunctions_2_1::glVertex4fv(const GLfloat *v)
  1810. {
  1811. d_1_0_Deprecated->f.Vertex4fv(v);
  1812. }
  1813. inline void QOpenGLFunctions_2_1::glVertex4f(GLfloat x, GLfloat y, GLfloat z, GLfloat w)
  1814. {
  1815. d_1_0_Deprecated->f.Vertex4f(x, y, z, w);
  1816. }
  1817. inline void QOpenGLFunctions_2_1::glVertex4dv(const GLdouble *v)
  1818. {
  1819. d_1_0_Deprecated->f.Vertex4dv(v);
  1820. }
  1821. inline void QOpenGLFunctions_2_1::glVertex4d(GLdouble x, GLdouble y, GLdouble z, GLdouble w)
  1822. {
  1823. d_1_0_Deprecated->f.Vertex4d(x, y, z, w);
  1824. }
  1825. inline void QOpenGLFunctions_2_1::glVertex3sv(const GLshort *v)
  1826. {
  1827. d_1_0_Deprecated->f.Vertex3sv(v);
  1828. }
  1829. inline void QOpenGLFunctions_2_1::glVertex3s(GLshort x, GLshort y, GLshort z)
  1830. {
  1831. d_1_0_Deprecated->f.Vertex3s(x, y, z);
  1832. }
  1833. inline void QOpenGLFunctions_2_1::glVertex3iv(const GLint *v)
  1834. {
  1835. d_1_0_Deprecated->f.Vertex3iv(v);
  1836. }
  1837. inline void QOpenGLFunctions_2_1::glVertex3i(GLint x, GLint y, GLint z)
  1838. {
  1839. d_1_0_Deprecated->f.Vertex3i(x, y, z);
  1840. }
  1841. inline void QOpenGLFunctions_2_1::glVertex3fv(const GLfloat *v)
  1842. {
  1843. d_1_0_Deprecated->f.Vertex3fv(v);
  1844. }
  1845. inline void QOpenGLFunctions_2_1::glVertex3f(GLfloat x, GLfloat y, GLfloat z)
  1846. {
  1847. d_1_0_Deprecated->f.Vertex3f(x, y, z);
  1848. }
  1849. inline void QOpenGLFunctions_2_1::glVertex3dv(const GLdouble *v)
  1850. {
  1851. d_1_0_Deprecated->f.Vertex3dv(v);
  1852. }
  1853. inline void QOpenGLFunctions_2_1::glVertex3d(GLdouble x, GLdouble y, GLdouble z)
  1854. {
  1855. d_1_0_Deprecated->f.Vertex3d(x, y, z);
  1856. }
  1857. inline void QOpenGLFunctions_2_1::glVertex2sv(const GLshort *v)
  1858. {
  1859. d_1_0_Deprecated->f.Vertex2sv(v);
  1860. }
  1861. inline void QOpenGLFunctions_2_1::glVertex2s(GLshort x, GLshort y)
  1862. {
  1863. d_1_0_Deprecated->f.Vertex2s(x, y);
  1864. }
  1865. inline void QOpenGLFunctions_2_1::glVertex2iv(const GLint *v)
  1866. {
  1867. d_1_0_Deprecated->f.Vertex2iv(v);
  1868. }
  1869. inline void QOpenGLFunctions_2_1::glVertex2i(GLint x, GLint y)
  1870. {
  1871. d_1_0_Deprecated->f.Vertex2i(x, y);
  1872. }
  1873. inline void QOpenGLFunctions_2_1::glVertex2fv(const GLfloat *v)
  1874. {
  1875. d_1_0_Deprecated->f.Vertex2fv(v);
  1876. }
  1877. inline void QOpenGLFunctions_2_1::glVertex2f(GLfloat x, GLfloat y)
  1878. {
  1879. d_1_0_Deprecated->f.Vertex2f(x, y);
  1880. }
  1881. inline void QOpenGLFunctions_2_1::glVertex2dv(const GLdouble *v)
  1882. {
  1883. d_1_0_Deprecated->f.Vertex2dv(v);
  1884. }
  1885. inline void QOpenGLFunctions_2_1::glVertex2d(GLdouble x, GLdouble y)
  1886. {
  1887. d_1_0_Deprecated->f.Vertex2d(x, y);
  1888. }
  1889. inline void QOpenGLFunctions_2_1::glTexCoord4sv(const GLshort *v)
  1890. {
  1891. d_1_0_Deprecated->f.TexCoord4sv(v);
  1892. }
  1893. inline void QOpenGLFunctions_2_1::glTexCoord4s(GLshort s, GLshort t, GLshort r, GLshort q)
  1894. {
  1895. d_1_0_Deprecated->f.TexCoord4s(s, t, r, q);
  1896. }
  1897. inline void QOpenGLFunctions_2_1::glTexCoord4iv(const GLint *v)
  1898. {
  1899. d_1_0_Deprecated->f.TexCoord4iv(v);
  1900. }
  1901. inline void QOpenGLFunctions_2_1::glTexCoord4i(GLint s, GLint t, GLint r, GLint q)
  1902. {
  1903. d_1_0_Deprecated->f.TexCoord4i(s, t, r, q);
  1904. }
  1905. inline void QOpenGLFunctions_2_1::glTexCoord4fv(const GLfloat *v)
  1906. {
  1907. d_1_0_Deprecated->f.TexCoord4fv(v);
  1908. }
  1909. inline void QOpenGLFunctions_2_1::glTexCoord4f(GLfloat s, GLfloat t, GLfloat r, GLfloat q)
  1910. {
  1911. d_1_0_Deprecated->f.TexCoord4f(s, t, r, q);
  1912. }
  1913. inline void QOpenGLFunctions_2_1::glTexCoord4dv(const GLdouble *v)
  1914. {
  1915. d_1_0_Deprecated->f.TexCoord4dv(v);
  1916. }
  1917. inline void QOpenGLFunctions_2_1::glTexCoord4d(GLdouble s, GLdouble t, GLdouble r, GLdouble q)
  1918. {
  1919. d_1_0_Deprecated->f.TexCoord4d(s, t, r, q);
  1920. }
  1921. inline void QOpenGLFunctions_2_1::glTexCoord3sv(const GLshort *v)
  1922. {
  1923. d_1_0_Deprecated->f.TexCoord3sv(v);
  1924. }
  1925. inline void QOpenGLFunctions_2_1::glTexCoord3s(GLshort s, GLshort t, GLshort r)
  1926. {
  1927. d_1_0_Deprecated->f.TexCoord3s(s, t, r);
  1928. }
  1929. inline void QOpenGLFunctions_2_1::glTexCoord3iv(const GLint *v)
  1930. {
  1931. d_1_0_Deprecated->f.TexCoord3iv(v);
  1932. }
  1933. inline void QOpenGLFunctions_2_1::glTexCoord3i(GLint s, GLint t, GLint r)
  1934. {
  1935. d_1_0_Deprecated->f.TexCoord3i(s, t, r);
  1936. }
  1937. inline void QOpenGLFunctions_2_1::glTexCoord3fv(const GLfloat *v)
  1938. {
  1939. d_1_0_Deprecated->f.TexCoord3fv(v);
  1940. }
  1941. inline void QOpenGLFunctions_2_1::glTexCoord3f(GLfloat s, GLfloat t, GLfloat r)
  1942. {
  1943. d_1_0_Deprecated->f.TexCoord3f(s, t, r);
  1944. }
  1945. inline void QOpenGLFunctions_2_1::glTexCoord3dv(const GLdouble *v)
  1946. {
  1947. d_1_0_Deprecated->f.TexCoord3dv(v);
  1948. }
  1949. inline void QOpenGLFunctions_2_1::glTexCoord3d(GLdouble s, GLdouble t, GLdouble r)
  1950. {
  1951. d_1_0_Deprecated->f.TexCoord3d(s, t, r);
  1952. }
  1953. inline void QOpenGLFunctions_2_1::glTexCoord2sv(const GLshort *v)
  1954. {
  1955. d_1_0_Deprecated->f.TexCoord2sv(v);
  1956. }
  1957. inline void QOpenGLFunctions_2_1::glTexCoord2s(GLshort s, GLshort t)
  1958. {
  1959. d_1_0_Deprecated->f.TexCoord2s(s, t);
  1960. }
  1961. inline void QOpenGLFunctions_2_1::glTexCoord2iv(const GLint *v)
  1962. {
  1963. d_1_0_Deprecated->f.TexCoord2iv(v);
  1964. }
  1965. inline void QOpenGLFunctions_2_1::glTexCoord2i(GLint s, GLint t)
  1966. {
  1967. d_1_0_Deprecated->f.TexCoord2i(s, t);
  1968. }
  1969. inline void QOpenGLFunctions_2_1::glTexCoord2fv(const GLfloat *v)
  1970. {
  1971. d_1_0_Deprecated->f.TexCoord2fv(v);
  1972. }
  1973. inline void QOpenGLFunctions_2_1::glTexCoord2f(GLfloat s, GLfloat t)
  1974. {
  1975. d_1_0_Deprecated->f.TexCoord2f(s, t);
  1976. }
  1977. inline void QOpenGLFunctions_2_1::glTexCoord2dv(const GLdouble *v)
  1978. {
  1979. d_1_0_Deprecated->f.TexCoord2dv(v);
  1980. }
  1981. inline void QOpenGLFunctions_2_1::glTexCoord2d(GLdouble s, GLdouble t)
  1982. {
  1983. d_1_0_Deprecated->f.TexCoord2d(s, t);
  1984. }
  1985. inline void QOpenGLFunctions_2_1::glTexCoord1sv(const GLshort *v)
  1986. {
  1987. d_1_0_Deprecated->f.TexCoord1sv(v);
  1988. }
  1989. inline void QOpenGLFunctions_2_1::glTexCoord1s(GLshort s)
  1990. {
  1991. d_1_0_Deprecated->f.TexCoord1s(s);
  1992. }
  1993. inline void QOpenGLFunctions_2_1::glTexCoord1iv(const GLint *v)
  1994. {
  1995. d_1_0_Deprecated->f.TexCoord1iv(v);
  1996. }
  1997. inline void QOpenGLFunctions_2_1::glTexCoord1i(GLint s)
  1998. {
  1999. d_1_0_Deprecated->f.TexCoord1i(s);
  2000. }
  2001. inline void QOpenGLFunctions_2_1::glTexCoord1fv(const GLfloat *v)
  2002. {
  2003. d_1_0_Deprecated->f.TexCoord1fv(v);
  2004. }
  2005. inline void QOpenGLFunctions_2_1::glTexCoord1f(GLfloat s)
  2006. {
  2007. d_1_0_Deprecated->f.TexCoord1f(s);
  2008. }
  2009. inline void QOpenGLFunctions_2_1::glTexCoord1dv(const GLdouble *v)
  2010. {
  2011. d_1_0_Deprecated->f.TexCoord1dv(v);
  2012. }
  2013. inline void QOpenGLFunctions_2_1::glTexCoord1d(GLdouble s)
  2014. {
  2015. d_1_0_Deprecated->f.TexCoord1d(s);
  2016. }
  2017. inline void QOpenGLFunctions_2_1::glRectsv(const GLshort *v1, const GLshort *v2)
  2018. {
  2019. d_1_0_Deprecated->f.Rectsv(v1, v2);
  2020. }
  2021. inline void QOpenGLFunctions_2_1::glRects(GLshort x1, GLshort y1, GLshort x2, GLshort y2)
  2022. {
  2023. d_1_0_Deprecated->f.Rects(x1, y1, x2, y2);
  2024. }
  2025. inline void QOpenGLFunctions_2_1::glRectiv(const GLint *v1, const GLint *v2)
  2026. {
  2027. d_1_0_Deprecated->f.Rectiv(v1, v2);
  2028. }
  2029. inline void QOpenGLFunctions_2_1::glRecti(GLint x1, GLint y1, GLint x2, GLint y2)
  2030. {
  2031. d_1_0_Deprecated->f.Recti(x1, y1, x2, y2);
  2032. }
  2033. inline void QOpenGLFunctions_2_1::glRectfv(const GLfloat *v1, const GLfloat *v2)
  2034. {
  2035. d_1_0_Deprecated->f.Rectfv(v1, v2);
  2036. }
  2037. inline void QOpenGLFunctions_2_1::glRectf(GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2)
  2038. {
  2039. d_1_0_Deprecated->f.Rectf(x1, y1, x2, y2);
  2040. }
  2041. inline void QOpenGLFunctions_2_1::glRectdv(const GLdouble *v1, const GLdouble *v2)
  2042. {
  2043. d_1_0_Deprecated->f.Rectdv(v1, v2);
  2044. }
  2045. inline void QOpenGLFunctions_2_1::glRectd(GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2)
  2046. {
  2047. d_1_0_Deprecated->f.Rectd(x1, y1, x2, y2);
  2048. }
  2049. inline void QOpenGLFunctions_2_1::glRasterPos4sv(const GLshort *v)
  2050. {
  2051. d_1_0_Deprecated->f.RasterPos4sv(v);
  2052. }
  2053. inline void QOpenGLFunctions_2_1::glRasterPos4s(GLshort x, GLshort y, GLshort z, GLshort w)
  2054. {
  2055. d_1_0_Deprecated->f.RasterPos4s(x, y, z, w);
  2056. }
  2057. inline void QOpenGLFunctions_2_1::glRasterPos4iv(const GLint *v)
  2058. {
  2059. d_1_0_Deprecated->f.RasterPos4iv(v);
  2060. }
  2061. inline void QOpenGLFunctions_2_1::glRasterPos4i(GLint x, GLint y, GLint z, GLint w)
  2062. {
  2063. d_1_0_Deprecated->f.RasterPos4i(x, y, z, w);
  2064. }
  2065. inline void QOpenGLFunctions_2_1::glRasterPos4fv(const GLfloat *v)
  2066. {
  2067. d_1_0_Deprecated->f.RasterPos4fv(v);
  2068. }
  2069. inline void QOpenGLFunctions_2_1::glRasterPos4f(GLfloat x, GLfloat y, GLfloat z, GLfloat w)
  2070. {
  2071. d_1_0_Deprecated->f.RasterPos4f(x, y, z, w);
  2072. }
  2073. inline void QOpenGLFunctions_2_1::glRasterPos4dv(const GLdouble *v)
  2074. {
  2075. d_1_0_Deprecated->f.RasterPos4dv(v);
  2076. }
  2077. inline void QOpenGLFunctions_2_1::glRasterPos4d(GLdouble x, GLdouble y, GLdouble z, GLdouble w)
  2078. {
  2079. d_1_0_Deprecated->f.RasterPos4d(x, y, z, w);
  2080. }
  2081. inline void QOpenGLFunctions_2_1::glRasterPos3sv(const GLshort *v)
  2082. {
  2083. d_1_0_Deprecated->f.RasterPos3sv(v);
  2084. }
  2085. inline void QOpenGLFunctions_2_1::glRasterPos3s(GLshort x, GLshort y, GLshort z)
  2086. {
  2087. d_1_0_Deprecated->f.RasterPos3s(x, y, z);
  2088. }
  2089. inline void QOpenGLFunctions_2_1::glRasterPos3iv(const GLint *v)
  2090. {
  2091. d_1_0_Deprecated->f.RasterPos3iv(v);
  2092. }
  2093. inline void QOpenGLFunctions_2_1::glRasterPos3i(GLint x, GLint y, GLint z)
  2094. {
  2095. d_1_0_Deprecated->f.RasterPos3i(x, y, z);
  2096. }
  2097. inline void QOpenGLFunctions_2_1::glRasterPos3fv(const GLfloat *v)
  2098. {
  2099. d_1_0_Deprecated->f.RasterPos3fv(v);
  2100. }
  2101. inline void QOpenGLFunctions_2_1::glRasterPos3f(GLfloat x, GLfloat y, GLfloat z)
  2102. {
  2103. d_1_0_Deprecated->f.RasterPos3f(x, y, z);
  2104. }
  2105. inline void QOpenGLFunctions_2_1::glRasterPos3dv(const GLdouble *v)
  2106. {
  2107. d_1_0_Deprecated->f.RasterPos3dv(v);
  2108. }
  2109. inline void QOpenGLFunctions_2_1::glRasterPos3d(GLdouble x, GLdouble y, GLdouble z)
  2110. {
  2111. d_1_0_Deprecated->f.RasterPos3d(x, y, z);
  2112. }
  2113. inline void QOpenGLFunctions_2_1::glRasterPos2sv(const GLshort *v)
  2114. {
  2115. d_1_0_Deprecated->f.RasterPos2sv(v);
  2116. }
  2117. inline void QOpenGLFunctions_2_1::glRasterPos2s(GLshort x, GLshort y)
  2118. {
  2119. d_1_0_Deprecated->f.RasterPos2s(x, y);
  2120. }
  2121. inline void QOpenGLFunctions_2_1::glRasterPos2iv(const GLint *v)
  2122. {
  2123. d_1_0_Deprecated->f.RasterPos2iv(v);
  2124. }
  2125. inline void QOpenGLFunctions_2_1::glRasterPos2i(GLint x, GLint y)
  2126. {
  2127. d_1_0_Deprecated->f.RasterPos2i(x, y);
  2128. }
  2129. inline void QOpenGLFunctions_2_1::glRasterPos2fv(const GLfloat *v)
  2130. {
  2131. d_1_0_Deprecated->f.RasterPos2fv(v);
  2132. }
  2133. inline void QOpenGLFunctions_2_1::glRasterPos2f(GLfloat x, GLfloat y)
  2134. {
  2135. d_1_0_Deprecated->f.RasterPos2f(x, y);
  2136. }
  2137. inline void QOpenGLFunctions_2_1::glRasterPos2dv(const GLdouble *v)
  2138. {
  2139. d_1_0_Deprecated->f.RasterPos2dv(v);
  2140. }
  2141. inline void QOpenGLFunctions_2_1::glRasterPos2d(GLdouble x, GLdouble y)
  2142. {
  2143. d_1_0_Deprecated->f.RasterPos2d(x, y);
  2144. }
  2145. inline void QOpenGLFunctions_2_1::glNormal3sv(const GLshort *v)
  2146. {
  2147. d_1_0_Deprecated->f.Normal3sv(v);
  2148. }
  2149. inline void QOpenGLFunctions_2_1::glNormal3s(GLshort nx, GLshort ny, GLshort nz)
  2150. {
  2151. d_1_0_Deprecated->f.Normal3s(nx, ny, nz);
  2152. }
  2153. inline void QOpenGLFunctions_2_1::glNormal3iv(const GLint *v)
  2154. {
  2155. d_1_0_Deprecated->f.Normal3iv(v);
  2156. }
  2157. inline void QOpenGLFunctions_2_1::glNormal3i(GLint nx, GLint ny, GLint nz)
  2158. {
  2159. d_1_0_Deprecated->f.Normal3i(nx, ny, nz);
  2160. }
  2161. inline void QOpenGLFunctions_2_1::glNormal3fv(const GLfloat *v)
  2162. {
  2163. d_1_0_Deprecated->f.Normal3fv(v);
  2164. }
  2165. inline void QOpenGLFunctions_2_1::glNormal3f(GLfloat nx, GLfloat ny, GLfloat nz)
  2166. {
  2167. d_1_0_Deprecated->f.Normal3f(nx, ny, nz);
  2168. }
  2169. inline void QOpenGLFunctions_2_1::glNormal3dv(const GLdouble *v)
  2170. {
  2171. d_1_0_Deprecated->f.Normal3dv(v);
  2172. }
  2173. inline void QOpenGLFunctions_2_1::glNormal3d(GLdouble nx, GLdouble ny, GLdouble nz)
  2174. {
  2175. d_1_0_Deprecated->f.Normal3d(nx, ny, nz);
  2176. }
  2177. inline void QOpenGLFunctions_2_1::glNormal3bv(const GLbyte *v)
  2178. {
  2179. d_1_0_Deprecated->f.Normal3bv(v);
  2180. }
  2181. inline void QOpenGLFunctions_2_1::glNormal3b(GLbyte nx, GLbyte ny, GLbyte nz)
  2182. {
  2183. d_1_0_Deprecated->f.Normal3b(nx, ny, nz);
  2184. }
  2185. inline void QOpenGLFunctions_2_1::glIndexsv(const GLshort *c)
  2186. {
  2187. d_1_0_Deprecated->f.Indexsv(c);
  2188. }
  2189. inline void QOpenGLFunctions_2_1::glIndexs(GLshort c)
  2190. {
  2191. d_1_0_Deprecated->f.Indexs(c);
  2192. }
  2193. inline void QOpenGLFunctions_2_1::glIndexiv(const GLint *c)
  2194. {
  2195. d_1_0_Deprecated->f.Indexiv(c);
  2196. }
  2197. inline void QOpenGLFunctions_2_1::glIndexi(GLint c)
  2198. {
  2199. d_1_0_Deprecated->f.Indexi(c);
  2200. }
  2201. inline void QOpenGLFunctions_2_1::glIndexfv(const GLfloat *c)
  2202. {
  2203. d_1_0_Deprecated->f.Indexfv(c);
  2204. }
  2205. inline void QOpenGLFunctions_2_1::glIndexf(GLfloat c)
  2206. {
  2207. d_1_0_Deprecated->f.Indexf(c);
  2208. }
  2209. inline void QOpenGLFunctions_2_1::glIndexdv(const GLdouble *c)
  2210. {
  2211. d_1_0_Deprecated->f.Indexdv(c);
  2212. }
  2213. inline void QOpenGLFunctions_2_1::glIndexd(GLdouble c)
  2214. {
  2215. d_1_0_Deprecated->f.Indexd(c);
  2216. }
  2217. inline void QOpenGLFunctions_2_1::glEnd()
  2218. {
  2219. d_1_0_Deprecated->f.End();
  2220. }
  2221. inline void QOpenGLFunctions_2_1::glEdgeFlagv(const GLboolean *flag)
  2222. {
  2223. d_1_0_Deprecated->f.EdgeFlagv(flag);
  2224. }
  2225. inline void QOpenGLFunctions_2_1::glEdgeFlag(GLboolean flag)
  2226. {
  2227. d_1_0_Deprecated->f.EdgeFlag(flag);
  2228. }
  2229. inline void QOpenGLFunctions_2_1::glColor4usv(const GLushort *v)
  2230. {
  2231. d_1_0_Deprecated->f.Color4usv(v);
  2232. }
  2233. inline void QOpenGLFunctions_2_1::glColor4us(GLushort red, GLushort green, GLushort blue, GLushort alpha)
  2234. {
  2235. d_1_0_Deprecated->f.Color4us(red, green, blue, alpha);
  2236. }
  2237. inline void QOpenGLFunctions_2_1::glColor4uiv(const GLuint *v)
  2238. {
  2239. d_1_0_Deprecated->f.Color4uiv(v);
  2240. }
  2241. inline void QOpenGLFunctions_2_1::glColor4ui(GLuint red, GLuint green, GLuint blue, GLuint alpha)
  2242. {
  2243. d_1_0_Deprecated->f.Color4ui(red, green, blue, alpha);
  2244. }
  2245. inline void QOpenGLFunctions_2_1::glColor4ubv(const GLubyte *v)
  2246. {
  2247. d_1_0_Deprecated->f.Color4ubv(v);
  2248. }
  2249. inline void QOpenGLFunctions_2_1::glColor4ub(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha)
  2250. {
  2251. d_1_0_Deprecated->f.Color4ub(red, green, blue, alpha);
  2252. }
  2253. inline void QOpenGLFunctions_2_1::glColor4sv(const GLshort *v)
  2254. {
  2255. d_1_0_Deprecated->f.Color4sv(v);
  2256. }
  2257. inline void QOpenGLFunctions_2_1::glColor4s(GLshort red, GLshort green, GLshort blue, GLshort alpha)
  2258. {
  2259. d_1_0_Deprecated->f.Color4s(red, green, blue, alpha);
  2260. }
  2261. inline void QOpenGLFunctions_2_1::glColor4iv(const GLint *v)
  2262. {
  2263. d_1_0_Deprecated->f.Color4iv(v);
  2264. }
  2265. inline void QOpenGLFunctions_2_1::glColor4i(GLint red, GLint green, GLint blue, GLint alpha)
  2266. {
  2267. d_1_0_Deprecated->f.Color4i(red, green, blue, alpha);
  2268. }
  2269. inline void QOpenGLFunctions_2_1::glColor4fv(const GLfloat *v)
  2270. {
  2271. d_1_0_Deprecated->f.Color4fv(v);
  2272. }
  2273. inline void QOpenGLFunctions_2_1::glColor4f(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
  2274. {
  2275. d_1_0_Deprecated->f.Color4f(red, green, blue, alpha);
  2276. }
  2277. inline void QOpenGLFunctions_2_1::glColor4dv(const GLdouble *v)
  2278. {
  2279. d_1_0_Deprecated->f.Color4dv(v);
  2280. }
  2281. inline void QOpenGLFunctions_2_1::glColor4d(GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha)
  2282. {
  2283. d_1_0_Deprecated->f.Color4d(red, green, blue, alpha);
  2284. }
  2285. inline void QOpenGLFunctions_2_1::glColor4bv(const GLbyte *v)
  2286. {
  2287. d_1_0_Deprecated->f.Color4bv(v);
  2288. }
  2289. inline void QOpenGLFunctions_2_1::glColor4b(GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha)
  2290. {
  2291. d_1_0_Deprecated->f.Color4b(red, green, blue, alpha);
  2292. }
  2293. inline void QOpenGLFunctions_2_1::glColor3usv(const GLushort *v)
  2294. {
  2295. d_1_0_Deprecated->f.Color3usv(v);
  2296. }
  2297. inline void QOpenGLFunctions_2_1::glColor3us(GLushort red, GLushort green, GLushort blue)
  2298. {
  2299. d_1_0_Deprecated->f.Color3us(red, green, blue);
  2300. }
  2301. inline void QOpenGLFunctions_2_1::glColor3uiv(const GLuint *v)
  2302. {
  2303. d_1_0_Deprecated->f.Color3uiv(v);
  2304. }
  2305. inline void QOpenGLFunctions_2_1::glColor3ui(GLuint red, GLuint green, GLuint blue)
  2306. {
  2307. d_1_0_Deprecated->f.Color3ui(red, green, blue);
  2308. }
  2309. inline void QOpenGLFunctions_2_1::glColor3ubv(const GLubyte *v)
  2310. {
  2311. d_1_0_Deprecated->f.Color3ubv(v);
  2312. }
  2313. inline void QOpenGLFunctions_2_1::glColor3ub(GLubyte red, GLubyte green, GLubyte blue)
  2314. {
  2315. d_1_0_Deprecated->f.Color3ub(red, green, blue);
  2316. }
  2317. inline void QOpenGLFunctions_2_1::glColor3sv(const GLshort *v)
  2318. {
  2319. d_1_0_Deprecated->f.Color3sv(v);
  2320. }
  2321. inline void QOpenGLFunctions_2_1::glColor3s(GLshort red, GLshort green, GLshort blue)
  2322. {
  2323. d_1_0_Deprecated->f.Color3s(red, green, blue);
  2324. }
  2325. inline void QOpenGLFunctions_2_1::glColor3iv(const GLint *v)
  2326. {
  2327. d_1_0_Deprecated->f.Color3iv(v);
  2328. }
  2329. inline void QOpenGLFunctions_2_1::glColor3i(GLint red, GLint green, GLint blue)
  2330. {
  2331. d_1_0_Deprecated->f.Color3i(red, green, blue);
  2332. }
  2333. inline void QOpenGLFunctions_2_1::glColor3fv(const GLfloat *v)
  2334. {
  2335. d_1_0_Deprecated->f.Color3fv(v);
  2336. }
  2337. inline void QOpenGLFunctions_2_1::glColor3f(GLfloat red, GLfloat green, GLfloat blue)
  2338. {
  2339. d_1_0_Deprecated->f.Color3f(red, green, blue);
  2340. }
  2341. inline void QOpenGLFunctions_2_1::glColor3dv(const GLdouble *v)
  2342. {
  2343. d_1_0_Deprecated->f.Color3dv(v);
  2344. }
  2345. inline void QOpenGLFunctions_2_1::glColor3d(GLdouble red, GLdouble green, GLdouble blue)
  2346. {
  2347. d_1_0_Deprecated->f.Color3d(red, green, blue);
  2348. }
  2349. inline void QOpenGLFunctions_2_1::glColor3bv(const GLbyte *v)
  2350. {
  2351. d_1_0_Deprecated->f.Color3bv(v);
  2352. }
  2353. inline void QOpenGLFunctions_2_1::glColor3b(GLbyte red, GLbyte green, GLbyte blue)
  2354. {
  2355. d_1_0_Deprecated->f.Color3b(red, green, blue);
  2356. }
  2357. inline void QOpenGLFunctions_2_1::glBitmap(GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte *bitmap)
  2358. {
  2359. d_1_0_Deprecated->f.Bitmap(width, height, xorig, yorig, xmove, ymove, bitmap);
  2360. }
  2361. inline void QOpenGLFunctions_2_1::glBegin(GLenum mode)
  2362. {
  2363. d_1_0_Deprecated->f.Begin(mode);
  2364. }
  2365. inline void QOpenGLFunctions_2_1::glListBase(GLuint base)
  2366. {
  2367. d_1_0_Deprecated->f.ListBase(base);
  2368. }
  2369. inline GLuint QOpenGLFunctions_2_1::glGenLists(GLsizei range)
  2370. {
  2371. return d_1_0_Deprecated->f.GenLists(range);
  2372. }
  2373. inline void QOpenGLFunctions_2_1::glDeleteLists(GLuint list, GLsizei range)
  2374. {
  2375. d_1_0_Deprecated->f.DeleteLists(list, range);
  2376. }
  2377. inline void QOpenGLFunctions_2_1::glCallLists(GLsizei n, GLenum type, const GLvoid *lists)
  2378. {
  2379. d_1_0_Deprecated->f.CallLists(n, type, lists);
  2380. }
  2381. inline void QOpenGLFunctions_2_1::glCallList(GLuint list)
  2382. {
  2383. d_1_0_Deprecated->f.CallList(list);
  2384. }
  2385. inline void QOpenGLFunctions_2_1::glEndList()
  2386. {
  2387. d_1_0_Deprecated->f.EndList();
  2388. }
  2389. inline void QOpenGLFunctions_2_1::glNewList(GLuint list, GLenum mode)
  2390. {
  2391. d_1_0_Deprecated->f.NewList(list, mode);
  2392. }
  2393. // OpenGL 1.1 deprecated functions
  2394. inline void QOpenGLFunctions_2_1::glPushClientAttrib(GLbitfield mask)
  2395. {
  2396. d_1_1_Deprecated->f.PushClientAttrib(mask);
  2397. }
  2398. inline void QOpenGLFunctions_2_1::glPopClientAttrib()
  2399. {
  2400. d_1_1_Deprecated->f.PopClientAttrib();
  2401. }
  2402. inline void QOpenGLFunctions_2_1::glPrioritizeTextures(GLsizei n, const GLuint *textures, const GLfloat *priorities)
  2403. {
  2404. d_1_1_Deprecated->f.PrioritizeTextures(n, textures, priorities);
  2405. }
  2406. inline GLboolean QOpenGLFunctions_2_1::glAreTexturesResident(GLsizei n, const GLuint *textures, GLboolean *residences)
  2407. {
  2408. return d_1_1_Deprecated->f.AreTexturesResident(n, textures, residences);
  2409. }
  2410. inline void QOpenGLFunctions_2_1::glVertexPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)
  2411. {
  2412. d_1_1_Deprecated->f.VertexPointer(size, type, stride, pointer);
  2413. }
  2414. inline void QOpenGLFunctions_2_1::glTexCoordPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)
  2415. {
  2416. d_1_1_Deprecated->f.TexCoordPointer(size, type, stride, pointer);
  2417. }
  2418. inline void QOpenGLFunctions_2_1::glNormalPointer(GLenum type, GLsizei stride, const GLvoid *pointer)
  2419. {
  2420. d_1_1_Deprecated->f.NormalPointer(type, stride, pointer);
  2421. }
  2422. inline void QOpenGLFunctions_2_1::glInterleavedArrays(GLenum format, GLsizei stride, const GLvoid *pointer)
  2423. {
  2424. d_1_1_Deprecated->f.InterleavedArrays(format, stride, pointer);
  2425. }
  2426. inline void QOpenGLFunctions_2_1::glIndexPointer(GLenum type, GLsizei stride, const GLvoid *pointer)
  2427. {
  2428. d_1_1_Deprecated->f.IndexPointer(type, stride, pointer);
  2429. }
  2430. inline void QOpenGLFunctions_2_1::glEnableClientState(GLenum array)
  2431. {
  2432. d_1_1_Deprecated->f.EnableClientState(array);
  2433. }
  2434. inline void QOpenGLFunctions_2_1::glEdgeFlagPointer(GLsizei stride, const GLvoid *pointer)
  2435. {
  2436. d_1_1_Deprecated->f.EdgeFlagPointer(stride, pointer);
  2437. }
  2438. inline void QOpenGLFunctions_2_1::glDisableClientState(GLenum array)
  2439. {
  2440. d_1_1_Deprecated->f.DisableClientState(array);
  2441. }
  2442. inline void QOpenGLFunctions_2_1::glColorPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)
  2443. {
  2444. d_1_1_Deprecated->f.ColorPointer(size, type, stride, pointer);
  2445. }
  2446. inline void QOpenGLFunctions_2_1::glArrayElement(GLint i)
  2447. {
  2448. d_1_1_Deprecated->f.ArrayElement(i);
  2449. }
  2450. // OpenGL 1.2 deprecated functions
  2451. inline void QOpenGLFunctions_2_1::glResetMinmax(GLenum target)
  2452. {
  2453. d_1_2_Deprecated->f.ResetMinmax(target);
  2454. }
  2455. inline void QOpenGLFunctions_2_1::glResetHistogram(GLenum target)
  2456. {
  2457. d_1_2_Deprecated->f.ResetHistogram(target);
  2458. }
  2459. inline void QOpenGLFunctions_2_1::glMinmax(GLenum target, GLenum internalformat, GLboolean sink)
  2460. {
  2461. d_1_2_Deprecated->f.Minmax(target, internalformat, sink);
  2462. }
  2463. inline void QOpenGLFunctions_2_1::glHistogram(GLenum target, GLsizei width, GLenum internalformat, GLboolean sink)
  2464. {
  2465. d_1_2_Deprecated->f.Histogram(target, width, internalformat, sink);
  2466. }
  2467. inline void QOpenGLFunctions_2_1::glGetMinmaxParameteriv(GLenum target, GLenum pname, GLint *params)
  2468. {
  2469. d_1_2_Deprecated->f.GetMinmaxParameteriv(target, pname, params);
  2470. }
  2471. inline void QOpenGLFunctions_2_1::glGetMinmaxParameterfv(GLenum target, GLenum pname, GLfloat *params)
  2472. {
  2473. d_1_2_Deprecated->f.GetMinmaxParameterfv(target, pname, params);
  2474. }
  2475. inline void QOpenGLFunctions_2_1::glGetMinmax(GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values)
  2476. {
  2477. d_1_2_Deprecated->f.GetMinmax(target, reset, format, type, values);
  2478. }
  2479. inline void QOpenGLFunctions_2_1::glGetHistogramParameteriv(GLenum target, GLenum pname, GLint *params)
  2480. {
  2481. d_1_2_Deprecated->f.GetHistogramParameteriv(target, pname, params);
  2482. }
  2483. inline void QOpenGLFunctions_2_1::glGetHistogramParameterfv(GLenum target, GLenum pname, GLfloat *params)
  2484. {
  2485. d_1_2_Deprecated->f.GetHistogramParameterfv(target, pname, params);
  2486. }
  2487. inline void QOpenGLFunctions_2_1::glGetHistogram(GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values)
  2488. {
  2489. d_1_2_Deprecated->f.GetHistogram(target, reset, format, type, values);
  2490. }
  2491. inline void QOpenGLFunctions_2_1::glSeparableFilter2D(GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *row, const GLvoid *column)
  2492. {
  2493. d_1_2_Deprecated->f.SeparableFilter2D(target, internalformat, width, height, format, type, row, column);
  2494. }
  2495. inline void QOpenGLFunctions_2_1::glGetSeparableFilter(GLenum target, GLenum format, GLenum type, GLvoid *row, GLvoid *column, GLvoid *span)
  2496. {
  2497. d_1_2_Deprecated->f.GetSeparableFilter(target, format, type, row, column, span);
  2498. }
  2499. inline void QOpenGLFunctions_2_1::glGetConvolutionParameteriv(GLenum target, GLenum pname, GLint *params)
  2500. {
  2501. d_1_2_Deprecated->f.GetConvolutionParameteriv(target, pname, params);
  2502. }
  2503. inline void QOpenGLFunctions_2_1::glGetConvolutionParameterfv(GLenum target, GLenum pname, GLfloat *params)
  2504. {
  2505. d_1_2_Deprecated->f.GetConvolutionParameterfv(target, pname, params);
  2506. }
  2507. inline void QOpenGLFunctions_2_1::glGetConvolutionFilter(GLenum target, GLenum format, GLenum type, GLvoid *image)
  2508. {
  2509. d_1_2_Deprecated->f.GetConvolutionFilter(target, format, type, image);
  2510. }
  2511. inline void QOpenGLFunctions_2_1::glCopyConvolutionFilter2D(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height)
  2512. {
  2513. d_1_2_Deprecated->f.CopyConvolutionFilter2D(target, internalformat, x, y, width, height);
  2514. }
  2515. inline void QOpenGLFunctions_2_1::glCopyConvolutionFilter1D(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width)
  2516. {
  2517. d_1_2_Deprecated->f.CopyConvolutionFilter1D(target, internalformat, x, y, width);
  2518. }
  2519. inline void QOpenGLFunctions_2_1::glConvolutionParameteriv(GLenum target, GLenum pname, const GLint *params)
  2520. {
  2521. d_1_2_Deprecated->f.ConvolutionParameteriv(target, pname, params);
  2522. }
  2523. inline void QOpenGLFunctions_2_1::glConvolutionParameteri(GLenum target, GLenum pname, GLint params)
  2524. {
  2525. d_1_2_Deprecated->f.ConvolutionParameteri(target, pname, params);
  2526. }
  2527. inline void QOpenGLFunctions_2_1::glConvolutionParameterfv(GLenum target, GLenum pname, const GLfloat *params)
  2528. {
  2529. d_1_2_Deprecated->f.ConvolutionParameterfv(target, pname, params);
  2530. }
  2531. inline void QOpenGLFunctions_2_1::glConvolutionParameterf(GLenum target, GLenum pname, GLfloat params)
  2532. {
  2533. d_1_2_Deprecated->f.ConvolutionParameterf(target, pname, params);
  2534. }
  2535. inline void QOpenGLFunctions_2_1::glConvolutionFilter2D(GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *image)
  2536. {
  2537. d_1_2_Deprecated->f.ConvolutionFilter2D(target, internalformat, width, height, format, type, image);
  2538. }
  2539. inline void QOpenGLFunctions_2_1::glConvolutionFilter1D(GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *image)
  2540. {
  2541. d_1_2_Deprecated->f.ConvolutionFilter1D(target, internalformat, width, format, type, image);
  2542. }
  2543. inline void QOpenGLFunctions_2_1::glCopyColorSubTable(GLenum target, GLsizei start, GLint x, GLint y, GLsizei width)
  2544. {
  2545. d_1_2_Deprecated->f.CopyColorSubTable(target, start, x, y, width);
  2546. }
  2547. inline void QOpenGLFunctions_2_1::glColorSubTable(GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid *data)
  2548. {
  2549. d_1_2_Deprecated->f.ColorSubTable(target, start, count, format, type, data);
  2550. }
  2551. inline void QOpenGLFunctions_2_1::glGetColorTableParameteriv(GLenum target, GLenum pname, GLint *params)
  2552. {
  2553. d_1_2_Deprecated->f.GetColorTableParameteriv(target, pname, params);
  2554. }
  2555. inline void QOpenGLFunctions_2_1::glGetColorTableParameterfv(GLenum target, GLenum pname, GLfloat *params)
  2556. {
  2557. d_1_2_Deprecated->f.GetColorTableParameterfv(target, pname, params);
  2558. }
  2559. inline void QOpenGLFunctions_2_1::glGetColorTable(GLenum target, GLenum format, GLenum type, GLvoid *table)
  2560. {
  2561. d_1_2_Deprecated->f.GetColorTable(target, format, type, table);
  2562. }
  2563. inline void QOpenGLFunctions_2_1::glCopyColorTable(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width)
  2564. {
  2565. d_1_2_Deprecated->f.CopyColorTable(target, internalformat, x, y, width);
  2566. }
  2567. inline void QOpenGLFunctions_2_1::glColorTableParameteriv(GLenum target, GLenum pname, const GLint *params)
  2568. {
  2569. d_1_2_Deprecated->f.ColorTableParameteriv(target, pname, params);
  2570. }
  2571. inline void QOpenGLFunctions_2_1::glColorTableParameterfv(GLenum target, GLenum pname, const GLfloat *params)
  2572. {
  2573. d_1_2_Deprecated->f.ColorTableParameterfv(target, pname, params);
  2574. }
  2575. inline void QOpenGLFunctions_2_1::glColorTable(GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *table)
  2576. {
  2577. d_1_2_Deprecated->f.ColorTable(target, internalformat, width, format, type, table);
  2578. }
  2579. // OpenGL 1.3 deprecated functions
  2580. inline void QOpenGLFunctions_2_1::glMultTransposeMatrixd(const GLdouble *m)
  2581. {
  2582. d_1_3_Deprecated->f.MultTransposeMatrixd(m);
  2583. }
  2584. inline void QOpenGLFunctions_2_1::glMultTransposeMatrixf(const GLfloat *m)
  2585. {
  2586. d_1_3_Deprecated->f.MultTransposeMatrixf(m);
  2587. }
  2588. inline void QOpenGLFunctions_2_1::glLoadTransposeMatrixd(const GLdouble *m)
  2589. {
  2590. d_1_3_Deprecated->f.LoadTransposeMatrixd(m);
  2591. }
  2592. inline void QOpenGLFunctions_2_1::glLoadTransposeMatrixf(const GLfloat *m)
  2593. {
  2594. d_1_3_Deprecated->f.LoadTransposeMatrixf(m);
  2595. }
  2596. inline void QOpenGLFunctions_2_1::glMultiTexCoord4sv(GLenum target, const GLshort *v)
  2597. {
  2598. d_1_3_Deprecated->f.MultiTexCoord4sv(target, v);
  2599. }
  2600. inline void QOpenGLFunctions_2_1::glMultiTexCoord4s(GLenum target, GLshort s, GLshort t, GLshort r, GLshort q)
  2601. {
  2602. d_1_3_Deprecated->f.MultiTexCoord4s(target, s, t, r, q);
  2603. }
  2604. inline void QOpenGLFunctions_2_1::glMultiTexCoord4iv(GLenum target, const GLint *v)
  2605. {
  2606. d_1_3_Deprecated->f.MultiTexCoord4iv(target, v);
  2607. }
  2608. inline void QOpenGLFunctions_2_1::glMultiTexCoord4i(GLenum target, GLint s, GLint t, GLint r, GLint q)
  2609. {
  2610. d_1_3_Deprecated->f.MultiTexCoord4i(target, s, t, r, q);
  2611. }
  2612. inline void QOpenGLFunctions_2_1::glMultiTexCoord4fv(GLenum target, const GLfloat *v)
  2613. {
  2614. d_1_3_Deprecated->f.MultiTexCoord4fv(target, v);
  2615. }
  2616. inline void QOpenGLFunctions_2_1::glMultiTexCoord4f(GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q)
  2617. {
  2618. d_1_3_Deprecated->f.MultiTexCoord4f(target, s, t, r, q);
  2619. }
  2620. inline void QOpenGLFunctions_2_1::glMultiTexCoord4dv(GLenum target, const GLdouble *v)
  2621. {
  2622. d_1_3_Deprecated->f.MultiTexCoord4dv(target, v);
  2623. }
  2624. inline void QOpenGLFunctions_2_1::glMultiTexCoord4d(GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q)
  2625. {
  2626. d_1_3_Deprecated->f.MultiTexCoord4d(target, s, t, r, q);
  2627. }
  2628. inline void QOpenGLFunctions_2_1::glMultiTexCoord3sv(GLenum target, const GLshort *v)
  2629. {
  2630. d_1_3_Deprecated->f.MultiTexCoord3sv(target, v);
  2631. }
  2632. inline void QOpenGLFunctions_2_1::glMultiTexCoord3s(GLenum target, GLshort s, GLshort t, GLshort r)
  2633. {
  2634. d_1_3_Deprecated->f.MultiTexCoord3s(target, s, t, r);
  2635. }
  2636. inline void QOpenGLFunctions_2_1::glMultiTexCoord3iv(GLenum target, const GLint *v)
  2637. {
  2638. d_1_3_Deprecated->f.MultiTexCoord3iv(target, v);
  2639. }
  2640. inline void QOpenGLFunctions_2_1::glMultiTexCoord3i(GLenum target, GLint s, GLint t, GLint r)
  2641. {
  2642. d_1_3_Deprecated->f.MultiTexCoord3i(target, s, t, r);
  2643. }
  2644. inline void QOpenGLFunctions_2_1::glMultiTexCoord3fv(GLenum target, const GLfloat *v)
  2645. {
  2646. d_1_3_Deprecated->f.MultiTexCoord3fv(target, v);
  2647. }
  2648. inline void QOpenGLFunctions_2_1::glMultiTexCoord3f(GLenum target, GLfloat s, GLfloat t, GLfloat r)
  2649. {
  2650. d_1_3_Deprecated->f.MultiTexCoord3f(target, s, t, r);
  2651. }
  2652. inline void QOpenGLFunctions_2_1::glMultiTexCoord3dv(GLenum target, const GLdouble *v)
  2653. {
  2654. d_1_3_Deprecated->f.MultiTexCoord3dv(target, v);
  2655. }
  2656. inline void QOpenGLFunctions_2_1::glMultiTexCoord3d(GLenum target, GLdouble s, GLdouble t, GLdouble r)
  2657. {
  2658. d_1_3_Deprecated->f.MultiTexCoord3d(target, s, t, r);
  2659. }
  2660. inline void QOpenGLFunctions_2_1::glMultiTexCoord2sv(GLenum target, const GLshort *v)
  2661. {
  2662. d_1_3_Deprecated->f.MultiTexCoord2sv(target, v);
  2663. }
  2664. inline void QOpenGLFunctions_2_1::glMultiTexCoord2s(GLenum target, GLshort s, GLshort t)
  2665. {
  2666. d_1_3_Deprecated->f.MultiTexCoord2s(target, s, t);
  2667. }
  2668. inline void QOpenGLFunctions_2_1::glMultiTexCoord2iv(GLenum target, const GLint *v)
  2669. {
  2670. d_1_3_Deprecated->f.MultiTexCoord2iv(target, v);
  2671. }
  2672. inline void QOpenGLFunctions_2_1::glMultiTexCoord2i(GLenum target, GLint s, GLint t)
  2673. {
  2674. d_1_3_Deprecated->f.MultiTexCoord2i(target, s, t);
  2675. }
  2676. inline void QOpenGLFunctions_2_1::glMultiTexCoord2fv(GLenum target, const GLfloat *v)
  2677. {
  2678. d_1_3_Deprecated->f.MultiTexCoord2fv(target, v);
  2679. }
  2680. inline void QOpenGLFunctions_2_1::glMultiTexCoord2f(GLenum target, GLfloat s, GLfloat t)
  2681. {
  2682. d_1_3_Deprecated->f.MultiTexCoord2f(target, s, t);
  2683. }
  2684. inline void QOpenGLFunctions_2_1::glMultiTexCoord2dv(GLenum target, const GLdouble *v)
  2685. {
  2686. d_1_3_Deprecated->f.MultiTexCoord2dv(target, v);
  2687. }
  2688. inline void QOpenGLFunctions_2_1::glMultiTexCoord2d(GLenum target, GLdouble s, GLdouble t)
  2689. {
  2690. d_1_3_Deprecated->f.MultiTexCoord2d(target, s, t);
  2691. }
  2692. inline void QOpenGLFunctions_2_1::glMultiTexCoord1sv(GLenum target, const GLshort *v)
  2693. {
  2694. d_1_3_Deprecated->f.MultiTexCoord1sv(target, v);
  2695. }
  2696. inline void QOpenGLFunctions_2_1::glMultiTexCoord1s(GLenum target, GLshort s)
  2697. {
  2698. d_1_3_Deprecated->f.MultiTexCoord1s(target, s);
  2699. }
  2700. inline void QOpenGLFunctions_2_1::glMultiTexCoord1iv(GLenum target, const GLint *v)
  2701. {
  2702. d_1_3_Deprecated->f.MultiTexCoord1iv(target, v);
  2703. }
  2704. inline void QOpenGLFunctions_2_1::glMultiTexCoord1i(GLenum target, GLint s)
  2705. {
  2706. d_1_3_Deprecated->f.MultiTexCoord1i(target, s);
  2707. }
  2708. inline void QOpenGLFunctions_2_1::glMultiTexCoord1fv(GLenum target, const GLfloat *v)
  2709. {
  2710. d_1_3_Deprecated->f.MultiTexCoord1fv(target, v);
  2711. }
  2712. inline void QOpenGLFunctions_2_1::glMultiTexCoord1f(GLenum target, GLfloat s)
  2713. {
  2714. d_1_3_Deprecated->f.MultiTexCoord1f(target, s);
  2715. }
  2716. inline void QOpenGLFunctions_2_1::glMultiTexCoord1dv(GLenum target, const GLdouble *v)
  2717. {
  2718. d_1_3_Deprecated->f.MultiTexCoord1dv(target, v);
  2719. }
  2720. inline void QOpenGLFunctions_2_1::glMultiTexCoord1d(GLenum target, GLdouble s)
  2721. {
  2722. d_1_3_Deprecated->f.MultiTexCoord1d(target, s);
  2723. }
  2724. inline void QOpenGLFunctions_2_1::glClientActiveTexture(GLenum texture)
  2725. {
  2726. d_1_3_Deprecated->f.ClientActiveTexture(texture);
  2727. }
  2728. // OpenGL 1.4 deprecated functions
  2729. inline void QOpenGLFunctions_2_1::glWindowPos3sv(const GLshort *v)
  2730. {
  2731. d_1_4_Deprecated->f.WindowPos3sv(v);
  2732. }
  2733. inline void QOpenGLFunctions_2_1::glWindowPos3s(GLshort x, GLshort y, GLshort z)
  2734. {
  2735. d_1_4_Deprecated->f.WindowPos3s(x, y, z);
  2736. }
  2737. inline void QOpenGLFunctions_2_1::glWindowPos3iv(const GLint *v)
  2738. {
  2739. d_1_4_Deprecated->f.WindowPos3iv(v);
  2740. }
  2741. inline void QOpenGLFunctions_2_1::glWindowPos3i(GLint x, GLint y, GLint z)
  2742. {
  2743. d_1_4_Deprecated->f.WindowPos3i(x, y, z);
  2744. }
  2745. inline void QOpenGLFunctions_2_1::glWindowPos3fv(const GLfloat *v)
  2746. {
  2747. d_1_4_Deprecated->f.WindowPos3fv(v);
  2748. }
  2749. inline void QOpenGLFunctions_2_1::glWindowPos3f(GLfloat x, GLfloat y, GLfloat z)
  2750. {
  2751. d_1_4_Deprecated->f.WindowPos3f(x, y, z);
  2752. }
  2753. inline void QOpenGLFunctions_2_1::glWindowPos3dv(const GLdouble *v)
  2754. {
  2755. d_1_4_Deprecated->f.WindowPos3dv(v);
  2756. }
  2757. inline void QOpenGLFunctions_2_1::glWindowPos3d(GLdouble x, GLdouble y, GLdouble z)
  2758. {
  2759. d_1_4_Deprecated->f.WindowPos3d(x, y, z);
  2760. }
  2761. inline void QOpenGLFunctions_2_1::glWindowPos2sv(const GLshort *v)
  2762. {
  2763. d_1_4_Deprecated->f.WindowPos2sv(v);
  2764. }
  2765. inline void QOpenGLFunctions_2_1::glWindowPos2s(GLshort x, GLshort y)
  2766. {
  2767. d_1_4_Deprecated->f.WindowPos2s(x, y);
  2768. }
  2769. inline void QOpenGLFunctions_2_1::glWindowPos2iv(const GLint *v)
  2770. {
  2771. d_1_4_Deprecated->f.WindowPos2iv(v);
  2772. }
  2773. inline void QOpenGLFunctions_2_1::glWindowPos2i(GLint x, GLint y)
  2774. {
  2775. d_1_4_Deprecated->f.WindowPos2i(x, y);
  2776. }
  2777. inline void QOpenGLFunctions_2_1::glWindowPos2fv(const GLfloat *v)
  2778. {
  2779. d_1_4_Deprecated->f.WindowPos2fv(v);
  2780. }
  2781. inline void QOpenGLFunctions_2_1::glWindowPos2f(GLfloat x, GLfloat y)
  2782. {
  2783. d_1_4_Deprecated->f.WindowPos2f(x, y);
  2784. }
  2785. inline void QOpenGLFunctions_2_1::glWindowPos2dv(const GLdouble *v)
  2786. {
  2787. d_1_4_Deprecated->f.WindowPos2dv(v);
  2788. }
  2789. inline void QOpenGLFunctions_2_1::glWindowPos2d(GLdouble x, GLdouble y)
  2790. {
  2791. d_1_4_Deprecated->f.WindowPos2d(x, y);
  2792. }
  2793. inline void QOpenGLFunctions_2_1::glSecondaryColorPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)
  2794. {
  2795. d_1_4_Deprecated->f.SecondaryColorPointer(size, type, stride, pointer);
  2796. }
  2797. inline void QOpenGLFunctions_2_1::glSecondaryColor3usv(const GLushort *v)
  2798. {
  2799. d_1_4_Deprecated->f.SecondaryColor3usv(v);
  2800. }
  2801. inline void QOpenGLFunctions_2_1::glSecondaryColor3us(GLushort red, GLushort green, GLushort blue)
  2802. {
  2803. d_1_4_Deprecated->f.SecondaryColor3us(red, green, blue);
  2804. }
  2805. inline void QOpenGLFunctions_2_1::glSecondaryColor3uiv(const GLuint *v)
  2806. {
  2807. d_1_4_Deprecated->f.SecondaryColor3uiv(v);
  2808. }
  2809. inline void QOpenGLFunctions_2_1::glSecondaryColor3ui(GLuint red, GLuint green, GLuint blue)
  2810. {
  2811. d_1_4_Deprecated->f.SecondaryColor3ui(red, green, blue);
  2812. }
  2813. inline void QOpenGLFunctions_2_1::glSecondaryColor3ubv(const GLubyte *v)
  2814. {
  2815. d_1_4_Deprecated->f.SecondaryColor3ubv(v);
  2816. }
  2817. inline void QOpenGLFunctions_2_1::glSecondaryColor3ub(GLubyte red, GLubyte green, GLubyte blue)
  2818. {
  2819. d_1_4_Deprecated->f.SecondaryColor3ub(red, green, blue);
  2820. }
  2821. inline void QOpenGLFunctions_2_1::glSecondaryColor3sv(const GLshort *v)
  2822. {
  2823. d_1_4_Deprecated->f.SecondaryColor3sv(v);
  2824. }
  2825. inline void QOpenGLFunctions_2_1::glSecondaryColor3s(GLshort red, GLshort green, GLshort blue)
  2826. {
  2827. d_1_4_Deprecated->f.SecondaryColor3s(red, green, blue);
  2828. }
  2829. inline void QOpenGLFunctions_2_1::glSecondaryColor3iv(const GLint *v)
  2830. {
  2831. d_1_4_Deprecated->f.SecondaryColor3iv(v);
  2832. }
  2833. inline void QOpenGLFunctions_2_1::glSecondaryColor3i(GLint red, GLint green, GLint blue)
  2834. {
  2835. d_1_4_Deprecated->f.SecondaryColor3i(red, green, blue);
  2836. }
  2837. inline void QOpenGLFunctions_2_1::glSecondaryColor3fv(const GLfloat *v)
  2838. {
  2839. d_1_4_Deprecated->f.SecondaryColor3fv(v);
  2840. }
  2841. inline void QOpenGLFunctions_2_1::glSecondaryColor3f(GLfloat red, GLfloat green, GLfloat blue)
  2842. {
  2843. d_1_4_Deprecated->f.SecondaryColor3f(red, green, blue);
  2844. }
  2845. inline void QOpenGLFunctions_2_1::glSecondaryColor3dv(const GLdouble *v)
  2846. {
  2847. d_1_4_Deprecated->f.SecondaryColor3dv(v);
  2848. }
  2849. inline void QOpenGLFunctions_2_1::glSecondaryColor3d(GLdouble red, GLdouble green, GLdouble blue)
  2850. {
  2851. d_1_4_Deprecated->f.SecondaryColor3d(red, green, blue);
  2852. }
  2853. inline void QOpenGLFunctions_2_1::glSecondaryColor3bv(const GLbyte *v)
  2854. {
  2855. d_1_4_Deprecated->f.SecondaryColor3bv(v);
  2856. }
  2857. inline void QOpenGLFunctions_2_1::glSecondaryColor3b(GLbyte red, GLbyte green, GLbyte blue)
  2858. {
  2859. d_1_4_Deprecated->f.SecondaryColor3b(red, green, blue);
  2860. }
  2861. inline void QOpenGLFunctions_2_1::glFogCoordPointer(GLenum type, GLsizei stride, const GLvoid *pointer)
  2862. {
  2863. d_1_4_Deprecated->f.FogCoordPointer(type, stride, pointer);
  2864. }
  2865. inline void QOpenGLFunctions_2_1::glFogCoorddv(const GLdouble *coord)
  2866. {
  2867. d_1_4_Deprecated->f.FogCoorddv(coord);
  2868. }
  2869. inline void QOpenGLFunctions_2_1::glFogCoordd(GLdouble coord)
  2870. {
  2871. d_1_4_Deprecated->f.FogCoordd(coord);
  2872. }
  2873. inline void QOpenGLFunctions_2_1::glFogCoordfv(const GLfloat *coord)
  2874. {
  2875. d_1_4_Deprecated->f.FogCoordfv(coord);
  2876. }
  2877. inline void QOpenGLFunctions_2_1::glFogCoordf(GLfloat coord)
  2878. {
  2879. d_1_4_Deprecated->f.FogCoordf(coord);
  2880. }
  2881. // OpenGL 1.5 deprecated functions
  2882. // OpenGL 2.0 deprecated functions
  2883. inline void QOpenGLFunctions_2_1::glVertexAttrib4usv(GLuint index, const GLushort *v)
  2884. {
  2885. d_2_0_Core->f.VertexAttrib4usv(index, v);
  2886. }
  2887. inline void QOpenGLFunctions_2_1::glVertexAttrib4uiv(GLuint index, const GLuint *v)
  2888. {
  2889. d_2_0_Core->f.VertexAttrib4uiv(index, v);
  2890. }
  2891. inline void QOpenGLFunctions_2_1::glVertexAttrib4ubv(GLuint index, const GLubyte *v)
  2892. {
  2893. d_2_0_Core->f.VertexAttrib4ubv(index, v);
  2894. }
  2895. inline void QOpenGLFunctions_2_1::glVertexAttrib4sv(GLuint index, const GLshort *v)
  2896. {
  2897. d_2_0_Core->f.VertexAttrib4sv(index, v);
  2898. }
  2899. inline void QOpenGLFunctions_2_1::glVertexAttrib4s(GLuint index, GLshort x, GLshort y, GLshort z, GLshort w)
  2900. {
  2901. d_2_0_Core->f.VertexAttrib4s(index, x, y, z, w);
  2902. }
  2903. inline void QOpenGLFunctions_2_1::glVertexAttrib4iv(GLuint index, const GLint *v)
  2904. {
  2905. d_2_0_Core->f.VertexAttrib4iv(index, v);
  2906. }
  2907. inline void QOpenGLFunctions_2_1::glVertexAttrib4fv(GLuint index, const GLfloat *v)
  2908. {
  2909. d_2_0_Core->f.VertexAttrib4fv(index, v);
  2910. }
  2911. inline void QOpenGLFunctions_2_1::glVertexAttrib4f(GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
  2912. {
  2913. d_2_0_Core->f.VertexAttrib4f(index, x, y, z, w);
  2914. }
  2915. inline void QOpenGLFunctions_2_1::glVertexAttrib4dv(GLuint index, const GLdouble *v)
  2916. {
  2917. d_2_0_Core->f.VertexAttrib4dv(index, v);
  2918. }
  2919. inline void QOpenGLFunctions_2_1::glVertexAttrib4d(GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w)
  2920. {
  2921. d_2_0_Core->f.VertexAttrib4d(index, x, y, z, w);
  2922. }
  2923. inline void QOpenGLFunctions_2_1::glVertexAttrib4bv(GLuint index, const GLbyte *v)
  2924. {
  2925. d_2_0_Core->f.VertexAttrib4bv(index, v);
  2926. }
  2927. inline void QOpenGLFunctions_2_1::glVertexAttrib4Nusv(GLuint index, const GLushort *v)
  2928. {
  2929. d_2_0_Core->f.VertexAttrib4Nusv(index, v);
  2930. }
  2931. inline void QOpenGLFunctions_2_1::glVertexAttrib4Nuiv(GLuint index, const GLuint *v)
  2932. {
  2933. d_2_0_Core->f.VertexAttrib4Nuiv(index, v);
  2934. }
  2935. inline void QOpenGLFunctions_2_1::glVertexAttrib4Nubv(GLuint index, const GLubyte *v)
  2936. {
  2937. d_2_0_Core->f.VertexAttrib4Nubv(index, v);
  2938. }
  2939. inline void QOpenGLFunctions_2_1::glVertexAttrib4Nub(GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w)
  2940. {
  2941. d_2_0_Core->f.VertexAttrib4Nub(index, x, y, z, w);
  2942. }
  2943. inline void QOpenGLFunctions_2_1::glVertexAttrib4Nsv(GLuint index, const GLshort *v)
  2944. {
  2945. d_2_0_Core->f.VertexAttrib4Nsv(index, v);
  2946. }
  2947. inline void QOpenGLFunctions_2_1::glVertexAttrib4Niv(GLuint index, const GLint *v)
  2948. {
  2949. d_2_0_Core->f.VertexAttrib4Niv(index, v);
  2950. }
  2951. inline void QOpenGLFunctions_2_1::glVertexAttrib4Nbv(GLuint index, const GLbyte *v)
  2952. {
  2953. d_2_0_Core->f.VertexAttrib4Nbv(index, v);
  2954. }
  2955. inline void QOpenGLFunctions_2_1::glVertexAttrib3sv(GLuint index, const GLshort *v)
  2956. {
  2957. d_2_0_Core->f.VertexAttrib3sv(index, v);
  2958. }
  2959. inline void QOpenGLFunctions_2_1::glVertexAttrib3s(GLuint index, GLshort x, GLshort y, GLshort z)
  2960. {
  2961. d_2_0_Core->f.VertexAttrib3s(index, x, y, z);
  2962. }
  2963. inline void QOpenGLFunctions_2_1::glVertexAttrib3fv(GLuint index, const GLfloat *v)
  2964. {
  2965. d_2_0_Core->f.VertexAttrib3fv(index, v);
  2966. }
  2967. inline void QOpenGLFunctions_2_1::glVertexAttrib3f(GLuint index, GLfloat x, GLfloat y, GLfloat z)
  2968. {
  2969. d_2_0_Core->f.VertexAttrib3f(index, x, y, z);
  2970. }
  2971. inline void QOpenGLFunctions_2_1::glVertexAttrib3dv(GLuint index, const GLdouble *v)
  2972. {
  2973. d_2_0_Core->f.VertexAttrib3dv(index, v);
  2974. }
  2975. inline void QOpenGLFunctions_2_1::glVertexAttrib3d(GLuint index, GLdouble x, GLdouble y, GLdouble z)
  2976. {
  2977. d_2_0_Core->f.VertexAttrib3d(index, x, y, z);
  2978. }
  2979. inline void QOpenGLFunctions_2_1::glVertexAttrib2sv(GLuint index, const GLshort *v)
  2980. {
  2981. d_2_0_Core->f.VertexAttrib2sv(index, v);
  2982. }
  2983. inline void QOpenGLFunctions_2_1::glVertexAttrib2s(GLuint index, GLshort x, GLshort y)
  2984. {
  2985. d_2_0_Core->f.VertexAttrib2s(index, x, y);
  2986. }
  2987. inline void QOpenGLFunctions_2_1::glVertexAttrib2fv(GLuint index, const GLfloat *v)
  2988. {
  2989. d_2_0_Core->f.VertexAttrib2fv(index, v);
  2990. }
  2991. inline void QOpenGLFunctions_2_1::glVertexAttrib2f(GLuint index, GLfloat x, GLfloat y)
  2992. {
  2993. d_2_0_Core->f.VertexAttrib2f(index, x, y);
  2994. }
  2995. inline void QOpenGLFunctions_2_1::glVertexAttrib2dv(GLuint index, const GLdouble *v)
  2996. {
  2997. d_2_0_Core->f.VertexAttrib2dv(index, v);
  2998. }
  2999. inline void QOpenGLFunctions_2_1::glVertexAttrib2d(GLuint index, GLdouble x, GLdouble y)
  3000. {
  3001. d_2_0_Core->f.VertexAttrib2d(index, x, y);
  3002. }
  3003. inline void QOpenGLFunctions_2_1::glVertexAttrib1sv(GLuint index, const GLshort *v)
  3004. {
  3005. d_2_0_Core->f.VertexAttrib1sv(index, v);
  3006. }
  3007. inline void QOpenGLFunctions_2_1::glVertexAttrib1s(GLuint index, GLshort x)
  3008. {
  3009. d_2_0_Core->f.VertexAttrib1s(index, x);
  3010. }
  3011. inline void QOpenGLFunctions_2_1::glVertexAttrib1fv(GLuint index, const GLfloat *v)
  3012. {
  3013. d_2_0_Core->f.VertexAttrib1fv(index, v);
  3014. }
  3015. inline void QOpenGLFunctions_2_1::glVertexAttrib1f(GLuint index, GLfloat x)
  3016. {
  3017. d_2_0_Core->f.VertexAttrib1f(index, x);
  3018. }
  3019. inline void QOpenGLFunctions_2_1::glVertexAttrib1dv(GLuint index, const GLdouble *v)
  3020. {
  3021. d_2_0_Core->f.VertexAttrib1dv(index, v);
  3022. }
  3023. inline void QOpenGLFunctions_2_1::glVertexAttrib1d(GLuint index, GLdouble x)
  3024. {
  3025. d_2_0_Core->f.VertexAttrib1d(index, x);
  3026. }
  3027. // OpenGL 2.1 deprecated functions
  3028. QT_END_NAMESPACE
  3029. #endif // QT_NO_OPENGL && !QT_OPENGL_ES_2
  3030. #endif