diff options
author | kbr@google.com <kbr@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-05 23:32:52 +0000 |
---|---|---|
committer | kbr@google.com <kbr@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-05 23:32:52 +0000 |
commit | 28469c405f3f5e6573a523d1d5e829eabbfb0f0e (patch) | |
tree | 4d48c0d083f4847c76a49ee0e7d378fffbade58d /third_party/glew | |
parent | 12338015077b13e550ce7c4201f8faf8cd858ca5 (diff) | |
download | chromium_src-28469c405f3f5e6573a523d1d5e829eabbfb0f0e.zip chromium_src-28469c405f3f5e6573a523d1d5e829eabbfb0f0e.tar.gz chromium_src-28469c405f3f5e6573a523d1d5e829eabbfb0f0e.tar.bz2 |
Ported Chrome's WebGL implementation to Linux. Required changes to
GLEW's bootstrapping sequence on both X11 and Windows platforms to
avoid linking against libGL.so.1 directly due to
http://crbug.com/16800 . Made GLEW's inclusion of glu.h optional.
Tested on Linux, Mac and Windows.
BUG=http://crbug.com/21852
TEST=none (runs existing WebGL tests; more coming)
Review URL: http://codereview.chromium.org/258024
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28062 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party/glew')
-rw-r--r-- | third_party/glew/README.chromium | 15 | ||||
-rw-r--r-- | third_party/glew/include/GL/glew.h | 1348 | ||||
-rw-r--r-- | third_party/glew/src/glew.c | 748 |
3 files changed, 1765 insertions, 346 deletions
diff --git a/third_party/glew/README.chromium b/third_party/glew/README.chromium index 4d554c8..b56a1df 100644 --- a/third_party/glew/README.chromium +++ b/third_party/glew/README.chromium @@ -2,9 +2,18 @@ This is Chrome's local copy of the GLEW library, which is currently used to interface to OpenGL and extensions to implement the WebGL specification. -Compared to the original distribution, the implementation of -NSGLGetProcAddress has been changed to use the standard dlfcn.h -functions rather than the deprecated mach-o/dyld.h ones. +Compared to the original distribution: + + - GLEW was changed to dynamically look up the OpenGL 1.1 entry + points in addition to those for later OpenGL versions and + extensions. This was necessary to be able to stop linking directly + against libGL.so on Linux due to http://crbug.com/16800 . + + - The implementation of NSGLGetProcAddress has been changed to use + the standard dlfcn.h functions rather than the deprecated + mach-o/dyld.h ones. + + - A GLEW_NO_GLU #define was added to prevent including GL/glu.h. Originally obtained from http://glew.sourceforge.net/ . The LICENSE.txt from that distribution has been preserved here. diff --git a/third_party/glew/include/GL/glew.h b/third_party/glew/include/GL/glew.h index 2014092..2a63078 100644 --- a/third_party/glew/include/GL/glew.h +++ b/third_party/glew/include/GL/glew.h @@ -788,342 +788,679 @@ typedef uint64_t GLuint64EXT; #define GL_COLOR_INDEX12_EXT 0x80E6 #define GL_COLOR_INDEX16_EXT 0x80E7 -GLAPI void GLAPIENTRY glAccum (GLenum op, GLfloat value); -GLAPI void GLAPIENTRY glAlphaFunc (GLenum func, GLclampf ref); -GLAPI GLboolean GLAPIENTRY glAreTexturesResident (GLsizei n, const GLuint *textures, GLboolean *residences); -GLAPI void GLAPIENTRY glArrayElement (GLint i); -GLAPI void GLAPIENTRY glBegin (GLenum mode); -GLAPI void GLAPIENTRY glBindTexture (GLenum target, GLuint texture); -GLAPI void GLAPIENTRY glBitmap (GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte *bitmap); -GLAPI void GLAPIENTRY glBlendFunc (GLenum sfactor, GLenum dfactor); -GLAPI void GLAPIENTRY glCallList (GLuint list); -GLAPI void GLAPIENTRY glCallLists (GLsizei n, GLenum type, const GLvoid *lists); -GLAPI void GLAPIENTRY glClear (GLbitfield mask); -GLAPI void GLAPIENTRY glClearAccum (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); -GLAPI void GLAPIENTRY glClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha); -GLAPI void GLAPIENTRY glClearDepth (GLclampd depth); -GLAPI void GLAPIENTRY glClearIndex (GLfloat c); -GLAPI void GLAPIENTRY glClearStencil (GLint s); -GLAPI void GLAPIENTRY glClipPlane (GLenum plane, const GLdouble *equation); -GLAPI void GLAPIENTRY glColor3b (GLbyte red, GLbyte green, GLbyte blue); -GLAPI void GLAPIENTRY glColor3bv (const GLbyte *v); -GLAPI void GLAPIENTRY glColor3d (GLdouble red, GLdouble green, GLdouble blue); -GLAPI void GLAPIENTRY glColor3dv (const GLdouble *v); -GLAPI void GLAPIENTRY glColor3f (GLfloat red, GLfloat green, GLfloat blue); -GLAPI void GLAPIENTRY glColor3fv (const GLfloat *v); -GLAPI void GLAPIENTRY glColor3i (GLint red, GLint green, GLint blue); -GLAPI void GLAPIENTRY glColor3iv (const GLint *v); -GLAPI void GLAPIENTRY glColor3s (GLshort red, GLshort green, GLshort blue); -GLAPI void GLAPIENTRY glColor3sv (const GLshort *v); -GLAPI void GLAPIENTRY glColor3ub (GLubyte red, GLubyte green, GLubyte blue); -GLAPI void GLAPIENTRY glColor3ubv (const GLubyte *v); -GLAPI void GLAPIENTRY glColor3ui (GLuint red, GLuint green, GLuint blue); -GLAPI void GLAPIENTRY glColor3uiv (const GLuint *v); -GLAPI void GLAPIENTRY glColor3us (GLushort red, GLushort green, GLushort blue); -GLAPI void GLAPIENTRY glColor3usv (const GLushort *v); -GLAPI void GLAPIENTRY glColor4b (GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha); -GLAPI void GLAPIENTRY glColor4bv (const GLbyte *v); -GLAPI void GLAPIENTRY glColor4d (GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha); -GLAPI void GLAPIENTRY glColor4dv (const GLdouble *v); -GLAPI void GLAPIENTRY glColor4f (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); -GLAPI void GLAPIENTRY glColor4fv (const GLfloat *v); -GLAPI void GLAPIENTRY glColor4i (GLint red, GLint green, GLint blue, GLint alpha); -GLAPI void GLAPIENTRY glColor4iv (const GLint *v); -GLAPI void GLAPIENTRY glColor4s (GLshort red, GLshort green, GLshort blue, GLshort alpha); -GLAPI void GLAPIENTRY glColor4sv (const GLshort *v); -GLAPI void GLAPIENTRY glColor4ub (GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha); -GLAPI void GLAPIENTRY glColor4ubv (const GLubyte *v); -GLAPI void GLAPIENTRY glColor4ui (GLuint red, GLuint green, GLuint blue, GLuint alpha); -GLAPI void GLAPIENTRY glColor4uiv (const GLuint *v); -GLAPI void GLAPIENTRY glColor4us (GLushort red, GLushort green, GLushort blue, GLushort alpha); -GLAPI void GLAPIENTRY glColor4usv (const GLushort *v); -GLAPI void GLAPIENTRY glColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha); -GLAPI void GLAPIENTRY glColorMaterial (GLenum face, GLenum mode); -GLAPI void GLAPIENTRY glColorPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); -GLAPI void GLAPIENTRY glCopyPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum type); -GLAPI void GLAPIENTRY glCopyTexImage1D (GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLint border); -GLAPI void GLAPIENTRY glCopyTexImage2D (GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); -GLAPI void GLAPIENTRY glCopyTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); -GLAPI void GLAPIENTRY glCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); -GLAPI void GLAPIENTRY glCullFace (GLenum mode); -GLAPI void GLAPIENTRY glDeleteLists (GLuint list, GLsizei range); -GLAPI void GLAPIENTRY glDeleteTextures (GLsizei n, const GLuint *textures); -GLAPI void GLAPIENTRY glDepthFunc (GLenum func); -GLAPI void GLAPIENTRY glDepthMask (GLboolean flag); -GLAPI void GLAPIENTRY glDepthRange (GLclampd zNear, GLclampd zFar); -GLAPI void GLAPIENTRY glDisable (GLenum cap); -GLAPI void GLAPIENTRY glDisableClientState (GLenum array); -GLAPI void GLAPIENTRY glDrawArrays (GLenum mode, GLint first, GLsizei count); -GLAPI void GLAPIENTRY glDrawBuffer (GLenum mode); -GLAPI void GLAPIENTRY glDrawElements (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices); -GLAPI void GLAPIENTRY glDrawPixels (GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels); -GLAPI void GLAPIENTRY glEdgeFlag (GLboolean flag); -GLAPI void GLAPIENTRY glEdgeFlagPointer (GLsizei stride, const GLvoid *pointer); -GLAPI void GLAPIENTRY glEdgeFlagv (const GLboolean *flag); -GLAPI void GLAPIENTRY glEnable (GLenum cap); -GLAPI void GLAPIENTRY glEnableClientState (GLenum array); -GLAPI void GLAPIENTRY glEnd (void); -GLAPI void GLAPIENTRY glEndList (void); -GLAPI void GLAPIENTRY glEvalCoord1d (GLdouble u); -GLAPI void GLAPIENTRY glEvalCoord1dv (const GLdouble *u); -GLAPI void GLAPIENTRY glEvalCoord1f (GLfloat u); -GLAPI void GLAPIENTRY glEvalCoord1fv (const GLfloat *u); -GLAPI void GLAPIENTRY glEvalCoord2d (GLdouble u, GLdouble v); -GLAPI void GLAPIENTRY glEvalCoord2dv (const GLdouble *u); -GLAPI void GLAPIENTRY glEvalCoord2f (GLfloat u, GLfloat v); -GLAPI void GLAPIENTRY glEvalCoord2fv (const GLfloat *u); -GLAPI void GLAPIENTRY glEvalMesh1 (GLenum mode, GLint i1, GLint i2); -GLAPI void GLAPIENTRY glEvalMesh2 (GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2); -GLAPI void GLAPIENTRY glEvalPoint1 (GLint i); -GLAPI void GLAPIENTRY glEvalPoint2 (GLint i, GLint j); -GLAPI void GLAPIENTRY glFeedbackBuffer (GLsizei size, GLenum type, GLfloat *buffer); -GLAPI void GLAPIENTRY glFinish (void); -GLAPI void GLAPIENTRY glFlush (void); -GLAPI void GLAPIENTRY glFogf (GLenum pname, GLfloat param); -GLAPI void GLAPIENTRY glFogfv (GLenum pname, const GLfloat *params); -GLAPI void GLAPIENTRY glFogi (GLenum pname, GLint param); -GLAPI void GLAPIENTRY glFogiv (GLenum pname, const GLint *params); -GLAPI void GLAPIENTRY glFrontFace (GLenum mode); -GLAPI void GLAPIENTRY glFrustum (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar); -GLAPI GLuint GLAPIENTRY glGenLists (GLsizei range); -GLAPI void GLAPIENTRY glGenTextures (GLsizei n, GLuint *textures); -GLAPI void GLAPIENTRY glGetBooleanv (GLenum pname, GLboolean *params); -GLAPI void GLAPIENTRY glGetClipPlane (GLenum plane, GLdouble *equation); -GLAPI void GLAPIENTRY glGetDoublev (GLenum pname, GLdouble *params); -GLAPI GLenum GLAPIENTRY glGetError (void); -GLAPI void GLAPIENTRY glGetFloatv (GLenum pname, GLfloat *params); -GLAPI void GLAPIENTRY glGetIntegerv (GLenum pname, GLint *params); -GLAPI void GLAPIENTRY glGetLightfv (GLenum light, GLenum pname, GLfloat *params); -GLAPI void GLAPIENTRY glGetLightiv (GLenum light, GLenum pname, GLint *params); -GLAPI void GLAPIENTRY glGetMapdv (GLenum target, GLenum query, GLdouble *v); -GLAPI void GLAPIENTRY glGetMapfv (GLenum target, GLenum query, GLfloat *v); -GLAPI void GLAPIENTRY glGetMapiv (GLenum target, GLenum query, GLint *v); -GLAPI void GLAPIENTRY glGetMaterialfv (GLenum face, GLenum pname, GLfloat *params); -GLAPI void GLAPIENTRY glGetMaterialiv (GLenum face, GLenum pname, GLint *params); -GLAPI void GLAPIENTRY glGetPixelMapfv (GLenum map, GLfloat *values); -GLAPI void GLAPIENTRY glGetPixelMapuiv (GLenum map, GLuint *values); -GLAPI void GLAPIENTRY glGetPixelMapusv (GLenum map, GLushort *values); -GLAPI void GLAPIENTRY glGetPointerv (GLenum pname, GLvoid* *params); -GLAPI void GLAPIENTRY glGetPolygonStipple (GLubyte *mask); -GLAPI const GLubyte * GLAPIENTRY glGetString (GLenum name); -GLAPI void GLAPIENTRY glGetTexEnvfv (GLenum target, GLenum pname, GLfloat *params); -GLAPI void GLAPIENTRY glGetTexEnviv (GLenum target, GLenum pname, GLint *params); -GLAPI void GLAPIENTRY glGetTexGendv (GLenum coord, GLenum pname, GLdouble *params); -GLAPI void GLAPIENTRY glGetTexGenfv (GLenum coord, GLenum pname, GLfloat *params); -GLAPI void GLAPIENTRY glGetTexGeniv (GLenum coord, GLenum pname, GLint *params); -GLAPI void GLAPIENTRY glGetTexImage (GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels); -GLAPI void GLAPIENTRY glGetTexLevelParameterfv (GLenum target, GLint level, GLenum pname, GLfloat *params); -GLAPI void GLAPIENTRY glGetTexLevelParameteriv (GLenum target, GLint level, GLenum pname, GLint *params); -GLAPI void GLAPIENTRY glGetTexParameterfv (GLenum target, GLenum pname, GLfloat *params); -GLAPI void GLAPIENTRY glGetTexParameteriv (GLenum target, GLenum pname, GLint *params); -GLAPI void GLAPIENTRY glHint (GLenum target, GLenum mode); -GLAPI void GLAPIENTRY glIndexMask (GLuint mask); -GLAPI void GLAPIENTRY glIndexPointer (GLenum type, GLsizei stride, const GLvoid *pointer); -GLAPI void GLAPIENTRY glIndexd (GLdouble c); -GLAPI void GLAPIENTRY glIndexdv (const GLdouble *c); -GLAPI void GLAPIENTRY glIndexf (GLfloat c); -GLAPI void GLAPIENTRY glIndexfv (const GLfloat *c); -GLAPI void GLAPIENTRY glIndexi (GLint c); -GLAPI void GLAPIENTRY glIndexiv (const GLint *c); -GLAPI void GLAPIENTRY glIndexs (GLshort c); -GLAPI void GLAPIENTRY glIndexsv (const GLshort *c); -GLAPI void GLAPIENTRY glIndexub (GLubyte c); -GLAPI void GLAPIENTRY glIndexubv (const GLubyte *c); -GLAPI void GLAPIENTRY glInitNames (void); -GLAPI void GLAPIENTRY glInterleavedArrays (GLenum format, GLsizei stride, const GLvoid *pointer); -GLAPI GLboolean GLAPIENTRY glIsEnabled (GLenum cap); -GLAPI GLboolean GLAPIENTRY glIsList (GLuint list); -GLAPI GLboolean GLAPIENTRY glIsTexture (GLuint texture); -GLAPI void GLAPIENTRY glLightModelf (GLenum pname, GLfloat param); -GLAPI void GLAPIENTRY glLightModelfv (GLenum pname, const GLfloat *params); -GLAPI void GLAPIENTRY glLightModeli (GLenum pname, GLint param); -GLAPI void GLAPIENTRY glLightModeliv (GLenum pname, const GLint *params); -GLAPI void GLAPIENTRY glLightf (GLenum light, GLenum pname, GLfloat param); -GLAPI void GLAPIENTRY glLightfv (GLenum light, GLenum pname, const GLfloat *params); -GLAPI void GLAPIENTRY glLighti (GLenum light, GLenum pname, GLint param); -GLAPI void GLAPIENTRY glLightiv (GLenum light, GLenum pname, const GLint *params); -GLAPI void GLAPIENTRY glLineStipple (GLint factor, GLushort pattern); -GLAPI void GLAPIENTRY glLineWidth (GLfloat width); -GLAPI void GLAPIENTRY glListBase (GLuint base); -GLAPI void GLAPIENTRY glLoadIdentity (void); -GLAPI void GLAPIENTRY glLoadMatrixd (const GLdouble *m); -GLAPI void GLAPIENTRY glLoadMatrixf (const GLfloat *m); -GLAPI void GLAPIENTRY glLoadName (GLuint name); -GLAPI void GLAPIENTRY glLogicOp (GLenum opcode); -GLAPI void GLAPIENTRY glMap1d (GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points); -GLAPI void GLAPIENTRY glMap1f (GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points); -GLAPI void GLAPIENTRY glMap2d (GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points); -GLAPI void GLAPIENTRY glMap2f (GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points); -GLAPI void GLAPIENTRY glMapGrid1d (GLint un, GLdouble u1, GLdouble u2); -GLAPI void GLAPIENTRY glMapGrid1f (GLint un, GLfloat u1, GLfloat u2); -GLAPI void GLAPIENTRY glMapGrid2d (GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2); -GLAPI void GLAPIENTRY glMapGrid2f (GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2); -GLAPI void GLAPIENTRY glMaterialf (GLenum face, GLenum pname, GLfloat param); -GLAPI void GLAPIENTRY glMaterialfv (GLenum face, GLenum pname, const GLfloat *params); -GLAPI void GLAPIENTRY glMateriali (GLenum face, GLenum pname, GLint param); -GLAPI void GLAPIENTRY glMaterialiv (GLenum face, GLenum pname, const GLint *params); -GLAPI void GLAPIENTRY glMatrixMode (GLenum mode); -GLAPI void GLAPIENTRY glMultMatrixd (const GLdouble *m); -GLAPI void GLAPIENTRY glMultMatrixf (const GLfloat *m); -GLAPI void GLAPIENTRY glNewList (GLuint list, GLenum mode); -GLAPI void GLAPIENTRY glNormal3b (GLbyte nx, GLbyte ny, GLbyte nz); -GLAPI void GLAPIENTRY glNormal3bv (const GLbyte *v); -GLAPI void GLAPIENTRY glNormal3d (GLdouble nx, GLdouble ny, GLdouble nz); -GLAPI void GLAPIENTRY glNormal3dv (const GLdouble *v); -GLAPI void GLAPIENTRY glNormal3f (GLfloat nx, GLfloat ny, GLfloat nz); -GLAPI void GLAPIENTRY glNormal3fv (const GLfloat *v); -GLAPI void GLAPIENTRY glNormal3i (GLint nx, GLint ny, GLint nz); -GLAPI void GLAPIENTRY glNormal3iv (const GLint *v); -GLAPI void GLAPIENTRY glNormal3s (GLshort nx, GLshort ny, GLshort nz); -GLAPI void GLAPIENTRY glNormal3sv (const GLshort *v); -GLAPI void GLAPIENTRY glNormalPointer (GLenum type, GLsizei stride, const GLvoid *pointer); -GLAPI void GLAPIENTRY glOrtho (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar); -GLAPI void GLAPIENTRY glPassThrough (GLfloat token); -GLAPI void GLAPIENTRY glPixelMapfv (GLenum map, GLsizei mapsize, const GLfloat *values); -GLAPI void GLAPIENTRY glPixelMapuiv (GLenum map, GLsizei mapsize, const GLuint *values); -GLAPI void GLAPIENTRY glPixelMapusv (GLenum map, GLsizei mapsize, const GLushort *values); -GLAPI void GLAPIENTRY glPixelStoref (GLenum pname, GLfloat param); -GLAPI void GLAPIENTRY glPixelStorei (GLenum pname, GLint param); -GLAPI void GLAPIENTRY glPixelTransferf (GLenum pname, GLfloat param); -GLAPI void GLAPIENTRY glPixelTransferi (GLenum pname, GLint param); -GLAPI void GLAPIENTRY glPixelZoom (GLfloat xfactor, GLfloat yfactor); -GLAPI void GLAPIENTRY glPointSize (GLfloat size); -GLAPI void GLAPIENTRY glPolygonMode (GLenum face, GLenum mode); -GLAPI void GLAPIENTRY glPolygonOffset (GLfloat factor, GLfloat units); -GLAPI void GLAPIENTRY glPolygonStipple (const GLubyte *mask); -GLAPI void GLAPIENTRY glPopAttrib (void); -GLAPI void GLAPIENTRY glPopClientAttrib (void); -GLAPI void GLAPIENTRY glPopMatrix (void); -GLAPI void GLAPIENTRY glPopName (void); -GLAPI void GLAPIENTRY glPrioritizeTextures (GLsizei n, const GLuint *textures, const GLclampf *priorities); -GLAPI void GLAPIENTRY glPushAttrib (GLbitfield mask); -GLAPI void GLAPIENTRY glPushClientAttrib (GLbitfield mask); -GLAPI void GLAPIENTRY glPushMatrix (void); -GLAPI void GLAPIENTRY glPushName (GLuint name); -GLAPI void GLAPIENTRY glRasterPos2d (GLdouble x, GLdouble y); -GLAPI void GLAPIENTRY glRasterPos2dv (const GLdouble *v); -GLAPI void GLAPIENTRY glRasterPos2f (GLfloat x, GLfloat y); -GLAPI void GLAPIENTRY glRasterPos2fv (const GLfloat *v); -GLAPI void GLAPIENTRY glRasterPos2i (GLint x, GLint y); -GLAPI void GLAPIENTRY glRasterPos2iv (const GLint *v); -GLAPI void GLAPIENTRY glRasterPos2s (GLshort x, GLshort y); -GLAPI void GLAPIENTRY glRasterPos2sv (const GLshort *v); -GLAPI void GLAPIENTRY glRasterPos3d (GLdouble x, GLdouble y, GLdouble z); -GLAPI void GLAPIENTRY glRasterPos3dv (const GLdouble *v); -GLAPI void GLAPIENTRY glRasterPos3f (GLfloat x, GLfloat y, GLfloat z); -GLAPI void GLAPIENTRY glRasterPos3fv (const GLfloat *v); -GLAPI void GLAPIENTRY glRasterPos3i (GLint x, GLint y, GLint z); -GLAPI void GLAPIENTRY glRasterPos3iv (const GLint *v); -GLAPI void GLAPIENTRY glRasterPos3s (GLshort x, GLshort y, GLshort z); -GLAPI void GLAPIENTRY glRasterPos3sv (const GLshort *v); -GLAPI void GLAPIENTRY glRasterPos4d (GLdouble x, GLdouble y, GLdouble z, GLdouble w); -GLAPI void GLAPIENTRY glRasterPos4dv (const GLdouble *v); -GLAPI void GLAPIENTRY glRasterPos4f (GLfloat x, GLfloat y, GLfloat z, GLfloat w); -GLAPI void GLAPIENTRY glRasterPos4fv (const GLfloat *v); -GLAPI void GLAPIENTRY glRasterPos4i (GLint x, GLint y, GLint z, GLint w); -GLAPI void GLAPIENTRY glRasterPos4iv (const GLint *v); -GLAPI void GLAPIENTRY glRasterPos4s (GLshort x, GLshort y, GLshort z, GLshort w); -GLAPI void GLAPIENTRY glRasterPos4sv (const GLshort *v); -GLAPI void GLAPIENTRY glReadBuffer (GLenum mode); -GLAPI void GLAPIENTRY glReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels); -GLAPI void GLAPIENTRY glRectd (GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2); -GLAPI void GLAPIENTRY glRectdv (const GLdouble *v1, const GLdouble *v2); -GLAPI void GLAPIENTRY glRectf (GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2); -GLAPI void GLAPIENTRY glRectfv (const GLfloat *v1, const GLfloat *v2); -GLAPI void GLAPIENTRY glRecti (GLint x1, GLint y1, GLint x2, GLint y2); -GLAPI void GLAPIENTRY glRectiv (const GLint *v1, const GLint *v2); -GLAPI void GLAPIENTRY glRects (GLshort x1, GLshort y1, GLshort x2, GLshort y2); -GLAPI void GLAPIENTRY glRectsv (const GLshort *v1, const GLshort *v2); -GLAPI GLint GLAPIENTRY glRenderMode (GLenum mode); -GLAPI void GLAPIENTRY glRotated (GLdouble angle, GLdouble x, GLdouble y, GLdouble z); -GLAPI void GLAPIENTRY glRotatef (GLfloat angle, GLfloat x, GLfloat y, GLfloat z); -GLAPI void GLAPIENTRY glScaled (GLdouble x, GLdouble y, GLdouble z); -GLAPI void GLAPIENTRY glScalef (GLfloat x, GLfloat y, GLfloat z); -GLAPI void GLAPIENTRY glScissor (GLint x, GLint y, GLsizei width, GLsizei height); -GLAPI void GLAPIENTRY glSelectBuffer (GLsizei size, GLuint *buffer); -GLAPI void GLAPIENTRY glShadeModel (GLenum mode); -GLAPI void GLAPIENTRY glStencilFunc (GLenum func, GLint ref, GLuint mask); -GLAPI void GLAPIENTRY glStencilMask (GLuint mask); -GLAPI void GLAPIENTRY glStencilOp (GLenum fail, GLenum zfail, GLenum zpass); -GLAPI void GLAPIENTRY glTexCoord1d (GLdouble s); -GLAPI void GLAPIENTRY glTexCoord1dv (const GLdouble *v); -GLAPI void GLAPIENTRY glTexCoord1f (GLfloat s); -GLAPI void GLAPIENTRY glTexCoord1fv (const GLfloat *v); -GLAPI void GLAPIENTRY glTexCoord1i (GLint s); -GLAPI void GLAPIENTRY glTexCoord1iv (const GLint *v); -GLAPI void GLAPIENTRY glTexCoord1s (GLshort s); -GLAPI void GLAPIENTRY glTexCoord1sv (const GLshort *v); -GLAPI void GLAPIENTRY glTexCoord2d (GLdouble s, GLdouble t); -GLAPI void GLAPIENTRY glTexCoord2dv (const GLdouble *v); -GLAPI void GLAPIENTRY glTexCoord2f (GLfloat s, GLfloat t); -GLAPI void GLAPIENTRY glTexCoord2fv (const GLfloat *v); -GLAPI void GLAPIENTRY glTexCoord2i (GLint s, GLint t); -GLAPI void GLAPIENTRY glTexCoord2iv (const GLint *v); -GLAPI void GLAPIENTRY glTexCoord2s (GLshort s, GLshort t); -GLAPI void GLAPIENTRY glTexCoord2sv (const GLshort *v); -GLAPI void GLAPIENTRY glTexCoord3d (GLdouble s, GLdouble t, GLdouble r); -GLAPI void GLAPIENTRY glTexCoord3dv (const GLdouble *v); -GLAPI void GLAPIENTRY glTexCoord3f (GLfloat s, GLfloat t, GLfloat r); -GLAPI void GLAPIENTRY glTexCoord3fv (const GLfloat *v); -GLAPI void GLAPIENTRY glTexCoord3i (GLint s, GLint t, GLint r); -GLAPI void GLAPIENTRY glTexCoord3iv (const GLint *v); -GLAPI void GLAPIENTRY glTexCoord3s (GLshort s, GLshort t, GLshort r); -GLAPI void GLAPIENTRY glTexCoord3sv (const GLshort *v); -GLAPI void GLAPIENTRY glTexCoord4d (GLdouble s, GLdouble t, GLdouble r, GLdouble q); -GLAPI void GLAPIENTRY glTexCoord4dv (const GLdouble *v); -GLAPI void GLAPIENTRY glTexCoord4f (GLfloat s, GLfloat t, GLfloat r, GLfloat q); -GLAPI void GLAPIENTRY glTexCoord4fv (const GLfloat *v); -GLAPI void GLAPIENTRY glTexCoord4i (GLint s, GLint t, GLint r, GLint q); -GLAPI void GLAPIENTRY glTexCoord4iv (const GLint *v); -GLAPI void GLAPIENTRY glTexCoord4s (GLshort s, GLshort t, GLshort r, GLshort q); -GLAPI void GLAPIENTRY glTexCoord4sv (const GLshort *v); -GLAPI void GLAPIENTRY glTexCoordPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); -GLAPI void GLAPIENTRY glTexEnvf (GLenum target, GLenum pname, GLfloat param); -GLAPI void GLAPIENTRY glTexEnvfv (GLenum target, GLenum pname, const GLfloat *params); -GLAPI void GLAPIENTRY glTexEnvi (GLenum target, GLenum pname, GLint param); -GLAPI void GLAPIENTRY glTexEnviv (GLenum target, GLenum pname, const GLint *params); -GLAPI void GLAPIENTRY glTexGend (GLenum coord, GLenum pname, GLdouble param); -GLAPI void GLAPIENTRY glTexGendv (GLenum coord, GLenum pname, const GLdouble *params); -GLAPI void GLAPIENTRY glTexGenf (GLenum coord, GLenum pname, GLfloat param); -GLAPI void GLAPIENTRY glTexGenfv (GLenum coord, GLenum pname, const GLfloat *params); -GLAPI void GLAPIENTRY glTexGeni (GLenum coord, GLenum pname, GLint param); -GLAPI void GLAPIENTRY glTexGeniv (GLenum coord, GLenum pname, const GLint *params); -GLAPI void GLAPIENTRY glTexImage1D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels); -GLAPI void GLAPIENTRY glTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels); -GLAPI void GLAPIENTRY glTexParameterf (GLenum target, GLenum pname, GLfloat param); -GLAPI void GLAPIENTRY glTexParameterfv (GLenum target, GLenum pname, const GLfloat *params); -GLAPI void GLAPIENTRY glTexParameteri (GLenum target, GLenum pname, GLint param); -GLAPI void GLAPIENTRY glTexParameteriv (GLenum target, GLenum pname, const GLint *params); -GLAPI void GLAPIENTRY glTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels); -GLAPI void GLAPIENTRY glTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels); -GLAPI void GLAPIENTRY glTranslated (GLdouble x, GLdouble y, GLdouble z); -GLAPI void GLAPIENTRY glTranslatef (GLfloat x, GLfloat y, GLfloat z); -GLAPI void GLAPIENTRY glVertex2d (GLdouble x, GLdouble y); -GLAPI void GLAPIENTRY glVertex2dv (const GLdouble *v); -GLAPI void GLAPIENTRY glVertex2f (GLfloat x, GLfloat y); -GLAPI void GLAPIENTRY glVertex2fv (const GLfloat *v); -GLAPI void GLAPIENTRY glVertex2i (GLint x, GLint y); -GLAPI void GLAPIENTRY glVertex2iv (const GLint *v); -GLAPI void GLAPIENTRY glVertex2s (GLshort x, GLshort y); -GLAPI void GLAPIENTRY glVertex2sv (const GLshort *v); -GLAPI void GLAPIENTRY glVertex3d (GLdouble x, GLdouble y, GLdouble z); -GLAPI void GLAPIENTRY glVertex3dv (const GLdouble *v); -GLAPI void GLAPIENTRY glVertex3f (GLfloat x, GLfloat y, GLfloat z); -GLAPI void GLAPIENTRY glVertex3fv (const GLfloat *v); -GLAPI void GLAPIENTRY glVertex3i (GLint x, GLint y, GLint z); -GLAPI void GLAPIENTRY glVertex3iv (const GLint *v); -GLAPI void GLAPIENTRY glVertex3s (GLshort x, GLshort y, GLshort z); -GLAPI void GLAPIENTRY glVertex3sv (const GLshort *v); -GLAPI void GLAPIENTRY glVertex4d (GLdouble x, GLdouble y, GLdouble z, GLdouble w); -GLAPI void GLAPIENTRY glVertex4dv (const GLdouble *v); -GLAPI void GLAPIENTRY glVertex4f (GLfloat x, GLfloat y, GLfloat z, GLfloat w); -GLAPI void GLAPIENTRY glVertex4fv (const GLfloat *v); -GLAPI void GLAPIENTRY glVertex4i (GLint x, GLint y, GLint z, GLint w); -GLAPI void GLAPIENTRY glVertex4iv (const GLint *v); -GLAPI void GLAPIENTRY glVertex4s (GLshort x, GLshort y, GLshort z, GLshort w); -GLAPI void GLAPIENTRY glVertex4sv (const GLshort *v); -GLAPI void GLAPIENTRY glVertexPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); -GLAPI void GLAPIENTRY glViewport (GLint x, GLint y, GLsizei width, GLsizei height); +typedef void (GLAPIENTRY * PFNGLACCUMPROC) (GLenum op, GLfloat value); +typedef void (GLAPIENTRY * PFNGLALPHAFUNCPROC) (GLenum func, GLclampf ref); +typedef GLboolean (GLAPIENTRY * PFNGLARETEXTURESRESIDENTPROC) (GLsizei n, const GLuint *textures, GLboolean *residences); +typedef void (GLAPIENTRY * PFNGLARRAYELEMENTPROC) (GLint i); +typedef void (GLAPIENTRY * PFNGLBEGINPROC) (GLenum mode); +typedef void (GLAPIENTRY * PFNGLBINDTEXTUREPROC) (GLenum target, GLuint texture); +typedef void (GLAPIENTRY * PFNGLBITMAPPROC) (GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte *bitmap); +typedef void (GLAPIENTRY * PFNGLBLENDFUNCPROC) (GLenum sfactor, GLenum dfactor); +typedef void (GLAPIENTRY * PFNGLCALLLISTPROC) (GLuint list); +typedef void (GLAPIENTRY * PFNGLCALLLISTSPROC) (GLsizei n, GLenum type, const GLvoid *lists); +typedef void (GLAPIENTRY * PFNGLCLEARPROC) (GLbitfield mask); +typedef void (GLAPIENTRY * PFNGLCLEARACCUMPROC) (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); +typedef void (GLAPIENTRY * PFNGLCLEARCOLORPROC) (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha); +typedef void (GLAPIENTRY * PFNGLCLEARDEPTHPROC) (GLclampd depth); +typedef void (GLAPIENTRY * PFNGLCLEARINDEXPROC) (GLfloat c); +typedef void (GLAPIENTRY * PFNGLCLEARSTENCILPROC) (GLint s); +typedef void (GLAPIENTRY * PFNGLCLIPPLANEPROC) (GLenum plane, const GLdouble *equation); +typedef void (GLAPIENTRY * PFNGLCOLOR3BPROC) (GLbyte red, GLbyte green, GLbyte blue); +typedef void (GLAPIENTRY * PFNGLCOLOR3BVPROC) (const GLbyte *v); +typedef void (GLAPIENTRY * PFNGLCOLOR3DPROC) (GLdouble red, GLdouble green, GLdouble blue); +typedef void (GLAPIENTRY * PFNGLCOLOR3DVPROC) (const GLdouble *v); +typedef void (GLAPIENTRY * PFNGLCOLOR3FPROC) (GLfloat red, GLfloat green, GLfloat blue); +typedef void (GLAPIENTRY * PFNGLCOLOR3FVPROC) (const GLfloat *v); +typedef void (GLAPIENTRY * PFNGLCOLOR3IPROC) (GLint red, GLint green, GLint blue); +typedef void (GLAPIENTRY * PFNGLCOLOR3IVPROC) (const GLint *v); +typedef void (GLAPIENTRY * PFNGLCOLOR3SPROC) (GLshort red, GLshort green, GLshort blue); +typedef void (GLAPIENTRY * PFNGLCOLOR3SVPROC) (const GLshort *v); +typedef void (GLAPIENTRY * PFNGLCOLOR3UBPROC) (GLubyte red, GLubyte green, GLubyte blue); +typedef void (GLAPIENTRY * PFNGLCOLOR3UBVPROC) (const GLubyte *v); +typedef void (GLAPIENTRY * PFNGLCOLOR3UIPROC) (GLuint red, GLuint green, GLuint blue); +typedef void (GLAPIENTRY * PFNGLCOLOR3UIVPROC) (const GLuint *v); +typedef void (GLAPIENTRY * PFNGLCOLOR3USPROC) (GLushort red, GLushort green, GLushort blue); +typedef void (GLAPIENTRY * PFNGLCOLOR3USVPROC) (const GLushort *v); +typedef void (GLAPIENTRY * PFNGLCOLOR4BPROC) (GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha); +typedef void (GLAPIENTRY * PFNGLCOLOR4BVPROC) (const GLbyte *v); +typedef void (GLAPIENTRY * PFNGLCOLOR4DPROC) (GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha); +typedef void (GLAPIENTRY * PFNGLCOLOR4DVPROC) (const GLdouble *v); +typedef void (GLAPIENTRY * PFNGLCOLOR4FPROC) (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); +typedef void (GLAPIENTRY * PFNGLCOLOR4FVPROC) (const GLfloat *v); +typedef void (GLAPIENTRY * PFNGLCOLOR4IPROC) (GLint red, GLint green, GLint blue, GLint alpha); +typedef void (GLAPIENTRY * PFNGLCOLOR4IVPROC) (const GLint *v); +typedef void (GLAPIENTRY * PFNGLCOLOR4SPROC) (GLshort red, GLshort green, GLshort blue, GLshort alpha); +typedef void (GLAPIENTRY * PFNGLCOLOR4SVPROC) (const GLshort *v); +typedef void (GLAPIENTRY * PFNGLCOLOR4UBPROC) (GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha); +typedef void (GLAPIENTRY * PFNGLCOLOR4UBVPROC) (const GLubyte *v); +typedef void (GLAPIENTRY * PFNGLCOLOR4UIPROC) (GLuint red, GLuint green, GLuint blue, GLuint alpha); +typedef void (GLAPIENTRY * PFNGLCOLOR4UIVPROC) (const GLuint *v); +typedef void (GLAPIENTRY * PFNGLCOLOR4USPROC) (GLushort red, GLushort green, GLushort blue, GLushort alpha); +typedef void (GLAPIENTRY * PFNGLCOLOR4USVPROC) (const GLushort *v); +typedef void (GLAPIENTRY * PFNGLCOLORMASKPROC) (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha); +typedef void (GLAPIENTRY * PFNGLCOLORMATERIALPROC) (GLenum face, GLenum mode); +typedef void (GLAPIENTRY * PFNGLCOLORPOINTERPROC) (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); +typedef void (GLAPIENTRY * PFNGLCOPYPIXELSPROC) (GLint x, GLint y, GLsizei width, GLsizei height, GLenum type); +typedef void (GLAPIENTRY * PFNGLCOPYTEXIMAGE1DPROC) (GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLint border); +typedef void (GLAPIENTRY * PFNGLCOPYTEXIMAGE2DPROC) (GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); +typedef void (GLAPIENTRY * PFNGLCOPYTEXSUBIMAGE1DPROC) (GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); +typedef void (GLAPIENTRY * PFNGLCOPYTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); +typedef void (GLAPIENTRY * PFNGLCULLFACEPROC) (GLenum mode); +typedef void (GLAPIENTRY * PFNGLDELETELISTSPROC) (GLuint list, GLsizei range); +typedef void (GLAPIENTRY * PFNGLDELETETEXTURESPROC) (GLsizei n, const GLuint *textures); +typedef void (GLAPIENTRY * PFNGLDEPTHFUNCPROC) (GLenum func); +typedef void (GLAPIENTRY * PFNGLDEPTHMASKPROC) (GLboolean flag); +typedef void (GLAPIENTRY * PFNGLDEPTHRANGEPROC) (GLclampd zNear, GLclampd zFar); +typedef void (GLAPIENTRY * PFNGLDISABLEPROC) (GLenum cap); +typedef void (GLAPIENTRY * PFNGLDISABLECLIENTSTATEPROC) (GLenum array); +typedef void (GLAPIENTRY * PFNGLDRAWARRAYSPROC) (GLenum mode, GLint first, GLsizei count); +typedef void (GLAPIENTRY * PFNGLDRAWBUFFERPROC) (GLenum mode); +typedef void (GLAPIENTRY * PFNGLDRAWELEMENTSPROC) (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices); +typedef void (GLAPIENTRY * PFNGLDRAWPIXELSPROC) (GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels); +typedef void (GLAPIENTRY * PFNGLEDGEFLAGPROC) (GLboolean flag); +typedef void (GLAPIENTRY * PFNGLEDGEFLAGPOINTERPROC) (GLsizei stride, const GLvoid *pointer); +typedef void (GLAPIENTRY * PFNGLEDGEFLAGVPROC) (const GLboolean *flag); +typedef void (GLAPIENTRY * PFNGLENABLEPROC) (GLenum cap); +typedef void (GLAPIENTRY * PFNGLENABLECLIENTSTATEPROC) (GLenum array); +typedef void (GLAPIENTRY * PFNGLENDPROC) (void); +typedef void (GLAPIENTRY * PFNGLENDLISTPROC) (void); +typedef void (GLAPIENTRY * PFNGLEVALCOORD1DPROC) (GLdouble u); +typedef void (GLAPIENTRY * PFNGLEVALCOORD1DVPROC) (const GLdouble *u); +typedef void (GLAPIENTRY * PFNGLEVALCOORD1FPROC) (GLfloat u); +typedef void (GLAPIENTRY * PFNGLEVALCOORD1FVPROC) (const GLfloat *u); +typedef void (GLAPIENTRY * PFNGLEVALCOORD2DPROC) (GLdouble u, GLdouble v); +typedef void (GLAPIENTRY * PFNGLEVALCOORD2DVPROC) (const GLdouble *u); +typedef void (GLAPIENTRY * PFNGLEVALCOORD2FPROC) (GLfloat u, GLfloat v); +typedef void (GLAPIENTRY * PFNGLEVALCOORD2FVPROC) (const GLfloat *u); +typedef void (GLAPIENTRY * PFNGLEVALMESH1PROC) (GLenum mode, GLint i1, GLint i2); +typedef void (GLAPIENTRY * PFNGLEVALMESH2PROC) (GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2); +typedef void (GLAPIENTRY * PFNGLEVALPOINT1PROC) (GLint i); +typedef void (GLAPIENTRY * PFNGLEVALPOINT2PROC) (GLint i, GLint j); +typedef void (GLAPIENTRY * PFNGLFEEDBACKBUFFERPROC) (GLsizei size, GLenum type, GLfloat *buffer); +typedef void (GLAPIENTRY * PFNGLFINISHPROC) (void); +typedef void (GLAPIENTRY * PFNGLFLUSHPROC) (void); +typedef void (GLAPIENTRY * PFNGLFOGFPROC) (GLenum pname, GLfloat param); +typedef void (GLAPIENTRY * PFNGLFOGFVPROC) (GLenum pname, const GLfloat *params); +typedef void (GLAPIENTRY * PFNGLFOGIPROC) (GLenum pname, GLint param); +typedef void (GLAPIENTRY * PFNGLFOGIVPROC) (GLenum pname, const GLint *params); +typedef void (GLAPIENTRY * PFNGLFRONTFACEPROC) (GLenum mode); +typedef void (GLAPIENTRY * PFNGLFRUSTUMPROC) (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar); +typedef GLuint (GLAPIENTRY * PFNGLGENLISTSPROC) (GLsizei range); +typedef void (GLAPIENTRY * PFNGLGENTEXTURESPROC) (GLsizei n, GLuint *textures); +typedef void (GLAPIENTRY * PFNGLGETBOOLEANVPROC) (GLenum pname, GLboolean *params); +typedef void (GLAPIENTRY * PFNGLGETCLIPPLANEPROC) (GLenum plane, GLdouble *equation); +typedef void (GLAPIENTRY * PFNGLGETDOUBLEVPROC) (GLenum pname, GLdouble *params); +typedef GLenum (GLAPIENTRY * PFNGLGETERRORPROC) (void); +typedef void (GLAPIENTRY * PFNGLGETFLOATVPROC) (GLenum pname, GLfloat *params); +typedef void (GLAPIENTRY * PFNGLGETINTEGERVPROC) (GLenum pname, GLint *params); +typedef void (GLAPIENTRY * PFNGLGETLIGHTFVPROC) (GLenum light, GLenum pname, GLfloat *params); +typedef void (GLAPIENTRY * PFNGLGETLIGHTIVPROC) (GLenum light, GLenum pname, GLint *params); +typedef void (GLAPIENTRY * PFNGLGETMAPDVPROC) (GLenum target, GLenum query, GLdouble *v); +typedef void (GLAPIENTRY * PFNGLGETMAPFVPROC) (GLenum target, GLenum query, GLfloat *v); +typedef void (GLAPIENTRY * PFNGLGETMAPIVPROC) (GLenum target, GLenum query, GLint *v); +typedef void (GLAPIENTRY * PFNGLGETMATERIALFVPROC) (GLenum face, GLenum pname, GLfloat *params); +typedef void (GLAPIENTRY * PFNGLGETMATERIALIVPROC) (GLenum face, GLenum pname, GLint *params); +typedef void (GLAPIENTRY * PFNGLGETPIXELMAPFVPROC) (GLenum map, GLfloat *values); +typedef void (GLAPIENTRY * PFNGLGETPIXELMAPUIVPROC) (GLenum map, GLuint *values); +typedef void (GLAPIENTRY * PFNGLGETPIXELMAPUSVPROC) (GLenum map, GLushort *values); +typedef void (GLAPIENTRY * PFNGLGETPOINTERVPROC) (GLenum pname, GLvoid* *params); +typedef void (GLAPIENTRY * PFNGLGETPOLYGONSTIPPLEPROC) (GLubyte *mask); +typedef const GLubyte * (GLAPIENTRY * PFNGLGETSTRINGPROC) (GLenum name); +typedef void (GLAPIENTRY * PFNGLGETTEXENVFVPROC) (GLenum target, GLenum pname, GLfloat *params); +typedef void (GLAPIENTRY * PFNGLGETTEXENVIVPROC) (GLenum target, GLenum pname, GLint *params); +typedef void (GLAPIENTRY * PFNGLGETTEXGENDVPROC) (GLenum coord, GLenum pname, GLdouble *params); +typedef void (GLAPIENTRY * PFNGLGETTEXGENFVPROC) (GLenum coord, GLenum pname, GLfloat *params); +typedef void (GLAPIENTRY * PFNGLGETTEXGENIVPROC) (GLenum coord, GLenum pname, GLint *params); +typedef void (GLAPIENTRY * PFNGLGETTEXIMAGEPROC) (GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels); +typedef void (GLAPIENTRY * PFNGLGETTEXLEVELPARAMETERFVPROC) (GLenum target, GLint level, GLenum pname, GLfloat *params); +typedef void (GLAPIENTRY * PFNGLGETTEXLEVELPARAMETERIVPROC) (GLenum target, GLint level, GLenum pname, GLint *params); +typedef void (GLAPIENTRY * PFNGLGETTEXPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params); +typedef void (GLAPIENTRY * PFNGLGETTEXPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params); +typedef void (GLAPIENTRY * PFNGLHINTPROC) (GLenum target, GLenum mode); +typedef void (GLAPIENTRY * PFNGLINDEXMASKPROC) (GLuint mask); +typedef void (GLAPIENTRY * PFNGLINDEXPOINTERPROC) (GLenum type, GLsizei stride, const GLvoid *pointer); +typedef void (GLAPIENTRY * PFNGLINDEXDPROC) (GLdouble c); +typedef void (GLAPIENTRY * PFNGLINDEXDVPROC) (const GLdouble *c); +typedef void (GLAPIENTRY * PFNGLINDEXFPROC) (GLfloat c); +typedef void (GLAPIENTRY * PFNGLINDEXFVPROC) (const GLfloat *c); +typedef void (GLAPIENTRY * PFNGLINDEXIPROC) (GLint c); +typedef void (GLAPIENTRY * PFNGLINDEXIVPROC) (const GLint *c); +typedef void (GLAPIENTRY * PFNGLINDEXSPROC) (GLshort c); +typedef void (GLAPIENTRY * PFNGLINDEXSVPROC) (const GLshort *c); +typedef void (GLAPIENTRY * PFNGLINDEXUBPROC) (GLubyte c); +typedef void (GLAPIENTRY * PFNGLINDEXUBVPROC) (const GLubyte *c); +typedef void (GLAPIENTRY * PFNGLINITNAMESPROC) (void); +typedef void (GLAPIENTRY * PFNGLINTERLEAVEDARRAYSPROC) (GLenum format, GLsizei stride, const GLvoid *pointer); +typedef GLboolean (GLAPIENTRY * PFNGLISENABLEDPROC) (GLenum cap); +typedef GLboolean (GLAPIENTRY * PFNGLISLISTPROC) (GLuint list); +typedef GLboolean (GLAPIENTRY * PFNGLISTEXTUREPROC) (GLuint texture); +typedef void (GLAPIENTRY * PFNGLLIGHTMODELFPROC) (GLenum pname, GLfloat param); +typedef void (GLAPIENTRY * PFNGLLIGHTMODELFVPROC) (GLenum pname, const GLfloat *params); +typedef void (GLAPIENTRY * PFNGLLIGHTMODELIPROC) (GLenum pname, GLint param); +typedef void (GLAPIENTRY * PFNGLLIGHTMODELIVPROC) (GLenum pname, const GLint *params); +typedef void (GLAPIENTRY * PFNGLLIGHTFPROC) (GLenum light, GLenum pname, GLfloat param); +typedef void (GLAPIENTRY * PFNGLLIGHTFVPROC) (GLenum light, GLenum pname, const GLfloat *params); +typedef void (GLAPIENTRY * PFNGLLIGHTIPROC) (GLenum light, GLenum pname, GLint param); +typedef void (GLAPIENTRY * PFNGLLIGHTIVPROC) (GLenum light, GLenum pname, const GLint *params); +typedef void (GLAPIENTRY * PFNGLLINESTIPPLEPROC) (GLint factor, GLushort pattern); +typedef void (GLAPIENTRY * PFNGLLINEWIDTHPROC) (GLfloat width); +typedef void (GLAPIENTRY * PFNGLLISTBASEPROC) (GLuint base); +typedef void (GLAPIENTRY * PFNGLLOADIDENTITYPROC) (void); +typedef void (GLAPIENTRY * PFNGLLOADMATRIXDPROC) (const GLdouble *m); +typedef void (GLAPIENTRY * PFNGLLOADMATRIXFPROC) (const GLfloat *m); +typedef void (GLAPIENTRY * PFNGLLOADNAMEPROC) (GLuint name); +typedef void (GLAPIENTRY * PFNGLLOGICOPPROC) (GLenum opcode); +typedef void (GLAPIENTRY * PFNGLMAP1DPROC) (GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points); +typedef void (GLAPIENTRY * PFNGLMAP1FPROC) (GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points); +typedef void (GLAPIENTRY * PFNGLMAP2DPROC) (GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points); +typedef void (GLAPIENTRY * PFNGLMAP2FPROC) (GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points); +typedef void (GLAPIENTRY * PFNGLMAPGRID1DPROC) (GLint un, GLdouble u1, GLdouble u2); +typedef void (GLAPIENTRY * PFNGLMAPGRID1FPROC) (GLint un, GLfloat u1, GLfloat u2); +typedef void (GLAPIENTRY * PFNGLMAPGRID2DPROC) (GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2); +typedef void (GLAPIENTRY * PFNGLMAPGRID2FPROC) (GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2); +typedef void (GLAPIENTRY * PFNGLMATERIALFPROC) (GLenum face, GLenum pname, GLfloat param); +typedef void (GLAPIENTRY * PFNGLMATERIALFVPROC) (GLenum face, GLenum pname, const GLfloat *params); +typedef void (GLAPIENTRY * PFNGLMATERIALIPROC) (GLenum face, GLenum pname, GLint param); +typedef void (GLAPIENTRY * PFNGLMATERIALIVPROC) (GLenum face, GLenum pname, const GLint *params); +typedef void (GLAPIENTRY * PFNGLMATRIXMODEPROC) (GLenum mode); +typedef void (GLAPIENTRY * PFNGLMULTMATRIXDPROC) (const GLdouble *m); +typedef void (GLAPIENTRY * PFNGLMULTMATRIXFPROC) (const GLfloat *m); +typedef void (GLAPIENTRY * PFNGLNEWLISTPROC) (GLuint list, GLenum mode); +typedef void (GLAPIENTRY * PFNGLNORMAL3BPROC) (GLbyte nx, GLbyte ny, GLbyte nz); +typedef void (GLAPIENTRY * PFNGLNORMAL3BVPROC) (const GLbyte *v); +typedef void (GLAPIENTRY * PFNGLNORMAL3DPROC) (GLdouble nx, GLdouble ny, GLdouble nz); +typedef void (GLAPIENTRY * PFNGLNORMAL3DVPROC) (const GLdouble *v); +typedef void (GLAPIENTRY * PFNGLNORMAL3FPROC) (GLfloat nx, GLfloat ny, GLfloat nz); +typedef void (GLAPIENTRY * PFNGLNORMAL3FVPROC) (const GLfloat *v); +typedef void (GLAPIENTRY * PFNGLNORMAL3IPROC) (GLint nx, GLint ny, GLint nz); +typedef void (GLAPIENTRY * PFNGLNORMAL3IVPROC) (const GLint *v); +typedef void (GLAPIENTRY * PFNGLNORMAL3SPROC) (GLshort nx, GLshort ny, GLshort nz); +typedef void (GLAPIENTRY * PFNGLNORMAL3SVPROC) (const GLshort *v); +typedef void (GLAPIENTRY * PFNGLNORMALPOINTERPROC) (GLenum type, GLsizei stride, const GLvoid *pointer); +typedef void (GLAPIENTRY * PFNGLORTHOPROC) (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar); +typedef void (GLAPIENTRY * PFNGLPASSTHROUGHPROC) (GLfloat token); +typedef void (GLAPIENTRY * PFNGLPIXELMAPFVPROC) (GLenum map, GLsizei mapsize, const GLfloat *values); +typedef void (GLAPIENTRY * PFNGLPIXELMAPUIVPROC) (GLenum map, GLsizei mapsize, const GLuint *values); +typedef void (GLAPIENTRY * PFNGLPIXELMAPUSVPROC) (GLenum map, GLsizei mapsize, const GLushort *values); +typedef void (GLAPIENTRY * PFNGLPIXELSTOREFPROC) (GLenum pname, GLfloat param); +typedef void (GLAPIENTRY * PFNGLPIXELSTOREIPROC) (GLenum pname, GLint param); +typedef void (GLAPIENTRY * PFNGLPIXELTRANSFERFPROC) (GLenum pname, GLfloat param); +typedef void (GLAPIENTRY * PFNGLPIXELTRANSFERIPROC) (GLenum pname, GLint param); +typedef void (GLAPIENTRY * PFNGLPIXELZOOMPROC) (GLfloat xfactor, GLfloat yfactor); +typedef void (GLAPIENTRY * PFNGLPOINTSIZEPROC) (GLfloat size); +typedef void (GLAPIENTRY * PFNGLPOLYGONMODEPROC) (GLenum face, GLenum mode); +typedef void (GLAPIENTRY * PFNGLPOLYGONOFFSETPROC) (GLfloat factor, GLfloat units); +typedef void (GLAPIENTRY * PFNGLPOLYGONSTIPPLEPROC) (const GLubyte *mask); +typedef void (GLAPIENTRY * PFNGLPOPATTRIBPROC) (void); +typedef void (GLAPIENTRY * PFNGLPOPCLIENTATTRIBPROC) (void); +typedef void (GLAPIENTRY * PFNGLPOPMATRIXPROC) (void); +typedef void (GLAPIENTRY * PFNGLPOPNAMEPROC) (void); +typedef void (GLAPIENTRY * PFNGLPRIORITIZETEXTURESPROC) (GLsizei n, const GLuint *textures, const GLclampf *priorities); +typedef void (GLAPIENTRY * PFNGLPUSHATTRIBPROC) (GLbitfield mask); +typedef void (GLAPIENTRY * PFNGLPUSHCLIENTATTRIBPROC) (GLbitfield mask); +typedef void (GLAPIENTRY * PFNGLPUSHMATRIXPROC) (void); +typedef void (GLAPIENTRY * PFNGLPUSHNAMEPROC) (GLuint name); +typedef void (GLAPIENTRY * PFNGLRASTERPOS2DPROC) (GLdouble x, GLdouble y); +typedef void (GLAPIENTRY * PFNGLRASTERPOS2DVPROC) (const GLdouble *v); +typedef void (GLAPIENTRY * PFNGLRASTERPOS2FPROC) (GLfloat x, GLfloat y); +typedef void (GLAPIENTRY * PFNGLRASTERPOS2FVPROC) (const GLfloat *v); +typedef void (GLAPIENTRY * PFNGLRASTERPOS2IPROC) (GLint x, GLint y); +typedef void (GLAPIENTRY * PFNGLRASTERPOS2IVPROC) (const GLint *v); +typedef void (GLAPIENTRY * PFNGLRASTERPOS2SPROC) (GLshort x, GLshort y); +typedef void (GLAPIENTRY * PFNGLRASTERPOS2SVPROC) (const GLshort *v); +typedef void (GLAPIENTRY * PFNGLRASTERPOS3DPROC) (GLdouble x, GLdouble y, GLdouble z); +typedef void (GLAPIENTRY * PFNGLRASTERPOS3DVPROC) (const GLdouble *v); +typedef void (GLAPIENTRY * PFNGLRASTERPOS3FPROC) (GLfloat x, GLfloat y, GLfloat z); +typedef void (GLAPIENTRY * PFNGLRASTERPOS3FVPROC) (const GLfloat *v); +typedef void (GLAPIENTRY * PFNGLRASTERPOS3IPROC) (GLint x, GLint y, GLint z); +typedef void (GLAPIENTRY * PFNGLRASTERPOS3IVPROC) (const GLint *v); +typedef void (GLAPIENTRY * PFNGLRASTERPOS3SPROC) (GLshort x, GLshort y, GLshort z); +typedef void (GLAPIENTRY * PFNGLRASTERPOS3SVPROC) (const GLshort *v); +typedef void (GLAPIENTRY * PFNGLRASTERPOS4DPROC) (GLdouble x, GLdouble y, GLdouble z, GLdouble w); +typedef void (GLAPIENTRY * PFNGLRASTERPOS4DVPROC) (const GLdouble *v); +typedef void (GLAPIENTRY * PFNGLRASTERPOS4FPROC) (GLfloat x, GLfloat y, GLfloat z, GLfloat w); +typedef void (GLAPIENTRY * PFNGLRASTERPOS4FVPROC) (const GLfloat *v); +typedef void (GLAPIENTRY * PFNGLRASTERPOS4IPROC) (GLint x, GLint y, GLint z, GLint w); +typedef void (GLAPIENTRY * PFNGLRASTERPOS4IVPROC) (const GLint *v); +typedef void (GLAPIENTRY * PFNGLRASTERPOS4SPROC) (GLshort x, GLshort y, GLshort z, GLshort w); +typedef void (GLAPIENTRY * PFNGLRASTERPOS4SVPROC) (const GLshort *v); +typedef void (GLAPIENTRY * PFNGLREADBUFFERPROC) (GLenum mode); +typedef void (GLAPIENTRY * PFNGLREADPIXELSPROC) (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels); +typedef void (GLAPIENTRY * PFNGLRECTDPROC) (GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2); +typedef void (GLAPIENTRY * PFNGLRECTDVPROC) (const GLdouble *v1, const GLdouble *v2); +typedef void (GLAPIENTRY * PFNGLRECTFPROC) (GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2); +typedef void (GLAPIENTRY * PFNGLRECTFVPROC) (const GLfloat *v1, const GLfloat *v2); +typedef void (GLAPIENTRY * PFNGLRECTIPROC) (GLint x1, GLint y1, GLint x2, GLint y2); +typedef void (GLAPIENTRY * PFNGLRECTIVPROC) (const GLint *v1, const GLint *v2); +typedef void (GLAPIENTRY * PFNGLRECTSPROC) (GLshort x1, GLshort y1, GLshort x2, GLshort y2); +typedef void (GLAPIENTRY * PFNGLRECTSVPROC) (const GLshort *v1, const GLshort *v2); +typedef GLint (GLAPIENTRY * PFNGLRENDERMODEPROC) (GLenum mode); +typedef void (GLAPIENTRY * PFNGLROTATEDPROC) (GLdouble angle, GLdouble x, GLdouble y, GLdouble z); +typedef void (GLAPIENTRY * PFNGLROTATEFPROC) (GLfloat angle, GLfloat x, GLfloat y, GLfloat z); +typedef void (GLAPIENTRY * PFNGLSCALEDPROC) (GLdouble x, GLdouble y, GLdouble z); +typedef void (GLAPIENTRY * PFNGLSCALEFPROC) (GLfloat x, GLfloat y, GLfloat z); +typedef void (GLAPIENTRY * PFNGLSCISSORPROC) (GLint x, GLint y, GLsizei width, GLsizei height); +typedef void (GLAPIENTRY * PFNGLSELECTBUFFERPROC) (GLsizei size, GLuint *buffer); +typedef void (GLAPIENTRY * PFNGLSHADEMODELPROC) (GLenum mode); +typedef void (GLAPIENTRY * PFNGLSTENCILFUNCPROC) (GLenum func, GLint ref, GLuint mask); +typedef void (GLAPIENTRY * PFNGLSTENCILMASKPROC) (GLuint mask); +typedef void (GLAPIENTRY * PFNGLSTENCILOPPROC) (GLenum fail, GLenum zfail, GLenum zpass); +typedef void (GLAPIENTRY * PFNGLTEXCOORD1DPROC) (GLdouble s); +typedef void (GLAPIENTRY * PFNGLTEXCOORD1DVPROC) (const GLdouble *v); +typedef void (GLAPIENTRY * PFNGLTEXCOORD1FPROC) (GLfloat s); +typedef void (GLAPIENTRY * PFNGLTEXCOORD1FVPROC) (const GLfloat *v); +typedef void (GLAPIENTRY * PFNGLTEXCOORD1IPROC) (GLint s); +typedef void (GLAPIENTRY * PFNGLTEXCOORD1IVPROC) (const GLint *v); +typedef void (GLAPIENTRY * PFNGLTEXCOORD1SPROC) (GLshort s); +typedef void (GLAPIENTRY * PFNGLTEXCOORD1SVPROC) (const GLshort *v); +typedef void (GLAPIENTRY * PFNGLTEXCOORD2DPROC) (GLdouble s, GLdouble t); +typedef void (GLAPIENTRY * PFNGLTEXCOORD2DVPROC) (const GLdouble *v); +typedef void (GLAPIENTRY * PFNGLTEXCOORD2FPROC) (GLfloat s, GLfloat t); +typedef void (GLAPIENTRY * PFNGLTEXCOORD2FVPROC) (const GLfloat *v); +typedef void (GLAPIENTRY * PFNGLTEXCOORD2IPROC) (GLint s, GLint t); +typedef void (GLAPIENTRY * PFNGLTEXCOORD2IVPROC) (const GLint *v); +typedef void (GLAPIENTRY * PFNGLTEXCOORD2SPROC) (GLshort s, GLshort t); +typedef void (GLAPIENTRY * PFNGLTEXCOORD2SVPROC) (const GLshort *v); +typedef void (GLAPIENTRY * PFNGLTEXCOORD3DPROC) (GLdouble s, GLdouble t, GLdouble r); +typedef void (GLAPIENTRY * PFNGLTEXCOORD3DVPROC) (const GLdouble *v); +typedef void (GLAPIENTRY * PFNGLTEXCOORD3FPROC) (GLfloat s, GLfloat t, GLfloat r); +typedef void (GLAPIENTRY * PFNGLTEXCOORD3FVPROC) (const GLfloat *v); +typedef void (GLAPIENTRY * PFNGLTEXCOORD3IPROC) (GLint s, GLint t, GLint r); +typedef void (GLAPIENTRY * PFNGLTEXCOORD3IVPROC) (const GLint *v); +typedef void (GLAPIENTRY * PFNGLTEXCOORD3SPROC) (GLshort s, GLshort t, GLshort r); +typedef void (GLAPIENTRY * PFNGLTEXCOORD3SVPROC) (const GLshort *v); +typedef void (GLAPIENTRY * PFNGLTEXCOORD4DPROC) (GLdouble s, GLdouble t, GLdouble r, GLdouble q); +typedef void (GLAPIENTRY * PFNGLTEXCOORD4DVPROC) (const GLdouble *v); +typedef void (GLAPIENTRY * PFNGLTEXCOORD4FPROC) (GLfloat s, GLfloat t, GLfloat r, GLfloat q); +typedef void (GLAPIENTRY * PFNGLTEXCOORD4FVPROC) (const GLfloat *v); +typedef void (GLAPIENTRY * PFNGLTEXCOORD4IPROC) (GLint s, GLint t, GLint r, GLint q); +typedef void (GLAPIENTRY * PFNGLTEXCOORD4IVPROC) (const GLint *v); +typedef void (GLAPIENTRY * PFNGLTEXCOORD4SPROC) (GLshort s, GLshort t, GLshort r, GLshort q); +typedef void (GLAPIENTRY * PFNGLTEXCOORD4SVPROC) (const GLshort *v); +typedef void (GLAPIENTRY * PFNGLTEXCOORDPOINTERPROC) (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); +typedef void (GLAPIENTRY * PFNGLTEXENVFPROC) (GLenum target, GLenum pname, GLfloat param); +typedef void (GLAPIENTRY * PFNGLTEXENVFVPROC) (GLenum target, GLenum pname, const GLfloat *params); +typedef void (GLAPIENTRY * PFNGLTEXENVIPROC) (GLenum target, GLenum pname, GLint param); +typedef void (GLAPIENTRY * PFNGLTEXENVIVPROC) (GLenum target, GLenum pname, const GLint *params); +typedef void (GLAPIENTRY * PFNGLTEXGENDPROC) (GLenum coord, GLenum pname, GLdouble param); +typedef void (GLAPIENTRY * PFNGLTEXGENDVPROC) (GLenum coord, GLenum pname, const GLdouble *params); +typedef void (GLAPIENTRY * PFNGLTEXGENFPROC) (GLenum coord, GLenum pname, GLfloat param); +typedef void (GLAPIENTRY * PFNGLTEXGENFVPROC) (GLenum coord, GLenum pname, const GLfloat *params); +typedef void (GLAPIENTRY * PFNGLTEXGENIPROC) (GLenum coord, GLenum pname, GLint param); +typedef void (GLAPIENTRY * PFNGLTEXGENIVPROC) (GLenum coord, GLenum pname, const GLint *params); +typedef void (GLAPIENTRY * PFNGLTEXIMAGE1DPROC) (GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels); +typedef void (GLAPIENTRY * PFNGLTEXIMAGE2DPROC) (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels); +typedef void (GLAPIENTRY * PFNGLTEXPARAMETERFPROC) (GLenum target, GLenum pname, GLfloat param); +typedef void (GLAPIENTRY * PFNGLTEXPARAMETERFVPROC) (GLenum target, GLenum pname, const GLfloat *params); +typedef void (GLAPIENTRY * PFNGLTEXPARAMETERIPROC) (GLenum target, GLenum pname, GLint param); +typedef void (GLAPIENTRY * PFNGLTEXPARAMETERIVPROC) (GLenum target, GLenum pname, const GLint *params); +typedef void (GLAPIENTRY * PFNGLTEXSUBIMAGE1DPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels); +typedef void (GLAPIENTRY * PFNGLTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels); +typedef void (GLAPIENTRY * PFNGLTRANSLATEDPROC) (GLdouble x, GLdouble y, GLdouble z); +typedef void (GLAPIENTRY * PFNGLTRANSLATEFPROC) (GLfloat x, GLfloat y, GLfloat z); +typedef void (GLAPIENTRY * PFNGLVERTEX2DPROC) (GLdouble x, GLdouble y); +typedef void (GLAPIENTRY * PFNGLVERTEX2DVPROC) (const GLdouble *v); +typedef void (GLAPIENTRY * PFNGLVERTEX2FPROC) (GLfloat x, GLfloat y); +typedef void (GLAPIENTRY * PFNGLVERTEX2FVPROC) (const GLfloat *v); +typedef void (GLAPIENTRY * PFNGLVERTEX2IPROC) (GLint x, GLint y); +typedef void (GLAPIENTRY * PFNGLVERTEX2IVPROC) (const GLint *v); +typedef void (GLAPIENTRY * PFNGLVERTEX2SPROC) (GLshort x, GLshort y); +typedef void (GLAPIENTRY * PFNGLVERTEX2SVPROC) (const GLshort *v); +typedef void (GLAPIENTRY * PFNGLVERTEX3DPROC) (GLdouble x, GLdouble y, GLdouble z); +typedef void (GLAPIENTRY * PFNGLVERTEX3DVPROC) (const GLdouble *v); +typedef void (GLAPIENTRY * PFNGLVERTEX3FPROC) (GLfloat x, GLfloat y, GLfloat z); +typedef void (GLAPIENTRY * PFNGLVERTEX3FVPROC) (const GLfloat *v); +typedef void (GLAPIENTRY * PFNGLVERTEX3IPROC) (GLint x, GLint y, GLint z); +typedef void (GLAPIENTRY * PFNGLVERTEX3IVPROC) (const GLint *v); +typedef void (GLAPIENTRY * PFNGLVERTEX3SPROC) (GLshort x, GLshort y, GLshort z); +typedef void (GLAPIENTRY * PFNGLVERTEX3SVPROC) (const GLshort *v); +typedef void (GLAPIENTRY * PFNGLVERTEX4DPROC) (GLdouble x, GLdouble y, GLdouble z, GLdouble w); +typedef void (GLAPIENTRY * PFNGLVERTEX4DVPROC) (const GLdouble *v); +typedef void (GLAPIENTRY * PFNGLVERTEX4FPROC) (GLfloat x, GLfloat y, GLfloat z, GLfloat w); +typedef void (GLAPIENTRY * PFNGLVERTEX4FVPROC) (const GLfloat *v); +typedef void (GLAPIENTRY * PFNGLVERTEX4IPROC) (GLint x, GLint y, GLint z, GLint w); +typedef void (GLAPIENTRY * PFNGLVERTEX4IVPROC) (const GLint *v); +typedef void (GLAPIENTRY * PFNGLVERTEX4SPROC) (GLshort x, GLshort y, GLshort z, GLshort w); +typedef void (GLAPIENTRY * PFNGLVERTEX4SVPROC) (const GLshort *v); +typedef void (GLAPIENTRY * PFNGLVERTEXPOINTERPROC) (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); +typedef void (GLAPIENTRY * PFNGLVIEWPORTPROC) (GLint x, GLint y, GLsizei width, GLsizei height); + +#define glAccum GLEW_GET_FUN(__glewAccum) +#define glAlphaFunc GLEW_GET_FUN(__glewAlphaFunc) +#define glAreTexturesResident GLEW_GET_FUN(__glewAreTexturesResident) +#define glArrayElement GLEW_GET_FUN(__glewArrayElement) +#define glBegin GLEW_GET_FUN(__glewBegin) +#define glBindTexture GLEW_GET_FUN(__glewBindTexture) +#define glBitmap GLEW_GET_FUN(__glewBitmap) +#define glBlendFunc GLEW_GET_FUN(__glewBlendFunc) +#define glCallList GLEW_GET_FUN(__glewCallList) +#define glCallLists GLEW_GET_FUN(__glewCallLists) +#define glClear GLEW_GET_FUN(__glewClear) +#define glClearAccum GLEW_GET_FUN(__glewClearAccum) +#define glClearColor GLEW_GET_FUN(__glewClearColor) +#define glClearDepth GLEW_GET_FUN(__glewClearDepth) +#define glClearIndex GLEW_GET_FUN(__glewClearIndex) +#define glClearStencil GLEW_GET_FUN(__glewClearStencil) +#define glClipPlane GLEW_GET_FUN(__glewClipPlane) +#define glColor3b GLEW_GET_FUN(__glewColor3b) +#define glColor3bv GLEW_GET_FUN(__glewColor3bv) +#define glColor3d GLEW_GET_FUN(__glewColor3d) +#define glColor3dv GLEW_GET_FUN(__glewColor3dv) +#define glColor3f GLEW_GET_FUN(__glewColor3f) +#define glColor3fv GLEW_GET_FUN(__glewColor3fv) +#define glColor3i GLEW_GET_FUN(__glewColor3i) +#define glColor3iv GLEW_GET_FUN(__glewColor3iv) +#define glColor3s GLEW_GET_FUN(__glewColor3s) +#define glColor3sv GLEW_GET_FUN(__glewColor3sv) +#define glColor3ub GLEW_GET_FUN(__glewColor3ub) +#define glColor3ubv GLEW_GET_FUN(__glewColor3ubv) +#define glColor3ui GLEW_GET_FUN(__glewColor3ui) +#define glColor3uiv GLEW_GET_FUN(__glewColor3uiv) +#define glColor3us GLEW_GET_FUN(__glewColor3us) +#define glColor3usv GLEW_GET_FUN(__glewColor3usv) +#define glColor4b GLEW_GET_FUN(__glewColor4b) +#define glColor4bv GLEW_GET_FUN(__glewColor4bv) +#define glColor4d GLEW_GET_FUN(__glewColor4d) +#define glColor4dv GLEW_GET_FUN(__glewColor4dv) +#define glColor4f GLEW_GET_FUN(__glewColor4f) +#define glColor4fv GLEW_GET_FUN(__glewColor4fv) +#define glColor4i GLEW_GET_FUN(__glewColor4i) +#define glColor4iv GLEW_GET_FUN(__glewColor4iv) +#define glColor4s GLEW_GET_FUN(__glewColor4s) +#define glColor4sv GLEW_GET_FUN(__glewColor4sv) +#define glColor4ub GLEW_GET_FUN(__glewColor4ub) +#define glColor4ubv GLEW_GET_FUN(__glewColor4ubv) +#define glColor4ui GLEW_GET_FUN(__glewColor4ui) +#define glColor4uiv GLEW_GET_FUN(__glewColor4uiv) +#define glColor4us GLEW_GET_FUN(__glewColor4us) +#define glColor4usv GLEW_GET_FUN(__glewColor4usv) +#define glColorMask GLEW_GET_FUN(__glewColorMask) +#define glColorMaterial GLEW_GET_FUN(__glewColorMaterial) +#define glColorPointer GLEW_GET_FUN(__glewColorPointer) +#define glCopyPixels GLEW_GET_FUN(__glewCopyPixels) +#define glCopyTexImage1D GLEW_GET_FUN(__glewCopyTexImage1D) +#define glCopyTexImage2D GLEW_GET_FUN(__glewCopyTexImage2D) +#define glCopyTexSubImage1D GLEW_GET_FUN(__glewCopyTexSubImage1D) +#define glCopyTexSubImage2D GLEW_GET_FUN(__glewCopyTexSubImage2D) +#define glCullFace GLEW_GET_FUN(__glewCullFace) +#define glDeleteLists GLEW_GET_FUN(__glewDeleteLists) +#define glDeleteTextures GLEW_GET_FUN(__glewDeleteTextures) +#define glDepthFunc GLEW_GET_FUN(__glewDepthFunc) +#define glDepthMask GLEW_GET_FUN(__glewDepthMask) +#define glDepthRange GLEW_GET_FUN(__glewDepthRange) +#define glDisable GLEW_GET_FUN(__glewDisable) +#define glDisableClientState GLEW_GET_FUN(__glewDisableClientState) +#define glDrawArrays GLEW_GET_FUN(__glewDrawArrays) +#define glDrawBuffer GLEW_GET_FUN(__glewDrawBuffer) +#define glDrawElements GLEW_GET_FUN(__glewDrawElements) +#define glDrawPixels GLEW_GET_FUN(__glewDrawPixels) +#define glEdgeFlag GLEW_GET_FUN(__glewEdgeFlag) +#define glEdgeFlagPointer GLEW_GET_FUN(__glewEdgeFlagPointer) +#define glEdgeFlagv GLEW_GET_FUN(__glewEdgeFlagv) +#define glEnable GLEW_GET_FUN(__glewEnable) +#define glEnableClientState GLEW_GET_FUN(__glewEnableClientState) +#define glEnd GLEW_GET_FUN(__glewEnd) +#define glEndList GLEW_GET_FUN(__glewEndList) +#define glEvalCoord1d GLEW_GET_FUN(__glewEvalCoord1d) +#define glEvalCoord1dv GLEW_GET_FUN(__glewEvalCoord1dv) +#define glEvalCoord1f GLEW_GET_FUN(__glewEvalCoord1f) +#define glEvalCoord1fv GLEW_GET_FUN(__glewEvalCoord1fv) +#define glEvalCoord2d GLEW_GET_FUN(__glewEvalCoord2d) +#define glEvalCoord2dv GLEW_GET_FUN(__glewEvalCoord2dv) +#define glEvalCoord2f GLEW_GET_FUN(__glewEvalCoord2f) +#define glEvalCoord2fv GLEW_GET_FUN(__glewEvalCoord2fv) +#define glEvalMesh1 GLEW_GET_FUN(__glewEvalMesh1) +#define glEvalMesh2 GLEW_GET_FUN(__glewEvalMesh2) +#define glEvalPoint1 GLEW_GET_FUN(__glewEvalPoint1) +#define glEvalPoint2 GLEW_GET_FUN(__glewEvalPoint2) +#define glFeedbackBuffer GLEW_GET_FUN(__glewFeedbackBuffer) +#define glFinish GLEW_GET_FUN(__glewFinish) +#define glFlush GLEW_GET_FUN(__glewFlush) +#define glFogf GLEW_GET_FUN(__glewFogf) +#define glFogfv GLEW_GET_FUN(__glewFogfv) +#define glFogi GLEW_GET_FUN(__glewFogi) +#define glFogiv GLEW_GET_FUN(__glewFogiv) +#define glFrontFace GLEW_GET_FUN(__glewFrontFace) +#define glFrustum GLEW_GET_FUN(__glewFrustum) +#define glGenLists GLEW_GET_FUN(__glewGenLists) +#define glGenTextures GLEW_GET_FUN(__glewGenTextures) +#define glGetBooleanv GLEW_GET_FUN(__glewGetBooleanv) +#define glGetClipPlane GLEW_GET_FUN(__glewGetClipPlane) +#define glGetDoublev GLEW_GET_FUN(__glewGetDoublev) +#define glGetError GLEW_GET_FUN(__glewGetError) +#define glGetFloatv GLEW_GET_FUN(__glewGetFloatv) +#define glGetIntegerv GLEW_GET_FUN(__glewGetIntegerv) +#define glGetLightfv GLEW_GET_FUN(__glewGetLightfv) +#define glGetLightiv GLEW_GET_FUN(__glewGetLightiv) +#define glGetMapdv GLEW_GET_FUN(__glewGetMapdv) +#define glGetMapfv GLEW_GET_FUN(__glewGetMapfv) +#define glGetMapiv GLEW_GET_FUN(__glewGetMapiv) +#define glGetMaterialfv GLEW_GET_FUN(__glewGetMaterialfv) +#define glGetMaterialiv GLEW_GET_FUN(__glewGetMaterialiv) +#define glGetPixelMapfv GLEW_GET_FUN(__glewGetPixelMapfv) +#define glGetPixelMapuiv GLEW_GET_FUN(__glewGetPixelMapuiv) +#define glGetPixelMapusv GLEW_GET_FUN(__glewGetPixelMapusv) +#define glGetPointerv GLEW_GET_FUN(__glewGetPointerv) +#define glGetPolygonStipple GLEW_GET_FUN(__glewGetPolygonStipple) +#define glGetString GLEW_GET_FUN(__glewGetString) +#define glGetTexEnvfv GLEW_GET_FUN(__glewGetTexEnvfv) +#define glGetTexEnviv GLEW_GET_FUN(__glewGetTexEnviv) +#define glGetTexGendv GLEW_GET_FUN(__glewGetTexGendv) +#define glGetTexGenfv GLEW_GET_FUN(__glewGetTexGenfv) +#define glGetTexGeniv GLEW_GET_FUN(__glewGetTexGeniv) +#define glGetTexImage GLEW_GET_FUN(__glewGetTexImage) +#define glGetTexLevelParameterfv GLEW_GET_FUN(__glewGetTexLevelParameterfv) +#define glGetTexLevelParameteriv GLEW_GET_FUN(__glewGetTexLevelParameteriv) +#define glGetTexParameterfv GLEW_GET_FUN(__glewGetTexParameterfv) +#define glGetTexParameteriv GLEW_GET_FUN(__glewGetTexParameteriv) +#define glHint GLEW_GET_FUN(__glewHint) +#define glIndexMask GLEW_GET_FUN(__glewIndexMask) +#define glIndexPointer GLEW_GET_FUN(__glewIndexPointer) +#define glIndexd GLEW_GET_FUN(__glewIndexd) +#define glIndexdv GLEW_GET_FUN(__glewIndexdv) +#define glIndexf GLEW_GET_FUN(__glewIndexf) +#define glIndexfv GLEW_GET_FUN(__glewIndexfv) +#define glIndexi GLEW_GET_FUN(__glewIndexi) +#define glIndexiv GLEW_GET_FUN(__glewIndexiv) +#define glIndexs GLEW_GET_FUN(__glewIndexs) +#define glIndexsv GLEW_GET_FUN(__glewIndexsv) +#define glIndexub GLEW_GET_FUN(__glewIndexub) +#define glIndexubv GLEW_GET_FUN(__glewIndexubv) +#define glInitNames GLEW_GET_FUN(__glewInitNames) +#define glInterleavedArrays GLEW_GET_FUN(__glewInterleavedArrays) +#define glIsEnabled GLEW_GET_FUN(__glewIsEnabled) +#define glIsList GLEW_GET_FUN(__glewIsList) +#define glIsTexture GLEW_GET_FUN(__glewIsTexture) +#define glLightModelf GLEW_GET_FUN(__glewLightModelf) +#define glLightModelfv GLEW_GET_FUN(__glewLightModelfv) +#define glLightModeli GLEW_GET_FUN(__glewLightModeli) +#define glLightModeliv GLEW_GET_FUN(__glewLightModeliv) +#define glLightf GLEW_GET_FUN(__glewLightf) +#define glLightfv GLEW_GET_FUN(__glewLightfv) +#define glLighti GLEW_GET_FUN(__glewLighti) +#define glLightiv GLEW_GET_FUN(__glewLightiv) +#define glLineStipple GLEW_GET_FUN(__glewLineStipple) +#define glLineWidth GLEW_GET_FUN(__glewLineWidth) +#define glListBase GLEW_GET_FUN(__glewListBase) +#define glLoadIdentity GLEW_GET_FUN(__glewLoadIdentity) +#define glLoadMatrixd GLEW_GET_FUN(__glewLoadMatrixd) +#define glLoadMatrixf GLEW_GET_FUN(__glewLoadMatrixf) +#define glLoadName GLEW_GET_FUN(__glewLoadName) +#define glLogicOp GLEW_GET_FUN(__glewLogicOp) +#define glMap1d GLEW_GET_FUN(__glewMap1d) +#define glMap1f GLEW_GET_FUN(__glewMap1f) +#define glMap2d GLEW_GET_FUN(__glewMap2d) +#define glMap2f GLEW_GET_FUN(__glewMap2f) +#define glMapGrid1d GLEW_GET_FUN(__glewMapGrid1d) +#define glMapGrid1f GLEW_GET_FUN(__glewMapGrid1f) +#define glMapGrid2d GLEW_GET_FUN(__glewMapGrid2d) +#define glMapGrid2f GLEW_GET_FUN(__glewMapGrid2f) +#define glMaterialf GLEW_GET_FUN(__glewMaterialf) +#define glMaterialfv GLEW_GET_FUN(__glewMaterialfv) +#define glMateriali GLEW_GET_FUN(__glewMateriali) +#define glMaterialiv GLEW_GET_FUN(__glewMaterialiv) +#define glMatrixMode GLEW_GET_FUN(__glewMatrixMode) +#define glMultMatrixd GLEW_GET_FUN(__glewMultMatrixd) +#define glMultMatrixf GLEW_GET_FUN(__glewMultMatrixf) +#define glNewList GLEW_GET_FUN(__glewNewList) +#define glNormal3b GLEW_GET_FUN(__glewNormal3b) +#define glNormal3bv GLEW_GET_FUN(__glewNormal3bv) +#define glNormal3d GLEW_GET_FUN(__glewNormal3d) +#define glNormal3dv GLEW_GET_FUN(__glewNormal3dv) +#define glNormal3f GLEW_GET_FUN(__glewNormal3f) +#define glNormal3fv GLEW_GET_FUN(__glewNormal3fv) +#define glNormal3i GLEW_GET_FUN(__glewNormal3i) +#define glNormal3iv GLEW_GET_FUN(__glewNormal3iv) +#define glNormal3s GLEW_GET_FUN(__glewNormal3s) +#define glNormal3sv GLEW_GET_FUN(__glewNormal3sv) +#define glNormalPointer GLEW_GET_FUN(__glewNormalPointer) +#define glOrtho GLEW_GET_FUN(__glewOrtho) +#define glPassThrough GLEW_GET_FUN(__glewPassThrough) +#define glPixelMapfv GLEW_GET_FUN(__glewPixelMapfv) +#define glPixelMapuiv GLEW_GET_FUN(__glewPixelMapuiv) +#define glPixelMapusv GLEW_GET_FUN(__glewPixelMapusv) +#define glPixelStoref GLEW_GET_FUN(__glewPixelStoref) +#define glPixelStorei GLEW_GET_FUN(__glewPixelStorei) +#define glPixelTransferf GLEW_GET_FUN(__glewPixelTransferf) +#define glPixelTransferi GLEW_GET_FUN(__glewPixelTransferi) +#define glPixelZoom GLEW_GET_FUN(__glewPixelZoom) +#define glPointSize GLEW_GET_FUN(__glewPointSize) +#define glPolygonMode GLEW_GET_FUN(__glewPolygonMode) +#define glPolygonOffset GLEW_GET_FUN(__glewPolygonOffset) +#define glPolygonStipple GLEW_GET_FUN(__glewPolygonStipple) +#define glPopAttrib GLEW_GET_FUN(__glewPopAttrib) +#define glPopClientAttrib GLEW_GET_FUN(__glewPopClientAttrib) +#define glPopMatrix GLEW_GET_FUN(__glewPopMatrix) +#define glPopName GLEW_GET_FUN(__glewPopName) +#define glPrioritizeTextures GLEW_GET_FUN(__glewPrioritizeTextures) +#define glPushAttrib GLEW_GET_FUN(__glewPushAttrib) +#define glPushClientAttrib GLEW_GET_FUN(__glewPushClientAttrib) +#define glPushMatrix GLEW_GET_FUN(__glewPushMatrix) +#define glPushName GLEW_GET_FUN(__glewPushName) +#define glRasterPos2d GLEW_GET_FUN(__glewRasterPos2d) +#define glRasterPos2dv GLEW_GET_FUN(__glewRasterPos2dv) +#define glRasterPos2f GLEW_GET_FUN(__glewRasterPos2f) +#define glRasterPos2fv GLEW_GET_FUN(__glewRasterPos2fv) +#define glRasterPos2i GLEW_GET_FUN(__glewRasterPos2i) +#define glRasterPos2iv GLEW_GET_FUN(__glewRasterPos2iv) +#define glRasterPos2s GLEW_GET_FUN(__glewRasterPos2s) +#define glRasterPos2sv GLEW_GET_FUN(__glewRasterPos2sv) +#define glRasterPos3d GLEW_GET_FUN(__glewRasterPos3d) +#define glRasterPos3dv GLEW_GET_FUN(__glewRasterPos3dv) +#define glRasterPos3f GLEW_GET_FUN(__glewRasterPos3f) +#define glRasterPos3fv GLEW_GET_FUN(__glewRasterPos3fv) +#define glRasterPos3i GLEW_GET_FUN(__glewRasterPos3i) +#define glRasterPos3iv GLEW_GET_FUN(__glewRasterPos3iv) +#define glRasterPos3s GLEW_GET_FUN(__glewRasterPos3s) +#define glRasterPos3sv GLEW_GET_FUN(__glewRasterPos3sv) +#define glRasterPos4d GLEW_GET_FUN(__glewRasterPos4d) +#define glRasterPos4dv GLEW_GET_FUN(__glewRasterPos4dv) +#define glRasterPos4f GLEW_GET_FUN(__glewRasterPos4f) +#define glRasterPos4fv GLEW_GET_FUN(__glewRasterPos4fv) +#define glRasterPos4i GLEW_GET_FUN(__glewRasterPos4i) +#define glRasterPos4iv GLEW_GET_FUN(__glewRasterPos4iv) +#define glRasterPos4s GLEW_GET_FUN(__glewRasterPos4s) +#define glRasterPos4sv GLEW_GET_FUN(__glewRasterPos4sv) +#define glReadBuffer GLEW_GET_FUN(__glewReadBuffer) +#define glReadPixels GLEW_GET_FUN(__glewReadPixels) +#define glRectd GLEW_GET_FUN(__glewRectd) +#define glRectdv GLEW_GET_FUN(__glewRectdv) +#define glRectf GLEW_GET_FUN(__glewRectf) +#define glRectfv GLEW_GET_FUN(__glewRectfv) +#define glRecti GLEW_GET_FUN(__glewRecti) +#define glRectiv GLEW_GET_FUN(__glewRectiv) +#define glRects GLEW_GET_FUN(__glewRects) +#define glRectsv GLEW_GET_FUN(__glewRectsv) +#define glRenderMode GLEW_GET_FUN(__glewRenderMode) +#define glRotated GLEW_GET_FUN(__glewRotated) +#define glRotatef GLEW_GET_FUN(__glewRotatef) +#define glScaled GLEW_GET_FUN(__glewScaled) +#define glScalef GLEW_GET_FUN(__glewScalef) +#define glScissor GLEW_GET_FUN(__glewScissor) +#define glSelectBuffer GLEW_GET_FUN(__glewSelectBuffer) +#define glShadeModel GLEW_GET_FUN(__glewShadeModel) +#define glStencilFunc GLEW_GET_FUN(__glewStencilFunc) +#define glStencilMask GLEW_GET_FUN(__glewStencilMask) +#define glStencilOp GLEW_GET_FUN(__glewStencilOp) +#define glTexCoord1d GLEW_GET_FUN(__glewTexCoord1d) +#define glTexCoord1dv GLEW_GET_FUN(__glewTexCoord1dv) +#define glTexCoord1f GLEW_GET_FUN(__glewTexCoord1f) +#define glTexCoord1fv GLEW_GET_FUN(__glewTexCoord1fv) +#define glTexCoord1i GLEW_GET_FUN(__glewTexCoord1i) +#define glTexCoord1iv GLEW_GET_FUN(__glewTexCoord1iv) +#define glTexCoord1s GLEW_GET_FUN(__glewTexCoord1s) +#define glTexCoord1sv GLEW_GET_FUN(__glewTexCoord1sv) +#define glTexCoord2d GLEW_GET_FUN(__glewTexCoord2d) +#define glTexCoord2dv GLEW_GET_FUN(__glewTexCoord2dv) +#define glTexCoord2f GLEW_GET_FUN(__glewTexCoord2f) +#define glTexCoord2fv GLEW_GET_FUN(__glewTexCoord2fv) +#define glTexCoord2i GLEW_GET_FUN(__glewTexCoord2i) +#define glTexCoord2iv GLEW_GET_FUN(__glewTexCoord2iv) +#define glTexCoord2s GLEW_GET_FUN(__glewTexCoord2s) +#define glTexCoord2sv GLEW_GET_FUN(__glewTexCoord2sv) +#define glTexCoord3d GLEW_GET_FUN(__glewTexCoord3d) +#define glTexCoord3dv GLEW_GET_FUN(__glewTexCoord3dv) +#define glTexCoord3f GLEW_GET_FUN(__glewTexCoord3f) +#define glTexCoord3fv GLEW_GET_FUN(__glewTexCoord3fv) +#define glTexCoord3i GLEW_GET_FUN(__glewTexCoord3i) +#define glTexCoord3iv GLEW_GET_FUN(__glewTexCoord3iv) +#define glTexCoord3s GLEW_GET_FUN(__glewTexCoord3s) +#define glTexCoord3sv GLEW_GET_FUN(__glewTexCoord3sv) +#define glTexCoord4d GLEW_GET_FUN(__glewTexCoord4d) +#define glTexCoord4dv GLEW_GET_FUN(__glewTexCoord4dv) +#define glTexCoord4f GLEW_GET_FUN(__glewTexCoord4f) +#define glTexCoord4fv GLEW_GET_FUN(__glewTexCoord4fv) +#define glTexCoord4i GLEW_GET_FUN(__glewTexCoord4i) +#define glTexCoord4iv GLEW_GET_FUN(__glewTexCoord4iv) +#define glTexCoord4s GLEW_GET_FUN(__glewTexCoord4s) +#define glTexCoord4sv GLEW_GET_FUN(__glewTexCoord4sv) +#define glTexCoordPointer GLEW_GET_FUN(__glewTexCoordPointer) +#define glTexEnvf GLEW_GET_FUN(__glewTexEnvf) +#define glTexEnvfv GLEW_GET_FUN(__glewTexEnvfv) +#define glTexEnvi GLEW_GET_FUN(__glewTexEnvi) +#define glTexEnviv GLEW_GET_FUN(__glewTexEnviv) +#define glTexGend GLEW_GET_FUN(__glewTexGend) +#define glTexGendv GLEW_GET_FUN(__glewTexGendv) +#define glTexGenf GLEW_GET_FUN(__glewTexGenf) +#define glTexGenfv GLEW_GET_FUN(__glewTexGenfv) +#define glTexGeni GLEW_GET_FUN(__glewTexGeni) +#define glTexGeniv GLEW_GET_FUN(__glewTexGeniv) +#define glTexImage1D GLEW_GET_FUN(__glewTexImage1D) +#define glTexImage2D GLEW_GET_FUN(__glewTexImage2D) +#define glTexParameterf GLEW_GET_FUN(__glewTexParameterf) +#define glTexParameterfv GLEW_GET_FUN(__glewTexParameterfv) +#define glTexParameteri GLEW_GET_FUN(__glewTexParameteri) +#define glTexParameteriv GLEW_GET_FUN(__glewTexParameteriv) +#define glTexSubImage1D GLEW_GET_FUN(__glewTexSubImage1D) +#define glTexSubImage2D GLEW_GET_FUN(__glewTexSubImage2D) +#define glTranslated GLEW_GET_FUN(__glewTranslated) +#define glTranslatef GLEW_GET_FUN(__glewTranslatef) +#define glVertex2d GLEW_GET_FUN(__glewVertex2d) +#define glVertex2dv GLEW_GET_FUN(__glewVertex2dv) +#define glVertex2f GLEW_GET_FUN(__glewVertex2f) +#define glVertex2fv GLEW_GET_FUN(__glewVertex2fv) +#define glVertex2i GLEW_GET_FUN(__glewVertex2i) +#define glVertex2iv GLEW_GET_FUN(__glewVertex2iv) +#define glVertex2s GLEW_GET_FUN(__glewVertex2s) +#define glVertex2sv GLEW_GET_FUN(__glewVertex2sv) +#define glVertex3d GLEW_GET_FUN(__glewVertex3d) +#define glVertex3dv GLEW_GET_FUN(__glewVertex3dv) +#define glVertex3f GLEW_GET_FUN(__glewVertex3f) +#define glVertex3fv GLEW_GET_FUN(__glewVertex3fv) +#define glVertex3i GLEW_GET_FUN(__glewVertex3i) +#define glVertex3iv GLEW_GET_FUN(__glewVertex3iv) +#define glVertex3s GLEW_GET_FUN(__glewVertex3s) +#define glVertex3sv GLEW_GET_FUN(__glewVertex3sv) +#define glVertex4d GLEW_GET_FUN(__glewVertex4d) +#define glVertex4dv GLEW_GET_FUN(__glewVertex4dv) +#define glVertex4f GLEW_GET_FUN(__glewVertex4f) +#define glVertex4fv GLEW_GET_FUN(__glewVertex4fv) +#define glVertex4i GLEW_GET_FUN(__glewVertex4i) +#define glVertex4iv GLEW_GET_FUN(__glewVertex4iv) +#define glVertex4s GLEW_GET_FUN(__glewVertex4s) +#define glVertex4sv GLEW_GET_FUN(__glewVertex4sv) +#define glVertexPointer GLEW_GET_FUN(__glewVertexPointer) +#define glViewport GLEW_GET_FUN(__glewViewport) #define GLEW_VERSION_1_1 GLEW_GET_VAR(__GLEW_VERSION_1_1) @@ -1132,11 +1469,13 @@ GLAPI void GLAPIENTRY glViewport (GLint x, GLint y, GLsizei width, GLsizei heigh /* ---------------------------------- GLU ---------------------------------- */ /* this is where we can safely include GLU */ +#ifndef GLEW_NO_GLU #if defined(__APPLE__) && defined(__MACH__) #include <OpenGL/glu.h> #else #include <GL/glu.h> #endif +#endif /* GLEW_NO_GLU */ /* ----------------------------- GL_VERSION_1_2 ---------------------------- */ @@ -10237,6 +10576,343 @@ struct GLEWContextStruct { #endif /* GLEW_MX */ +GLEW_FUN_EXPORT PFNGLACCUMPROC __glewAccum; +GLEW_FUN_EXPORT PFNGLALPHAFUNCPROC __glewAlphaFunc; +GLEW_FUN_EXPORT PFNGLARETEXTURESRESIDENTPROC __glewAreTexturesResident; +GLEW_FUN_EXPORT PFNGLARRAYELEMENTPROC __glewArrayElement; +GLEW_FUN_EXPORT PFNGLBEGINPROC __glewBegin; +GLEW_FUN_EXPORT PFNGLBINDTEXTUREPROC __glewBindTexture; +GLEW_FUN_EXPORT PFNGLBITMAPPROC __glewBitmap; +GLEW_FUN_EXPORT PFNGLBLENDFUNCPROC __glewBlendFunc; +GLEW_FUN_EXPORT PFNGLCALLLISTPROC __glewCallList; +GLEW_FUN_EXPORT PFNGLCALLLISTSPROC __glewCallLists; +GLEW_FUN_EXPORT PFNGLCLEARPROC __glewClear; +GLEW_FUN_EXPORT PFNGLCLEARACCUMPROC __glewClearAccum; +GLEW_FUN_EXPORT PFNGLCLEARCOLORPROC __glewClearColor; +GLEW_FUN_EXPORT PFNGLCLEARDEPTHPROC __glewClearDepth; +GLEW_FUN_EXPORT PFNGLCLEARINDEXPROC __glewClearIndex; +GLEW_FUN_EXPORT PFNGLCLEARSTENCILPROC __glewClearStencil; +GLEW_FUN_EXPORT PFNGLCLIPPLANEPROC __glewClipPlane; +GLEW_FUN_EXPORT PFNGLCOLOR3BPROC __glewColor3b; +GLEW_FUN_EXPORT PFNGLCOLOR3BVPROC __glewColor3bv; +GLEW_FUN_EXPORT PFNGLCOLOR3DPROC __glewColor3d; +GLEW_FUN_EXPORT PFNGLCOLOR3DVPROC __glewColor3dv; +GLEW_FUN_EXPORT PFNGLCOLOR3FPROC __glewColor3f; +GLEW_FUN_EXPORT PFNGLCOLOR3FVPROC __glewColor3fv; +GLEW_FUN_EXPORT PFNGLCOLOR3IPROC __glewColor3i; +GLEW_FUN_EXPORT PFNGLCOLOR3IVPROC __glewColor3iv; +GLEW_FUN_EXPORT PFNGLCOLOR3SPROC __glewColor3s; +GLEW_FUN_EXPORT PFNGLCOLOR3SVPROC __glewColor3sv; +GLEW_FUN_EXPORT PFNGLCOLOR3UBPROC __glewColor3ub; +GLEW_FUN_EXPORT PFNGLCOLOR3UBVPROC __glewColor3ubv; +GLEW_FUN_EXPORT PFNGLCOLOR3UIPROC __glewColor3ui; +GLEW_FUN_EXPORT PFNGLCOLOR3UIVPROC __glewColor3uiv; +GLEW_FUN_EXPORT PFNGLCOLOR3USPROC __glewColor3us; +GLEW_FUN_EXPORT PFNGLCOLOR3USVPROC __glewColor3usv; +GLEW_FUN_EXPORT PFNGLCOLOR4BPROC __glewColor4b; +GLEW_FUN_EXPORT PFNGLCOLOR4BVPROC __glewColor4bv; +GLEW_FUN_EXPORT PFNGLCOLOR4DPROC __glewColor4d; +GLEW_FUN_EXPORT PFNGLCOLOR4DVPROC __glewColor4dv; +GLEW_FUN_EXPORT PFNGLCOLOR4FPROC __glewColor4f; +GLEW_FUN_EXPORT PFNGLCOLOR4FVPROC __glewColor4fv; +GLEW_FUN_EXPORT PFNGLCOLOR4IPROC __glewColor4i; +GLEW_FUN_EXPORT PFNGLCOLOR4IVPROC __glewColor4iv; +GLEW_FUN_EXPORT PFNGLCOLOR4SPROC __glewColor4s; +GLEW_FUN_EXPORT PFNGLCOLOR4SVPROC __glewColor4sv; +GLEW_FUN_EXPORT PFNGLCOLOR4UBPROC __glewColor4ub; +GLEW_FUN_EXPORT PFNGLCOLOR4UBVPROC __glewColor4ubv; +GLEW_FUN_EXPORT PFNGLCOLOR4UIPROC __glewColor4ui; +GLEW_FUN_EXPORT PFNGLCOLOR4UIVPROC __glewColor4uiv; +GLEW_FUN_EXPORT PFNGLCOLOR4USPROC __glewColor4us; +GLEW_FUN_EXPORT PFNGLCOLOR4USVPROC __glewColor4usv; +GLEW_FUN_EXPORT PFNGLCOLORMASKPROC __glewColorMask; +GLEW_FUN_EXPORT PFNGLCOLORMATERIALPROC __glewColorMaterial; +GLEW_FUN_EXPORT PFNGLCOLORPOINTERPROC __glewColorPointer; +GLEW_FUN_EXPORT PFNGLCOPYPIXELSPROC __glewCopyPixels; +GLEW_FUN_EXPORT PFNGLCOPYTEXIMAGE1DPROC __glewCopyTexImage1D; +GLEW_FUN_EXPORT PFNGLCOPYTEXIMAGE2DPROC __glewCopyTexImage2D; +GLEW_FUN_EXPORT PFNGLCOPYTEXSUBIMAGE1DPROC __glewCopyTexSubImage1D; +GLEW_FUN_EXPORT PFNGLCOPYTEXSUBIMAGE2DPROC __glewCopyTexSubImage2D; +GLEW_FUN_EXPORT PFNGLCULLFACEPROC __glewCullFace; +GLEW_FUN_EXPORT PFNGLDELETELISTSPROC __glewDeleteLists; +GLEW_FUN_EXPORT PFNGLDELETETEXTURESPROC __glewDeleteTextures; +GLEW_FUN_EXPORT PFNGLDEPTHFUNCPROC __glewDepthFunc; +GLEW_FUN_EXPORT PFNGLDEPTHMASKPROC __glewDepthMask; +GLEW_FUN_EXPORT PFNGLDEPTHRANGEPROC __glewDepthRange; +GLEW_FUN_EXPORT PFNGLDISABLEPROC __glewDisable; +GLEW_FUN_EXPORT PFNGLDISABLECLIENTSTATEPROC __glewDisableClientState; +GLEW_FUN_EXPORT PFNGLDRAWARRAYSPROC __glewDrawArrays; +GLEW_FUN_EXPORT PFNGLDRAWBUFFERPROC __glewDrawBuffer; +GLEW_FUN_EXPORT PFNGLDRAWELEMENTSPROC __glewDrawElements; +GLEW_FUN_EXPORT PFNGLDRAWPIXELSPROC __glewDrawPixels; +GLEW_FUN_EXPORT PFNGLEDGEFLAGPROC __glewEdgeFlag; +GLEW_FUN_EXPORT PFNGLEDGEFLAGPOINTERPROC __glewEdgeFlagPointer; +GLEW_FUN_EXPORT PFNGLEDGEFLAGVPROC __glewEdgeFlagv; +GLEW_FUN_EXPORT PFNGLENABLEPROC __glewEnable; +GLEW_FUN_EXPORT PFNGLENABLECLIENTSTATEPROC __glewEnableClientState; +GLEW_FUN_EXPORT PFNGLENDPROC __glewEnd; +GLEW_FUN_EXPORT PFNGLENDLISTPROC __glewEndList; +GLEW_FUN_EXPORT PFNGLEVALCOORD1DPROC __glewEvalCoord1d; +GLEW_FUN_EXPORT PFNGLEVALCOORD1DVPROC __glewEvalCoord1dv; +GLEW_FUN_EXPORT PFNGLEVALCOORD1FPROC __glewEvalCoord1f; +GLEW_FUN_EXPORT PFNGLEVALCOORD1FVPROC __glewEvalCoord1fv; +GLEW_FUN_EXPORT PFNGLEVALCOORD2DPROC __glewEvalCoord2d; +GLEW_FUN_EXPORT PFNGLEVALCOORD2DVPROC __glewEvalCoord2dv; +GLEW_FUN_EXPORT PFNGLEVALCOORD2FPROC __glewEvalCoord2f; +GLEW_FUN_EXPORT PFNGLEVALCOORD2FVPROC __glewEvalCoord2fv; +GLEW_FUN_EXPORT PFNGLEVALMESH1PROC __glewEvalMesh1; +GLEW_FUN_EXPORT PFNGLEVALMESH2PROC __glewEvalMesh2; +GLEW_FUN_EXPORT PFNGLEVALPOINT1PROC __glewEvalPoint1; +GLEW_FUN_EXPORT PFNGLEVALPOINT2PROC __glewEvalPoint2; +GLEW_FUN_EXPORT PFNGLFEEDBACKBUFFERPROC __glewFeedbackBuffer; +GLEW_FUN_EXPORT PFNGLFINISHPROC __glewFinish; +GLEW_FUN_EXPORT PFNGLFLUSHPROC __glewFlush; +GLEW_FUN_EXPORT PFNGLFOGFPROC __glewFogf; +GLEW_FUN_EXPORT PFNGLFOGFVPROC __glewFogfv; +GLEW_FUN_EXPORT PFNGLFOGIPROC __glewFogi; +GLEW_FUN_EXPORT PFNGLFOGIVPROC __glewFogiv; +GLEW_FUN_EXPORT PFNGLFRONTFACEPROC __glewFrontFace; +GLEW_FUN_EXPORT PFNGLFRUSTUMPROC __glewFrustum; +GLEW_FUN_EXPORT PFNGLGENLISTSPROC __glewGenLists; +GLEW_FUN_EXPORT PFNGLGENTEXTURESPROC __glewGenTextures; +GLEW_FUN_EXPORT PFNGLGETBOOLEANVPROC __glewGetBooleanv; +GLEW_FUN_EXPORT PFNGLGETCLIPPLANEPROC __glewGetClipPlane; +GLEW_FUN_EXPORT PFNGLGETDOUBLEVPROC __glewGetDoublev; +GLEW_FUN_EXPORT PFNGLGETERRORPROC __glewGetError; +GLEW_FUN_EXPORT PFNGLGETFLOATVPROC __glewGetFloatv; +GLEW_FUN_EXPORT PFNGLGETINTEGERVPROC __glewGetIntegerv; +GLEW_FUN_EXPORT PFNGLGETLIGHTFVPROC __glewGetLightfv; +GLEW_FUN_EXPORT PFNGLGETLIGHTIVPROC __glewGetLightiv; +GLEW_FUN_EXPORT PFNGLGETMAPDVPROC __glewGetMapdv; +GLEW_FUN_EXPORT PFNGLGETMAPFVPROC __glewGetMapfv; +GLEW_FUN_EXPORT PFNGLGETMAPIVPROC __glewGetMapiv; +GLEW_FUN_EXPORT PFNGLGETMATERIALFVPROC __glewGetMaterialfv; +GLEW_FUN_EXPORT PFNGLGETMATERIALIVPROC __glewGetMaterialiv; +GLEW_FUN_EXPORT PFNGLGETPIXELMAPFVPROC __glewGetPixelMapfv; +GLEW_FUN_EXPORT PFNGLGETPIXELMAPUIVPROC __glewGetPixelMapuiv; +GLEW_FUN_EXPORT PFNGLGETPIXELMAPUSVPROC __glewGetPixelMapusv; +GLEW_FUN_EXPORT PFNGLGETPOINTERVPROC __glewGetPointerv; +GLEW_FUN_EXPORT PFNGLGETPOLYGONSTIPPLEPROC __glewGetPolygonStipple; +GLEW_FUN_EXPORT PFNGLGETSTRINGPROC __glewGetString; +GLEW_FUN_EXPORT PFNGLGETTEXENVFVPROC __glewGetTexEnvfv; +GLEW_FUN_EXPORT PFNGLGETTEXENVIVPROC __glewGetTexEnviv; +GLEW_FUN_EXPORT PFNGLGETTEXGENDVPROC __glewGetTexGendv; +GLEW_FUN_EXPORT PFNGLGETTEXGENFVPROC __glewGetTexGenfv; +GLEW_FUN_EXPORT PFNGLGETTEXGENIVPROC __glewGetTexGeniv; +GLEW_FUN_EXPORT PFNGLGETTEXIMAGEPROC __glewGetTexImage; +GLEW_FUN_EXPORT PFNGLGETTEXLEVELPARAMETERFVPROC __glewGetTexLevelParameterfv; +GLEW_FUN_EXPORT PFNGLGETTEXLEVELPARAMETERIVPROC __glewGetTexLevelParameteriv; +GLEW_FUN_EXPORT PFNGLGETTEXPARAMETERFVPROC __glewGetTexParameterfv; +GLEW_FUN_EXPORT PFNGLGETTEXPARAMETERIVPROC __glewGetTexParameteriv; +GLEW_FUN_EXPORT PFNGLHINTPROC __glewHint; +GLEW_FUN_EXPORT PFNGLINDEXMASKPROC __glewIndexMask; +GLEW_FUN_EXPORT PFNGLINDEXPOINTERPROC __glewIndexPointer; +GLEW_FUN_EXPORT PFNGLINDEXDPROC __glewIndexd; +GLEW_FUN_EXPORT PFNGLINDEXDVPROC __glewIndexdv; +GLEW_FUN_EXPORT PFNGLINDEXFPROC __glewIndexf; +GLEW_FUN_EXPORT PFNGLINDEXFVPROC __glewIndexfv; +GLEW_FUN_EXPORT PFNGLINDEXIPROC __glewIndexi; +GLEW_FUN_EXPORT PFNGLINDEXIVPROC __glewIndexiv; +GLEW_FUN_EXPORT PFNGLINDEXSPROC __glewIndexs; +GLEW_FUN_EXPORT PFNGLINDEXSVPROC __glewIndexsv; +GLEW_FUN_EXPORT PFNGLINDEXUBPROC __glewIndexub; +GLEW_FUN_EXPORT PFNGLINDEXUBVPROC __glewIndexubv; +GLEW_FUN_EXPORT PFNGLINITNAMESPROC __glewInitNames; +GLEW_FUN_EXPORT PFNGLINTERLEAVEDARRAYSPROC __glewInterleavedArrays; +GLEW_FUN_EXPORT PFNGLISENABLEDPROC __glewIsEnabled; +GLEW_FUN_EXPORT PFNGLISLISTPROC __glewIsList; +GLEW_FUN_EXPORT PFNGLISTEXTUREPROC __glewIsTexture; +GLEW_FUN_EXPORT PFNGLLIGHTMODELFPROC __glewLightModelf; +GLEW_FUN_EXPORT PFNGLLIGHTMODELFVPROC __glewLightModelfv; +GLEW_FUN_EXPORT PFNGLLIGHTMODELIPROC __glewLightModeli; +GLEW_FUN_EXPORT PFNGLLIGHTMODELIVPROC __glewLightModeliv; +GLEW_FUN_EXPORT PFNGLLIGHTFPROC __glewLightf; +GLEW_FUN_EXPORT PFNGLLIGHTFVPROC __glewLightfv; +GLEW_FUN_EXPORT PFNGLLIGHTIPROC __glewLighti; +GLEW_FUN_EXPORT PFNGLLIGHTIVPROC __glewLightiv; +GLEW_FUN_EXPORT PFNGLLINESTIPPLEPROC __glewLineStipple; +GLEW_FUN_EXPORT PFNGLLINEWIDTHPROC __glewLineWidth; +GLEW_FUN_EXPORT PFNGLLISTBASEPROC __glewListBase; +GLEW_FUN_EXPORT PFNGLLOADIDENTITYPROC __glewLoadIdentity; +GLEW_FUN_EXPORT PFNGLLOADMATRIXDPROC __glewLoadMatrixd; +GLEW_FUN_EXPORT PFNGLLOADMATRIXFPROC __glewLoadMatrixf; +GLEW_FUN_EXPORT PFNGLLOADNAMEPROC __glewLoadName; +GLEW_FUN_EXPORT PFNGLLOGICOPPROC __glewLogicOp; +GLEW_FUN_EXPORT PFNGLMAP1DPROC __glewMap1d; +GLEW_FUN_EXPORT PFNGLMAP1FPROC __glewMap1f; +GLEW_FUN_EXPORT PFNGLMAP2DPROC __glewMap2d; +GLEW_FUN_EXPORT PFNGLMAP2FPROC __glewMap2f; +GLEW_FUN_EXPORT PFNGLMAPGRID1DPROC __glewMapGrid1d; +GLEW_FUN_EXPORT PFNGLMAPGRID1FPROC __glewMapGrid1f; +GLEW_FUN_EXPORT PFNGLMAPGRID2DPROC __glewMapGrid2d; +GLEW_FUN_EXPORT PFNGLMAPGRID2FPROC __glewMapGrid2f; +GLEW_FUN_EXPORT PFNGLMATERIALFPROC __glewMaterialf; +GLEW_FUN_EXPORT PFNGLMATERIALFVPROC __glewMaterialfv; +GLEW_FUN_EXPORT PFNGLMATERIALIPROC __glewMateriali; +GLEW_FUN_EXPORT PFNGLMATERIALIVPROC __glewMaterialiv; +GLEW_FUN_EXPORT PFNGLMATRIXMODEPROC __glewMatrixMode; +GLEW_FUN_EXPORT PFNGLMULTMATRIXDPROC __glewMultMatrixd; +GLEW_FUN_EXPORT PFNGLMULTMATRIXFPROC __glewMultMatrixf; +GLEW_FUN_EXPORT PFNGLNEWLISTPROC __glewNewList; +GLEW_FUN_EXPORT PFNGLNORMAL3BPROC __glewNormal3b; +GLEW_FUN_EXPORT PFNGLNORMAL3BVPROC __glewNormal3bv; +GLEW_FUN_EXPORT PFNGLNORMAL3DPROC __glewNormal3d; +GLEW_FUN_EXPORT PFNGLNORMAL3DVPROC __glewNormal3dv; +GLEW_FUN_EXPORT PFNGLNORMAL3FPROC __glewNormal3f; +GLEW_FUN_EXPORT PFNGLNORMAL3FVPROC __glewNormal3fv; +GLEW_FUN_EXPORT PFNGLNORMAL3IPROC __glewNormal3i; +GLEW_FUN_EXPORT PFNGLNORMAL3IVPROC __glewNormal3iv; +GLEW_FUN_EXPORT PFNGLNORMAL3SPROC __glewNormal3s; +GLEW_FUN_EXPORT PFNGLNORMAL3SVPROC __glewNormal3sv; +GLEW_FUN_EXPORT PFNGLNORMALPOINTERPROC __glewNormalPointer; +GLEW_FUN_EXPORT PFNGLORTHOPROC __glewOrtho; +GLEW_FUN_EXPORT PFNGLPASSTHROUGHPROC __glewPassThrough; +GLEW_FUN_EXPORT PFNGLPIXELMAPFVPROC __glewPixelMapfv; +GLEW_FUN_EXPORT PFNGLPIXELMAPUIVPROC __glewPixelMapuiv; +GLEW_FUN_EXPORT PFNGLPIXELMAPUSVPROC __glewPixelMapusv; +GLEW_FUN_EXPORT PFNGLPIXELSTOREFPROC __glewPixelStoref; +GLEW_FUN_EXPORT PFNGLPIXELSTOREIPROC __glewPixelStorei; +GLEW_FUN_EXPORT PFNGLPIXELTRANSFERFPROC __glewPixelTransferf; +GLEW_FUN_EXPORT PFNGLPIXELTRANSFERIPROC __glewPixelTransferi; +GLEW_FUN_EXPORT PFNGLPIXELZOOMPROC __glewPixelZoom; +GLEW_FUN_EXPORT PFNGLPOINTSIZEPROC __glewPointSize; +GLEW_FUN_EXPORT PFNGLPOLYGONMODEPROC __glewPolygonMode; +GLEW_FUN_EXPORT PFNGLPOLYGONOFFSETPROC __glewPolygonOffset; +GLEW_FUN_EXPORT PFNGLPOLYGONSTIPPLEPROC __glewPolygonStipple; +GLEW_FUN_EXPORT PFNGLPOPATTRIBPROC __glewPopAttrib; +GLEW_FUN_EXPORT PFNGLPOPCLIENTATTRIBPROC __glewPopClientAttrib; +GLEW_FUN_EXPORT PFNGLPOPMATRIXPROC __glewPopMatrix; +GLEW_FUN_EXPORT PFNGLPOPNAMEPROC __glewPopName; +GLEW_FUN_EXPORT PFNGLPRIORITIZETEXTURESPROC __glewPrioritizeTextures; +GLEW_FUN_EXPORT PFNGLPUSHATTRIBPROC __glewPushAttrib; +GLEW_FUN_EXPORT PFNGLPUSHCLIENTATTRIBPROC __glewPushClientAttrib; +GLEW_FUN_EXPORT PFNGLPUSHMATRIXPROC __glewPushMatrix; +GLEW_FUN_EXPORT PFNGLPUSHNAMEPROC __glewPushName; +GLEW_FUN_EXPORT PFNGLRASTERPOS2DPROC __glewRasterPos2d; +GLEW_FUN_EXPORT PFNGLRASTERPOS2DVPROC __glewRasterPos2dv; +GLEW_FUN_EXPORT PFNGLRASTERPOS2FPROC __glewRasterPos2f; +GLEW_FUN_EXPORT PFNGLRASTERPOS2FVPROC __glewRasterPos2fv; +GLEW_FUN_EXPORT PFNGLRASTERPOS2IPROC __glewRasterPos2i; +GLEW_FUN_EXPORT PFNGLRASTERPOS2IVPROC __glewRasterPos2iv; +GLEW_FUN_EXPORT PFNGLRASTERPOS2SPROC __glewRasterPos2s; +GLEW_FUN_EXPORT PFNGLRASTERPOS2SVPROC __glewRasterPos2sv; +GLEW_FUN_EXPORT PFNGLRASTERPOS3DPROC __glewRasterPos3d; +GLEW_FUN_EXPORT PFNGLRASTERPOS3DVPROC __glewRasterPos3dv; +GLEW_FUN_EXPORT PFNGLRASTERPOS3FPROC __glewRasterPos3f; +GLEW_FUN_EXPORT PFNGLRASTERPOS3FVPROC __glewRasterPos3fv; +GLEW_FUN_EXPORT PFNGLRASTERPOS3IPROC __glewRasterPos3i; +GLEW_FUN_EXPORT PFNGLRASTERPOS3IVPROC __glewRasterPos3iv; +GLEW_FUN_EXPORT PFNGLRASTERPOS3SPROC __glewRasterPos3s; +GLEW_FUN_EXPORT PFNGLRASTERPOS3SVPROC __glewRasterPos3sv; +GLEW_FUN_EXPORT PFNGLRASTERPOS4DPROC __glewRasterPos4d; +GLEW_FUN_EXPORT PFNGLRASTERPOS4DVPROC __glewRasterPos4dv; +GLEW_FUN_EXPORT PFNGLRASTERPOS4FPROC __glewRasterPos4f; +GLEW_FUN_EXPORT PFNGLRASTERPOS4FVPROC __glewRasterPos4fv; +GLEW_FUN_EXPORT PFNGLRASTERPOS4IPROC __glewRasterPos4i; +GLEW_FUN_EXPORT PFNGLRASTERPOS4IVPROC __glewRasterPos4iv; +GLEW_FUN_EXPORT PFNGLRASTERPOS4SPROC __glewRasterPos4s; +GLEW_FUN_EXPORT PFNGLRASTERPOS4SVPROC __glewRasterPos4sv; +GLEW_FUN_EXPORT PFNGLREADBUFFERPROC __glewReadBuffer; +GLEW_FUN_EXPORT PFNGLREADPIXELSPROC __glewReadPixels; +GLEW_FUN_EXPORT PFNGLRECTDPROC __glewRectd; +GLEW_FUN_EXPORT PFNGLRECTDVPROC __glewRectdv; +GLEW_FUN_EXPORT PFNGLRECTFPROC __glewRectf; +GLEW_FUN_EXPORT PFNGLRECTFVPROC __glewRectfv; +GLEW_FUN_EXPORT PFNGLRECTIPROC __glewRecti; +GLEW_FUN_EXPORT PFNGLRECTIVPROC __glewRectiv; +GLEW_FUN_EXPORT PFNGLRECTSPROC __glewRects; +GLEW_FUN_EXPORT PFNGLRECTSVPROC __glewRectsv; +GLEW_FUN_EXPORT PFNGLRENDERMODEPROC __glewRenderMode; +GLEW_FUN_EXPORT PFNGLROTATEDPROC __glewRotated; +GLEW_FUN_EXPORT PFNGLROTATEFPROC __glewRotatef; +GLEW_FUN_EXPORT PFNGLSCALEDPROC __glewScaled; +GLEW_FUN_EXPORT PFNGLSCALEFPROC __glewScalef; +GLEW_FUN_EXPORT PFNGLSCISSORPROC __glewScissor; +GLEW_FUN_EXPORT PFNGLSELECTBUFFERPROC __glewSelectBuffer; +GLEW_FUN_EXPORT PFNGLSHADEMODELPROC __glewShadeModel; +GLEW_FUN_EXPORT PFNGLSTENCILFUNCPROC __glewStencilFunc; +GLEW_FUN_EXPORT PFNGLSTENCILMASKPROC __glewStencilMask; +GLEW_FUN_EXPORT PFNGLSTENCILOPPROC __glewStencilOp; +GLEW_FUN_EXPORT PFNGLTEXCOORD1DPROC __glewTexCoord1d; +GLEW_FUN_EXPORT PFNGLTEXCOORD1DVPROC __glewTexCoord1dv; +GLEW_FUN_EXPORT PFNGLTEXCOORD1FPROC __glewTexCoord1f; +GLEW_FUN_EXPORT PFNGLTEXCOORD1FVPROC __glewTexCoord1fv; +GLEW_FUN_EXPORT PFNGLTEXCOORD1IPROC __glewTexCoord1i; +GLEW_FUN_EXPORT PFNGLTEXCOORD1IVPROC __glewTexCoord1iv; +GLEW_FUN_EXPORT PFNGLTEXCOORD1SPROC __glewTexCoord1s; +GLEW_FUN_EXPORT PFNGLTEXCOORD1SVPROC __glewTexCoord1sv; +GLEW_FUN_EXPORT PFNGLTEXCOORD2DPROC __glewTexCoord2d; +GLEW_FUN_EXPORT PFNGLTEXCOORD2DVPROC __glewTexCoord2dv; +GLEW_FUN_EXPORT PFNGLTEXCOORD2FPROC __glewTexCoord2f; +GLEW_FUN_EXPORT PFNGLTEXCOORD2FVPROC __glewTexCoord2fv; +GLEW_FUN_EXPORT PFNGLTEXCOORD2IPROC __glewTexCoord2i; +GLEW_FUN_EXPORT PFNGLTEXCOORD2IVPROC __glewTexCoord2iv; +GLEW_FUN_EXPORT PFNGLTEXCOORD2SPROC __glewTexCoord2s; +GLEW_FUN_EXPORT PFNGLTEXCOORD2SVPROC __glewTexCoord2sv; +GLEW_FUN_EXPORT PFNGLTEXCOORD3DPROC __glewTexCoord3d; +GLEW_FUN_EXPORT PFNGLTEXCOORD3DVPROC __glewTexCoord3dv; +GLEW_FUN_EXPORT PFNGLTEXCOORD3FPROC __glewTexCoord3f; +GLEW_FUN_EXPORT PFNGLTEXCOORD3FVPROC __glewTexCoord3fv; +GLEW_FUN_EXPORT PFNGLTEXCOORD3IPROC __glewTexCoord3i; +GLEW_FUN_EXPORT PFNGLTEXCOORD3IVPROC __glewTexCoord3iv; +GLEW_FUN_EXPORT PFNGLTEXCOORD3SPROC __glewTexCoord3s; +GLEW_FUN_EXPORT PFNGLTEXCOORD3SVPROC __glewTexCoord3sv; +GLEW_FUN_EXPORT PFNGLTEXCOORD4DPROC __glewTexCoord4d; +GLEW_FUN_EXPORT PFNGLTEXCOORD4DVPROC __glewTexCoord4dv; +GLEW_FUN_EXPORT PFNGLTEXCOORD4FPROC __glewTexCoord4f; +GLEW_FUN_EXPORT PFNGLTEXCOORD4FVPROC __glewTexCoord4fv; +GLEW_FUN_EXPORT PFNGLTEXCOORD4IPROC __glewTexCoord4i; +GLEW_FUN_EXPORT PFNGLTEXCOORD4IVPROC __glewTexCoord4iv; +GLEW_FUN_EXPORT PFNGLTEXCOORD4SPROC __glewTexCoord4s; +GLEW_FUN_EXPORT PFNGLTEXCOORD4SVPROC __glewTexCoord4sv; +GLEW_FUN_EXPORT PFNGLTEXCOORDPOINTERPROC __glewTexCoordPointer; +GLEW_FUN_EXPORT PFNGLTEXENVFPROC __glewTexEnvf; +GLEW_FUN_EXPORT PFNGLTEXENVFVPROC __glewTexEnvfv; +GLEW_FUN_EXPORT PFNGLTEXENVIPROC __glewTexEnvi; +GLEW_FUN_EXPORT PFNGLTEXENVIVPROC __glewTexEnviv; +GLEW_FUN_EXPORT PFNGLTEXGENDPROC __glewTexGend; +GLEW_FUN_EXPORT PFNGLTEXGENDVPROC __glewTexGendv; +GLEW_FUN_EXPORT PFNGLTEXGENFPROC __glewTexGenf; +GLEW_FUN_EXPORT PFNGLTEXGENFVPROC __glewTexGenfv; +GLEW_FUN_EXPORT PFNGLTEXGENIPROC __glewTexGeni; +GLEW_FUN_EXPORT PFNGLTEXGENIVPROC __glewTexGeniv; +GLEW_FUN_EXPORT PFNGLTEXIMAGE1DPROC __glewTexImage1D; +GLEW_FUN_EXPORT PFNGLTEXIMAGE2DPROC __glewTexImage2D; +GLEW_FUN_EXPORT PFNGLTEXPARAMETERFPROC __glewTexParameterf; +GLEW_FUN_EXPORT PFNGLTEXPARAMETERFVPROC __glewTexParameterfv; +GLEW_FUN_EXPORT PFNGLTEXPARAMETERIPROC __glewTexParameteri; +GLEW_FUN_EXPORT PFNGLTEXPARAMETERIVPROC __glewTexParameteriv; +GLEW_FUN_EXPORT PFNGLTEXSUBIMAGE1DPROC __glewTexSubImage1D; +GLEW_FUN_EXPORT PFNGLTEXSUBIMAGE2DPROC __glewTexSubImage2D; +GLEW_FUN_EXPORT PFNGLTRANSLATEDPROC __glewTranslated; +GLEW_FUN_EXPORT PFNGLTRANSLATEFPROC __glewTranslatef; +GLEW_FUN_EXPORT PFNGLVERTEX2DPROC __glewVertex2d; +GLEW_FUN_EXPORT PFNGLVERTEX2DVPROC __glewVertex2dv; +GLEW_FUN_EXPORT PFNGLVERTEX2FPROC __glewVertex2f; +GLEW_FUN_EXPORT PFNGLVERTEX2FVPROC __glewVertex2fv; +GLEW_FUN_EXPORT PFNGLVERTEX2IPROC __glewVertex2i; +GLEW_FUN_EXPORT PFNGLVERTEX2IVPROC __glewVertex2iv; +GLEW_FUN_EXPORT PFNGLVERTEX2SPROC __glewVertex2s; +GLEW_FUN_EXPORT PFNGLVERTEX2SVPROC __glewVertex2sv; +GLEW_FUN_EXPORT PFNGLVERTEX3DPROC __glewVertex3d; +GLEW_FUN_EXPORT PFNGLVERTEX3DVPROC __glewVertex3dv; +GLEW_FUN_EXPORT PFNGLVERTEX3FPROC __glewVertex3f; +GLEW_FUN_EXPORT PFNGLVERTEX3FVPROC __glewVertex3fv; +GLEW_FUN_EXPORT PFNGLVERTEX3IPROC __glewVertex3i; +GLEW_FUN_EXPORT PFNGLVERTEX3IVPROC __glewVertex3iv; +GLEW_FUN_EXPORT PFNGLVERTEX3SPROC __glewVertex3s; +GLEW_FUN_EXPORT PFNGLVERTEX3SVPROC __glewVertex3sv; +GLEW_FUN_EXPORT PFNGLVERTEX4DPROC __glewVertex4d; +GLEW_FUN_EXPORT PFNGLVERTEX4DVPROC __glewVertex4dv; +GLEW_FUN_EXPORT PFNGLVERTEX4FPROC __glewVertex4f; +GLEW_FUN_EXPORT PFNGLVERTEX4FVPROC __glewVertex4fv; +GLEW_FUN_EXPORT PFNGLVERTEX4IPROC __glewVertex4i; +GLEW_FUN_EXPORT PFNGLVERTEX4IVPROC __glewVertex4iv; +GLEW_FUN_EXPORT PFNGLVERTEX4SPROC __glewVertex4s; +GLEW_FUN_EXPORT PFNGLVERTEX4SVPROC __glewVertex4sv; +GLEW_FUN_EXPORT PFNGLVERTEXPOINTERPROC __glewVertexPointer; +GLEW_FUN_EXPORT PFNGLVIEWPORTPROC __glewViewport; + GLEW_FUN_EXPORT PFNGLCOPYTEXSUBIMAGE3DPROC __glewCopyTexSubImage3D; GLEW_FUN_EXPORT PFNGLDRAWRANGEELEMENTSPROC __glewDrawRangeElements; GLEW_FUN_EXPORT PFNGLTEXIMAGE3DPROC __glewTexImage3D; diff --git a/third_party/glew/src/glew.c b/third_party/glew/src/glew.c index bbdc99c..17d2565 100644 --- a/third_party/glew/src/glew.c +++ b/third_party/glew/src/glew.c @@ -65,6 +65,28 @@ # define GLXEW_CONTEXT_ARG_DEF_LIST void #endif /* GLEW_MX */ +#ifdef _WIN32 +void* WinGetProcAddress(const GLubyte* name) +{ + /* Need to use GetProcAddress to bootstrap things now that we are + dynamically looking up OpenGL 1.1 entry points as well. */ + static HMODULE oglImage = NULL; + void* proc = NULL; + + if (NULL == oglImage) { + oglImage = LoadLibraryA("opengl32.dll"); + } + if (NULL != oglImage) { + proc = (void*) GetProcAddress(oglImage, (LPCSTR) name); + } + if (NULL == proc) { + proc = wglGetProcAddress((LPCSTR) name); + } + return proc; +} + +#endif /* _WIN32 */ + #if defined(__APPLE__) #include <dlfcn.h> #include <stdlib.h> @@ -81,7 +103,7 @@ void* NSGLGetProcAddress (const GLubyte *name) } #endif /* __APPLE__ */ -#if defined(__sgi) || defined (__sun) +#if defined(__sgi) || defined (__sun) || defined(__linux__) #include <dlfcn.h> #include <stdio.h> #include <stdlib.h> @@ -94,7 +116,11 @@ void* dlGetProcAddress (const GLubyte* name) if (h == NULL) { if ((h = dlopen(NULL, RTLD_LAZY | RTLD_LOCAL)) == NULL) return NULL; +#ifdef __linux__ + gpa = dlsym(h, "glXGetProcAddressARB"); +#else gpa = dlsym(h, "glXGetProcAddress"); +#endif } if (gpa != NULL) @@ -108,14 +134,14 @@ void* dlGetProcAddress (const GLubyte* name) * Define glewGetProcAddress. */ #if defined(_WIN32) -# define glewGetProcAddress(name) wglGetProcAddress((LPCSTR)name) +# define glewGetProcAddress(name) WinGetProcAddress((LPCSTR)name) #else # if defined(__APPLE__) # define glewGetProcAddress(name) NSGLGetProcAddress(name) # else -# if defined(__sgi) || defined(__sun) +# if defined(__sgi) || defined(__sun) || defined(__linux__) # define glewGetProcAddress(name) dlGetProcAddress(name) -# else /* __linux */ +# else /* Used to use this for Linux, but no longer */ # define glewGetProcAddress(name) (*glXGetProcAddressARB)(name) # endif # endif @@ -210,6 +236,343 @@ static GLboolean _glewStrSame3 (GLubyte** a, GLuint* na, const GLubyte* b, GLuin #if !defined(_WIN32) || !defined(GLEW_MX) +PFNGLACCUMPROC __glewAccum = NULL; +PFNGLALPHAFUNCPROC __glewAlphaFunc = NULL; +PFNGLARETEXTURESRESIDENTPROC __glewAreTexturesResident = NULL; +PFNGLARRAYELEMENTPROC __glewArrayElement = NULL; +PFNGLBEGINPROC __glewBegin = NULL; +PFNGLBINDTEXTUREPROC __glewBindTexture = NULL; +PFNGLBITMAPPROC __glewBitmap = NULL; +PFNGLBLENDFUNCPROC __glewBlendFunc = NULL; +PFNGLCALLLISTPROC __glewCallList = NULL; +PFNGLCALLLISTSPROC __glewCallLists = NULL; +PFNGLCLEARPROC __glewClear = NULL; +PFNGLCLEARACCUMPROC __glewClearAccum = NULL; +PFNGLCLEARCOLORPROC __glewClearColor = NULL; +PFNGLCLEARDEPTHPROC __glewClearDepth = NULL; +PFNGLCLEARINDEXPROC __glewClearIndex = NULL; +PFNGLCLEARSTENCILPROC __glewClearStencil = NULL; +PFNGLCLIPPLANEPROC __glewClipPlane = NULL; +PFNGLCOLOR3BPROC __glewColor3b = NULL; +PFNGLCOLOR3BVPROC __glewColor3bv = NULL; +PFNGLCOLOR3DPROC __glewColor3d = NULL; +PFNGLCOLOR3DVPROC __glewColor3dv = NULL; +PFNGLCOLOR3FPROC __glewColor3f = NULL; +PFNGLCOLOR3FVPROC __glewColor3fv = NULL; +PFNGLCOLOR3IPROC __glewColor3i = NULL; +PFNGLCOLOR3IVPROC __glewColor3iv = NULL; +PFNGLCOLOR3SPROC __glewColor3s = NULL; +PFNGLCOLOR3SVPROC __glewColor3sv = NULL; +PFNGLCOLOR3UBPROC __glewColor3ub = NULL; +PFNGLCOLOR3UBVPROC __glewColor3ubv = NULL; +PFNGLCOLOR3UIPROC __glewColor3ui = NULL; +PFNGLCOLOR3UIVPROC __glewColor3uiv = NULL; +PFNGLCOLOR3USPROC __glewColor3us = NULL; +PFNGLCOLOR3USVPROC __glewColor3usv = NULL; +PFNGLCOLOR4BPROC __glewColor4b = NULL; +PFNGLCOLOR4BVPROC __glewColor4bv = NULL; +PFNGLCOLOR4DPROC __glewColor4d = NULL; +PFNGLCOLOR4DVPROC __glewColor4dv = NULL; +PFNGLCOLOR4FPROC __glewColor4f = NULL; +PFNGLCOLOR4FVPROC __glewColor4fv = NULL; +PFNGLCOLOR4IPROC __glewColor4i = NULL; +PFNGLCOLOR4IVPROC __glewColor4iv = NULL; +PFNGLCOLOR4SPROC __glewColor4s = NULL; +PFNGLCOLOR4SVPROC __glewColor4sv = NULL; +PFNGLCOLOR4UBPROC __glewColor4ub = NULL; +PFNGLCOLOR4UBVPROC __glewColor4ubv = NULL; +PFNGLCOLOR4UIPROC __glewColor4ui = NULL; +PFNGLCOLOR4UIVPROC __glewColor4uiv = NULL; +PFNGLCOLOR4USPROC __glewColor4us = NULL; +PFNGLCOLOR4USVPROC __glewColor4usv = NULL; +PFNGLCOLORMASKPROC __glewColorMask = NULL; +PFNGLCOLORMATERIALPROC __glewColorMaterial = NULL; +PFNGLCOLORPOINTERPROC __glewColorPointer = NULL; +PFNGLCOPYPIXELSPROC __glewCopyPixels = NULL; +PFNGLCOPYTEXIMAGE1DPROC __glewCopyTexImage1D = NULL; +PFNGLCOPYTEXIMAGE2DPROC __glewCopyTexImage2D = NULL; +PFNGLCOPYTEXSUBIMAGE1DPROC __glewCopyTexSubImage1D = NULL; +PFNGLCOPYTEXSUBIMAGE2DPROC __glewCopyTexSubImage2D = NULL; +PFNGLCULLFACEPROC __glewCullFace = NULL; +PFNGLDELETELISTSPROC __glewDeleteLists = NULL; +PFNGLDELETETEXTURESPROC __glewDeleteTextures = NULL; +PFNGLDEPTHFUNCPROC __glewDepthFunc = NULL; +PFNGLDEPTHMASKPROC __glewDepthMask = NULL; +PFNGLDEPTHRANGEPROC __glewDepthRange = NULL; +PFNGLDISABLEPROC __glewDisable = NULL; +PFNGLDISABLECLIENTSTATEPROC __glewDisableClientState = NULL; +PFNGLDRAWARRAYSPROC __glewDrawArrays = NULL; +PFNGLDRAWBUFFERPROC __glewDrawBuffer = NULL; +PFNGLDRAWELEMENTSPROC __glewDrawElements = NULL; +PFNGLDRAWPIXELSPROC __glewDrawPixels = NULL; +PFNGLEDGEFLAGPROC __glewEdgeFlag = NULL; +PFNGLEDGEFLAGPOINTERPROC __glewEdgeFlagPointer = NULL; +PFNGLEDGEFLAGVPROC __glewEdgeFlagv = NULL; +PFNGLENABLEPROC __glewEnable = NULL; +PFNGLENABLECLIENTSTATEPROC __glewEnableClientState = NULL; +PFNGLENDPROC __glewEnd = NULL; +PFNGLENDLISTPROC __glewEndList = NULL; +PFNGLEVALCOORD1DPROC __glewEvalCoord1d = NULL; +PFNGLEVALCOORD1DVPROC __glewEvalCoord1dv = NULL; +PFNGLEVALCOORD1FPROC __glewEvalCoord1f = NULL; +PFNGLEVALCOORD1FVPROC __glewEvalCoord1fv = NULL; +PFNGLEVALCOORD2DPROC __glewEvalCoord2d = NULL; +PFNGLEVALCOORD2DVPROC __glewEvalCoord2dv = NULL; +PFNGLEVALCOORD2FPROC __glewEvalCoord2f = NULL; +PFNGLEVALCOORD2FVPROC __glewEvalCoord2fv = NULL; +PFNGLEVALMESH1PROC __glewEvalMesh1 = NULL; +PFNGLEVALMESH2PROC __glewEvalMesh2 = NULL; +PFNGLEVALPOINT1PROC __glewEvalPoint1 = NULL; +PFNGLEVALPOINT2PROC __glewEvalPoint2 = NULL; +PFNGLFEEDBACKBUFFERPROC __glewFeedbackBuffer = NULL; +PFNGLFINISHPROC __glewFinish = NULL; +PFNGLFLUSHPROC __glewFlush = NULL; +PFNGLFOGFPROC __glewFogf = NULL; +PFNGLFOGFVPROC __glewFogfv = NULL; +PFNGLFOGIPROC __glewFogi = NULL; +PFNGLFOGIVPROC __glewFogiv = NULL; +PFNGLFRONTFACEPROC __glewFrontFace = NULL; +PFNGLFRUSTUMPROC __glewFrustum = NULL; +PFNGLGENLISTSPROC __glewGenLists = NULL; +PFNGLGENTEXTURESPROC __glewGenTextures = NULL; +PFNGLGETBOOLEANVPROC __glewGetBooleanv = NULL; +PFNGLGETCLIPPLANEPROC __glewGetClipPlane = NULL; +PFNGLGETDOUBLEVPROC __glewGetDoublev = NULL; +PFNGLGETERRORPROC __glewGetError = NULL; +PFNGLGETFLOATVPROC __glewGetFloatv = NULL; +PFNGLGETINTEGERVPROC __glewGetIntegerv = NULL; +PFNGLGETLIGHTFVPROC __glewGetLightfv = NULL; +PFNGLGETLIGHTIVPROC __glewGetLightiv = NULL; +PFNGLGETMAPDVPROC __glewGetMapdv = NULL; +PFNGLGETMAPFVPROC __glewGetMapfv = NULL; +PFNGLGETMAPIVPROC __glewGetMapiv = NULL; +PFNGLGETMATERIALFVPROC __glewGetMaterialfv = NULL; +PFNGLGETMATERIALIVPROC __glewGetMaterialiv = NULL; +PFNGLGETPIXELMAPFVPROC __glewGetPixelMapfv = NULL; +PFNGLGETPIXELMAPUIVPROC __glewGetPixelMapuiv = NULL; +PFNGLGETPIXELMAPUSVPROC __glewGetPixelMapusv = NULL; +PFNGLGETPOINTERVPROC __glewGetPointerv = NULL; +PFNGLGETPOLYGONSTIPPLEPROC __glewGetPolygonStipple = NULL; +PFNGLGETSTRINGPROC __glewGetString = NULL; +PFNGLGETTEXENVFVPROC __glewGetTexEnvfv = NULL; +PFNGLGETTEXENVIVPROC __glewGetTexEnviv = NULL; +PFNGLGETTEXGENDVPROC __glewGetTexGendv = NULL; +PFNGLGETTEXGENFVPROC __glewGetTexGenfv = NULL; +PFNGLGETTEXGENIVPROC __glewGetTexGeniv = NULL; +PFNGLGETTEXIMAGEPROC __glewGetTexImage = NULL; +PFNGLGETTEXLEVELPARAMETERFVPROC __glewGetTexLevelParameterfv = NULL; +PFNGLGETTEXLEVELPARAMETERIVPROC __glewGetTexLevelParameteriv = NULL; +PFNGLGETTEXPARAMETERFVPROC __glewGetTexParameterfv = NULL; +PFNGLGETTEXPARAMETERIVPROC __glewGetTexParameteriv = NULL; +PFNGLHINTPROC __glewHint = NULL; +PFNGLINDEXMASKPROC __glewIndexMask = NULL; +PFNGLINDEXPOINTERPROC __glewIndexPointer = NULL; +PFNGLINDEXDPROC __glewIndexd = NULL; +PFNGLINDEXDVPROC __glewIndexdv = NULL; +PFNGLINDEXFPROC __glewIndexf = NULL; +PFNGLINDEXFVPROC __glewIndexfv = NULL; +PFNGLINDEXIPROC __glewIndexi = NULL; +PFNGLINDEXIVPROC __glewIndexiv = NULL; +PFNGLINDEXSPROC __glewIndexs = NULL; +PFNGLINDEXSVPROC __glewIndexsv = NULL; +PFNGLINDEXUBPROC __glewIndexub = NULL; +PFNGLINDEXUBVPROC __glewIndexubv = NULL; +PFNGLINITNAMESPROC __glewInitNames = NULL; +PFNGLINTERLEAVEDARRAYSPROC __glewInterleavedArrays = NULL; +PFNGLISENABLEDPROC __glewIsEnabled = NULL; +PFNGLISLISTPROC __glewIsList = NULL; +PFNGLISTEXTUREPROC __glewIsTexture = NULL; +PFNGLLIGHTMODELFPROC __glewLightModelf = NULL; +PFNGLLIGHTMODELFVPROC __glewLightModelfv = NULL; +PFNGLLIGHTMODELIPROC __glewLightModeli = NULL; +PFNGLLIGHTMODELIVPROC __glewLightModeliv = NULL; +PFNGLLIGHTFPROC __glewLightf = NULL; +PFNGLLIGHTFVPROC __glewLightfv = NULL; +PFNGLLIGHTIPROC __glewLighti = NULL; +PFNGLLIGHTIVPROC __glewLightiv = NULL; +PFNGLLINESTIPPLEPROC __glewLineStipple = NULL; +PFNGLLINEWIDTHPROC __glewLineWidth = NULL; +PFNGLLISTBASEPROC __glewListBase = NULL; +PFNGLLOADIDENTITYPROC __glewLoadIdentity = NULL; +PFNGLLOADMATRIXDPROC __glewLoadMatrixd = NULL; +PFNGLLOADMATRIXFPROC __glewLoadMatrixf = NULL; +PFNGLLOADNAMEPROC __glewLoadName = NULL; +PFNGLLOGICOPPROC __glewLogicOp = NULL; +PFNGLMAP1DPROC __glewMap1d = NULL; +PFNGLMAP1FPROC __glewMap1f = NULL; +PFNGLMAP2DPROC __glewMap2d = NULL; +PFNGLMAP2FPROC __glewMap2f = NULL; +PFNGLMAPGRID1DPROC __glewMapGrid1d = NULL; +PFNGLMAPGRID1FPROC __glewMapGrid1f = NULL; +PFNGLMAPGRID2DPROC __glewMapGrid2d = NULL; +PFNGLMAPGRID2FPROC __glewMapGrid2f = NULL; +PFNGLMATERIALFPROC __glewMaterialf = NULL; +PFNGLMATERIALFVPROC __glewMaterialfv = NULL; +PFNGLMATERIALIPROC __glewMateriali = NULL; +PFNGLMATERIALIVPROC __glewMaterialiv = NULL; +PFNGLMATRIXMODEPROC __glewMatrixMode = NULL; +PFNGLMULTMATRIXDPROC __glewMultMatrixd = NULL; +PFNGLMULTMATRIXFPROC __glewMultMatrixf = NULL; +PFNGLNEWLISTPROC __glewNewList = NULL; +PFNGLNORMAL3BPROC __glewNormal3b = NULL; +PFNGLNORMAL3BVPROC __glewNormal3bv = NULL; +PFNGLNORMAL3DPROC __glewNormal3d = NULL; +PFNGLNORMAL3DVPROC __glewNormal3dv = NULL; +PFNGLNORMAL3FPROC __glewNormal3f = NULL; +PFNGLNORMAL3FVPROC __glewNormal3fv = NULL; +PFNGLNORMAL3IPROC __glewNormal3i = NULL; +PFNGLNORMAL3IVPROC __glewNormal3iv = NULL; +PFNGLNORMAL3SPROC __glewNormal3s = NULL; +PFNGLNORMAL3SVPROC __glewNormal3sv = NULL; +PFNGLNORMALPOINTERPROC __glewNormalPointer = NULL; +PFNGLORTHOPROC __glewOrtho = NULL; +PFNGLPASSTHROUGHPROC __glewPassThrough = NULL; +PFNGLPIXELMAPFVPROC __glewPixelMapfv = NULL; +PFNGLPIXELMAPUIVPROC __glewPixelMapuiv = NULL; +PFNGLPIXELMAPUSVPROC __glewPixelMapusv = NULL; +PFNGLPIXELSTOREFPROC __glewPixelStoref = NULL; +PFNGLPIXELSTOREIPROC __glewPixelStorei = NULL; +PFNGLPIXELTRANSFERFPROC __glewPixelTransferf = NULL; +PFNGLPIXELTRANSFERIPROC __glewPixelTransferi = NULL; +PFNGLPIXELZOOMPROC __glewPixelZoom = NULL; +PFNGLPOINTSIZEPROC __glewPointSize = NULL; +PFNGLPOLYGONMODEPROC __glewPolygonMode = NULL; +PFNGLPOLYGONOFFSETPROC __glewPolygonOffset = NULL; +PFNGLPOLYGONSTIPPLEPROC __glewPolygonStipple = NULL; +PFNGLPOPATTRIBPROC __glewPopAttrib = NULL; +PFNGLPOPCLIENTATTRIBPROC __glewPopClientAttrib = NULL; +PFNGLPOPMATRIXPROC __glewPopMatrix = NULL; +PFNGLPOPNAMEPROC __glewPopName = NULL; +PFNGLPRIORITIZETEXTURESPROC __glewPrioritizeTextures = NULL; +PFNGLPUSHATTRIBPROC __glewPushAttrib = NULL; +PFNGLPUSHCLIENTATTRIBPROC __glewPushClientAttrib = NULL; +PFNGLPUSHMATRIXPROC __glewPushMatrix = NULL; +PFNGLPUSHNAMEPROC __glewPushName = NULL; +PFNGLRASTERPOS2DPROC __glewRasterPos2d = NULL; +PFNGLRASTERPOS2DVPROC __glewRasterPos2dv = NULL; +PFNGLRASTERPOS2FPROC __glewRasterPos2f = NULL; +PFNGLRASTERPOS2FVPROC __glewRasterPos2fv = NULL; +PFNGLRASTERPOS2IPROC __glewRasterPos2i = NULL; +PFNGLRASTERPOS2IVPROC __glewRasterPos2iv = NULL; +PFNGLRASTERPOS2SPROC __glewRasterPos2s = NULL; +PFNGLRASTERPOS2SVPROC __glewRasterPos2sv = NULL; +PFNGLRASTERPOS3DPROC __glewRasterPos3d = NULL; +PFNGLRASTERPOS3DVPROC __glewRasterPos3dv = NULL; +PFNGLRASTERPOS3FPROC __glewRasterPos3f = NULL; +PFNGLRASTERPOS3FVPROC __glewRasterPos3fv = NULL; +PFNGLRASTERPOS3IPROC __glewRasterPos3i = NULL; +PFNGLRASTERPOS3IVPROC __glewRasterPos3iv = NULL; +PFNGLRASTERPOS3SPROC __glewRasterPos3s = NULL; +PFNGLRASTERPOS3SVPROC __glewRasterPos3sv = NULL; +PFNGLRASTERPOS4DPROC __glewRasterPos4d = NULL; +PFNGLRASTERPOS4DVPROC __glewRasterPos4dv = NULL; +PFNGLRASTERPOS4FPROC __glewRasterPos4f = NULL; +PFNGLRASTERPOS4FVPROC __glewRasterPos4fv = NULL; +PFNGLRASTERPOS4IPROC __glewRasterPos4i = NULL; +PFNGLRASTERPOS4IVPROC __glewRasterPos4iv = NULL; +PFNGLRASTERPOS4SPROC __glewRasterPos4s = NULL; +PFNGLRASTERPOS4SVPROC __glewRasterPos4sv = NULL; +PFNGLREADBUFFERPROC __glewReadBuffer = NULL; +PFNGLREADPIXELSPROC __glewReadPixels = NULL; +PFNGLRECTDPROC __glewRectd = NULL; +PFNGLRECTDVPROC __glewRectdv = NULL; +PFNGLRECTFPROC __glewRectf = NULL; +PFNGLRECTFVPROC __glewRectfv = NULL; +PFNGLRECTIPROC __glewRecti = NULL; +PFNGLRECTIVPROC __glewRectiv = NULL; +PFNGLRECTSPROC __glewRects = NULL; +PFNGLRECTSVPROC __glewRectsv = NULL; +PFNGLRENDERMODEPROC __glewRenderMode = NULL; +PFNGLROTATEDPROC __glewRotated = NULL; +PFNGLROTATEFPROC __glewRotatef = NULL; +PFNGLSCALEDPROC __glewScaled = NULL; +PFNGLSCALEFPROC __glewScalef = NULL; +PFNGLSCISSORPROC __glewScissor = NULL; +PFNGLSELECTBUFFERPROC __glewSelectBuffer = NULL; +PFNGLSHADEMODELPROC __glewShadeModel = NULL; +PFNGLSTENCILFUNCPROC __glewStencilFunc = NULL; +PFNGLSTENCILMASKPROC __glewStencilMask = NULL; +PFNGLSTENCILOPPROC __glewStencilOp = NULL; +PFNGLTEXCOORD1DPROC __glewTexCoord1d = NULL; +PFNGLTEXCOORD1DVPROC __glewTexCoord1dv = NULL; +PFNGLTEXCOORD1FPROC __glewTexCoord1f = NULL; +PFNGLTEXCOORD1FVPROC __glewTexCoord1fv = NULL; +PFNGLTEXCOORD1IPROC __glewTexCoord1i = NULL; +PFNGLTEXCOORD1IVPROC __glewTexCoord1iv = NULL; +PFNGLTEXCOORD1SPROC __glewTexCoord1s = NULL; +PFNGLTEXCOORD1SVPROC __glewTexCoord1sv = NULL; +PFNGLTEXCOORD2DPROC __glewTexCoord2d = NULL; +PFNGLTEXCOORD2DVPROC __glewTexCoord2dv = NULL; +PFNGLTEXCOORD2FPROC __glewTexCoord2f = NULL; +PFNGLTEXCOORD2FVPROC __glewTexCoord2fv = NULL; +PFNGLTEXCOORD2IPROC __glewTexCoord2i = NULL; +PFNGLTEXCOORD2IVPROC __glewTexCoord2iv = NULL; +PFNGLTEXCOORD2SPROC __glewTexCoord2s = NULL; +PFNGLTEXCOORD2SVPROC __glewTexCoord2sv = NULL; +PFNGLTEXCOORD3DPROC __glewTexCoord3d = NULL; +PFNGLTEXCOORD3DVPROC __glewTexCoord3dv = NULL; +PFNGLTEXCOORD3FPROC __glewTexCoord3f = NULL; +PFNGLTEXCOORD3FVPROC __glewTexCoord3fv = NULL; +PFNGLTEXCOORD3IPROC __glewTexCoord3i = NULL; +PFNGLTEXCOORD3IVPROC __glewTexCoord3iv = NULL; +PFNGLTEXCOORD3SPROC __glewTexCoord3s = NULL; +PFNGLTEXCOORD3SVPROC __glewTexCoord3sv = NULL; +PFNGLTEXCOORD4DPROC __glewTexCoord4d = NULL; +PFNGLTEXCOORD4DVPROC __glewTexCoord4dv = NULL; +PFNGLTEXCOORD4FPROC __glewTexCoord4f = NULL; +PFNGLTEXCOORD4FVPROC __glewTexCoord4fv = NULL; +PFNGLTEXCOORD4IPROC __glewTexCoord4i = NULL; +PFNGLTEXCOORD4IVPROC __glewTexCoord4iv = NULL; +PFNGLTEXCOORD4SPROC __glewTexCoord4s = NULL; +PFNGLTEXCOORD4SVPROC __glewTexCoord4sv = NULL; +PFNGLTEXCOORDPOINTERPROC __glewTexCoordPointer = NULL; +PFNGLTEXENVFPROC __glewTexEnvf = NULL; +PFNGLTEXENVFVPROC __glewTexEnvfv = NULL; +PFNGLTEXENVIPROC __glewTexEnvi = NULL; +PFNGLTEXENVIVPROC __glewTexEnviv = NULL; +PFNGLTEXGENDPROC __glewTexGend = NULL; +PFNGLTEXGENDVPROC __glewTexGendv = NULL; +PFNGLTEXGENFPROC __glewTexGenf = NULL; +PFNGLTEXGENFVPROC __glewTexGenfv = NULL; +PFNGLTEXGENIPROC __glewTexGeni = NULL; +PFNGLTEXGENIVPROC __glewTexGeniv = NULL; +PFNGLTEXIMAGE1DPROC __glewTexImage1D = NULL; +PFNGLTEXIMAGE2DPROC __glewTexImage2D = NULL; +PFNGLTEXPARAMETERFPROC __glewTexParameterf = NULL; +PFNGLTEXPARAMETERFVPROC __glewTexParameterfv = NULL; +PFNGLTEXPARAMETERIPROC __glewTexParameteri = NULL; +PFNGLTEXPARAMETERIVPROC __glewTexParameteriv = NULL; +PFNGLTEXSUBIMAGE1DPROC __glewTexSubImage1D = NULL; +PFNGLTEXSUBIMAGE2DPROC __glewTexSubImage2D = NULL; +PFNGLTRANSLATEDPROC __glewTranslated = NULL; +PFNGLTRANSLATEFPROC __glewTranslatef = NULL; +PFNGLVERTEX2DPROC __glewVertex2d = NULL; +PFNGLVERTEX2DVPROC __glewVertex2dv = NULL; +PFNGLVERTEX2FPROC __glewVertex2f = NULL; +PFNGLVERTEX2FVPROC __glewVertex2fv = NULL; +PFNGLVERTEX2IPROC __glewVertex2i = NULL; +PFNGLVERTEX2IVPROC __glewVertex2iv = NULL; +PFNGLVERTEX2SPROC __glewVertex2s = NULL; +PFNGLVERTEX2SVPROC __glewVertex2sv = NULL; +PFNGLVERTEX3DPROC __glewVertex3d = NULL; +PFNGLVERTEX3DVPROC __glewVertex3dv = NULL; +PFNGLVERTEX3FPROC __glewVertex3f = NULL; +PFNGLVERTEX3FVPROC __glewVertex3fv = NULL; +PFNGLVERTEX3IPROC __glewVertex3i = NULL; +PFNGLVERTEX3IVPROC __glewVertex3iv = NULL; +PFNGLVERTEX3SPROC __glewVertex3s = NULL; +PFNGLVERTEX3SVPROC __glewVertex3sv = NULL; +PFNGLVERTEX4DPROC __glewVertex4d = NULL; +PFNGLVERTEX4DVPROC __glewVertex4dv = NULL; +PFNGLVERTEX4FPROC __glewVertex4f = NULL; +PFNGLVERTEX4FVPROC __glewVertex4fv = NULL; +PFNGLVERTEX4IPROC __glewVertex4i = NULL; +PFNGLVERTEX4IVPROC __glewVertex4iv = NULL; +PFNGLVERTEX4SPROC __glewVertex4s = NULL; +PFNGLVERTEX4SVPROC __glewVertex4sv = NULL; +PFNGLVERTEXPOINTERPROC __glewVertexPointer = NULL; +PFNGLVIEWPORTPROC __glewViewport = NULL; + PFNGLCOPYTEXSUBIMAGE3DPROC __glewCopyTexSubImage3D = NULL; PFNGLDRAWRANGEELEMENTSPROC __glewDrawRangeElements = NULL; PFNGLTEXIMAGE3DPROC __glewTexImage3D = NULL; @@ -2157,6 +2520,354 @@ GLboolean __GLEW_WIN_swap_hint = GL_FALSE; #endif /* !GLEW_MX */ +#ifdef GL_VERSION_1_1 + +static GLboolean _glewInit_GL_VERSION_1_1 (GLEW_CONTEXT_ARG_DEF_INIT) +{ + GLboolean r = GL_FALSE; + + r = ((glAccum = (PFNGLACCUMPROC)glewGetProcAddress((const GLubyte*)"glAccum")) == NULL) || r; + r = ((glAlphaFunc = (PFNGLALPHAFUNCPROC)glewGetProcAddress((const GLubyte*)"glAlphaFunc")) == NULL) || r; + r = ((glAreTexturesResident = (PFNGLARETEXTURESRESIDENTPROC)glewGetProcAddress((const GLubyte*)"glAreTexturesResident")) == NULL) || r; + r = ((glArrayElement = (PFNGLARRAYELEMENTPROC)glewGetProcAddress((const GLubyte*)"glArrayElement")) == NULL) || r; + r = ((glBegin = (PFNGLBEGINPROC)glewGetProcAddress((const GLubyte*)"glBegin")) == NULL) || r; + r = ((glBindTexture = (PFNGLBINDTEXTUREPROC)glewGetProcAddress((const GLubyte*)"glBindTexture")) == NULL) || r; + r = ((glBitmap = (PFNGLBITMAPPROC)glewGetProcAddress((const GLubyte*)"glBitmap")) == NULL) || r; + r = ((glBlendFunc = (PFNGLBLENDFUNCPROC)glewGetProcAddress((const GLubyte*)"glBlendFunc")) == NULL) || r; + r = ((glCallList = (PFNGLCALLLISTPROC)glewGetProcAddress((const GLubyte*)"glCallList")) == NULL) || r; + r = ((glCallLists = (PFNGLCALLLISTSPROC)glewGetProcAddress((const GLubyte*)"glCallLists")) == NULL) || r; + r = ((glClear = (PFNGLCLEARPROC)glewGetProcAddress((const GLubyte*)"glClear")) == NULL) || r; + r = ((glClearAccum = (PFNGLCLEARACCUMPROC)glewGetProcAddress((const GLubyte*)"glClearAccum")) == NULL) || r; + r = ((glClearColor = (PFNGLCLEARCOLORPROC)glewGetProcAddress((const GLubyte*)"glClearColor")) == NULL) || r; + r = ((glClearDepth = (PFNGLCLEARDEPTHPROC)glewGetProcAddress((const GLubyte*)"glClearDepth")) == NULL) || r; + r = ((glClearIndex = (PFNGLCLEARINDEXPROC)glewGetProcAddress((const GLubyte*)"glClearIndex")) == NULL) || r; + r = ((glClearStencil = (PFNGLCLEARSTENCILPROC)glewGetProcAddress((const GLubyte*)"glClearStencil")) == NULL) || r; + r = ((glClipPlane = (PFNGLCLIPPLANEPROC)glewGetProcAddress((const GLubyte*)"glClipPlane")) == NULL) || r; + r = ((glColor3b = (PFNGLCOLOR3BPROC)glewGetProcAddress((const GLubyte*)"glColor3b")) == NULL) || r; + r = ((glColor3bv = (PFNGLCOLOR3BVPROC)glewGetProcAddress((const GLubyte*)"glColor3bv")) == NULL) || r; + r = ((glColor3d = (PFNGLCOLOR3DPROC)glewGetProcAddress((const GLubyte*)"glColor3d")) == NULL) || r; + r = ((glColor3dv = (PFNGLCOLOR3DVPROC)glewGetProcAddress((const GLubyte*)"glColor3dv")) == NULL) || r; + r = ((glColor3f = (PFNGLCOLOR3FPROC)glewGetProcAddress((const GLubyte*)"glColor3f")) == NULL) || r; + r = ((glColor3fv = (PFNGLCOLOR3FVPROC)glewGetProcAddress((const GLubyte*)"glColor3fv")) == NULL) || r; + r = ((glColor3i = (PFNGLCOLOR3IPROC)glewGetProcAddress((const GLubyte*)"glColor3i")) == NULL) || r; + r = ((glColor3iv = (PFNGLCOLOR3IVPROC)glewGetProcAddress((const GLubyte*)"glColor3iv")) == NULL) || r; + r = ((glColor3s = (PFNGLCOLOR3SPROC)glewGetProcAddress((const GLubyte*)"glColor3s")) == NULL) || r; + r = ((glColor3sv = (PFNGLCOLOR3SVPROC)glewGetProcAddress((const GLubyte*)"glColor3sv")) == NULL) || r; + r = ((glColor3ub = (PFNGLCOLOR3UBPROC)glewGetProcAddress((const GLubyte*)"glColor3ub")) == NULL) || r; + r = ((glColor3ubv = (PFNGLCOLOR3UBVPROC)glewGetProcAddress((const GLubyte*)"glColor3ubv")) == NULL) || r; + r = ((glColor3ui = (PFNGLCOLOR3UIPROC)glewGetProcAddress((const GLubyte*)"glColor3ui")) == NULL) || r; + r = ((glColor3uiv = (PFNGLCOLOR3UIVPROC)glewGetProcAddress((const GLubyte*)"glColor3uiv")) == NULL) || r; + r = ((glColor3us = (PFNGLCOLOR3USPROC)glewGetProcAddress((const GLubyte*)"glColor3us")) == NULL) || r; + r = ((glColor3usv = (PFNGLCOLOR3USVPROC)glewGetProcAddress((const GLubyte*)"glColor3usv")) == NULL) || r; + r = ((glColor4b = (PFNGLCOLOR4BPROC)glewGetProcAddress((const GLubyte*)"glColor4b")) == NULL) || r; + r = ((glColor4bv = (PFNGLCOLOR4BVPROC)glewGetProcAddress((const GLubyte*)"glColor4bv")) == NULL) || r; + r = ((glColor4d = (PFNGLCOLOR4DPROC)glewGetProcAddress((const GLubyte*)"glColor4d")) == NULL) || r; + r = ((glColor4dv = (PFNGLCOLOR4DVPROC)glewGetProcAddress((const GLubyte*)"glColor4dv")) == NULL) || r; + r = ((glColor4f = (PFNGLCOLOR4FPROC)glewGetProcAddress((const GLubyte*)"glColor4f")) == NULL) || r; + r = ((glColor4fv = (PFNGLCOLOR4FVPROC)glewGetProcAddress((const GLubyte*)"glColor4fv")) == NULL) || r; + r = ((glColor4i = (PFNGLCOLOR4IPROC)glewGetProcAddress((const GLubyte*)"glColor4i")) == NULL) || r; + r = ((glColor4iv = (PFNGLCOLOR4IVPROC)glewGetProcAddress((const GLubyte*)"glColor4iv")) == NULL) || r; + r = ((glColor4s = (PFNGLCOLOR4SPROC)glewGetProcAddress((const GLubyte*)"glColor4s")) == NULL) || r; + r = ((glColor4sv = (PFNGLCOLOR4SVPROC)glewGetProcAddress((const GLubyte*)"glColor4sv")) == NULL) || r; + r = ((glColor4ub = (PFNGLCOLOR4UBPROC)glewGetProcAddress((const GLubyte*)"glColor4ub")) == NULL) || r; + r = ((glColor4ubv = (PFNGLCOLOR4UBVPROC)glewGetProcAddress((const GLubyte*)"glColor4ubv")) == NULL) || r; + r = ((glColor4ui = (PFNGLCOLOR4UIPROC)glewGetProcAddress((const GLubyte*)"glColor4ui")) == NULL) || r; + r = ((glColor4uiv = (PFNGLCOLOR4UIVPROC)glewGetProcAddress((const GLubyte*)"glColor4uiv")) == NULL) || r; + r = ((glColor4us = (PFNGLCOLOR4USPROC)glewGetProcAddress((const GLubyte*)"glColor4us")) == NULL) || r; + r = ((glColor4usv = (PFNGLCOLOR4USVPROC)glewGetProcAddress((const GLubyte*)"glColor4usv")) == NULL) || r; + r = ((glColorMask = (PFNGLCOLORMASKPROC)glewGetProcAddress((const GLubyte*)"glColorMask")) == NULL) || r; + r = ((glColorMaterial = (PFNGLCOLORMATERIALPROC)glewGetProcAddress((const GLubyte*)"glColorMaterial")) == NULL) || r; + r = ((glColorPointer = (PFNGLCOLORPOINTERPROC)glewGetProcAddress((const GLubyte*)"glColorPointer")) == NULL) || r; + r = ((glCopyPixels = (PFNGLCOPYPIXELSPROC)glewGetProcAddress((const GLubyte*)"glCopyPixels")) == NULL) || r; + r = ((glCopyTexImage1D = (PFNGLCOPYTEXIMAGE1DPROC)glewGetProcAddress((const GLubyte*)"glCopyTexImage1D")) == NULL) || r; + r = ((glCopyTexImage2D = (PFNGLCOPYTEXIMAGE2DPROC)glewGetProcAddress((const GLubyte*)"glCopyTexImage2D")) == NULL) || r; + r = ((glCopyTexSubImage1D = (PFNGLCOPYTEXSUBIMAGE1DPROC)glewGetProcAddress((const GLubyte*)"glCopyTexSubImage1D")) == NULL) || r; + r = ((glCopyTexSubImage2D = (PFNGLCOPYTEXSUBIMAGE2DPROC)glewGetProcAddress((const GLubyte*)"glCopyTexSubImage2D")) == NULL) || r; + r = ((glCullFace = (PFNGLCULLFACEPROC)glewGetProcAddress((const GLubyte*)"glCullFace")) == NULL) || r; + r = ((glDeleteLists = (PFNGLDELETELISTSPROC)glewGetProcAddress((const GLubyte*)"glDeleteLists")) == NULL) || r; + r = ((glDeleteTextures = (PFNGLDELETETEXTURESPROC)glewGetProcAddress((const GLubyte*)"glDeleteTextures")) == NULL) || r; + r = ((glDepthFunc = (PFNGLDEPTHFUNCPROC)glewGetProcAddress((const GLubyte*)"glDepthFunc")) == NULL) || r; + r = ((glDepthMask = (PFNGLDEPTHMASKPROC)glewGetProcAddress((const GLubyte*)"glDepthMask")) == NULL) || r; + r = ((glDepthRange = (PFNGLDEPTHRANGEPROC)glewGetProcAddress((const GLubyte*)"glDepthRange")) == NULL) || r; + r = ((glDisable = (PFNGLDISABLEPROC)glewGetProcAddress((const GLubyte*)"glDisable")) == NULL) || r; + r = ((glDisableClientState = (PFNGLDISABLECLIENTSTATEPROC)glewGetProcAddress((const GLubyte*)"glDisableClientState")) == NULL) || r; + r = ((glDrawArrays = (PFNGLDRAWARRAYSPROC)glewGetProcAddress((const GLubyte*)"glDrawArrays")) == NULL) || r; + r = ((glDrawBuffer = (PFNGLDRAWBUFFERPROC)glewGetProcAddress((const GLubyte*)"glDrawBuffer")) == NULL) || r; + r = ((glDrawElements = (PFNGLDRAWELEMENTSPROC)glewGetProcAddress((const GLubyte*)"glDrawElements")) == NULL) || r; + r = ((glDrawPixels = (PFNGLDRAWPIXELSPROC)glewGetProcAddress((const GLubyte*)"glDrawPixels")) == NULL) || r; + r = ((glEdgeFlag = (PFNGLEDGEFLAGPROC)glewGetProcAddress((const GLubyte*)"glEdgeFlag")) == NULL) || r; + r = ((glEdgeFlagPointer = (PFNGLEDGEFLAGPOINTERPROC)glewGetProcAddress((const GLubyte*)"glEdgeFlagPointer")) == NULL) || r; + r = ((glEdgeFlagv = (PFNGLEDGEFLAGVPROC)glewGetProcAddress((const GLubyte*)"glEdgeFlagv")) == NULL) || r; + r = ((glEnable = (PFNGLENABLEPROC)glewGetProcAddress((const GLubyte*)"glEnable")) == NULL) || r; + r = ((glEnableClientState = (PFNGLENABLECLIENTSTATEPROC)glewGetProcAddress((const GLubyte*)"glEnableClientState")) == NULL) || r; + r = ((glEnd = (PFNGLENDPROC)glewGetProcAddress((const GLubyte*)"glEnd")) == NULL) || r; + r = ((glEndList = (PFNGLENDLISTPROC)glewGetProcAddress((const GLubyte*)"glEndList")) == NULL) || r; + r = ((glEvalCoord1d = (PFNGLEVALCOORD1DPROC)glewGetProcAddress((const GLubyte*)"glEvalCoord1d")) == NULL) || r; + r = ((glEvalCoord1dv = (PFNGLEVALCOORD1DVPROC)glewGetProcAddress((const GLubyte*)"glEvalCoord1dv")) == NULL) || r; + r = ((glEvalCoord1f = (PFNGLEVALCOORD1FPROC)glewGetProcAddress((const GLubyte*)"glEvalCoord1f")) == NULL) || r; + r = ((glEvalCoord1fv = (PFNGLEVALCOORD1FVPROC)glewGetProcAddress((const GLubyte*)"glEvalCoord1fv")) == NULL) || r; + r = ((glEvalCoord2d = (PFNGLEVALCOORD2DPROC)glewGetProcAddress((const GLubyte*)"glEvalCoord2d")) == NULL) || r; + r = ((glEvalCoord2dv = (PFNGLEVALCOORD2DVPROC)glewGetProcAddress((const GLubyte*)"glEvalCoord2dv")) == NULL) || r; + r = ((glEvalCoord2f = (PFNGLEVALCOORD2FPROC)glewGetProcAddress((const GLubyte*)"glEvalCoord2f")) == NULL) || r; + r = ((glEvalCoord2fv = (PFNGLEVALCOORD2FVPROC)glewGetProcAddress((const GLubyte*)"glEvalCoord2fv")) == NULL) || r; + r = ((glEvalMesh1 = (PFNGLEVALMESH1PROC)glewGetProcAddress((const GLubyte*)"glEvalMesh1")) == NULL) || r; + r = ((glEvalMesh2 = (PFNGLEVALMESH2PROC)glewGetProcAddress((const GLubyte*)"glEvalMesh2")) == NULL) || r; + r = ((glEvalPoint1 = (PFNGLEVALPOINT1PROC)glewGetProcAddress((const GLubyte*)"glEvalPoint1")) == NULL) || r; + r = ((glEvalPoint2 = (PFNGLEVALPOINT2PROC)glewGetProcAddress((const GLubyte*)"glEvalPoint2")) == NULL) || r; + r = ((glFeedbackBuffer = (PFNGLFEEDBACKBUFFERPROC)glewGetProcAddress((const GLubyte*)"glFeedbackBuffer")) == NULL) || r; + r = ((glFinish = (PFNGLFINISHPROC)glewGetProcAddress((const GLubyte*)"glFinish")) == NULL) || r; + r = ((glFlush = (PFNGLFLUSHPROC)glewGetProcAddress((const GLubyte*)"glFlush")) == NULL) || r; + r = ((glFogf = (PFNGLFOGFPROC)glewGetProcAddress((const GLubyte*)"glFogf")) == NULL) || r; + r = ((glFogfv = (PFNGLFOGFVPROC)glewGetProcAddress((const GLubyte*)"glFogfv")) == NULL) || r; + r = ((glFogi = (PFNGLFOGIPROC)glewGetProcAddress((const GLubyte*)"glFogi")) == NULL) || r; + r = ((glFogiv = (PFNGLFOGIVPROC)glewGetProcAddress((const GLubyte*)"glFogiv")) == NULL) || r; + r = ((glFrontFace = (PFNGLFRONTFACEPROC)glewGetProcAddress((const GLubyte*)"glFrontFace")) == NULL) || r; + r = ((glFrustum = (PFNGLFRUSTUMPROC)glewGetProcAddress((const GLubyte*)"glFrustum")) == NULL) || r; + r = ((glGenLists = (PFNGLGENLISTSPROC)glewGetProcAddress((const GLubyte*)"glGenLists")) == NULL) || r; + r = ((glGenTextures = (PFNGLGENTEXTURESPROC)glewGetProcAddress((const GLubyte*)"glGenTextures")) == NULL) || r; + r = ((glGetBooleanv = (PFNGLGETBOOLEANVPROC)glewGetProcAddress((const GLubyte*)"glGetBooleanv")) == NULL) || r; + r = ((glGetClipPlane = (PFNGLGETCLIPPLANEPROC)glewGetProcAddress((const GLubyte*)"glGetClipPlane")) == NULL) || r; + r = ((glGetDoublev = (PFNGLGETDOUBLEVPROC)glewGetProcAddress((const GLubyte*)"glGetDoublev")) == NULL) || r; + r = ((glGetError = (PFNGLGETERRORPROC)glewGetProcAddress((const GLubyte*)"glGetError")) == NULL) || r; + r = ((glGetFloatv = (PFNGLGETFLOATVPROC)glewGetProcAddress((const GLubyte*)"glGetFloatv")) == NULL) || r; + r = ((glGetIntegerv = (PFNGLGETINTEGERVPROC)glewGetProcAddress((const GLubyte*)"glGetIntegerv")) == NULL) || r; + r = ((glGetLightfv = (PFNGLGETLIGHTFVPROC)glewGetProcAddress((const GLubyte*)"glGetLightfv")) == NULL) || r; + r = ((glGetLightiv = (PFNGLGETLIGHTIVPROC)glewGetProcAddress((const GLubyte*)"glGetLightiv")) == NULL) || r; + r = ((glGetMapdv = (PFNGLGETMAPDVPROC)glewGetProcAddress((const GLubyte*)"glGetMapdv")) == NULL) || r; + r = ((glGetMapfv = (PFNGLGETMAPFVPROC)glewGetProcAddress((const GLubyte*)"glGetMapfv")) == NULL) || r; + r = ((glGetMapiv = (PFNGLGETMAPIVPROC)glewGetProcAddress((const GLubyte*)"glGetMapiv")) == NULL) || r; + r = ((glGetMaterialfv = (PFNGLGETMATERIALFVPROC)glewGetProcAddress((const GLubyte*)"glGetMaterialfv")) == NULL) || r; + r = ((glGetMaterialiv = (PFNGLGETMATERIALIVPROC)glewGetProcAddress((const GLubyte*)"glGetMaterialiv")) == NULL) || r; + r = ((glGetPixelMapfv = (PFNGLGETPIXELMAPFVPROC)glewGetProcAddress((const GLubyte*)"glGetPixelMapfv")) == NULL) || r; + r = ((glGetPixelMapuiv = (PFNGLGETPIXELMAPUIVPROC)glewGetProcAddress((const GLubyte*)"glGetPixelMapuiv")) == NULL) || r; + r = ((glGetPixelMapusv = (PFNGLGETPIXELMAPUSVPROC)glewGetProcAddress((const GLubyte*)"glGetPixelMapusv")) == NULL) || r; + r = ((glGetPointerv = (PFNGLGETPOINTERVPROC)glewGetProcAddress((const GLubyte*)"glGetPointerv")) == NULL) || r; + r = ((glGetPolygonStipple = (PFNGLGETPOLYGONSTIPPLEPROC)glewGetProcAddress((const GLubyte*)"glGetPolygonStipple")) == NULL) || r; + r = ((glGetString = (PFNGLGETSTRINGPROC)glewGetProcAddress((const GLubyte*)"glGetString")) == NULL) || r; + r = ((glGetTexEnvfv = (PFNGLGETTEXENVFVPROC)glewGetProcAddress((const GLubyte*)"glGetTexEnvfv")) == NULL) || r; + r = ((glGetTexEnviv = (PFNGLGETTEXENVIVPROC)glewGetProcAddress((const GLubyte*)"glGetTexEnviv")) == NULL) || r; + r = ((glGetTexGendv = (PFNGLGETTEXGENDVPROC)glewGetProcAddress((const GLubyte*)"glGetTexGendv")) == NULL) || r; + r = ((glGetTexGenfv = (PFNGLGETTEXGENFVPROC)glewGetProcAddress((const GLubyte*)"glGetTexGenfv")) == NULL) || r; + r = ((glGetTexGeniv = (PFNGLGETTEXGENIVPROC)glewGetProcAddress((const GLubyte*)"glGetTexGeniv")) == NULL) || r; + r = ((glGetTexImage = (PFNGLGETTEXIMAGEPROC)glewGetProcAddress((const GLubyte*)"glGetTexImage")) == NULL) || r; + r = ((glGetTexLevelParameterfv = (PFNGLGETTEXLEVELPARAMETERFVPROC)glewGetProcAddress((const GLubyte*)"glGetTexLevelParameterfv")) == NULL) || r; + r = ((glGetTexLevelParameteriv = (PFNGLGETTEXLEVELPARAMETERIVPROC)glewGetProcAddress((const GLubyte*)"glGetTexLevelParameteriv")) == NULL) || r; + r = ((glGetTexParameterfv = (PFNGLGETTEXPARAMETERFVPROC)glewGetProcAddress((const GLubyte*)"glGetTexParameterfv")) == NULL) || r; + r = ((glGetTexParameteriv = (PFNGLGETTEXPARAMETERIVPROC)glewGetProcAddress((const GLubyte*)"glGetTexParameteriv")) == NULL) || r; + r = ((glHint = (PFNGLHINTPROC)glewGetProcAddress((const GLubyte*)"glHint")) == NULL) || r; + r = ((glIndexMask = (PFNGLINDEXMASKPROC)glewGetProcAddress((const GLubyte*)"glIndexMask")) == NULL) || r; + r = ((glIndexPointer = (PFNGLINDEXPOINTERPROC)glewGetProcAddress((const GLubyte*)"glIndexPointer")) == NULL) || r; + r = ((glIndexd = (PFNGLINDEXDPROC)glewGetProcAddress((const GLubyte*)"glIndexd")) == NULL) || r; + r = ((glIndexdv = (PFNGLINDEXDVPROC)glewGetProcAddress((const GLubyte*)"glIndexdv")) == NULL) || r; + r = ((glIndexf = (PFNGLINDEXFPROC)glewGetProcAddress((const GLubyte*)"glIndexf")) == NULL) || r; + r = ((glIndexfv = (PFNGLINDEXFVPROC)glewGetProcAddress((const GLubyte*)"glIndexfv")) == NULL) || r; + r = ((glIndexi = (PFNGLINDEXIPROC)glewGetProcAddress((const GLubyte*)"glIndexi")) == NULL) || r; + r = ((glIndexiv = (PFNGLINDEXIVPROC)glewGetProcAddress((const GLubyte*)"glIndexiv")) == NULL) || r; + r = ((glIndexs = (PFNGLINDEXSPROC)glewGetProcAddress((const GLubyte*)"glIndexs")) == NULL) || r; + r = ((glIndexsv = (PFNGLINDEXSVPROC)glewGetProcAddress((const GLubyte*)"glIndexsv")) == NULL) || r; + r = ((glIndexub = (PFNGLINDEXUBPROC)glewGetProcAddress((const GLubyte*)"glIndexub")) == NULL) || r; + r = ((glIndexubv = (PFNGLINDEXUBVPROC)glewGetProcAddress((const GLubyte*)"glIndexubv")) == NULL) || r; + r = ((glInitNames = (PFNGLINITNAMESPROC)glewGetProcAddress((const GLubyte*)"glInitNames")) == NULL) || r; + r = ((glInterleavedArrays = (PFNGLINTERLEAVEDARRAYSPROC)glewGetProcAddress((const GLubyte*)"glInterleavedArrays")) == NULL) || r; + r = ((glIsEnabled = (PFNGLISENABLEDPROC)glewGetProcAddress((const GLubyte*)"glIsEnabled")) == NULL) || r; + r = ((glIsList = (PFNGLISLISTPROC)glewGetProcAddress((const GLubyte*)"glIsList")) == NULL) || r; + r = ((glIsTexture = (PFNGLISTEXTUREPROC)glewGetProcAddress((const GLubyte*)"glIsTexture")) == NULL) || r; + r = ((glLightModelf = (PFNGLLIGHTMODELFPROC)glewGetProcAddress((const GLubyte*)"glLightModelf")) == NULL) || r; + r = ((glLightModelfv = (PFNGLLIGHTMODELFVPROC)glewGetProcAddress((const GLubyte*)"glLightModelfv")) == NULL) || r; + r = ((glLightModeli = (PFNGLLIGHTMODELIPROC)glewGetProcAddress((const GLubyte*)"glLightModeli")) == NULL) || r; + r = ((glLightModeliv = (PFNGLLIGHTMODELIVPROC)glewGetProcAddress((const GLubyte*)"glLightModeliv")) == NULL) || r; + r = ((glLightf = (PFNGLLIGHTFPROC)glewGetProcAddress((const GLubyte*)"glLightf")) == NULL) || r; + r = ((glLightfv = (PFNGLLIGHTFVPROC)glewGetProcAddress((const GLubyte*)"glLightfv")) == NULL) || r; + r = ((glLighti = (PFNGLLIGHTIPROC)glewGetProcAddress((const GLubyte*)"glLighti")) == NULL) || r; + r = ((glLightiv = (PFNGLLIGHTIVPROC)glewGetProcAddress((const GLubyte*)"glLightiv")) == NULL) || r; + r = ((glLineStipple = (PFNGLLINESTIPPLEPROC)glewGetProcAddress((const GLubyte*)"glLineStipple")) == NULL) || r; + r = ((glLineWidth = (PFNGLLINEWIDTHPROC)glewGetProcAddress((const GLubyte*)"glLineWidth")) == NULL) || r; + r = ((glListBase = (PFNGLLISTBASEPROC)glewGetProcAddress((const GLubyte*)"glListBase")) == NULL) || r; + r = ((glLoadIdentity = (PFNGLLOADIDENTITYPROC)glewGetProcAddress((const GLubyte*)"glLoadIdentity")) == NULL) || r; + r = ((glLoadMatrixd = (PFNGLLOADMATRIXDPROC)glewGetProcAddress((const GLubyte*)"glLoadMatrixd")) == NULL) || r; + r = ((glLoadMatrixf = (PFNGLLOADMATRIXFPROC)glewGetProcAddress((const GLubyte*)"glLoadMatrixf")) == NULL) || r; + r = ((glLoadName = (PFNGLLOADNAMEPROC)glewGetProcAddress((const GLubyte*)"glLoadName")) == NULL) || r; + r = ((glLogicOp = (PFNGLLOGICOPPROC)glewGetProcAddress((const GLubyte*)"glLogicOp")) == NULL) || r; + r = ((glMap1d = (PFNGLMAP1DPROC)glewGetProcAddress((const GLubyte*)"glMap1d")) == NULL) || r; + r = ((glMap1f = (PFNGLMAP1FPROC)glewGetProcAddress((const GLubyte*)"glMap1f")) == NULL) || r; + r = ((glMap2d = (PFNGLMAP2DPROC)glewGetProcAddress((const GLubyte*)"glMap2d")) == NULL) || r; + r = ((glMap2f = (PFNGLMAP2FPROC)glewGetProcAddress((const GLubyte*)"glMap2f")) == NULL) || r; + r = ((glMapGrid1d = (PFNGLMAPGRID1DPROC)glewGetProcAddress((const GLubyte*)"glMapGrid1d")) == NULL) || r; + r = ((glMapGrid1f = (PFNGLMAPGRID1FPROC)glewGetProcAddress((const GLubyte*)"glMapGrid1f")) == NULL) || r; + r = ((glMapGrid2d = (PFNGLMAPGRID2DPROC)glewGetProcAddress((const GLubyte*)"glMapGrid2d")) == NULL) || r; + r = ((glMapGrid2f = (PFNGLMAPGRID2FPROC)glewGetProcAddress((const GLubyte*)"glMapGrid2f")) == NULL) || r; + r = ((glMaterialf = (PFNGLMATERIALFPROC)glewGetProcAddress((const GLubyte*)"glMaterialf")) == NULL) || r; + r = ((glMaterialfv = (PFNGLMATERIALFVPROC)glewGetProcAddress((const GLubyte*)"glMaterialfv")) == NULL) || r; + r = ((glMateriali = (PFNGLMATERIALIPROC)glewGetProcAddress((const GLubyte*)"glMateriali")) == NULL) || r; + r = ((glMaterialiv = (PFNGLMATERIALIVPROC)glewGetProcAddress((const GLubyte*)"glMaterialiv")) == NULL) || r; + r = ((glMatrixMode = (PFNGLMATRIXMODEPROC)glewGetProcAddress((const GLubyte*)"glMatrixMode")) == NULL) || r; + r = ((glMultMatrixd = (PFNGLMULTMATRIXDPROC)glewGetProcAddress((const GLubyte*)"glMultMatrixd")) == NULL) || r; + r = ((glMultMatrixf = (PFNGLMULTMATRIXFPROC)glewGetProcAddress((const GLubyte*)"glMultMatrixf")) == NULL) || r; + r = ((glNewList = (PFNGLNEWLISTPROC)glewGetProcAddress((const GLubyte*)"glNewList")) == NULL) || r; + r = ((glNormal3b = (PFNGLNORMAL3BPROC)glewGetProcAddress((const GLubyte*)"glNormal3b")) == NULL) || r; + r = ((glNormal3bv = (PFNGLNORMAL3BVPROC)glewGetProcAddress((const GLubyte*)"glNormal3bv")) == NULL) || r; + r = ((glNormal3d = (PFNGLNORMAL3DPROC)glewGetProcAddress((const GLubyte*)"glNormal3d")) == NULL) || r; + r = ((glNormal3dv = (PFNGLNORMAL3DVPROC)glewGetProcAddress((const GLubyte*)"glNormal3dv")) == NULL) || r; + r = ((glNormal3f = (PFNGLNORMAL3FPROC)glewGetProcAddress((const GLubyte*)"glNormal3f")) == NULL) || r; + r = ((glNormal3fv = (PFNGLNORMAL3FVPROC)glewGetProcAddress((const GLubyte*)"glNormal3fv")) == NULL) || r; + r = ((glNormal3i = (PFNGLNORMAL3IPROC)glewGetProcAddress((const GLubyte*)"glNormal3i")) == NULL) || r; + r = ((glNormal3iv = (PFNGLNORMAL3IVPROC)glewGetProcAddress((const GLubyte*)"glNormal3iv")) == NULL) || r; + r = ((glNormal3s = (PFNGLNORMAL3SPROC)glewGetProcAddress((const GLubyte*)"glNormal3s")) == NULL) || r; + r = ((glNormal3sv = (PFNGLNORMAL3SVPROC)glewGetProcAddress((const GLubyte*)"glNormal3sv")) == NULL) || r; + r = ((glNormalPointer = (PFNGLNORMALPOINTERPROC)glewGetProcAddress((const GLubyte*)"glNormalPointer")) == NULL) || r; + r = ((glOrtho = (PFNGLORTHOPROC)glewGetProcAddress((const GLubyte*)"glOrtho")) == NULL) || r; + r = ((glPassThrough = (PFNGLPASSTHROUGHPROC)glewGetProcAddress((const GLubyte*)"glPassThrough")) == NULL) || r; + r = ((glPixelMapfv = (PFNGLPIXELMAPFVPROC)glewGetProcAddress((const GLubyte*)"glPixelMapfv")) == NULL) || r; + r = ((glPixelMapuiv = (PFNGLPIXELMAPUIVPROC)glewGetProcAddress((const GLubyte*)"glPixelMapuiv")) == NULL) || r; + r = ((glPixelMapusv = (PFNGLPIXELMAPUSVPROC)glewGetProcAddress((const GLubyte*)"glPixelMapusv")) == NULL) || r; + r = ((glPixelStoref = (PFNGLPIXELSTOREFPROC)glewGetProcAddress((const GLubyte*)"glPixelStoref")) == NULL) || r; + r = ((glPixelStorei = (PFNGLPIXELSTOREIPROC)glewGetProcAddress((const GLubyte*)"glPixelStorei")) == NULL) || r; + r = ((glPixelTransferf = (PFNGLPIXELTRANSFERFPROC)glewGetProcAddress((const GLubyte*)"glPixelTransferf")) == NULL) || r; + r = ((glPixelTransferi = (PFNGLPIXELTRANSFERIPROC)glewGetProcAddress((const GLubyte*)"glPixelTransferi")) == NULL) || r; + r = ((glPixelZoom = (PFNGLPIXELZOOMPROC)glewGetProcAddress((const GLubyte*)"glPixelZoom")) == NULL) || r; + r = ((glPointSize = (PFNGLPOINTSIZEPROC)glewGetProcAddress((const GLubyte*)"glPointSize")) == NULL) || r; + r = ((glPolygonMode = (PFNGLPOLYGONMODEPROC)glewGetProcAddress((const GLubyte*)"glPolygonMode")) == NULL) || r; + r = ((glPolygonOffset = (PFNGLPOLYGONOFFSETPROC)glewGetProcAddress((const GLubyte*)"glPolygonOffset")) == NULL) || r; + r = ((glPolygonStipple = (PFNGLPOLYGONSTIPPLEPROC)glewGetProcAddress((const GLubyte*)"glPolygonStipple")) == NULL) || r; + r = ((glPopAttrib = (PFNGLPOPATTRIBPROC)glewGetProcAddress((const GLubyte*)"glPopAttrib")) == NULL) || r; + r = ((glPopClientAttrib = (PFNGLPOPCLIENTATTRIBPROC)glewGetProcAddress((const GLubyte*)"glPopClientAttrib")) == NULL) || r; + r = ((glPopMatrix = (PFNGLPOPMATRIXPROC)glewGetProcAddress((const GLubyte*)"glPopMatrix")) == NULL) || r; + r = ((glPopName = (PFNGLPOPNAMEPROC)glewGetProcAddress((const GLubyte*)"glPopName")) == NULL) || r; + r = ((glPrioritizeTextures = (PFNGLPRIORITIZETEXTURESPROC)glewGetProcAddress((const GLubyte*)"glPrioritizeTextures")) == NULL) || r; + r = ((glPushAttrib = (PFNGLPUSHATTRIBPROC)glewGetProcAddress((const GLubyte*)"glPushAttrib")) == NULL) || r; + r = ((glPushClientAttrib = (PFNGLPUSHCLIENTATTRIBPROC)glewGetProcAddress((const GLubyte*)"glPushClientAttrib")) == NULL) || r; + r = ((glPushMatrix = (PFNGLPUSHMATRIXPROC)glewGetProcAddress((const GLubyte*)"glPushMatrix")) == NULL) || r; + r = ((glPushName = (PFNGLPUSHNAMEPROC)glewGetProcAddress((const GLubyte*)"glPushName")) == NULL) || r; + r = ((glRasterPos2d = (PFNGLRASTERPOS2DPROC)glewGetProcAddress((const GLubyte*)"glRasterPos2d")) == NULL) || r; + r = ((glRasterPos2dv = (PFNGLRASTERPOS2DVPROC)glewGetProcAddress((const GLubyte*)"glRasterPos2dv")) == NULL) || r; + r = ((glRasterPos2f = (PFNGLRASTERPOS2FPROC)glewGetProcAddress((const GLubyte*)"glRasterPos2f")) == NULL) || r; + r = ((glRasterPos2fv = (PFNGLRASTERPOS2FVPROC)glewGetProcAddress((const GLubyte*)"glRasterPos2fv")) == NULL) || r; + r = ((glRasterPos2i = (PFNGLRASTERPOS2IPROC)glewGetProcAddress((const GLubyte*)"glRasterPos2i")) == NULL) || r; + r = ((glRasterPos2iv = (PFNGLRASTERPOS2IVPROC)glewGetProcAddress((const GLubyte*)"glRasterPos2iv")) == NULL) || r; + r = ((glRasterPos2s = (PFNGLRASTERPOS2SPROC)glewGetProcAddress((const GLubyte*)"glRasterPos2s")) == NULL) || r; + r = ((glRasterPos2sv = (PFNGLRASTERPOS2SVPROC)glewGetProcAddress((const GLubyte*)"glRasterPos2sv")) == NULL) || r; + r = ((glRasterPos3d = (PFNGLRASTERPOS3DPROC)glewGetProcAddress((const GLubyte*)"glRasterPos3d")) == NULL) || r; + r = ((glRasterPos3dv = (PFNGLRASTERPOS3DVPROC)glewGetProcAddress((const GLubyte*)"glRasterPos3dv")) == NULL) || r; + r = ((glRasterPos3f = (PFNGLRASTERPOS3FPROC)glewGetProcAddress((const GLubyte*)"glRasterPos3f")) == NULL) || r; + r = ((glRasterPos3fv = (PFNGLRASTERPOS3FVPROC)glewGetProcAddress((const GLubyte*)"glRasterPos3fv")) == NULL) || r; + r = ((glRasterPos3i = (PFNGLRASTERPOS3IPROC)glewGetProcAddress((const GLubyte*)"glRasterPos3i")) == NULL) || r; + r = ((glRasterPos3iv = (PFNGLRASTERPOS3IVPROC)glewGetProcAddress((const GLubyte*)"glRasterPos3iv")) == NULL) || r; + r = ((glRasterPos3s = (PFNGLRASTERPOS3SPROC)glewGetProcAddress((const GLubyte*)"glRasterPos3s")) == NULL) || r; + r = ((glRasterPos3sv = (PFNGLRASTERPOS3SVPROC)glewGetProcAddress((const GLubyte*)"glRasterPos3sv")) == NULL) || r; + r = ((glRasterPos4d = (PFNGLRASTERPOS4DPROC)glewGetProcAddress((const GLubyte*)"glRasterPos4d")) == NULL) || r; + r = ((glRasterPos4dv = (PFNGLRASTERPOS4DVPROC)glewGetProcAddress((const GLubyte*)"glRasterPos4dv")) == NULL) || r; + r = ((glRasterPos4f = (PFNGLRASTERPOS4FPROC)glewGetProcAddress((const GLubyte*)"glRasterPos4f")) == NULL) || r; + r = ((glRasterPos4fv = (PFNGLRASTERPOS4FVPROC)glewGetProcAddress((const GLubyte*)"glRasterPos4fv")) == NULL) || r; + r = ((glRasterPos4i = (PFNGLRASTERPOS4IPROC)glewGetProcAddress((const GLubyte*)"glRasterPos4i")) == NULL) || r; + r = ((glRasterPos4iv = (PFNGLRASTERPOS4IVPROC)glewGetProcAddress((const GLubyte*)"glRasterPos4iv")) == NULL) || r; + r = ((glRasterPos4s = (PFNGLRASTERPOS4SPROC)glewGetProcAddress((const GLubyte*)"glRasterPos4s")) == NULL) || r; + r = ((glRasterPos4sv = (PFNGLRASTERPOS4SVPROC)glewGetProcAddress((const GLubyte*)"glRasterPos4sv")) == NULL) || r; + r = ((glReadBuffer = (PFNGLREADBUFFERPROC)glewGetProcAddress((const GLubyte*)"glReadBuffer")) == NULL) || r; + r = ((glReadPixels = (PFNGLREADPIXELSPROC)glewGetProcAddress((const GLubyte*)"glReadPixels")) == NULL) || r; + r = ((glRectd = (PFNGLRECTDPROC)glewGetProcAddress((const GLubyte*)"glRectd")) == NULL) || r; + r = ((glRectdv = (PFNGLRECTDVPROC)glewGetProcAddress((const GLubyte*)"glRectdv")) == NULL) || r; + r = ((glRectf = (PFNGLRECTFPROC)glewGetProcAddress((const GLubyte*)"glRectf")) == NULL) || r; + r = ((glRectfv = (PFNGLRECTFVPROC)glewGetProcAddress((const GLubyte*)"glRectfv")) == NULL) || r; + r = ((glRecti = (PFNGLRECTIPROC)glewGetProcAddress((const GLubyte*)"glRecti")) == NULL) || r; + r = ((glRectiv = (PFNGLRECTIVPROC)glewGetProcAddress((const GLubyte*)"glRectiv")) == NULL) || r; + r = ((glRects = (PFNGLRECTSPROC)glewGetProcAddress((const GLubyte*)"glRects")) == NULL) || r; + r = ((glRectsv = (PFNGLRECTSVPROC)glewGetProcAddress((const GLubyte*)"glRectsv")) == NULL) || r; + r = ((glRenderMode = (PFNGLRENDERMODEPROC)glewGetProcAddress((const GLubyte*)"glRenderMode")) == NULL) || r; + r = ((glRotated = (PFNGLROTATEDPROC)glewGetProcAddress((const GLubyte*)"glRotated")) == NULL) || r; + r = ((glRotatef = (PFNGLROTATEFPROC)glewGetProcAddress((const GLubyte*)"glRotatef")) == NULL) || r; + r = ((glScaled = (PFNGLSCALEDPROC)glewGetProcAddress((const GLubyte*)"glScaled")) == NULL) || r; + r = ((glScalef = (PFNGLSCALEFPROC)glewGetProcAddress((const GLubyte*)"glScalef")) == NULL) || r; + r = ((glScissor = (PFNGLSCISSORPROC)glewGetProcAddress((const GLubyte*)"glScissor")) == NULL) || r; + r = ((glSelectBuffer = (PFNGLSELECTBUFFERPROC)glewGetProcAddress((const GLubyte*)"glSelectBuffer")) == NULL) || r; + r = ((glShadeModel = (PFNGLSHADEMODELPROC)glewGetProcAddress((const GLubyte*)"glShadeModel")) == NULL) || r; + r = ((glStencilFunc = (PFNGLSTENCILFUNCPROC)glewGetProcAddress((const GLubyte*)"glStencilFunc")) == NULL) || r; + r = ((glStencilMask = (PFNGLSTENCILMASKPROC)glewGetProcAddress((const GLubyte*)"glStencilMask")) == NULL) || r; + r = ((glStencilOp = (PFNGLSTENCILOPPROC)glewGetProcAddress((const GLubyte*)"glStencilOp")) == NULL) || r; + r = ((glTexCoord1d = (PFNGLTEXCOORD1DPROC)glewGetProcAddress((const GLubyte*)"glTexCoord1d")) == NULL) || r; + r = ((glTexCoord1dv = (PFNGLTEXCOORD1DVPROC)glewGetProcAddress((const GLubyte*)"glTexCoord1dv")) == NULL) || r; + r = ((glTexCoord1f = (PFNGLTEXCOORD1FPROC)glewGetProcAddress((const GLubyte*)"glTexCoord1f")) == NULL) || r; + r = ((glTexCoord1fv = (PFNGLTEXCOORD1FVPROC)glewGetProcAddress((const GLubyte*)"glTexCoord1fv")) == NULL) || r; + r = ((glTexCoord1i = (PFNGLTEXCOORD1IPROC)glewGetProcAddress((const GLubyte*)"glTexCoord1i")) == NULL) || r; + r = ((glTexCoord1iv = (PFNGLTEXCOORD1IVPROC)glewGetProcAddress((const GLubyte*)"glTexCoord1iv")) == NULL) || r; + r = ((glTexCoord1s = (PFNGLTEXCOORD1SPROC)glewGetProcAddress((const GLubyte*)"glTexCoord1s")) == NULL) || r; + r = ((glTexCoord1sv = (PFNGLTEXCOORD1SVPROC)glewGetProcAddress((const GLubyte*)"glTexCoord1sv")) == NULL) || r; + r = ((glTexCoord2d = (PFNGLTEXCOORD2DPROC)glewGetProcAddress((const GLubyte*)"glTexCoord2d")) == NULL) || r; + r = ((glTexCoord2dv = (PFNGLTEXCOORD2DVPROC)glewGetProcAddress((const GLubyte*)"glTexCoord2dv")) == NULL) || r; + r = ((glTexCoord2f = (PFNGLTEXCOORD2FPROC)glewGetProcAddress((const GLubyte*)"glTexCoord2f")) == NULL) || r; + r = ((glTexCoord2fv = (PFNGLTEXCOORD2FVPROC)glewGetProcAddress((const GLubyte*)"glTexCoord2fv")) == NULL) || r; + r = ((glTexCoord2i = (PFNGLTEXCOORD2IPROC)glewGetProcAddress((const GLubyte*)"glTexCoord2i")) == NULL) || r; + r = ((glTexCoord2iv = (PFNGLTEXCOORD2IVPROC)glewGetProcAddress((const GLubyte*)"glTexCoord2iv")) == NULL) || r; + r = ((glTexCoord2s = (PFNGLTEXCOORD2SPROC)glewGetProcAddress((const GLubyte*)"glTexCoord2s")) == NULL) || r; + r = ((glTexCoord2sv = (PFNGLTEXCOORD2SVPROC)glewGetProcAddress((const GLubyte*)"glTexCoord2sv")) == NULL) || r; + r = ((glTexCoord3d = (PFNGLTEXCOORD3DPROC)glewGetProcAddress((const GLubyte*)"glTexCoord3d")) == NULL) || r; + r = ((glTexCoord3dv = (PFNGLTEXCOORD3DVPROC)glewGetProcAddress((const GLubyte*)"glTexCoord3dv")) == NULL) || r; + r = ((glTexCoord3f = (PFNGLTEXCOORD3FPROC)glewGetProcAddress((const GLubyte*)"glTexCoord3f")) == NULL) || r; + r = ((glTexCoord3fv = (PFNGLTEXCOORD3FVPROC)glewGetProcAddress((const GLubyte*)"glTexCoord3fv")) == NULL) || r; + r = ((glTexCoord3i = (PFNGLTEXCOORD3IPROC)glewGetProcAddress((const GLubyte*)"glTexCoord3i")) == NULL) || r; + r = ((glTexCoord3iv = (PFNGLTEXCOORD3IVPROC)glewGetProcAddress((const GLubyte*)"glTexCoord3iv")) == NULL) || r; + r = ((glTexCoord3s = (PFNGLTEXCOORD3SPROC)glewGetProcAddress((const GLubyte*)"glTexCoord3s")) == NULL) || r; + r = ((glTexCoord3sv = (PFNGLTEXCOORD3SVPROC)glewGetProcAddress((const GLubyte*)"glTexCoord3sv")) == NULL) || r; + r = ((glTexCoord4d = (PFNGLTEXCOORD4DPROC)glewGetProcAddress((const GLubyte*)"glTexCoord4d")) == NULL) || r; + r = ((glTexCoord4dv = (PFNGLTEXCOORD4DVPROC)glewGetProcAddress((const GLubyte*)"glTexCoord4dv")) == NULL) || r; + r = ((glTexCoord4f = (PFNGLTEXCOORD4FPROC)glewGetProcAddress((const GLubyte*)"glTexCoord4f")) == NULL) || r; + r = ((glTexCoord4fv = (PFNGLTEXCOORD4FVPROC)glewGetProcAddress((const GLubyte*)"glTexCoord4fv")) == NULL) || r; + r = ((glTexCoord4i = (PFNGLTEXCOORD4IPROC)glewGetProcAddress((const GLubyte*)"glTexCoord4i")) == NULL) || r; + r = ((glTexCoord4iv = (PFNGLTEXCOORD4IVPROC)glewGetProcAddress((const GLubyte*)"glTexCoord4iv")) == NULL) || r; + r = ((glTexCoord4s = (PFNGLTEXCOORD4SPROC)glewGetProcAddress((const GLubyte*)"glTexCoord4s")) == NULL) || r; + r = ((glTexCoord4sv = (PFNGLTEXCOORD4SVPROC)glewGetProcAddress((const GLubyte*)"glTexCoord4sv")) == NULL) || r; + r = ((glTexCoordPointer = (PFNGLTEXCOORDPOINTERPROC)glewGetProcAddress((const GLubyte*)"glTexCoordPointer")) == NULL) || r; + r = ((glTexEnvf = (PFNGLTEXENVFPROC)glewGetProcAddress((const GLubyte*)"glTexEnvf")) == NULL) || r; + r = ((glTexEnvfv = (PFNGLTEXENVFVPROC)glewGetProcAddress((const GLubyte*)"glTexEnvfv")) == NULL) || r; + r = ((glTexEnvi = (PFNGLTEXENVIPROC)glewGetProcAddress((const GLubyte*)"glTexEnvi")) == NULL) || r; + r = ((glTexEnviv = (PFNGLTEXENVIVPROC)glewGetProcAddress((const GLubyte*)"glTexEnviv")) == NULL) || r; + r = ((glTexGend = (PFNGLTEXGENDPROC)glewGetProcAddress((const GLubyte*)"glTexGend")) == NULL) || r; + r = ((glTexGendv = (PFNGLTEXGENDVPROC)glewGetProcAddress((const GLubyte*)"glTexGendv")) == NULL) || r; + r = ((glTexGenf = (PFNGLTEXGENFPROC)glewGetProcAddress((const GLubyte*)"glTexGenf")) == NULL) || r; + r = ((glTexGenfv = (PFNGLTEXGENFVPROC)glewGetProcAddress((const GLubyte*)"glTexGenfv")) == NULL) || r; + r = ((glTexGeni = (PFNGLTEXGENIPROC)glewGetProcAddress((const GLubyte*)"glTexGeni")) == NULL) || r; + r = ((glTexGeniv = (PFNGLTEXGENIVPROC)glewGetProcAddress((const GLubyte*)"glTexGeniv")) == NULL) || r; + r = ((glTexImage1D = (PFNGLTEXIMAGE1DPROC)glewGetProcAddress((const GLubyte*)"glTexImage1D")) == NULL) || r; + r = ((glTexImage2D = (PFNGLTEXIMAGE2DPROC)glewGetProcAddress((const GLubyte*)"glTexImage2D")) == NULL) || r; + r = ((glTexParameterf = (PFNGLTEXPARAMETERFPROC)glewGetProcAddress((const GLubyte*)"glTexParameterf")) == NULL) || r; + r = ((glTexParameterfv = (PFNGLTEXPARAMETERFVPROC)glewGetProcAddress((const GLubyte*)"glTexParameterfv")) == NULL) || r; + r = ((glTexParameteri = (PFNGLTEXPARAMETERIPROC)glewGetProcAddress((const GLubyte*)"glTexParameteri")) == NULL) || r; + r = ((glTexParameteriv = (PFNGLTEXPARAMETERIVPROC)glewGetProcAddress((const GLubyte*)"glTexParameteriv")) == NULL) || r; + r = ((glTexSubImage1D = (PFNGLTEXSUBIMAGE1DPROC)glewGetProcAddress((const GLubyte*)"glTexSubImage1D")) == NULL) || r; + r = ((glTexSubImage2D = (PFNGLTEXSUBIMAGE2DPROC)glewGetProcAddress((const GLubyte*)"glTexSubImage2D")) == NULL) || r; + r = ((glTranslated = (PFNGLTRANSLATEDPROC)glewGetProcAddress((const GLubyte*)"glTranslated")) == NULL) || r; + r = ((glTranslatef = (PFNGLTRANSLATEFPROC)glewGetProcAddress((const GLubyte*)"glTranslatef")) == NULL) || r; + r = ((glVertex2d = (PFNGLVERTEX2DPROC)glewGetProcAddress((const GLubyte*)"glVertex2d")) == NULL) || r; + r = ((glVertex2dv = (PFNGLVERTEX2DVPROC)glewGetProcAddress((const GLubyte*)"glVertex2dv")) == NULL) || r; + r = ((glVertex2f = (PFNGLVERTEX2FPROC)glewGetProcAddress((const GLubyte*)"glVertex2f")) == NULL) || r; + r = ((glVertex2fv = (PFNGLVERTEX2FVPROC)glewGetProcAddress((const GLubyte*)"glVertex2fv")) == NULL) || r; + r = ((glVertex2i = (PFNGLVERTEX2IPROC)glewGetProcAddress((const GLubyte*)"glVertex2i")) == NULL) || r; + r = ((glVertex2iv = (PFNGLVERTEX2IVPROC)glewGetProcAddress((const GLubyte*)"glVertex2iv")) == NULL) || r; + r = ((glVertex2s = (PFNGLVERTEX2SPROC)glewGetProcAddress((const GLubyte*)"glVertex2s")) == NULL) || r; + r = ((glVertex2sv = (PFNGLVERTEX2SVPROC)glewGetProcAddress((const GLubyte*)"glVertex2sv")) == NULL) || r; + r = ((glVertex3d = (PFNGLVERTEX3DPROC)glewGetProcAddress((const GLubyte*)"glVertex3d")) == NULL) || r; + r = ((glVertex3dv = (PFNGLVERTEX3DVPROC)glewGetProcAddress((const GLubyte*)"glVertex3dv")) == NULL) || r; + r = ((glVertex3f = (PFNGLVERTEX3FPROC)glewGetProcAddress((const GLubyte*)"glVertex3f")) == NULL) || r; + r = ((glVertex3fv = (PFNGLVERTEX3FVPROC)glewGetProcAddress((const GLubyte*)"glVertex3fv")) == NULL) || r; + r = ((glVertex3i = (PFNGLVERTEX3IPROC)glewGetProcAddress((const GLubyte*)"glVertex3i")) == NULL) || r; + r = ((glVertex3iv = (PFNGLVERTEX3IVPROC)glewGetProcAddress((const GLubyte*)"glVertex3iv")) == NULL) || r; + r = ((glVertex3s = (PFNGLVERTEX3SPROC)glewGetProcAddress((const GLubyte*)"glVertex3s")) == NULL) || r; + r = ((glVertex3sv = (PFNGLVERTEX3SVPROC)glewGetProcAddress((const GLubyte*)"glVertex3sv")) == NULL) || r; + r = ((glVertex4d = (PFNGLVERTEX4DPROC)glewGetProcAddress((const GLubyte*)"glVertex4d")) == NULL) || r; + r = ((glVertex4dv = (PFNGLVERTEX4DVPROC)glewGetProcAddress((const GLubyte*)"glVertex4dv")) == NULL) || r; + r = ((glVertex4f = (PFNGLVERTEX4FPROC)glewGetProcAddress((const GLubyte*)"glVertex4f")) == NULL) || r; + r = ((glVertex4fv = (PFNGLVERTEX4FVPROC)glewGetProcAddress((const GLubyte*)"glVertex4fv")) == NULL) || r; + r = ((glVertex4i = (PFNGLVERTEX4IPROC)glewGetProcAddress((const GLubyte*)"glVertex4i")) == NULL) || r; + r = ((glVertex4iv = (PFNGLVERTEX4IVPROC)glewGetProcAddress((const GLubyte*)"glVertex4iv")) == NULL) || r; + r = ((glVertex4s = (PFNGLVERTEX4SPROC)glewGetProcAddress((const GLubyte*)"glVertex4s")) == NULL) || r; + r = ((glVertex4sv = (PFNGLVERTEX4SVPROC)glewGetProcAddress((const GLubyte*)"glVertex4sv")) == NULL) || r; + r = ((glVertexPointer = (PFNGLVERTEXPOINTERPROC)glewGetProcAddress((const GLubyte*)"glVertexPointer")) == NULL) || r; + r = ((glViewport = (PFNGLVIEWPORTPROC)glewGetProcAddress((const GLubyte*)"glViewport")) == NULL) || r; + + return r; +} + +#endif /* GL_VERSION_1_1 */ + #ifdef GL_VERSION_1_2 static GLboolean _glewInit_GL_VERSION_1_2 (GLEW_CONTEXT_ARG_DEF_INIT) @@ -6144,6 +6855,12 @@ GLenum glewContextInit (GLEW_CONTEXT_ARG_DEF_LIST) const GLubyte* s; GLuint dot, major, minor; /* query opengl version */ + if (glGetString == NULL) { + glGetString = (PFNGLGETSTRINGPROC) glewGetProcAddress((const GLubyte*) "glGetString"); + } + if (glGetString == NULL) { + return GLEW_ERROR_NO_GL_VERSION; + } s = glGetString(GL_VERSION); dot = _glewStrCLen(s, '.'); major = dot-1; @@ -6219,6 +6936,9 @@ GLenum glewContextInit (GLEW_CONTEXT_ARG_DEF_LIST) } } /* initialize extensions */ +#ifdef GL_VERSION_1_1 + if (glewExperimental || GLEW_VERSION_1_1) CONST_CAST(GLEW_VERSION_1_1) = !_glewInit_GL_VERSION_1_1(GLEW_CONTEXT_ARG_VAR_INIT); +#endif /* GL_VERSION_1_2 */ #ifdef GL_VERSION_1_2 if (glewExperimental || GLEW_VERSION_1_2) CONST_CAST(GLEW_VERSION_1_2) = !_glewInit_GL_VERSION_1_2(GLEW_CONTEXT_ARG_VAR_INIT); #endif /* GL_VERSION_1_2 */ @@ -8826,15 +9546,22 @@ static GLboolean _glewInit_GLX_SUN_video_resize (GLXEW_CONTEXT_ARG_DEF_INIT) /* ------------------------------------------------------------------------ */ +typedef const char* ( * PFNGLXGETCLIENTSTRINGPROC) (Display *dpy, int name); + GLboolean glxewGetExtension (const char* name) { GLubyte* p; GLubyte* end; GLuint len = _glewStrLen((const GLubyte*)name); + static PFNGLXGETCLIENTSTRINGPROC __glewXGetClientString = NULL; /* if (glXQueryExtensionsString == NULL || glXGetCurrentDisplay == NULL) return GL_FALSE; */ /* p = (GLubyte*)glXQueryExtensionsString(glXGetCurrentDisplay(), DefaultScreen(glXGetCurrentDisplay())); */ - if (glXGetClientString == NULL || glXGetCurrentDisplay == NULL) return GL_FALSE; - p = (GLubyte*)glXGetClientString(glXGetCurrentDisplay(), GLX_EXTENSIONS); + if (__glewXGetClientString == NULL) { + __glewXGetClientString = (PFNGLXGETCLIENTSTRINGPROC) glewGetProcAddress("glXGetClientString"); + } + if (__glewXGetClientString == NULL) return GL_FALSE; + if (glXGetCurrentDisplay == NULL) return GL_FALSE; + p = (GLubyte*)__glewXGetClientString(glXGetCurrentDisplay(), GLX_EXTENSIONS); if (0 == p) return GL_FALSE; end = p + _glewStrLen(p); while (p < end) @@ -8846,9 +9573,16 @@ GLboolean glxewGetExtension (const char* name) return GL_FALSE; } +typedef Bool (* PFNGLXQUERYVERSIONPROC) (Display *dpy, int *major, int *minor); + GLenum glxewContextInit (GLXEW_CONTEXT_ARG_DEF_LIST) { int major, minor; + static PFNGLXQUERYVERSIONPROC __glewXQueryVersion = NULL; + if (__glewXQueryVersion == NULL) { + __glewXQueryVersion = (PFNGLXQUERYVERSIONPROC) glewGetProcAddress("glXQueryVersion"); + } + if (__glewXQueryVersion == NULL) return GL_FALSE; /* initialize core GLX 1.2 */ if (_glewInit_GLX_VERSION_1_2(GLEW_CONTEXT_ARG_VAR_INIT)) return GLEW_ERROR_GLX_VERSION_11_ONLY; /* initialize flags */ @@ -8858,7 +9592,7 @@ GLenum glxewContextInit (GLXEW_CONTEXT_ARG_DEF_LIST) CONST_CAST(GLXEW_VERSION_1_3) = GL_TRUE; CONST_CAST(GLXEW_VERSION_1_4) = GL_TRUE; /* query GLX version */ - glXQueryVersion(glXGetCurrentDisplay(), &major, &minor); + __glewXQueryVersion(glXGetCurrentDisplay(), &major, &minor); if (major == 1 && minor <= 3) { switch (minor) |