Quake-III-Arena

Quake III Arena GPL Source Release
Log | Files | Refs

macosx_qgl.h (171831B)


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