30 fprintf(
tr.
logFile,
"glAccum %s %g\n", EnumString(op), value );
35 fprintf(
tr.
logFile,
"glAlphaFunc %s %g\n", EnumString(func), ref );
36 dllAlphaFunc(func, ref);
42 fprintf(
tr.
logFile,
"glAreTexturesResident %d 'const GLuint * textures' 'GLboolean * residences'\n", n );
43 return dllAreTexturesResident(n, textures, residences);
47 fprintf(
tr.
logFile,
"glArrayElement %d\n", i );
52 fprintf(
tr.
logFile,
"glBegin %s\n", EnumString(mode) );
57 fprintf(
tr.
logFile,
"glBindTexture %s %d\n", EnumString(target), texture );
58 dllBindTexture(target, texture);
63 fprintf(
tr.
logFile,
"glBitmap %d %d %g %g %g %g 'const GLubyte * bitmap'\n", width, height, xorig, yorig, xmove, ymove );
64 dllBitmap(width, height, xorig, yorig, xmove, ymove, bitmap);
68 fprintf(
tr.
logFile,
"glBlendFunc %s %s\n", EnumString(sfactor), EnumString(dfactor) );
69 dllBlendFunc(sfactor, dfactor);
73 fprintf(
tr.
logFile,
"glCallList %d\n", list );
79 fprintf(
tr.
logFile,
"glCallLists %d %s 'const GLvoid * lists'\n", n, EnumString(type) );
80 dllCallLists(n, type, lists);
85 fprintf(
tr.
logFile,
"glClear 'GLbitfield mask'\n" );
90 fprintf(
tr.
logFile,
"glClearAccum %g %g %g %g\n", red, green, blue, alpha );
91 dllClearAccum(red, green, blue, alpha);
95 fprintf(
tr.
logFile,
"glClearColor %g %g %g %g\n", red, green, blue, alpha );
96 dllClearColor(red, green, blue, alpha);
101 fprintf(
tr.
logFile,
"glClearDepth 'GLclampd depth'\n" );
102 dllClearDepth(depth);
105 static void APIENTRY logClearIndex(GLfloat
c) {
106 fprintf(
tr.
logFile,
"glClearIndex %g\n", c );
111 fprintf(
tr.
logFile,
"glClearStencil %d\n", s );
117 fprintf(
tr.
logFile,
"glClipPlane %s 'const GLdouble * equation'\n", EnumString(plane) );
118 dllClipPlane(plane, equation);
122 fprintf(
tr.
logFile,
"glColor3b %d %d %d\n", red, green, blue );
123 dllColor3b(red, green, blue);
126 static void APIENTRY logColor3bv(
const GLbyte *
v) {
128 fprintf(
tr.
logFile,
"glColor3bv 'const GLbyte * v'\n" );
133 fprintf(
tr.
logFile,
"glColor3d %g %g %g\n", red, green, blue );
134 dllColor3d(red, green, blue);
137 static void APIENTRY logColor3dv(
const GLdouble *
v) {
139 fprintf(
tr.
logFile,
"glColor3dv 'const GLdouble * v'\n" );
144 fprintf(
tr.
logFile,
"glColor3f %g %g %g\n", red, green, blue );
145 dllColor3f(red, green, blue);
148 static void APIENTRY logColor3fv(
const GLfloat *
v) {
150 fprintf(
tr.
logFile,
"glColor3fv 'const GLfloat * v'\n" );
155 fprintf(
tr.
logFile,
"glColor3i %d %d %d\n", red, green, blue );
156 dllColor3i(red, green, blue);
161 fprintf(
tr.
logFile,
"glColor3iv 'const GLint * v'\n" );
166 fprintf(
tr.
logFile,
"glColor3s %d %d %d\n", red, green, blue );
167 dllColor3s(red, green, blue);
170 static void APIENTRY logColor3sv(
const GLshort *
v) {
172 fprintf(
tr.
logFile,
"glColor3sv 'const GLshort * v'\n" );
177 fprintf(
tr.
logFile,
"glColor3ub %d %d %d\n", red, green, blue );
178 dllColor3ub(red, green, blue);
181 static void APIENTRY logColor3ubv(
const GLubyte *
v) {
183 fprintf(
tr.
logFile,
"glColor3ubv 'const GLubyte * v'\n" );
188 fprintf(
tr.
logFile,
"glColor3ui %d %d %d\n", red, green, blue );
189 dllColor3ui(red, green, blue);
194 fprintf(
tr.
logFile,
"glColor3uiv 'const GLuint * v'\n" );
199 fprintf(
tr.
logFile,
"glColor3us %d %d %d\n", red, green, blue );
200 dllColor3us(red, green, blue);
203 static void APIENTRY logColor3usv(
const GLushort *
v) {
205 fprintf(
tr.
logFile,
"glColor3usv 'const GLushort * v'\n" );
210 fprintf(
tr.
logFile,
"glColor4b %d %d %d %d\n", red, green, blue, alpha );
211 dllColor4b(red, green, blue, alpha);
214 static void APIENTRY logColor4bv(
const GLbyte *
v) {
216 fprintf(
tr.
logFile,
"glColor4bv 'const GLbyte * v'\n" );
221 fprintf(
tr.
logFile,
"glColor4d %g %g %g %g\n", red, green, blue, alpha );
222 dllColor4d(red, green, blue, alpha);
225 static void APIENTRY logColor4dv(
const GLdouble *
v) {
227 fprintf(
tr.
logFile,
"glColor4dv 'const GLdouble * v'\n" );
232 fprintf(
tr.
logFile,
"glColor4f %g %g %g %g\n", red, green, blue, alpha );
233 dllColor4f(red, green, blue, alpha);
236 static void APIENTRY logColor4fv(
const GLfloat *
v) {
238 fprintf(
tr.
logFile,
"glColor4fv 'const GLfloat * v'\n" );
243 fprintf(
tr.
logFile,
"glColor4i %d %d %d %d\n", red, green, blue, alpha );
244 dllColor4i(red, green, blue, alpha);
249 fprintf(
tr.
logFile,
"glColor4iv 'const GLint * v'\n" );
254 fprintf(
tr.
logFile,
"glColor4s %d %d %d %d\n", red, green, blue, alpha );
255 dllColor4s(red, green, blue, alpha);
258 static void APIENTRY logColor4sv(
const GLshort *
v) {
260 fprintf(
tr.
logFile,
"glColor4sv 'const GLshort * v'\n" );
265 fprintf(
tr.
logFile,
"glColor4ub %d %d %d %d\n", red, green, blue, alpha );
266 dllColor4ub(red, green, blue, alpha);
269 static void APIENTRY logColor4ubv(
const GLubyte *
v) {
271 fprintf(
tr.
logFile,
"glColor4ubv 'const GLubyte * v'\n" );
276 fprintf(
tr.
logFile,
"glColor4ui %d %d %d %d\n", red, green, blue, alpha );
277 dllColor4ui(red, green, blue, alpha);
282 fprintf(
tr.
logFile,
"glColor4uiv 'const GLuint * v'\n" );
287 fprintf(
tr.
logFile,
"glColor4us %d %d %d %d\n", red, green, blue, alpha );
288 dllColor4us(red, green, blue, alpha);
291 static void APIENTRY logColor4usv(
const GLushort *
v) {
293 fprintf(
tr.
logFile,
"glColor4usv 'const GLushort * v'\n" );
298 fprintf(
tr.
logFile,
"glColorMask %s %s %s %s\n", red ?
"Y" :
"N", green ?
"Y" :
"N", blue ?
"Y" :
"N", alpha ?
"Y" :
"N" );
299 dllColorMask(red, green, blue, alpha);
303 fprintf(
tr.
logFile,
"glColorMaterial %s %s\n", EnumString(face), EnumString(mode) );
304 dllColorMaterial(face, mode);
309 fprintf(
tr.
logFile,
"glColorPointer %d %s %d 'const GLvoid * pointer'\n", size, EnumString(type), stride );
310 dllColorPointer(size, type, stride, pointer);
314 fprintf(
tr.
logFile,
"glCopyPixels %d %d %d %d %s\n", x, y, width, height, EnumString(type) );
315 dllCopyPixels(x, y, width, height, type);
319 fprintf(
tr.
logFile,
"glCopyTexImage1D %s %d %s %d %d %d %d\n", EnumString(target), level, EnumString(internalFormat), x, y, width, border );
320 dllCopyTexImage1D(target, level, internalFormat, x, y, width, border);
324 fprintf(
tr.
logFile,
"glCopyTexImage2D %s %d %s %d %d %d %d %d\n", EnumString(target), level, EnumString(internalFormat), x, y, width, height, border );
325 dllCopyTexImage2D(target, level, internalFormat, x, y, width, height, border);
329 fprintf(
tr.
logFile,
"glCopyTexSubImage1D %s %d %d %d %d %d\n", EnumString(target), level, xoffset, x, y, width );
330 dllCopyTexSubImage1D(target, level, xoffset, x, y, width);
334 fprintf(
tr.
logFile,
"glCopyTexSubImage2D %s %d %d %d %d %d %d %d\n", EnumString(target), level, xoffset, yoffset, x, y, width, height );
335 dllCopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height);
339 fprintf(
tr.
logFile,
"glCullFace %s\n", EnumString(mode) );
344 fprintf(
tr.
logFile,
"glDeleteLists %d %d\n", list, range );
345 dllDeleteLists(list, range);
350 fprintf(
tr.
logFile,
"glDeleteTextures %d 'const GLuint * textures'\n", n );
351 dllDeleteTextures(n, textures);
355 fprintf(
tr.
logFile,
"glDepthFunc %s\n", EnumString(func) );
360 fprintf(
tr.
logFile,
"glDepthMask %s\n", flag ?
"Y" :
"N" );
367 fprintf(
tr.
logFile,
"glDepthRange 'GLclampd zNear' 'GLclampd zFar'\n" );
368 dllDepthRange(zNear, zFar);
372 fprintf(
tr.
logFile,
"glDisable %s\n", EnumString(cap) );
377 fprintf(
tr.
logFile,
"glDisableClientState %s\n", EnumString(array) );
378 dllDisableClientState(array);
382 fprintf(
tr.
logFile,
"glDrawArrays %s %d %d\n", EnumString(mode), first, count );
383 dllDrawArrays(mode, first, count);
387 fprintf(
tr.
logFile,
"glDrawBuffer %s\n", EnumString(mode) );
393 fprintf(
tr.
logFile,
"glDrawElements %s %d %s 'const GLvoid * indices'\n", EnumString(mode), count, EnumString(type) );
394 dllDrawElements(mode, count, type, indices);
399 fprintf(
tr.
logFile,
"glDrawPixels %d %d %s %s 'const GLvoid * pixels'\n", width, height, EnumString(format), EnumString(type) );
400 dllDrawPixels(width, height, format, type, pixels);
404 fprintf(
tr.
logFile,
"glEdgeFlag %s\n", flag ?
"Y" :
"N" );
408 static void APIENTRY logEdgeFlagPointer(
GLsizei stride,
const GLvoid *pointer) {
410 fprintf(
tr.
logFile,
"glEdgeFlagPointer %d 'const GLvoid * pointer'\n", stride );
411 dllEdgeFlagPointer(stride, pointer);
416 fprintf(
tr.
logFile,
"glEdgeFlagv 'const GLboolean * flag'\n" );
421 fprintf(
tr.
logFile,
"glEnable %s\n", EnumString(cap) );
426 fprintf(
tr.
logFile,
"glEnableClientState %s\n", EnumString(array) );
427 dllEnableClientState(array);
435 static void APIENTRY logEndList(
void) {
440 static void APIENTRY logEvalCoord1d(GLdouble u) {
441 fprintf(
tr.
logFile,
"glEvalCoord1d %g\n", u );
445 static void APIENTRY logEvalCoord1dv(
const GLdouble *u) {
447 fprintf(
tr.
logFile,
"glEvalCoord1dv 'const GLdouble * u'\n" );
451 static void APIENTRY logEvalCoord1f(GLfloat u) {
452 fprintf(
tr.
logFile,
"glEvalCoord1f %g\n", u );
456 static void APIENTRY logEvalCoord1fv(
const GLfloat *u) {
458 fprintf(
tr.
logFile,
"glEvalCoord1fv 'const GLfloat * u'\n" );
462 static void APIENTRY logEvalCoord2d(GLdouble u, GLdouble
v) {
463 fprintf(
tr.
logFile,
"glEvalCoord2d %g %g\n", u, v );
464 dllEvalCoord2d(u, v);
467 static void APIENTRY logEvalCoord2dv(
const GLdouble *u) {
469 fprintf(
tr.
logFile,
"glEvalCoord2dv 'const GLdouble * u'\n" );
473 static void APIENTRY logEvalCoord2f(GLfloat u, GLfloat
v) {
474 fprintf(
tr.
logFile,
"glEvalCoord2f %g %g\n", u, v );
475 dllEvalCoord2f(u, v);
478 static void APIENTRY logEvalCoord2fv(
const GLfloat *u) {
480 fprintf(
tr.
logFile,
"glEvalCoord2fv 'const GLfloat * u'\n" );
485 fprintf(
tr.
logFile,
"glEvalMesh1 %s %d %d\n", EnumString(mode), i1, i2 );
486 dllEvalMesh1(mode, i1, i2);
490 fprintf(
tr.
logFile,
"glEvalMesh2 %s %d %d %d %d\n", EnumString(mode), i1, i2, j1, j2 );
491 dllEvalMesh2(mode, i1, i2, j1, j2);
495 fprintf(
tr.
logFile,
"glEvalPoint1 %d\n", i );
500 fprintf(
tr.
logFile,
"glEvalPoint2 %d %d\n", i, j );
506 fprintf(
tr.
logFile,
"glFeedbackBuffer %d %s 'GLfloat * buffer'\n", size, EnumString(type) );
507 dllFeedbackBuffer(size, type, buffer);
510 static void APIENTRY logFinish(
void) {
515 static void APIENTRY logFlush(
void) {
521 fprintf(
tr.
logFile,
"glFogf %s %g\n", EnumString(pname), param );
522 dllFogf(pname, param);
527 fprintf(
tr.
logFile,
"glFogfv %s 'const GLfloat * params'\n", EnumString(pname) );
528 dllFogfv(pname, params);
532 fprintf(
tr.
logFile,
"glFogi %s %d\n", EnumString(pname), param );
533 dllFogi(pname, param);
538 fprintf(
tr.
logFile,
"glFogiv %s 'const GLint * params'\n", EnumString(pname) );
539 dllFogiv(pname, params);
543 fprintf(
tr.
logFile,
"glFrontFace %s\n", EnumString(mode) );
548 fprintf(
tr.
logFile,
"glFrustum %g %g %g %g %g %g\n", left, right, bottom, top, zNear, zFar );
549 dllFrustum(left, right, bottom, top, zNear, zFar);
553 fprintf(
tr.
logFile,
"glGenLists %d\n", range );
554 return dllGenLists(range);
559 fprintf(
tr.
logFile,
"glGenTextures %d 'GLuint * textures'\n", n );
560 dllGenTextures(n, textures);
565 fprintf(
tr.
logFile,
"glGetBooleanv %s 'GLboolean * params'\n", EnumString(pname) );
566 dllGetBooleanv(pname, params);
569 static void APIENTRY logGetClipPlane(
GLenum plane, GLdouble *equation) {
571 fprintf(
tr.
logFile,
"glGetClipPlane %s 'GLdouble * equation'\n", EnumString(plane) );
572 dllGetClipPlane(plane, equation);
575 static void APIENTRY logGetDoublev(
GLenum pname, GLdouble *params) {
577 fprintf(
tr.
logFile,
"glGetDoublev %s 'GLdouble * params'\n", EnumString(pname) );
578 dllGetDoublev(pname, params);
583 return dllGetError();
586 static void APIENTRY logGetFloatv(
GLenum pname, GLfloat *params) {
588 fprintf(
tr.
logFile,
"glGetFloatv %s 'GLfloat * params'\n", EnumString(pname) );
589 dllGetFloatv(pname, params);
594 fprintf(
tr.
logFile,
"glGetIntegerv %s 'GLint * params'\n", EnumString(pname) );
595 dllGetIntegerv(pname, params);
600 fprintf(
tr.
logFile,
"glGetLightfv %s %s 'GLfloat * params'\n", EnumString(light), EnumString(pname) );
601 dllGetLightfv(light, pname, params);
606 fprintf(
tr.
logFile,
"glGetLightiv %s %s 'GLint * params'\n", EnumString(light), EnumString(pname) );
607 dllGetLightiv(light, pname, params);
612 fprintf(
tr.
logFile,
"glGetMapdv %s %s 'GLdouble * v'\n", EnumString(target), EnumString(query) );
613 dllGetMapdv(target, query, v);
618 fprintf(
tr.
logFile,
"glGetMapfv %s %s 'GLfloat * v'\n", EnumString(target), EnumString(query) );
619 dllGetMapfv(target, query, v);
624 fprintf(
tr.
logFile,
"glGetMapiv %s %s 'GLint * v'\n", EnumString(target), EnumString(query) );
625 dllGetMapiv(target, query, v);
630 fprintf(
tr.
logFile,
"glGetMaterialfv %s %s 'GLfloat * params'\n", EnumString(face), EnumString(pname) );
631 dllGetMaterialfv(face, pname, params);
636 fprintf(
tr.
logFile,
"glGetMaterialiv %s %s 'GLint * params'\n", EnumString(face), EnumString(pname) );
637 dllGetMaterialiv(face, pname, params);
642 fprintf(
tr.
logFile,
"glGetPixelMapfv %s 'GLfloat * values'\n", EnumString(map) );
643 dllGetPixelMapfv(map, values);
648 fprintf(
tr.
logFile,
"glGetPixelMapuiv %s 'GLuint * values'\n", EnumString(map) );
649 dllGetPixelMapuiv(map, values);
652 static void APIENTRY logGetPixelMapusv(
GLenum map, GLushort *values) {
654 fprintf(
tr.
logFile,
"glGetPixelMapusv %s 'GLushort * values'\n", EnumString(map) );
655 dllGetPixelMapusv(map, values);
658 static void APIENTRY logGetPointerv(
GLenum pname, GLvoid* *params) {
660 fprintf(
tr.
logFile,
"glGetPointerv %s 'GLvoid* * params'\n", EnumString(pname) );
661 dllGetPointerv(pname, params);
664 static void APIENTRY logGetPolygonStipple(GLubyte *
mask) {
666 fprintf(
tr.
logFile,
"glGetPolygonStipple 'GLubyte * mask'\n" );
667 dllGetPolygonStipple(mask);
671 fprintf(
tr.
logFile,
"glGetString %s\n", EnumString(name) );
677 fprintf(
tr.
logFile,
"glGetTexEnvfv %s %s 'GLfloat * params'\n", EnumString(target), EnumString(pname) );
678 dllGetTexEnvfv(target, pname, params);
683 fprintf(
tr.
logFile,
"glGetTexEnviv %s %s 'GLint * params'\n", EnumString(target), EnumString(pname) );
684 dllGetTexEnviv(target, pname, params);
689 fprintf(
tr.
logFile,
"glGetTexGendv %s %s 'GLdouble * params'\n", EnumString(coord), EnumString(pname) );
690 dllGetTexGendv(coord, pname, params);
695 fprintf(
tr.
logFile,
"glGetTexGenfv %s %s 'GLfloat * params'\n", EnumString(coord), EnumString(pname) );
696 dllGetTexGenfv(coord, pname, params);
701 fprintf(
tr.
logFile,
"glGetTexGeniv %s %s 'GLint * params'\n", EnumString(coord), EnumString(pname) );
702 dllGetTexGeniv(coord, pname, params);
707 fprintf(
tr.
logFile,
"glGetTexImage %s %d %s %s 'GLvoid * pixels'\n", EnumString(target), level, EnumString(format), EnumString(type) );
708 dllGetTexImage(target, level, format, type, pixels);
713 fprintf(
tr.
logFile,
"glGetTexLevelParameterfv %s %d %s 'GLfloat * params'\n", EnumString(target), level, EnumString(pname) );
714 dllGetTexLevelParameterfv(target, level, pname, params);
719 fprintf(
tr.
logFile,
"glGetTexLevelParameteriv %s %d %s 'GLint * params'\n", EnumString(target), level, EnumString(pname) );
720 dllGetTexLevelParameteriv(target, level, pname, params);
725 fprintf(
tr.
logFile,
"glGetTexParameterfv %s %s 'GLfloat * params'\n", EnumString(target), EnumString(pname) );
726 dllGetTexParameterfv(target, pname, params);
731 fprintf(
tr.
logFile,
"glGetTexParameteriv %s %s 'GLint * params'\n", EnumString(target), EnumString(pname) );
732 dllGetTexParameteriv(target, pname, params);
736 fprintf(
tr.
logFile,
"glHint %s %s\n", EnumString(target), EnumString(mode) );
737 dllHint(target, mode);
741 fprintf(
tr.
logFile,
"glIndexMask %d\n", mask );
747 fprintf(
tr.
logFile,
"glIndexPointer %s %d 'const GLvoid * pointer'\n", EnumString(type), stride );
748 dllIndexPointer(type, stride, pointer);
751 static void APIENTRY logIndexd(GLdouble
c) {
752 fprintf(
tr.
logFile,
"glIndexd %g\n", c );
756 static void APIENTRY logIndexdv(
const GLdouble *
c) {
758 fprintf(
tr.
logFile,
"glIndexdv 'const GLdouble * c'\n" );
762 static void APIENTRY logIndexf(GLfloat
c) {
763 fprintf(
tr.
logFile,
"glIndexf %g\n", c );
767 static void APIENTRY logIndexfv(
const GLfloat *
c) {
769 fprintf(
tr.
logFile,
"glIndexfv 'const GLfloat * c'\n" );
774 fprintf(
tr.
logFile,
"glIndexi %d\n", c );
780 fprintf(
tr.
logFile,
"glIndexiv 'const GLint * c'\n" );
784 static void APIENTRY logIndexs(GLshort
c) {
785 fprintf(
tr.
logFile,
"glIndexs %d\n", c );
789 static void APIENTRY logIndexsv(
const GLshort *
c) {
791 fprintf(
tr.
logFile,
"glIndexsv 'const GLshort * c'\n" );
795 static void APIENTRY logIndexub(GLubyte
c) {
796 fprintf(
tr.
logFile,
"glIndexub %d\n", c );
800 static void APIENTRY logIndexubv(
const GLubyte *
c) {
802 fprintf(
tr.
logFile,
"glIndexubv 'const GLubyte * c'\n" );
806 static void APIENTRY logInitNames(
void) {
813 fprintf(
tr.
logFile,
"glInterleavedArrays %s %d 'const GLvoid * pointer'\n", EnumString(format), stride );
814 dllInterleavedArrays(format, stride, pointer);
818 fprintf(
tr.
logFile,
"glIsEnabled %s\n", EnumString(cap) );
819 return dllIsEnabled(cap);
823 fprintf(
tr.
logFile,
"glIsList %d\n", list );
824 return dllIsList(list);
828 fprintf(
tr.
logFile,
"glIsTexture %d\n", texture );
829 return dllIsTexture(texture);
832 static void APIENTRY logLightModelf(
GLenum pname, GLfloat param) {
833 fprintf(
tr.
logFile,
"glLightModelf %s %g\n", EnumString(pname), param );
834 dllLightModelf(pname, param);
837 static void APIENTRY logLightModelfv(
GLenum pname,
const GLfloat *params) {
839 fprintf(
tr.
logFile,
"glLightModelfv %s 'const GLfloat * params'\n", EnumString(pname) );
840 dllLightModelfv(pname, params);
844 fprintf(
tr.
logFile,
"glLightModeli %s %d\n", EnumString(pname), param );
845 dllLightModeli(pname, param);
850 fprintf(
tr.
logFile,
"glLightModeliv %s 'const GLint * params'\n", EnumString(pname) );
851 dllLightModeliv(pname, params);
855 fprintf(
tr.
logFile,
"glLightf %s %s %g\n", EnumString(light), EnumString(pname), param );
856 dllLightf(light, pname, param);
861 fprintf(
tr.
logFile,
"glLightfv %s %s 'const GLfloat * params'\n", EnumString(light), EnumString(pname) );
862 dllLightfv(light, pname, params);
866 fprintf(
tr.
logFile,
"glLighti %s %s %d\n", EnumString(light), EnumString(pname), param );
867 dllLighti(light, pname, param);
872 fprintf(
tr.
logFile,
"glLightiv %s %s 'const GLint * params'\n", EnumString(light), EnumString(pname) );
873 dllLightiv(light, pname, params);
877 fprintf(
tr.
logFile,
"glLineStipple %d %d\n", factor, pattern );
878 dllLineStipple(factor, pattern);
881 static void APIENTRY logLineWidth(GLfloat width) {
882 fprintf(
tr.
logFile,
"glLineWidth %g\n", width );
887 fprintf(
tr.
logFile,
"glListBase %d\n", base );
891 static void APIENTRY logLoadIdentity(
void) {
892 fprintf(
tr.
logFile,
"glLoadIdentity\n" );
896 static void APIENTRY logLoadMatrixd(
const GLdouble *m) {
898 fprintf(
tr.
logFile,
"glLoadMatrixd 'const GLdouble * m'\n" );
902 static void APIENTRY logLoadMatrixf(
const GLfloat *m) {
904 fprintf(
tr.
logFile,
"glLoadMatrixf 'const GLfloat * m'\n" );
909 fprintf(
tr.
logFile,
"glLoadName %d\n", name );
914 fprintf(
tr.
logFile,
"glLogicOp %s\n", EnumString(opcode) );
920 fprintf(
tr.
logFile,
"glMap1d %s %g %g %d %d 'const GLdouble * points'\n", EnumString(target), u1, u2, stride, order );
921 dllMap1d(target, u1, u2, stride, order, points);
924 static void APIENTRY logMap1f(
GLenum target, GLfloat u1, GLfloat u2,
GLint stride,
GLint order,
const GLfloat *points) {
926 fprintf(
tr.
logFile,
"glMap1f %s %g %g %d %d 'const GLfloat * points'\n", EnumString(target), u1, u2, stride, order );
927 dllMap1f(target, u1, u2, stride, order, points);
932 fprintf(
tr.
logFile,
"glMap2d %s %g %g %d %d %g %g %d %d 'const GLdouble * points'\n", EnumString(target), u1, u2, ustride, uorder, v1, v2, vstride, vorder );
933 dllMap2d(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points);
936 static void APIENTRY logMap2f(
GLenum target, GLfloat u1, GLfloat u2,
GLint ustride,
GLint uorder, GLfloat v1, GLfloat v2,
GLint vstride,
GLint vorder,
const GLfloat *points) {
938 fprintf(
tr.
logFile,
"glMap2f %s %g %g %d %d %g %g %d %d 'const GLfloat * points'\n", EnumString(target), u1, u2, ustride, uorder, v1, v2, vstride, vorder );
939 dllMap2f(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points);
942 static void APIENTRY logMapGrid1d(
GLint un, GLdouble u1, GLdouble u2) {
943 fprintf(
tr.
logFile,
"glMapGrid1d %d %g %g\n", un, u1, u2 );
944 dllMapGrid1d(un, u1, u2);
947 static void APIENTRY logMapGrid1f(
GLint un, GLfloat u1, GLfloat u2) {
948 fprintf(
tr.
logFile,
"glMapGrid1f %d %g %g\n", un, u1, u2 );
949 dllMapGrid1f(un, u1, u2);
952 static void APIENTRY logMapGrid2d(
GLint un, GLdouble u1, GLdouble u2,
GLint vn, GLdouble v1, GLdouble v2) {
953 fprintf(
tr.
logFile,
"glMapGrid2d %d %g %g %d %g %g\n", un, u1, u2, vn, v1, v2 );
954 dllMapGrid2d(un, u1, u2, vn, v1, v2);
957 static void APIENTRY logMapGrid2f(
GLint un, GLfloat u1, GLfloat u2,
GLint vn, GLfloat v1, GLfloat v2) {
958 fprintf(
tr.
logFile,
"glMapGrid2f %d %g %g %d %g %g\n", un, u1, u2, vn, v1, v2 );
959 dllMapGrid2f(un, u1, u2, vn, v1, v2);
963 fprintf(
tr.
logFile,
"glMaterialf %s %s %g\n", EnumString(face), EnumString(pname), param );
964 dllMaterialf(face, pname, param);
969 fprintf(
tr.
logFile,
"glMaterialfv %s %s 'const GLfloat * params'\n", EnumString(face), EnumString(pname) );
970 dllMaterialfv(face, pname, params);
974 fprintf(
tr.
logFile,
"glMateriali %s %s %d\n", EnumString(face), EnumString(pname), param );
975 dllMateriali(face, pname, param);
980 fprintf(
tr.
logFile,
"glMaterialiv %s %s 'const GLint * params'\n", EnumString(face), EnumString(pname) );
981 dllMaterialiv(face, pname, params);
985 fprintf(
tr.
logFile,
"glMatrixMode %s\n", EnumString(mode) );
989 static void APIENTRY logMultMatrixd(
const GLdouble *m) {
991 fprintf(
tr.
logFile,
"glMultMatrixd 'const GLdouble * m'\n" );
995 static void APIENTRY logMultMatrixf(
const GLfloat *m) {
997 fprintf(
tr.
logFile,
"glMultMatrixf 'const GLfloat * m'\n" );
1002 fprintf(
tr.
logFile,
"glNewList %d %s\n", list, EnumString(mode) );
1003 dllNewList(list, mode);
1006 static void APIENTRY logNormal3b(GLbyte
nx, GLbyte
ny, GLbyte
nz) {
1007 fprintf(
tr.
logFile,
"glNormal3b %d %d %d\n", nx, ny, nz );
1008 dllNormal3b(nx, ny, nz);
1011 static void APIENTRY logNormal3bv(
const GLbyte *v) {
1013 fprintf(
tr.
logFile,
"glNormal3bv 'const GLbyte * v'\n" );
1017 static void APIENTRY logNormal3d(GLdouble
nx, GLdouble
ny, GLdouble
nz) {
1018 fprintf(
tr.
logFile,
"glNormal3d %g %g %g\n", nx, ny, nz );
1019 dllNormal3d(nx, ny, nz);
1022 static void APIENTRY logNormal3dv(
const GLdouble *v) {
1024 fprintf(
tr.
logFile,
"glNormal3dv 'const GLdouble * v'\n" );
1028 static void APIENTRY logNormal3f(GLfloat
nx, GLfloat
ny, GLfloat
nz) {
1029 fprintf(
tr.
logFile,
"glNormal3f %g %g %g\n", nx, ny, nz );
1030 dllNormal3f(nx, ny, nz);
1033 static void APIENTRY logNormal3fv(
const GLfloat *v) {
1035 fprintf(
tr.
logFile,
"glNormal3fv 'const GLfloat * v'\n" );
1040 fprintf(
tr.
logFile,
"glNormal3i %d %d %d\n", nx, ny, nz );
1041 dllNormal3i(nx, ny, nz);
1046 fprintf(
tr.
logFile,
"glNormal3iv 'const GLint * v'\n" );
1050 static void APIENTRY logNormal3s(GLshort
nx, GLshort
ny, GLshort
nz) {
1051 fprintf(
tr.
logFile,
"glNormal3s %d %d %d\n", nx, ny, nz );
1052 dllNormal3s(nx, ny, nz);
1055 static void APIENTRY logNormal3sv(
const GLshort *v) {
1057 fprintf(
tr.
logFile,
"glNormal3sv 'const GLshort * v'\n" );
1063 fprintf(
tr.
logFile,
"glNormalPointer %s %d 'const GLvoid * pointer'\n", EnumString(type), stride );
1064 dllNormalPointer(type, stride, pointer);
1068 fprintf(
tr.
logFile,
"glOrtho %g %g %g %g %g %g\n", left, right, bottom, top, zNear, zFar );
1069 dllOrtho(left, right, bottom, top, zNear, zFar);
1072 static void APIENTRY logPassThrough(GLfloat token) {
1073 fprintf(
tr.
logFile,
"glPassThrough %g\n", token );
1074 dllPassThrough(token);
1079 fprintf(
tr.
logFile,
"glPixelMapfv %s %d 'const GLfloat * values'\n", EnumString(map), mapsize );
1080 dllPixelMapfv(map, mapsize, values);
1085 fprintf(
tr.
logFile,
"glPixelMapuiv %s %d 'const GLuint * values'\n", EnumString(map), mapsize );
1086 dllPixelMapuiv(map, mapsize, values);
1091 fprintf(
tr.
logFile,
"glPixelMapusv %s %d 'const GLushort * values'\n", EnumString(map), mapsize );
1092 dllPixelMapusv(map, mapsize, values);
1095 static void APIENTRY logPixelStoref(
GLenum pname, GLfloat param) {
1096 fprintf(
tr.
logFile,
"glPixelStoref %s %g\n", EnumString(pname), param );
1097 dllPixelStoref(pname, param);
1101 fprintf(
tr.
logFile,
"glPixelStorei %s %d\n", EnumString(pname), param );
1102 dllPixelStorei(pname, param);
1105 static void APIENTRY logPixelTransferf(
GLenum pname, GLfloat param) {
1106 fprintf(
tr.
logFile,
"glPixelTransferf %s %g\n", EnumString(pname), param );
1107 dllPixelTransferf(pname, param);
1111 fprintf(
tr.
logFile,
"glPixelTransferi %s %d\n", EnumString(pname), param );
1112 dllPixelTransferi(pname, param);
1116 fprintf(
tr.
logFile,
"glPixelZoom %g %g\n", xfactor, yfactor );
1117 dllPixelZoom(xfactor, yfactor);
1120 static void APIENTRY logPointSize(GLfloat size) {
1121 fprintf(
tr.
logFile,
"glPointSize %g\n", size );
1126 fprintf(
tr.
logFile,
"glPolygonMode %s %s\n", EnumString(face), EnumString(mode) );
1127 dllPolygonMode(face, mode);
1130 static void APIENTRY logPolygonOffset(GLfloat factor, GLfloat
units) {
1131 fprintf(
tr.
logFile,
"glPolygonOffset %g %g\n", factor, units );
1132 dllPolygonOffset(factor, units);
1135 static void APIENTRY logPolygonStipple(
const GLubyte *
mask) {
1137 fprintf(
tr.
logFile,
"glPolygonStipple 'const GLubyte * mask'\n" );
1138 dllPolygonStipple(mask);
1141 static void APIENTRY logPopAttrib(
void) {
1146 static void APIENTRY logPopClientAttrib(
void) {
1147 fprintf(
tr.
logFile,
"glPopClientAttrib\n" );
1148 dllPopClientAttrib();
1151 static void APIENTRY logPopMatrix(
void) {
1156 static void APIENTRY logPopName(
void) {
1164 fprintf(
tr.
logFile,
"glPrioritizeTextures %d 'const GLuint * textures' 'const GLclampf * priorities'\n", n );
1165 dllPrioritizeTextures(n, textures, priorities);
1170 fprintf(
tr.
logFile,
"glPushAttrib 'GLbitfield mask'\n" );
1171 dllPushAttrib(mask);
1174 static void APIENTRY logPushClientAttrib(GLbitfield
mask) {
1176 fprintf(
tr.
logFile,
"glPushClientAttrib 'GLbitfield mask'\n" );
1177 dllPushClientAttrib(mask);
1180 static void APIENTRY logPushMatrix(
void) {
1181 fprintf(
tr.
logFile,
"glPushMatrix\n" );
1186 fprintf(
tr.
logFile,
"glPushName %d\n", name );
1190 static void APIENTRY logRasterPos2d(GLdouble x, GLdouble y) {
1191 fprintf(
tr.
logFile,
"glRasterPos2d %g %g\n", x, y );
1192 dllRasterPos2d(x, y);
1195 static void APIENTRY logRasterPos2dv(
const GLdouble *v) {
1197 fprintf(
tr.
logFile,
"glRasterPos2dv 'const GLdouble * v'\n" );
1201 static void APIENTRY logRasterPos2f(GLfloat x, GLfloat y) {
1202 fprintf(
tr.
logFile,
"glRasterPos2f %g %g\n", x, y );
1203 dllRasterPos2f(x, y);
1206 static void APIENTRY logRasterPos2fv(
const GLfloat *v) {
1208 fprintf(
tr.
logFile,
"glRasterPos2fv 'const GLfloat * v'\n" );
1213 fprintf(
tr.
logFile,
"glRasterPos2i %d %d\n", x, y );
1214 dllRasterPos2i(x, y);
1219 fprintf(
tr.
logFile,
"glRasterPos2iv 'const GLint * v'\n" );
1223 static void APIENTRY logRasterPos2s(GLshort x, GLshort y) {
1224 fprintf(
tr.
logFile,
"glRasterPos2s %d %d\n", x, y );
1225 dllRasterPos2s(x, y);
1228 static void APIENTRY logRasterPos2sv(
const GLshort *v) {
1230 fprintf(
tr.
logFile,
"glRasterPos2sv 'const GLshort * v'\n" );
1234 static void APIENTRY logRasterPos3d(GLdouble x, GLdouble y, GLdouble
z) {
1235 fprintf(
tr.
logFile,
"glRasterPos3d %g %g %g\n", x, y, z );
1236 dllRasterPos3d(x, y, z);
1239 static void APIENTRY logRasterPos3dv(
const GLdouble *v) {
1241 fprintf(
tr.
logFile,
"glRasterPos3dv 'const GLdouble * v'\n" );
1245 static void APIENTRY logRasterPos3f(GLfloat x, GLfloat y, GLfloat
z) {
1246 fprintf(
tr.
logFile,
"glRasterPos3f %g %g %g\n", x, y, z );
1247 dllRasterPos3f(x, y, z);
1250 static void APIENTRY logRasterPos3fv(
const GLfloat *v) {
1252 fprintf(
tr.
logFile,
"glRasterPos3fv 'const GLfloat * v'\n" );
1257 fprintf(
tr.
logFile,
"glRasterPos3i %d %d %d\n", x, y, z );
1258 dllRasterPos3i(x, y, z);
1263 fprintf(
tr.
logFile,
"glRasterPos3iv 'const GLint * v'\n" );
1267 static void APIENTRY logRasterPos3s(GLshort x, GLshort y, GLshort
z) {
1268 fprintf(
tr.
logFile,
"glRasterPos3s %d %d %d\n", x, y, z );
1269 dllRasterPos3s(x, y, z);
1272 static void APIENTRY logRasterPos3sv(
const GLshort *v) {
1274 fprintf(
tr.
logFile,
"glRasterPos3sv 'const GLshort * v'\n" );
1278 static void APIENTRY logRasterPos4d(GLdouble x, GLdouble y, GLdouble
z, GLdouble
w) {
1279 fprintf(
tr.
logFile,
"glRasterPos4d %g %g %g %g\n", x, y, z, w );
1280 dllRasterPos4d(x, y, z, w);
1283 static void APIENTRY logRasterPos4dv(
const GLdouble *v) {
1285 fprintf(
tr.
logFile,
"glRasterPos4dv 'const GLdouble * v'\n" );
1289 static void APIENTRY logRasterPos4f(GLfloat x, GLfloat y, GLfloat
z, GLfloat
w) {
1290 fprintf(
tr.
logFile,
"glRasterPos4f %g %g %g %g\n", x, y, z, w );
1291 dllRasterPos4f(x, y, z, w);
1294 static void APIENTRY logRasterPos4fv(
const GLfloat *v) {
1296 fprintf(
tr.
logFile,
"glRasterPos4fv 'const GLfloat * v'\n" );
1301 fprintf(
tr.
logFile,
"glRasterPos4i %d %d %d %d\n", x, y, z, w );
1302 dllRasterPos4i(x, y, z, w);
1307 fprintf(
tr.
logFile,
"glRasterPos4iv 'const GLint * v'\n" );
1311 static void APIENTRY logRasterPos4s(GLshort x, GLshort y, GLshort
z, GLshort
w) {
1312 fprintf(
tr.
logFile,
"glRasterPos4s %d %d %d %d\n", x, y, z, w );
1313 dllRasterPos4s(x, y, z, w);
1316 static void APIENTRY logRasterPos4sv(
const GLshort *v) {
1318 fprintf(
tr.
logFile,
"glRasterPos4sv 'const GLshort * v'\n" );
1323 fprintf(
tr.
logFile,
"glReadBuffer %s\n", EnumString(mode) );
1324 dllReadBuffer(mode);
1329 fprintf(
tr.
logFile,
"glReadPixels %d %d %d %d %s %s 'GLvoid * pixels'\n", x, y, width, height, EnumString(format), EnumString(type) );
1330 dllReadPixels(x, y, width, height, format, type, pixels);
1333 static void APIENTRY logRectd(GLdouble x1, GLdouble
y1, GLdouble
x2, GLdouble
y2) {
1334 fprintf(
tr.
logFile,
"glRectd %g %g %g %g\n", x1, y1, x2, y2 );
1335 dllRectd(x1, y1, x2, y2);
1338 static void APIENTRY logRectdv(
const GLdouble *v1,
const GLdouble *v2) {
1341 fprintf(
tr.
logFile,
"glRectdv 'const GLdouble * v1' 'const GLdouble * v2'\n" );
1345 static void APIENTRY logRectf(GLfloat x1, GLfloat
y1, GLfloat
x2, GLfloat
y2) {
1346 fprintf(
tr.
logFile,
"glRectf %g %g %g %g\n", x1, y1, x2, y2 );
1347 dllRectf(x1, y1, x2, y2);
1350 static void APIENTRY logRectfv(
const GLfloat *v1,
const GLfloat *v2) {
1353 fprintf(
tr.
logFile,
"glRectfv 'const GLfloat * v1' 'const GLfloat * v2'\n" );
1358 fprintf(
tr.
logFile,
"glRecti %d %d %d %d\n", x1, y1, x2, y2 );
1359 dllRecti(x1, y1, x2, y2);
1365 fprintf(
tr.
logFile,
"glRectiv 'const GLint * v1' 'const GLint * v2'\n" );
1369 static void APIENTRY logRects(GLshort x1, GLshort
y1, GLshort
x2, GLshort
y2) {
1370 fprintf(
tr.
logFile,
"glRects %d %d %d %d\n", x1, y1, x2, y2 );
1371 dllRects(x1, y1, x2, y2);
1374 static void APIENTRY logRectsv(
const GLshort *v1,
const GLshort *v2) {
1377 fprintf(
tr.
logFile,
"glRectsv 'const GLshort * v1' 'const GLshort * v2'\n" );
1382 fprintf(
tr.
logFile,
"glRenderMode %s\n", EnumString(mode) );
1383 return dllRenderMode(mode);
1386 static void APIENTRY logRotated(GLdouble angle, GLdouble x, GLdouble y, GLdouble
z) {
1387 fprintf(
tr.
logFile,
"glRotated %g %g %g %g\n", angle, x, y, z );
1388 dllRotated(angle, x, y, z);
1391 static void APIENTRY logRotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat
z) {
1392 fprintf(
tr.
logFile,
"glRotatef %g %g %g %g\n", angle, x, y, z );
1393 dllRotatef(angle, x, y, z);
1396 static void APIENTRY logScaled(GLdouble x, GLdouble y, GLdouble
z) {
1397 fprintf(
tr.
logFile,
"glScaled %g %g %g\n", x, y, z );
1401 static void APIENTRY logScalef(GLfloat x, GLfloat y, GLfloat
z) {
1402 fprintf(
tr.
logFile,
"glScalef %g %g %g\n", x, y, z );
1407 fprintf(
tr.
logFile,
"glScissor %d %d %d %d\n", x, y, width, height );
1408 dllScissor(x, y, width, height);
1413 fprintf(
tr.
logFile,
"glSelectBuffer %d 'GLuint * buffer'\n", size );
1414 dllSelectBuffer(size, buffer);
1418 fprintf(
tr.
logFile,
"glShadeModel %s\n", EnumString(mode) );
1419 dllShadeModel(mode);
1423 fprintf(
tr.
logFile,
"glStencilFunc %s %d %d\n", EnumString(func), ref, mask );
1424 dllStencilFunc(func, ref, mask);
1428 fprintf(
tr.
logFile,
"glStencilMask %d\n", mask );
1429 dllStencilMask(mask);
1433 fprintf(
tr.
logFile,
"glStencilOp %s %s %s\n", EnumString(fail), EnumString(zfail), EnumString(zpass) );
1434 dllStencilOp(fail, zfail, zpass);
1437 static void APIENTRY logTexCoord1d(GLdouble
s) {
1438 fprintf(
tr.
logFile,
"glTexCoord1d %g\n", s );
1442 static void APIENTRY logTexCoord1dv(
const GLdouble *v) {
1444 fprintf(
tr.
logFile,
"glTexCoord1dv 'const GLdouble * v'\n" );
1448 static void APIENTRY logTexCoord1f(GLfloat
s) {
1449 fprintf(
tr.
logFile,
"glTexCoord1f %g\n", s );
1453 static void APIENTRY logTexCoord1fv(
const GLfloat *v) {
1455 fprintf(
tr.
logFile,
"glTexCoord1fv 'const GLfloat * v'\n" );
1460 fprintf(
tr.
logFile,
"glTexCoord1i %d\n", s );
1466 fprintf(
tr.
logFile,
"glTexCoord1iv 'const GLint * v'\n" );
1470 static void APIENTRY logTexCoord1s(GLshort
s) {
1471 fprintf(
tr.
logFile,
"glTexCoord1s %d\n", s );
1475 static void APIENTRY logTexCoord1sv(
const GLshort *v) {
1477 fprintf(
tr.
logFile,
"glTexCoord1sv 'const GLshort * v'\n" );
1481 static void APIENTRY logTexCoord2d(GLdouble
s, GLdouble
t) {
1482 fprintf(
tr.
logFile,
"glTexCoord2d %g %g\n", s, t );
1483 dllTexCoord2d(s, t);
1486 static void APIENTRY logTexCoord2dv(
const GLdouble *v) {
1488 fprintf(
tr.
logFile,
"glTexCoord2dv 'const GLdouble * v'\n" );
1492 static void APIENTRY logTexCoord2f(GLfloat
s, GLfloat
t) {
1493 fprintf(
tr.
logFile,
"glTexCoord2f %g %g\n", s, t );
1494 dllTexCoord2f(s, t);
1497 static void APIENTRY logTexCoord2fv(
const GLfloat *v) {
1499 fprintf(
tr.
logFile,
"glTexCoord2fv 'const GLfloat * v'\n" );
1504 fprintf(
tr.
logFile,
"glTexCoord2i %d %d\n", s, t );
1505 dllTexCoord2i(s, t);
1510 fprintf(
tr.
logFile,
"glTexCoord2iv 'const GLint * v'\n" );
1514 static void APIENTRY logTexCoord2s(GLshort
s, GLshort
t) {
1515 fprintf(
tr.
logFile,
"glTexCoord2s %d %d\n", s, t );
1516 dllTexCoord2s(s, t);
1519 static void APIENTRY logTexCoord2sv(
const GLshort *v) {
1521 fprintf(
tr.
logFile,
"glTexCoord2sv 'const GLshort * v'\n" );
1525 static void APIENTRY logTexCoord3d(GLdouble
s, GLdouble
t, GLdouble
r) {
1526 fprintf(
tr.
logFile,
"glTexCoord3d %g %g %g\n", s, t, r );
1527 dllTexCoord3d(s, t, r);
1530 static void APIENTRY logTexCoord3dv(
const GLdouble *v) {
1532 fprintf(
tr.
logFile,
"glTexCoord3dv 'const GLdouble * v'\n" );
1536 static void APIENTRY logTexCoord3f(GLfloat
s, GLfloat
t, GLfloat
r) {
1537 fprintf(
tr.
logFile,
"glTexCoord3f %g %g %g\n", s, t, r );
1538 dllTexCoord3f(s, t, r);
1541 static void APIENTRY logTexCoord3fv(
const GLfloat *v) {
1543 fprintf(
tr.
logFile,
"glTexCoord3fv 'const GLfloat * v'\n" );
1548 fprintf(
tr.
logFile,
"glTexCoord3i %d %d %d\n", s, t, r );
1549 dllTexCoord3i(s, t, r);
1554 fprintf(
tr.
logFile,
"glTexCoord3iv 'const GLint * v'\n" );
1558 static void APIENTRY logTexCoord3s(GLshort
s, GLshort
t, GLshort
r) {
1559 fprintf(
tr.
logFile,
"glTexCoord3s %d %d %d\n", s, t, r );
1560 dllTexCoord3s(s, t, r);
1563 static void APIENTRY logTexCoord3sv(
const GLshort *v) {
1565 fprintf(
tr.
logFile,
"glTexCoord3sv 'const GLshort * v'\n" );
1569 static void APIENTRY logTexCoord4d(GLdouble
s, GLdouble
t, GLdouble
r, GLdouble
q) {
1570 fprintf(
tr.
logFile,
"glTexCoord4d %g %g %g %g\n", s, t, r, q );
1571 dllTexCoord4d(s, t, r, q);
1574 static void APIENTRY logTexCoord4dv(
const GLdouble *v) {
1576 fprintf(
tr.
logFile,
"glTexCoord4dv 'const GLdouble * v'\n" );
1580 static void APIENTRY logTexCoord4f(GLfloat
s, GLfloat
t, GLfloat
r, GLfloat
q) {
1581 fprintf(
tr.
logFile,
"glTexCoord4f %g %g %g %g\n", s, t, r, q );
1582 dllTexCoord4f(s, t, r, q);
1585 static void APIENTRY logTexCoord4fv(
const GLfloat *v) {
1587 fprintf(
tr.
logFile,
"glTexCoord4fv 'const GLfloat * v'\n" );
1592 fprintf(
tr.
logFile,
"glTexCoord4i %d %d %d %d\n", s, t, r, q );
1593 dllTexCoord4i(s, t, r, q);
1598 fprintf(
tr.
logFile,
"glTexCoord4iv 'const GLint * v'\n" );
1602 static void APIENTRY logTexCoord4s(GLshort
s, GLshort
t, GLshort
r, GLshort
q) {
1603 fprintf(
tr.
logFile,
"glTexCoord4s %d %d %d %d\n", s, t, r, q );
1604 dllTexCoord4s(s, t, r, q);
1607 static void APIENTRY logTexCoord4sv(
const GLshort *v) {
1609 fprintf(
tr.
logFile,
"glTexCoord4sv 'const GLshort * v'\n" );
1615 fprintf(
tr.
logFile,
"glTexCoordPointer %d %s %d 'const GLvoid * pointer'\n", size, EnumString(type), stride );
1616 dllTexCoordPointer(size, type, stride, pointer);
1620 fprintf(
tr.
logFile,
"glTexEnvf %s %s %g\n", EnumString(target), EnumString(pname), param );
1621 dllTexEnvf(target, pname, param);
1626 fprintf(
tr.
logFile,
"glTexEnvfv %s %s 'const GLfloat * params'\n", EnumString(target), EnumString(pname) );
1627 dllTexEnvfv(target, pname, params);
1631 fprintf(
tr.
logFile,
"glTexEnvi %s %s %d\n", EnumString(target), EnumString(pname), param );
1632 dllTexEnvi(target, pname, param);
1637 fprintf(
tr.
logFile,
"glTexEnviv %s %s 'const GLint * params'\n", EnumString(target), EnumString(pname) );
1638 dllTexEnviv(target, pname, params);
1642 fprintf(
tr.
logFile,
"glTexGend %s %s %g\n", EnumString(coord), EnumString(pname), param );
1643 dllTexGend(coord, pname, param);
1648 fprintf(
tr.
logFile,
"glTexGendv %s %s 'const GLdouble * params'\n", EnumString(coord), EnumString(pname) );
1649 dllTexGendv(coord, pname, params);
1653 fprintf(
tr.
logFile,
"glTexGenf %s %s %g\n", EnumString(coord), EnumString(pname), param );
1654 dllTexGenf(coord, pname, param);
1659 fprintf(
tr.
logFile,
"glTexGenfv %s %s 'const GLfloat * params'\n", EnumString(coord), EnumString(pname) );
1660 dllTexGenfv(coord, pname, params);
1664 fprintf(
tr.
logFile,
"glTexGeni %s %s %d\n", EnumString(coord), EnumString(pname), param );
1665 dllTexGeni(coord, pname, param);
1670 fprintf(
tr.
logFile,
"glTexGeniv %s %s 'const GLint * params'\n", EnumString(coord), EnumString(pname) );
1671 dllTexGeniv(coord, pname, params);
1676 fprintf(
tr.
logFile,
"glTexImage1D %s %d %d %d %d %s %s 'const GLvoid * pixels'\n", EnumString(target), level, internalformat, width, border, EnumString(format), EnumString(type) );
1677 dllTexImage1D(target, level, internalformat, width, border, format, type, pixels);
1682 fprintf(
tr.
logFile,
"glTexImage2D %s %d %d %d %d %d %s %s 'const GLvoid * pixels'\n", EnumString(target), level, internalformat, width, height, border, EnumString(format), EnumString(type) );
1683 dllTexImage2D(target, level, internalformat, width, height, border, format, type, pixels);
1687 fprintf(
tr.
logFile,
"glTexParameterf %s %s %g\n", EnumString(target), EnumString(pname), param );
1688 dllTexParameterf(target, pname, param);
1693 fprintf(
tr.
logFile,
"glTexParameterfv %s %s 'const GLfloat * params'\n", EnumString(target), EnumString(pname) );
1694 dllTexParameterfv(target, pname, params);
1698 fprintf(
tr.
logFile,
"glTexParameteri %s %s %d\n", EnumString(target), EnumString(pname), param );
1699 dllTexParameteri(target, pname, param);
1704 fprintf(
tr.
logFile,
"glTexParameteriv %s %s 'const GLint * params'\n", EnumString(target), EnumString(pname) );
1705 dllTexParameteriv(target, pname, params);
1710 fprintf(
tr.
logFile,
"glTexSubImage1D %s %d %d %d %s %s 'const GLvoid * pixels'\n", EnumString(target), level, xoffset, width, EnumString(format), EnumString(type) );
1711 dllTexSubImage1D(target, level, xoffset, width, format, type, pixels);
1716 fprintf(
tr.
logFile,
"glTexSubImage2D %s %d %d %d %d %d %s %s 'const GLvoid * pixels'\n", EnumString(target), level, xoffset, yoffset, width, height, EnumString(format), EnumString(type) );
1717 dllTexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels);
1720 static void APIENTRY logTranslated(GLdouble x, GLdouble y, GLdouble
z) {
1721 fprintf(
tr.
logFile,
"glTranslated %g %g %g\n", x, y, z );
1722 dllTranslated(x, y, z);
1725 static void APIENTRY logTranslatef(GLfloat x, GLfloat y, GLfloat
z) {
1726 fprintf(
tr.
logFile,
"glTranslatef %g %g %g\n", x, y, z );
1727 dllTranslatef(x, y, z);
1730 static void APIENTRY logVertex2d(GLdouble x, GLdouble y) {
1731 fprintf(
tr.
logFile,
"glVertex2d %g %g\n", x, y );
1735 static void APIENTRY logVertex2dv(
const GLdouble *v) {
1737 fprintf(
tr.
logFile,
"glVertex2dv 'const GLdouble * v'\n" );
1741 static void APIENTRY logVertex2f(GLfloat x, GLfloat y) {
1742 fprintf(
tr.
logFile,
"glVertex2f %g %g\n", x, y );
1746 static void APIENTRY logVertex2fv(
const GLfloat *v) {
1748 fprintf(
tr.
logFile,
"glVertex2fv 'const GLfloat * v'\n" );
1753 fprintf(
tr.
logFile,
"glVertex2i %d %d\n", x, y );
1759 fprintf(
tr.
logFile,
"glVertex2iv 'const GLint * v'\n" );
1763 static void APIENTRY logVertex2s(GLshort x, GLshort y) {
1764 fprintf(
tr.
logFile,
"glVertex2s %d %d\n", x, y );
1768 static void APIENTRY logVertex2sv(
const GLshort *v) {
1770 fprintf(
tr.
logFile,
"glVertex2sv 'const GLshort * v'\n" );
1774 static void APIENTRY logVertex3d(GLdouble x, GLdouble y, GLdouble
z) {
1775 fprintf(
tr.
logFile,
"glVertex3d %g %g %g\n", x, y, z );
1776 dllVertex3d(x, y, z);
1779 static void APIENTRY logVertex3dv(
const GLdouble *v) {
1781 fprintf(
tr.
logFile,
"glVertex3dv 'const GLdouble * v'\n" );
1785 static void APIENTRY logVertex3f(GLfloat x, GLfloat y, GLfloat
z) {
1786 fprintf(
tr.
logFile,
"glVertex3f %g %g %g\n", x, y, z );
1787 dllVertex3f(x, y, z);
1790 static void APIENTRY logVertex3fv(
const GLfloat *v) {
1792 fprintf(
tr.
logFile,
"glVertex3fv 'const GLfloat * v'\n" );
1797 fprintf(
tr.
logFile,
"glVertex3i %d %d %d\n", x, y, z );
1798 dllVertex3i(x, y, z);
1803 fprintf(
tr.
logFile,
"glVertex3iv 'const GLint * v'\n" );
1807 static void APIENTRY logVertex3s(GLshort x, GLshort y, GLshort
z) {
1808 fprintf(
tr.
logFile,
"glVertex3s %d %d %d\n", x, y, z );
1809 dllVertex3s(x, y, z);
1812 static void APIENTRY logVertex3sv(
const GLshort *v) {
1814 fprintf(
tr.
logFile,
"glVertex3sv 'const GLshort * v'\n" );
1818 static void APIENTRY logVertex4d(GLdouble x, GLdouble y, GLdouble
z, GLdouble
w) {
1819 fprintf(
tr.
logFile,
"glVertex4d %g %g %g %g\n", x, y, z, w );
1820 dllVertex4d(x, y, z, w);
1823 static void APIENTRY logVertex4dv(
const GLdouble *v) {
1825 fprintf(
tr.
logFile,
"glVertex4dv 'const GLdouble * v'\n" );
1829 static void APIENTRY logVertex4f(GLfloat x, GLfloat y, GLfloat
z, GLfloat
w) {
1830 fprintf(
tr.
logFile,
"glVertex4f %g %g %g %g\n", x, y, z, w );
1831 dllVertex4f(x, y, z, w);
1834 static void APIENTRY logVertex4fv(
const GLfloat *v) {
1836 fprintf(
tr.
logFile,
"glVertex4fv 'const GLfloat * v'\n" );
1841 fprintf(
tr.
logFile,
"glVertex4i %d %d %d %d\n", x, y, z, w );
1842 dllVertex4i(x, y, z, w);
1847 fprintf(
tr.
logFile,
"glVertex4iv 'const GLint * v'\n" );
1851 static void APIENTRY logVertex4s(GLshort x, GLshort y, GLshort
z, GLshort
w) {
1852 fprintf(
tr.
logFile,
"glVertex4s %d %d %d %d\n", x, y, z, w );
1853 dllVertex4s(x, y, z, w);
1856 static void APIENTRY logVertex4sv(
const GLshort *v) {
1858 fprintf(
tr.
logFile,
"glVertex4sv 'const GLshort * v'\n" );
1864 fprintf(
tr.
logFile,
"glVertexPointer %d %s %d 'const GLvoid * pointer'\n", size, EnumString(type), stride );
1865 dllVertexPointer(size, type, stride, pointer);
1869 fprintf(
tr.
logFile,
"glViewport %d %d %d %d\n", x, y, width, height );
1870 dllViewport(x, y, width, height);
1876 static XVisualInfo *
APIENTRY logChooseVisual(Display *
dpy,
int screen,
int *attribList) {
1880 fprintf(
tr.
logFile,
"glXChooseVisual 'Display * dpy' 'int screen' 'int * attribList'\n" );
1881 return dllChooseVisual(dpy, screen, attribList);
1884 static GLXContext
APIENTRY logCreateContext(Display *
dpy, XVisualInfo *vis, GLXContext shareList, Bool direct) {
1889 fprintf(
tr.
logFile,
"glXCreateContext 'Display * dpy' 'XVisualInfo * vis' 'GLXContext shareList' 'Bool direct'\n" );
1890 return dllCreateContext(dpy, vis, shareList, direct);
1893 static void APIENTRY logDestroyContext(Display *
dpy, GLXContext ctx) {
1896 fprintf(
tr.
logFile,
"glXDestroyContext 'Display * dpy' 'GLXContext ctx'\n" );
1897 dllDestroyContext(dpy, ctx);
1900 static Bool
APIENTRY logMakeCurrent(Display *
dpy, GLXDrawable drawable, GLXContext ctx) {
1904 fprintf(
tr.
logFile,
"glXMakeCurrent 'Display * dpy' 'GLXDrawable drawable' 'GLXContext ctx'\n" );
1905 return dllMakeCurrent(dpy, drawable, ctx);
1908 static void APIENTRY logSwapBuffers(Display *
dpy, GLXDrawable drawable) {
1911 fprintf(
tr.
logFile,
"glXSwapBuffers 'Display * dpy' 'GLXDrawable drawable'\n" );
1912 dllSwapBuffers(dpy, drawable);
GLdouble GLdouble GLdouble GLdouble q
GLsizei const GLfloat * points
GLboolean GLenum GLenum GLvoid * values
GLsizei const GLfloat * value
GLdouble GLdouble GLint vn
GLdouble GLdouble GLdouble GLdouble zNear
GLenum GLsizei GLenum format
const GLuint const GLclampf * priorities
GLint GLint GLsizei GLsizei GLsizei depth
GLuint GLuint GLsizei GLenum type
GLclampf GLclampf GLclampf alpha
GLdouble GLdouble GLint GLint uorder
const GLubyte *APIENTRY * dllGetString(GLenum name)
GLsizei GLfloat GLfloat yorig
GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte * bitmap
GLfloat GLfloat GLfloat v2
GLsizei const GLvoid * pointer
GLuint GLuint GLsizei count
GLint GLint GLint GLint j2
typedef GLboolean(APIENTRYP PFNGLISQUERYPROC)(GLuint id)
GLdouble GLdouble GLint GLint order
GLubyte GLubyte GLubyte GLubyte w
GLenum const GLvoid * lists
const GLdouble * equation
GLdouble GLdouble GLint GLint GLdouble GLdouble GLint vstride
GLint GLint GLint yoffset
GLdouble GLdouble GLdouble y2
GLenum GLsizei GLsizei height
GLdouble GLdouble GLdouble top
GLdouble GLdouble GLint ustride
GLfloat GLfloat GLfloat GLfloat nx
GLint GLint GLsizei GLsizei GLsizei GLint border
GLdouble GLdouble GLdouble r
GLuint GLuint GLsizei GLenum const GLvoid * indices
GLdouble GLdouble GLint GLint GLdouble GLdouble GLint GLint vorder
GLsizei GLfloat GLfloat GLfloat xmove
const GLuint GLboolean * residences
GLint GLint GLsizei GLsizei GLsizei GLint GLenum GLenum const GLvoid * pixels
typedef GLuint(APIENTRYP PFNGLGENASYNCMARKERSSGIXPROC)(GLsizei range)
GLsizei GLfloat GLfloat GLfloat GLfloat ymove
GLenum const GLfloat * params