ovr_sdk

diff LibOVR/Src/CAPI/GL/CAPI_GLE.h @ 0:1b39a1b46319

initial 0.4.4
author John Tsiombikas <nuclear@member.fsf.org>
date Wed, 14 Jan 2015 06:51:16 +0200
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/LibOVR/Src/CAPI/GL/CAPI_GLE.h	Wed Jan 14 06:51:16 2015 +0200
     1.3 @@ -0,0 +1,2003 @@
     1.4 +/************************************************************************************
     1.5 +
     1.6 +Filename    :   CAPI_GLE.h
     1.7 +Content     :   OpenGL extensions support. Implements a stripped down glew-like 
     1.8 +                interface with some additional functionality.
     1.9 +Copyright   :   Copyright 2014 Oculus VR, LLC All Rights reserved.
    1.10 +
    1.11 +Licensed under the Apache License, Version 2.0 (the "License");
    1.12 +you may not use this file except in compliance with the License.
    1.13 +You may obtain a copy of the License at
    1.14 +
    1.15 +http://www.apache.org/licenses/LICENSE-2.0
    1.16 +
    1.17 +Unless required by applicable law or agreed to in writing, software
    1.18 +distributed under the License is distributed on an "AS IS" BASIS,
    1.19 +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    1.20 +See the License for the specific language governing permissions and
    1.21 +limitations under the License.
    1.22 +
    1.23 +************************************************************************************/
    1.24 +
    1.25 +// This file provides functionality similar to a reduced version of GLEW, plus some
    1.26 +// additional functionality that's useful to us, such as function hooking.
    1.27 +
    1.28 +#ifndef INC_OVR_CAPI_GLE_h
    1.29 +#define INC_OVR_CAPI_GLE_h
    1.30 +
    1.31 +
    1.32 +#include "../../Kernel/OVR_Types.h"
    1.33 +#include "CAPI_GLE_GL.h"
    1.34 +
    1.35 +
    1.36 +///////////////////////////////////////////////////////////////////////////////
    1.37 +// How to use this functionality
    1.38 +//
    1.39 +// - You #include this header instead of gl.h, glext.h, wglext.h (Windows), gl3.h (Apple), gl3ext.h (Apple), glx.h (Unix), and glxext.h (Unix).
    1.40 +//   Currently you still would #include <Windows.h> for the base wgl functions on Windows and OpenGL.h or NSOpenGL for the 
    1.41 +//   base Apple cgl functions.
    1.42 +// 
    1.43 +// - You call OpenGL functions just like you would if you were directly using OpenGL 
    1.44 +//   headers and declarations. The difference is that this module automatically loads
    1.45 +//   extensions on init and so you should never need to use GetProcAddress, wglGetProcAddress, etc.
    1.46 +//
    1.47 +// - OpenGL 1.1 functions can be called unilaterally without checking if they are present,
    1.48 +//   as it's assumed they are always present.
    1.49 +//
    1.50 +// - In order to use an OpenGL 1.2 or later function you can check the GLEContext::WholeVersion
    1.51 +//   variable to tell what version of OpenGL is present and active. Example usage:
    1.52 +//       if(GLEContext::GetCurrentContext()->WholeVersion >= 302) // If OpenGL 3.2 or later...
    1.53 +//
    1.54 +// - In order to use an OpenGL extension, you can check the GLE_ helper macro that exists for each
    1.55 +//   extension. For example, in order to check of the KHR_debug is present you could do this:
    1.56 +//        if(GLE_KHR_debug) ... 
    1.57 +//   You cannot check for the presence of extensions by testing the function pointer, because
    1.58 +//   when hooking is enabled then we aren't using function pointers and thus all functions will
    1.59 +//   look like they are present. 
    1.60 +//
    1.61 +// - You can test if the OpenGL implementation is OpenGL ES by checking the GLEContext IsGLES
    1.62 +//   member variable. For example: if(GLEContext::GetCurrentContext()->IsGLES) ...
    1.63 +//
    1.64 +// - You can test if the OpenGL implementation is a core profile ES by checking the GLEContext IsCoreProfile
    1.65 +//   member variable. For example: if(GLEContext::GetCurrentContext()->IsCoreProfile) ...
    1.66 +//
    1.67 +///////////////////////////////////////////////////////////////////////////////
    1.68 +
    1.69 +
    1.70 +///////////////////////////////////////////////////////////////////////////////
    1.71 +// How to add support for additional functions to this module.
    1.72 +//
    1.73 +// For an example of how to do this, search the source files for all cases of KHR_Debug and just copy
    1.74 +// the things that it does but for your new extension.
    1.75 +//
    1.76 +//     1) Add the appropriate extension declaration to CAPI_GLE_GL.h, preferably by
    1.77 +//        copying it from the standard header file it normally comes from. If it's
    1.78 +//        platform-specific (e.g. a Windows wgl function) then make sure it's declared
    1.79 +//        within the given platform section. Note that there are potentially #defines, typedefs, 
    1.80 +//        function typedefs, and function #defines. There is always a GLE_ macro declared which
    1.81 +//        lets the user know at runtime whether the extension is present.
    1.82 +//        e.g.  #ifndef GL_KHR_debug
    1.83 +//                  #define GL_KHR_debug 1
    1.84 +//                  #define GL_CONTEXT_FLAG_DEBUG_BIT 0x00000002 etc.
    1.85 +//                  typedef void (GLAPIENTRY * PFNGLPOPDEBUGGROUPPROC) ();
    1.86 +//                  #define glPopDebugGroup GLEGetCurrentFunction(glPopDebugGroup)
    1.87 +//                  #define GLE_KHR_debug GLEGetCurrentVariable(gl_KHR_debug)
    1.88 +//              #endif etc.
    1.89 +//
    1.90 +//     2) Add a hook function for in the hook section of the GLEContext class in this header, 
    1.91 +//        ideally in the same order it's declared in the CAPI_GLE_GL.h so it's easily readable.
    1.92 +//        e.g. void glDebugMessageControl_Hook(GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint* ids, GLboolean enabled); etc.
    1.93 +//
    1.94 +//     3) Add a declaration for each interface function to the GLEContext class in this header.
    1.95 +//        e.g. PFNGLDEBUGMESSAGECALLBACKPROC glDebugMessageCallback_Impl; etc.
    1.96 +//
    1.97 +//     4) Add code to GLEContext::InitExtensionLoad to load the function pointer.
    1.98 +//        e.g. GLELoadProc(glDebugMessageCallback_Impl, glDebugMessageCallback); etc.
    1.99 +//
   1.100 +//     5) Add code to GLEContext::InitExtensionSupport to detect the extension support.
   1.101 +//        e.g. { gl_KHR_debug, "GL_KHR_debug" }, etc.
   1.102 +//
   1.103 +//     6) Implement the GLEContext hook function(s) you declared.
   1.104 +//        e.g.  void OVR::GLEContext::glDebugMessageControl_Hook(GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint* ids, GLboolean enabled)
   1.105 +//              {
   1.106 +//                 if(glDebugMessageControl_Impl)
   1.107 +//                    glDebugMessageControl_Impl(source, type, severity, count, ids, enabled);
   1.108 +//                 PostHook();
   1.109 +//              }
   1.110 +//
   1.111 +// Note that if the extension is a WGL-, GLX-, or CGL-specific extension, they are handled like above 
   1.112 +// but are in their own section below the section for regular OpenGL extensions.
   1.113 +// 
   1.114 +// In some cases the given interface may already be present by currently commented out,
   1.115 +// in which case you can simply un-comment it to enable it.
   1.116 +///////////////////////////////////////////////////////////////////////////////
   1.117 +
   1.118 +
   1.119 +namespace OVR
   1.120 +{
   1.121 +    // Generic OpenGL GetProcAddress function interface. Maps to platform-specific functionality
   1.122 +    // internally. On Windows this is equivalent to wglGetProcAddress as opposed to global GetProcAddress.
   1.123 +    void* GLEGetProcAddress(const char* name);
   1.124 +
   1.125 +
   1.126 +    // GLEContext
   1.127 +    //
   1.128 +    // Manages a collection of OpenGL extension interfaces.
   1.129 +    // If the application has multiple OpenGL unrelated contexts then you will want to create a
   1.130 +    // different instance of this class for each one you intend to use it with. 
   1.131 +    //
   1.132 +    // Example usage:
   1.133 +    //     GLEContext gGLEContext;
   1.134 +    //
   1.135 +    //     GLEContext::SetCurrentContext(&gGLEContext);
   1.136 +    //     gGLEContext.PlatformInit(); // Initializes WGL/GLX/etc. platform-specific OpenGL functionality
   1.137 +    //
   1.138 +    //     if(GLE_WGL_ARB_create_context) // If wglCreateContextAttribsARB is available...
   1.139 +    //     {
   1.140 +    //         int attribList[] = { WGL_CONTEXT_MAJOR_VERSION_ARB, 3, WGL_CONTEXT_MINOR_VERSION_ARB, 2, WGL_CONTEXT_FLAGS_ARB, WGL_CONTEXT_DEBUG_BIT_ARB, None };
   1.141 +    //         HGLRC h = wglCreateContextAttribsARB(hDC, 0, attribList);
   1.142 +    //         [...]
   1.143 +    //     }
   1.144 +    //
   1.145 +    //     gGLEContext.Init(); // Must be called after an OpenGL context has been created.
   1.146 +    //
   1.147 +    //     if(GLE_WHOLE_VERSION() >= 302) // If OpenGL 3.2 or later
   1.148 +    //     {
   1.149 +    //         glFramebufferTexture(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, someTexture, 0); // This is an OpenGL 3.2 function.
   1.150 +    //         [...]
   1.151 +    //     }
   1.152 +    //
   1.153 +    //     if(GLE_GL_ARB_texture_multisample) // If the GL_ARB_texture_multisample extension is available...
   1.154 +    //     {
   1.155 +    //         glEnable(GL_SAMPLE_MASK);
   1.156 +    //         glSampleMaski(0, 0x1);
   1.157 +    //         [...]
   1.158 +    //     }
   1.159 +    //
   1.160 +    //     [...]
   1.161 +    //
   1.162 +    //     gGLEContext.Shutdown();
   1.163 +    //
   1.164 +    GLE_CLASS_EXPORT class GLEContext
   1.165 +    {
   1.166 +    public:
   1.167 +        GLEContext();
   1.168 +       ~GLEContext();
   1.169 +      
   1.170 +        // Initializes platform-specific functionality (e.g. Windows WGL, Unix GLX, Android EGL, Apple CGL).
   1.171 +        // You would typically call this before creating an OpenGL context and using platform-specific functions.
   1.172 +        void PlatformInit();
   1.173 +        bool IsPlatformInitialized() const;
   1.174 +
   1.175 +        // Loads all the extensions from the current OpenGL context. This must be called after an OpenGL context 
   1.176 +        // has been created and made current.
   1.177 +        void Init();
   1.178 +        bool IsInitialized() const;
   1.179 +        
   1.180 +        // Clears all the extensions initialized by PlatformInit and Init. 
   1.181 +        void Shutdown();
   1.182 +
   1.183 +        void SetEnableHookGetError(bool enabled)
   1.184 +            { EnableHookGetError = enabled; }
   1.185 +
   1.186 +        // Returns the default instance of this class.
   1.187 +        static GLEContext* GetCurrentContext();
   1.188 +        
   1.189 +        // Sets the default instance of this class. This should be called after enabling a new OpenGL context.
   1.190 +        // This sets the current GLEContext; it does not set the underlying OpenGL context itself.
   1.191 +        static void SetCurrentContext(GLEContext*);
   1.192 +        
   1.193 +    public:
   1.194 +        // OpenGL version information
   1.195 +        int   MajorVersion;             // Best guess at major version
   1.196 +        int   MinorVersion;             // Best guess at minor version
   1.197 +        int   WholeVersion;             // Equals ((MajorVersion * 100) + MinorVersion). Example usage: if(glv.WholeVersion >= 302) // If OpenGL v3.02+ ...
   1.198 +        bool  IsGLES;                   // Open GL ES?
   1.199 +        bool  IsCoreProfile;            // Is the current OpenGL context a core profile context? Its trueness may be a false positive but will never be a false negative.
   1.200 +        bool  EnableHookGetError;       // If enabled then hook functions call glGetError after making the call.
   1.201 +
   1.202 +        int   PlatformMajorVersion;     // GLX/WGL/EGL/CGL version. Not the same as OpenGL version.
   1.203 +        int   PlatformMinorVersion;
   1.204 +        int   PlatformWholeVersion;
   1.205 +
   1.206 +        void InitVersion();             // Initializes the version information (e.g. MajorVersion). Called by the public Init function.
   1.207 +        void InitExtensionLoad();       // Loads the function addresses into the function pointers.
   1.208 +        void InitExtensionSupport();    // Loads the boolean extension support booleans.
   1.209 +        
   1.210 +        void InitPlatformVersion();
   1.211 +        void InitPlatformExtensionLoad();
   1.212 +        void InitPlatformExtensionSupport();
   1.213 +
   1.214 +    public:
   1.215 +        // GL_VERSION_1_1
   1.216 +        // Not normally included because all OpenGL 1.1 functionality is always present. But if we have 
   1.217 +        // hooking enabled then we implement our own version of each function.
   1.218 +        #if defined(GLE_HOOKING_ENABLED)
   1.219 +          //void PreHook(const char* functionName);             // Called at the beginning of a hook function.
   1.220 +            void PostHook(const char* functionName);            // Called at the end of a hook function.
   1.221 +
   1.222 +            void            glAccum_Hook(GLenum op, GLfloat value);
   1.223 +            void            glAlphaFunc_Hook(GLenum func, GLclampf ref);
   1.224 +            GLboolean       glAreTexturesResident_Hook(GLsizei n, const GLuint *textures, GLboolean *residences);
   1.225 +            void            glArrayElement_Hook(GLint i);
   1.226 +            void            glBegin_Hook(GLenum mode);
   1.227 +            void            glBindTexture_Hook(GLenum target, GLuint texture);
   1.228 +            void            glBitmap_Hook(GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte *bitmap);
   1.229 +            void            glBlendFunc_Hook(GLenum sfactor, GLenum dfactor);
   1.230 +            void            glCallList_Hook(GLuint list);
   1.231 +            void            glCallLists_Hook(GLsizei n, GLenum type, const void *lists);
   1.232 +            void            glClear_Hook(GLbitfield mask);
   1.233 +            void            glClearAccum_Hook(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
   1.234 +            void            glClearColor_Hook(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
   1.235 +            void            glClearDepth_Hook(GLclampd depth);
   1.236 +            void            glClearIndex_Hook(GLfloat c);
   1.237 +            void            glClearStencil_Hook(GLint s);
   1.238 +            void            glClipPlane_Hook(GLenum plane, const GLdouble *equation);
   1.239 +            void            glColor3b_Hook(GLbyte red, GLbyte green, GLbyte blue);
   1.240 +            void            glColor3bv_Hook(const GLbyte *v);
   1.241 +            void            glColor3d_Hook(GLdouble red, GLdouble green, GLdouble blue);
   1.242 +            void            glColor3dv_Hook(const GLdouble *v);
   1.243 +            void            glColor3f_Hook(GLfloat red, GLfloat green, GLfloat blue);
   1.244 +            void            glColor3fv_Hook(const GLfloat *v);
   1.245 +            void            glColor3i_Hook(GLint red, GLint green, GLint blue);
   1.246 +            void            glColor3iv_Hook(const GLint *v);
   1.247 +            void            glColor3s_Hook(GLshort red, GLshort green, GLshort blue);
   1.248 +            void            glColor3sv_Hook(const GLshort *v);
   1.249 +            void            glColor3ub_Hook(GLubyte red, GLubyte green, GLubyte blue);
   1.250 +            void            glColor3ubv_Hook(const GLubyte *v);
   1.251 +            void            glColor3ui_Hook(GLuint red, GLuint green, GLuint blue);
   1.252 +            void            glColor3uiv_Hook(const GLuint *v);
   1.253 +            void            glColor3us_Hook(GLushort red, GLushort green, GLushort blue);
   1.254 +            void            glColor3usv_Hook(const GLushort *v);
   1.255 +            void            glColor4b_Hook(GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha);
   1.256 +            void            glColor4bv_Hook(const GLbyte *v);
   1.257 +            void            glColor4d_Hook(GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha);
   1.258 +            void            glColor4dv_Hook(const GLdouble *v);
   1.259 +            void            glColor4f_Hook(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
   1.260 +            void            glColor4fv_Hook(const GLfloat *v);
   1.261 +            void            glColor4i_Hook(GLint red, GLint green, GLint blue, GLint alpha);
   1.262 +            void            glColor4iv_Hook(const GLint *v);
   1.263 +            void            glColor4s_Hook(GLshort red, GLshort green, GLshort blue, GLshort alpha);
   1.264 +            void            glColor4sv_Hook(const GLshort *v);
   1.265 +            void            glColor4ub_Hook(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha);
   1.266 +            void            glColor4ubv_Hook(const GLubyte *v);
   1.267 +            void            glColor4ui_Hook(GLuint red, GLuint green, GLuint blue, GLuint alpha);
   1.268 +            void            glColor4uiv_Hook(const GLuint *v);
   1.269 +            void            glColor4us_Hook(GLushort red, GLushort green, GLushort blue, GLushort alpha);
   1.270 +            void            glColor4usv_Hook(const GLushort *v);
   1.271 +            void            glColorMask_Hook(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
   1.272 +            void            glColorMaterial_Hook(GLenum face, GLenum mode);
   1.273 +            void            glColorPointer_Hook(GLint size, GLenum type, GLsizei stride, const void *pointer);
   1.274 +            void            glCopyPixels_Hook(GLint x, GLint y, GLsizei width, GLsizei height, GLenum type);
   1.275 +            void            glCopyTexImage1D_Hook(GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLint border);
   1.276 +            void            glCopyTexImage2D_Hook(GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
   1.277 +            void            glCopyTexSubImage1D_Hook(GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
   1.278 +            void            glCopyTexSubImage2D_Hook(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
   1.279 +            void            glCullFace_Hook(GLenum mode);
   1.280 +            void            glDeleteLists_Hook(GLuint list, GLsizei range);
   1.281 +            void            glDeleteTextures_Hook(GLsizei n, const GLuint *textures);
   1.282 +            void            glDepthFunc_Hook(GLenum func);
   1.283 +            void            glDepthMask_Hook(GLboolean flag);
   1.284 +            void            glDepthRange_Hook(GLclampd zNear, GLclampd zFar);
   1.285 +            void            glDisable_Hook(GLenum cap);
   1.286 +            void            glDisableClientState_Hook(GLenum array);
   1.287 +            void            glDrawArrays_Hook(GLenum mode, GLint first, GLsizei count);
   1.288 +            void            glDrawBuffer_Hook(GLenum mode);
   1.289 +            void            glDrawElements_Hook(GLenum mode, GLsizei count, GLenum type, const void *indices);
   1.290 +            void            glDrawPixels_Hook(GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels);
   1.291 +            void            glEdgeFlag_Hook(GLboolean flag);
   1.292 +            void            glEdgeFlagPointer_Hook(GLsizei stride, const void *pointer);
   1.293 +            void            glEdgeFlagv_Hook(const GLboolean *flag);
   1.294 +            void            glEnable_Hook(GLenum cap);
   1.295 +            void            glEnableClientState_Hook(GLenum array);
   1.296 +            void            glEnd_Hook(void);
   1.297 +            void            glEndList_Hook(void);
   1.298 +            void            glEvalCoord1d_Hook(GLdouble u);
   1.299 +            void            glEvalCoord1dv_Hook(const GLdouble *u);
   1.300 +            void            glEvalCoord1f_Hook(GLfloat u);
   1.301 +            void            glEvalCoord1fv_Hook(const GLfloat *u);
   1.302 +            void            glEvalCoord2d_Hook(GLdouble u, GLdouble v);
   1.303 +            void            glEvalCoord2dv_Hook(const GLdouble *u);
   1.304 +            void            glEvalCoord2f_Hook(GLfloat u, GLfloat v);
   1.305 +            void            glEvalCoord2fv_Hook(const GLfloat *u);
   1.306 +            void            glEvalMesh1_Hook(GLenum mode, GLint i1, GLint i2);
   1.307 +            void            glEvalMesh2_Hook(GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2);
   1.308 +            void            glEvalPoint1_Hook(GLint i);
   1.309 +            void            glEvalPoint2_Hook(GLint i, GLint j);
   1.310 +            void            glFeedbackBuffer_Hook(GLsizei size, GLenum type, GLfloat *buffer);
   1.311 +            void            glFinish_Hook(void);
   1.312 +            void            glFlush_Hook(void);
   1.313 +            void            glFogf_Hook(GLenum pname, GLfloat param);
   1.314 +            void            glFogfv_Hook(GLenum pname, const GLfloat *params);
   1.315 +            void            glFogi_Hook(GLenum pname, GLint param);
   1.316 +            void            glFogiv_Hook(GLenum pname, const GLint *params);
   1.317 +            void            glFrontFace_Hook(GLenum mode);
   1.318 +            void            glFrustum_Hook(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
   1.319 +            GLuint          glGenLists_Hook(GLsizei range);
   1.320 +            void            glGenTextures_Hook(GLsizei n, GLuint *textures);
   1.321 +            void            glGetBooleanv_Hook(GLenum pname, GLboolean *params);
   1.322 +            void            glGetClipPlane_Hook(GLenum plane, GLdouble *equation);
   1.323 +            void            glGetDoublev_Hook(GLenum pname, GLdouble *params);
   1.324 +            GLenum          glGetError_Hook(void);
   1.325 +            void            glGetFloatv_Hook(GLenum pname, GLfloat *params);
   1.326 +            void            glGetIntegerv_Hook(GLenum pname, GLint *params);
   1.327 +            void            glGetLightfv_Hook(GLenum light, GLenum pname, GLfloat *params);
   1.328 +            void            glGetLightiv_Hook(GLenum light, GLenum pname, GLint *params);
   1.329 +            void            glGetMapdv_Hook(GLenum target, GLenum query, GLdouble *v);
   1.330 +            void            glGetMapfv_Hook(GLenum target, GLenum query, GLfloat *v);
   1.331 +            void            glGetMapiv_Hook(GLenum target, GLenum query, GLint *v);
   1.332 +            void            glGetMaterialfv_Hook(GLenum face, GLenum pname, GLfloat *params);
   1.333 +            void            glGetMaterialiv_Hook(GLenum face, GLenum pname, GLint *params);
   1.334 +            void            glGetPixelMapfv_Hook(GLenum map, GLfloat *values);
   1.335 +            void            glGetPixelMapuiv_Hook(GLenum map, GLuint *values);
   1.336 +            void            glGetPixelMapusv_Hook(GLenum map, GLushort *values);
   1.337 +            void            glGetPointerv_Hook(GLenum pname, void* *params);
   1.338 +            void            glGetPolygonStipple_Hook(GLubyte *mask);
   1.339 +            const GLubyte * glGetString_Hook(GLenum name);
   1.340 +            void            glGetTexEnvfv_Hook(GLenum target, GLenum pname, GLfloat *params);
   1.341 +            void            glGetTexEnviv_Hook(GLenum target, GLenum pname, GLint *params);
   1.342 +            void            glGetTexGendv_Hook(GLenum coord, GLenum pname, GLdouble *params);
   1.343 +            void            glGetTexGenfv_Hook(GLenum coord, GLenum pname, GLfloat *params);
   1.344 +            void            glGetTexGeniv_Hook(GLenum coord, GLenum pname, GLint *params);
   1.345 +            void            glGetTexImage_Hook(GLenum target, GLint level, GLenum format, GLenum type, void *pixels);
   1.346 +            void            glGetTexLevelParameterfv_Hook(GLenum target, GLint level, GLenum pname, GLfloat *params);
   1.347 +            void            glGetTexLevelParameteriv_Hook(GLenum target, GLint level, GLenum pname, GLint *params);
   1.348 +            void            glGetTexParameterfv_Hook(GLenum target, GLenum pname, GLfloat *params);
   1.349 +            void            glGetTexParameteriv_Hook(GLenum target, GLenum pname, GLint *params);
   1.350 +            void            glHint_Hook(GLenum target, GLenum mode);
   1.351 +            void            glIndexMask_Hook(GLuint mask);
   1.352 +            void            glIndexPointer_Hook(GLenum type, GLsizei stride, const void *pointer);
   1.353 +            void            glIndexd_Hook(GLdouble c);
   1.354 +            void            glIndexdv_Hook(const GLdouble *c);
   1.355 +            void            glIndexf_Hook(GLfloat c);
   1.356 +            void            glIndexfv_Hook(const GLfloat *c);
   1.357 +            void            glIndexi_Hook(GLint c);
   1.358 +            void            glIndexiv_Hook(const GLint *c);
   1.359 +            void            glIndexs_Hook(GLshort c);
   1.360 +            void            glIndexsv_Hook(const GLshort *c);
   1.361 +            void            glIndexub_Hook(GLubyte c);
   1.362 +            void            glIndexubv_Hook(const GLubyte *c);
   1.363 +            void            glInitNames_Hook(void);
   1.364 +            void            glInterleavedArrays_Hook(GLenum format, GLsizei stride, const void *pointer);
   1.365 +            GLboolean       glIsEnabled_Hook(GLenum cap);
   1.366 +            GLboolean       glIsList_Hook(GLuint list);
   1.367 +            GLboolean       glIsTexture_Hook(GLuint texture);
   1.368 +            void            glLightModelf_Hook(GLenum pname, GLfloat param);
   1.369 +            void            glLightModelfv_Hook(GLenum pname, const GLfloat *params);
   1.370 +            void            glLightModeli_Hook(GLenum pname, GLint param);
   1.371 +            void            glLightModeliv_Hook(GLenum pname, const GLint *params);
   1.372 +            void            glLightf_Hook(GLenum light, GLenum pname, GLfloat param);
   1.373 +            void            glLightfv_Hook(GLenum light, GLenum pname, const GLfloat *params);
   1.374 +            void            glLighti_Hook(GLenum light, GLenum pname, GLint param);
   1.375 +            void            glLightiv_Hook(GLenum light, GLenum pname, const GLint *params);
   1.376 +            void            glLineStipple_Hook(GLint factor, GLushort pattern);
   1.377 +            void            glLineWidth_Hook(GLfloat width);
   1.378 +            void            glListBase_Hook(GLuint base);
   1.379 +            void            glLoadIdentity_Hook(void);
   1.380 +            void            glLoadMatrixd_Hook(const GLdouble *m);
   1.381 +            void            glLoadMatrixf_Hook(const GLfloat *m);
   1.382 +            void            glLoadName_Hook(GLuint name);
   1.383 +            void            glLogicOp_Hook(GLenum opcode);
   1.384 +            void            glMap1d_Hook(GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points);
   1.385 +            void            glMap1f_Hook(GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points);
   1.386 +            void            glMap2d_Hook(GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points);
   1.387 +            void            glMap2f_Hook(GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points);
   1.388 +            void            glMapGrid1d_Hook(GLint un, GLdouble u1, GLdouble u2);
   1.389 +            void            glMapGrid1f_Hook(GLint un, GLfloat u1, GLfloat u2);
   1.390 +            void            glMapGrid2d_Hook(GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2);
   1.391 +            void            glMapGrid2f_Hook(GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2);
   1.392 +            void            glMaterialf_Hook(GLenum face, GLenum pname, GLfloat param);
   1.393 +            void            glMaterialfv_Hook(GLenum face, GLenum pname, const GLfloat *params);
   1.394 +            void            glMateriali_Hook(GLenum face, GLenum pname, GLint param);
   1.395 +            void            glMaterialiv_Hook(GLenum face, GLenum pname, const GLint *params);
   1.396 +            void            glMatrixMode_Hook(GLenum mode);
   1.397 +            void            glMultMatrixd_Hook(const GLdouble *m);
   1.398 +            void            glMultMatrixf_Hook(const GLfloat *m);
   1.399 +            void            glNewList_Hook(GLuint list, GLenum mode);
   1.400 +            void            glNormal3b_Hook(GLbyte nx, GLbyte ny, GLbyte nz);
   1.401 +            void            glNormal3bv_Hook(const GLbyte *v);
   1.402 +            void            glNormal3d_Hook(GLdouble nx, GLdouble ny, GLdouble nz);
   1.403 +            void            glNormal3dv_Hook(const GLdouble *v);
   1.404 +            void            glNormal3f_Hook(GLfloat nx, GLfloat ny, GLfloat nz);
   1.405 +            void            glNormal3fv_Hook(const GLfloat *v);
   1.406 +            void            glNormal3i_Hook(GLint nx, GLint ny, GLint nz);
   1.407 +            void            glNormal3iv_Hook(const GLint *v);
   1.408 +            void            glNormal3s_Hook(GLshort nx, GLshort ny, GLshort nz);
   1.409 +            void            glNormal3sv_Hook(const GLshort *v);
   1.410 +            void            glNormalPointer_Hook(GLenum type, GLsizei stride, const void *pointer);
   1.411 +            void            glOrtho_Hook(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
   1.412 +            void            glPassThrough_Hook(GLfloat token);
   1.413 +            void            glPixelMapfv_Hook(GLenum map, GLsizei mapsize, const GLfloat *values);
   1.414 +            void            glPixelMapuiv_Hook(GLenum map, GLsizei mapsize, const GLuint *values);
   1.415 +            void            glPixelMapusv_Hook(GLenum map, GLsizei mapsize, const GLushort *values);
   1.416 +            void            glPixelStoref_Hook(GLenum pname, GLfloat param);
   1.417 +            void            glPixelStorei_Hook(GLenum pname, GLint param);
   1.418 +            void            glPixelTransferf_Hook(GLenum pname, GLfloat param);
   1.419 +            void            glPixelTransferi_Hook(GLenum pname, GLint param);
   1.420 +            void            glPixelZoom_Hook(GLfloat xfactor, GLfloat yfactor);
   1.421 +            void            glPointSize_Hook(GLfloat size);
   1.422 +            void            glPolygonMode_Hook(GLenum face, GLenum mode);
   1.423 +            void            glPolygonOffset_Hook(GLfloat factor, GLfloat units);
   1.424 +            void            glPolygonStipple_Hook(const GLubyte *mask);
   1.425 +            void            glPopAttrib_Hook(void);
   1.426 +            void            glPopClientAttrib_Hook(void);
   1.427 +            void            glPopMatrix_Hook(void);
   1.428 +            void            glPopName_Hook(void);
   1.429 +            void            glPrioritizeTextures_Hook(GLsizei n, const GLuint *textures, const GLclampf *priorities);
   1.430 +            void            glPushAttrib_Hook(GLbitfield mask);
   1.431 +            void            glPushClientAttrib_Hook(GLbitfield mask);
   1.432 +            void            glPushMatrix_Hook(void);
   1.433 +            void            glPushName_Hook(GLuint name);
   1.434 +            void            glRasterPos2d_Hook(GLdouble x, GLdouble y);
   1.435 +            void            glRasterPos2dv_Hook(const GLdouble *v);
   1.436 +            void            glRasterPos2f_Hook(GLfloat x, GLfloat y);
   1.437 +            void            glRasterPos2fv_Hook(const GLfloat *v);
   1.438 +            void            glRasterPos2i_Hook(GLint x, GLint y);
   1.439 +            void            glRasterPos2iv_Hook(const GLint *v);
   1.440 +            void            glRasterPos2s_Hook(GLshort x, GLshort y);
   1.441 +            void            glRasterPos2sv_Hook(const GLshort *v);
   1.442 +            void            glRasterPos3d_Hook(GLdouble x, GLdouble y, GLdouble z);
   1.443 +            void            glRasterPos3dv_Hook(const GLdouble *v);
   1.444 +            void            glRasterPos3f_Hook(GLfloat x, GLfloat y, GLfloat z);
   1.445 +            void            glRasterPos3fv_Hook(const GLfloat *v);
   1.446 +            void            glRasterPos3i_Hook(GLint x, GLint y, GLint z);
   1.447 +            void            glRasterPos3iv_Hook(const GLint *v);
   1.448 +            void            glRasterPos3s_Hook(GLshort x, GLshort y, GLshort z);
   1.449 +            void            glRasterPos3sv_Hook(const GLshort *v);
   1.450 +            void            glRasterPos4d_Hook(GLdouble x, GLdouble y, GLdouble z, GLdouble w);
   1.451 +            void            glRasterPos4dv_Hook(const GLdouble *v);
   1.452 +            void            glRasterPos4f_Hook(GLfloat x, GLfloat y, GLfloat z, GLfloat w);
   1.453 +            void            glRasterPos4fv_Hook(const GLfloat *v);
   1.454 +            void            glRasterPos4i_Hook(GLint x, GLint y, GLint z, GLint w);
   1.455 +            void            glRasterPos4iv_Hook(const GLint *v);
   1.456 +            void            glRasterPos4s_Hook(GLshort x, GLshort y, GLshort z, GLshort w);
   1.457 +            void            glRasterPos4sv_Hook(const GLshort *v);
   1.458 +            void            glReadBuffer_Hook(GLenum mode);
   1.459 +            void            glReadPixels_Hook(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, void *pixels);
   1.460 +            void            glRectd_Hook(GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2);
   1.461 +            void            glRectdv_Hook(const GLdouble *v1, const GLdouble *v2);
   1.462 +            void            glRectf_Hook(GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2);
   1.463 +            void            glRectfv_Hook(const GLfloat *v1, const GLfloat *v2);
   1.464 +            void            glRecti_Hook(GLint x1, GLint y1, GLint x2, GLint y2);
   1.465 +            void            glRectiv_Hook(const GLint *v1, const GLint *v2);
   1.466 +            void            glRects_Hook(GLshort x1, GLshort y1, GLshort x2, GLshort y2);
   1.467 +            void            glRectsv_Hook(const GLshort *v1, const GLshort *v2);
   1.468 +            GLint           glRenderMode_Hook(GLenum mode);
   1.469 +            void            glRotated_Hook(GLdouble angle, GLdouble x, GLdouble y, GLdouble z);
   1.470 +            void            glRotatef_Hook(GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
   1.471 +            void            glScaled_Hook(GLdouble x, GLdouble y, GLdouble z);
   1.472 +            void            glScalef_Hook(GLfloat x, GLfloat y, GLfloat z);
   1.473 +            void            glScissor_Hook(GLint x, GLint y, GLsizei width, GLsizei height);
   1.474 +            void            glSelectBuffer_Hook(GLsizei size, GLuint *buffer);
   1.475 +            void            glShadeModel_Hook(GLenum mode);
   1.476 +            void            glStencilFunc_Hook(GLenum func, GLint ref, GLuint mask);
   1.477 +            void            glStencilMask_Hook(GLuint mask);
   1.478 +            void            glStencilOp_Hook(GLenum fail, GLenum zfail, GLenum zpass);
   1.479 +            void            glTexCoord1d_Hook(GLdouble s);
   1.480 +            void            glTexCoord1dv_Hook(const GLdouble *v);
   1.481 +            void            glTexCoord1f_Hook(GLfloat s);
   1.482 +            void            glTexCoord1fv_Hook(const GLfloat *v);
   1.483 +            void            glTexCoord1i_Hook(GLint s);
   1.484 +            void            glTexCoord1iv_Hook(const GLint *v);
   1.485 +            void            glTexCoord1s_Hook(GLshort s);
   1.486 +            void            glTexCoord1sv_Hook(const GLshort *v);
   1.487 +            void            glTexCoord2d_Hook(GLdouble s, GLdouble t);
   1.488 +            void            glTexCoord2dv_Hook(const GLdouble *v);
   1.489 +            void            glTexCoord2f_Hook(GLfloat s, GLfloat t);
   1.490 +            void            glTexCoord2fv_Hook(const GLfloat *v);
   1.491 +            void            glTexCoord2i_Hook(GLint s, GLint t);
   1.492 +            void            glTexCoord2iv_Hook(const GLint *v);
   1.493 +            void            glTexCoord2s_Hook(GLshort s, GLshort t);
   1.494 +            void            glTexCoord2sv_Hook(const GLshort *v);
   1.495 +            void            glTexCoord3d_Hook(GLdouble s, GLdouble t, GLdouble r);
   1.496 +            void            glTexCoord3dv_Hook(const GLdouble *v);
   1.497 +            void            glTexCoord3f_Hook(GLfloat s, GLfloat t, GLfloat r);
   1.498 +            void            glTexCoord3fv_Hook(const GLfloat *v);
   1.499 +            void            glTexCoord3i_Hook(GLint s, GLint t, GLint r);
   1.500 +            void            glTexCoord3iv_Hook(const GLint *v);
   1.501 +            void            glTexCoord3s_Hook(GLshort s, GLshort t, GLshort r);
   1.502 +            void            glTexCoord3sv_Hook(const GLshort *v);
   1.503 +            void            glTexCoord4d_Hook(GLdouble s, GLdouble t, GLdouble r, GLdouble q);
   1.504 +            void            glTexCoord4dv_Hook(const GLdouble *v);
   1.505 +            void            glTexCoord4f_Hook(GLfloat s, GLfloat t, GLfloat r, GLfloat q);
   1.506 +            void            glTexCoord4fv_Hook(const GLfloat *v);
   1.507 +            void            glTexCoord4i_Hook(GLint s, GLint t, GLint r, GLint q);
   1.508 +            void            glTexCoord4iv_Hook(const GLint *v);
   1.509 +            void            glTexCoord4s_Hook(GLshort s, GLshort t, GLshort r, GLshort q);
   1.510 +            void            glTexCoord4sv_Hook(const GLshort *v);
   1.511 +            void            glTexCoordPointer_Hook(GLint size, GLenum type, GLsizei stride, const void *pointer);
   1.512 +            void            glTexEnvf_Hook(GLenum target, GLenum pname, GLfloat param);
   1.513 +            void            glTexEnvfv_Hook(GLenum target, GLenum pname, const GLfloat *params);
   1.514 +            void            glTexEnvi_Hook(GLenum target, GLenum pname, GLint param);
   1.515 +            void            glTexEnviv_Hook(GLenum target, GLenum pname, const GLint *params);
   1.516 +            void            glTexGend_Hook(GLenum coord, GLenum pname, GLdouble param);
   1.517 +            void            glTexGendv_Hook(GLenum coord, GLenum pname, const GLdouble *params);
   1.518 +            void            glTexGenf_Hook(GLenum coord, GLenum pname, GLfloat param);
   1.519 +            void            glTexGenfv_Hook(GLenum coord, GLenum pname, const GLfloat *params);
   1.520 +            void            glTexGeni_Hook(GLenum coord, GLenum pname, GLint param);
   1.521 +            void            glTexGeniv_Hook(GLenum coord, GLenum pname, const GLint *params);
   1.522 +            void            glTexImage1D_Hook(GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const void *pixels);
   1.523 +            void            glTexImage2D_Hook(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels);
   1.524 +            void            glTexParameterf_Hook(GLenum target, GLenum pname, GLfloat param);
   1.525 +            void            glTexParameterfv_Hook(GLenum target, GLenum pname, const GLfloat *params);
   1.526 +            void            glTexParameteri_Hook(GLenum target, GLenum pname, GLint param);
   1.527 +            void            glTexParameteriv_Hook(GLenum target, GLenum pname, const GLint *params);
   1.528 +            void            glTexSubImage1D_Hook(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels);
   1.529 +            void            glTexSubImage2D_Hook(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels);
   1.530 +            void            glTranslated_Hook(GLdouble x, GLdouble y, GLdouble z);
   1.531 +            void            glTranslatef_Hook(GLfloat x, GLfloat y, GLfloat z);
   1.532 +            void            glVertex2d_Hook(GLdouble x, GLdouble y);
   1.533 +            void            glVertex2dv_Hook(const GLdouble *v);
   1.534 +            void            glVertex2f_Hook(GLfloat x, GLfloat y);
   1.535 +            void            glVertex2fv_Hook(const GLfloat *v);
   1.536 +            void            glVertex2i_Hook(GLint x, GLint y);
   1.537 +            void            glVertex2iv_Hook(const GLint *v);
   1.538 +            void            glVertex2s_Hook(GLshort x, GLshort y);
   1.539 +            void            glVertex2sv_Hook(const GLshort *v);
   1.540 +            void            glVertex3d_Hook(GLdouble x, GLdouble y, GLdouble z);
   1.541 +            void            glVertex3dv_Hook(const GLdouble *v);
   1.542 +            void            glVertex3f_Hook(GLfloat x, GLfloat y, GLfloat z);
   1.543 +            void            glVertex3fv_Hook(const GLfloat *v);
   1.544 +            void            glVertex3i_Hook(GLint x, GLint y, GLint z);
   1.545 +            void            glVertex3iv_Hook(const GLint *v);
   1.546 +            void            glVertex3s_Hook(GLshort x, GLshort y, GLshort z);
   1.547 +            void            glVertex3sv_Hook(const GLshort *v);
   1.548 +            void            glVertex4d_Hook(GLdouble x, GLdouble y, GLdouble z, GLdouble w);
   1.549 +            void            glVertex4dv_Hook(const GLdouble *v);
   1.550 +            void            glVertex4f_Hook(GLfloat x, GLfloat y, GLfloat z, GLfloat w);
   1.551 +            void            glVertex4fv_Hook(const GLfloat *v);
   1.552 +            void            glVertex4i_Hook(GLint x, GLint y, GLint z, GLint w);
   1.553 +            void            glVertex4iv_Hook(const GLint *v);
   1.554 +            void            glVertex4s_Hook(GLshort x, GLshort y, GLshort z, GLshort w);
   1.555 +            void            glVertex4sv_Hook(const GLshort *v);
   1.556 +            void            glVertexPointer_Hook(GLint size, GLenum type, GLsizei stride, const void *pointer);
   1.557 +            void            glViewport_Hook(GLint x, GLint y, GLsizei width, GLsizei height);
   1.558 +
   1.559 +            // GL_VERSION_1_2
   1.560 +            void glBlendColor_Hook(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
   1.561 +            void glBlendEquation_Hook(GLenum mode);
   1.562 +            void glDrawRangeElements_Hook(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices);
   1.563 +            void glTexImage3D_Hook(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
   1.564 +            void glTexSubImage3D_Hook(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels);
   1.565 +            void glCopyTexSubImage3D_Hook(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
   1.566 +
   1.567 +            // GL_VERSION_1_2 deprecated functions
   1.568 +            /* Not currently supported
   1.569 +            void glColorTable_Hook(GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *table);
   1.570 +            void glColorTableParameterfv_Hook(GLenum target, GLenum pname, const GLfloat *params);
   1.571 +            void glColorTableParameteriv_Hook(GLenum target, GLenum pname, const GLint *params);
   1.572 +            void glCopyColorTable_Hook(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
   1.573 +            void glGetColorTable_Hook(GLenum target, GLenum format, GLenum type, GLvoid *table);
   1.574 +            void glGetColorTableParameterfv_Hook(GLenum target, GLenum pname, GLfloat *params);
   1.575 +            void glGetColorTableParameteriv_Hook(GLenum target, GLenum pname, GLint *params);
   1.576 +            void glColorSubTable_Hook(GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid *data);
   1.577 +            void glCopyColorSubTable_Hook(GLenum target, GLsizei start, GLint x, GLint y, GLsizei width);
   1.578 +            void glConvolutionFilter1D_Hook(GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *image);
   1.579 +            void glConvolutionFilter2D_Hook(GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *image);
   1.580 +            void glConvolutionParameterf_Hook(GLenum target, GLenum pname, GLfloat params);
   1.581 +            void glConvolutionParameterfv_Hook(GLenum target, GLenum pname, const GLfloat *params);
   1.582 +            void glConvolutionParameteri_Hook(GLenum target, GLenum pname, GLint params);
   1.583 +            void glConvolutionParameteriv_Hook(GLenum target, GLenum pname, const GLint *params);
   1.584 +            void glCopyConvolutionFilter1D_Hook(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
   1.585 +            void glCopyConvolutionFilter2D_Hook(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height);
   1.586 +            void glGetConvolutionFilter_Hook(GLenum target, GLenum format, GLenum type, GLvoid *image);
   1.587 +            void glGetConvolutionParameterfv_Hook(GLenum target, GLenum pname, GLfloat *params);
   1.588 +            void glGetConvolutionParameteriv_Hook(GLenum target, GLenum pname, GLint *params);
   1.589 +            void glGetSeparableFilter_Hook(GLenum target, GLenum format, GLenum type, GLvoid *row, GLvoid *column, GLvoid *span);
   1.590 +            void glSeparableFilter2D_Hook(GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *row, const GLvoid *column);
   1.591 +            void glGetHistogram_Hook(GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values);
   1.592 +            void glGetHistogramParameterfv_Hook(GLenum target, GLenum pname, GLfloat *params);
   1.593 +            void glGetHistogramParameteriv_Hook(GLenum target, GLenum pname, GLint *params);
   1.594 +            void glGetMinmax_Hook(GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values);
   1.595 +            void glGetMinmaxParameterfv_Hook(GLenum target, GLenum pname, GLfloat *params);
   1.596 +            void glGetMinmaxParameteriv_Hook(GLenum target, GLenum pname, GLint *params);
   1.597 +            void glHistogram_Hook(GLenum target, GLsizei width, GLenum internalformat, GLboolean sink);
   1.598 +            void glMinmax_Hook(GLenum target, GLenum internalformat, GLboolean sink);
   1.599 +            void glResetHistogram_Hook(GLenum target);
   1.600 +            void glResetMinmax_Hook(GLenum target);
   1.601 +            */
   1.602 +        
   1.603 +            // GL_VERSION_1_3
   1.604 +            void glActiveTexture_Hook(GLenum texture);
   1.605 +            void glSampleCoverage_Hook(GLclampf value, GLboolean invert);
   1.606 +            void glCompressedTexImage3D_Hook(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data);
   1.607 +            void glCompressedTexImage2D_Hook(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data);
   1.608 +            void glCompressedTexImage1D_Hook(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data);
   1.609 +            void glCompressedTexSubImage3D_Hook(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *data);
   1.610 +            void glCompressedTexSubImage2D_Hook(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data);
   1.611 +            void glCompressedTexSubImage1D_Hook(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data);
   1.612 +            void glGetCompressedTexImage_Hook(GLenum target, GLint level, GLvoid *img);
   1.613 +
   1.614 +            // GL_VERSION_1_3 deprecated functions
   1.615 +            void glClientActiveTexture_Hook(GLenum texture);
   1.616 +            void glMultiTexCoord1d_Hook(GLenum target, GLdouble s);
   1.617 +            void glMultiTexCoord1dv_Hook(GLenum target, const GLdouble *v);
   1.618 +            void glMultiTexCoord1f_Hook(GLenum target, GLfloat s);
   1.619 +            void glMultiTexCoord1fv_Hook(GLenum target, const GLfloat *v);
   1.620 +            void glMultiTexCoord1i_Hook(GLenum target, GLint s);
   1.621 +            void glMultiTexCoord1iv_Hook(GLenum target, const GLint *v);
   1.622 +            void glMultiTexCoord1s_Hook(GLenum target, GLshort s);
   1.623 +            void glMultiTexCoord1sv_Hook(GLenum target, const GLshort *v);
   1.624 +            void glMultiTexCoord2d_Hook(GLenum target, GLdouble s, GLdouble t);
   1.625 +            void glMultiTexCoord2dv_Hook(GLenum target, const GLdouble *v);
   1.626 +            void glMultiTexCoord2f_Hook(GLenum target, GLfloat s, GLfloat t);
   1.627 +            void glMultiTexCoord2fv_Hook(GLenum target, const GLfloat *v);
   1.628 +            void glMultiTexCoord2i_Hook(GLenum target, GLint s, GLint t);
   1.629 +            void glMultiTexCoord2iv_Hook(GLenum target, const GLint *v);
   1.630 +            void glMultiTexCoord2s_Hook(GLenum target, GLshort s, GLshort t);
   1.631 +            void glMultiTexCoord2sv_Hook(GLenum target, const GLshort *v);
   1.632 +            void glMultiTexCoord3d_Hook(GLenum target, GLdouble s, GLdouble t, GLdouble r);
   1.633 +            void glMultiTexCoord3dv_Hook(GLenum target, const GLdouble *v);
   1.634 +            void glMultiTexCoord3f_Hook(GLenum target, GLfloat s, GLfloat t, GLfloat r);
   1.635 +            void glMultiTexCoord3fv_Hook(GLenum target, const GLfloat *v);
   1.636 +            void glMultiTexCoord3i_Hook(GLenum target, GLint s, GLint t, GLint r);
   1.637 +            void glMultiTexCoord3iv_Hook(GLenum target, const GLint *v);
   1.638 +            void glMultiTexCoord3s_Hook(GLenum target, GLshort s, GLshort t, GLshort r);
   1.639 +            void glMultiTexCoord3sv_Hook(GLenum target, const GLshort *v);
   1.640 +            void glMultiTexCoord4d_Hook(GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
   1.641 +            void glMultiTexCoord4dv_Hook(GLenum target, const GLdouble *v);
   1.642 +            void glMultiTexCoord4f_Hook(GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
   1.643 +            void glMultiTexCoord4fv_Hook(GLenum target, const GLfloat *v);
   1.644 +            void glMultiTexCoord4i_Hook(GLenum target, GLint s, GLint t, GLint r, GLint q);
   1.645 +            void glMultiTexCoord4iv_Hook(GLenum target, const GLint *v);
   1.646 +            void glMultiTexCoord4s_Hook(GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
   1.647 +            void glMultiTexCoord4sv_Hook(GLenum target, const GLshort *v);
   1.648 +            void glLoadTransposeMatrixf_Hook(const GLfloat *m);
   1.649 +            void glLoadTransposeMatrixd_Hook(const GLdouble *m);
   1.650 +            void glMultTransposeMatrixf_Hook(const GLfloat *m);
   1.651 +            void glMultTransposeMatrixd_Hook(const GLdouble *m);
   1.652 +
   1.653 +            // GL_VERSION_1_4
   1.654 +            void glBlendFuncSeparate_Hook(GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
   1.655 +            void glMultiDrawArrays_Hook(GLenum mode, const GLint *first, const GLsizei *count, GLsizei primcount);
   1.656 +            void glMultiDrawElements_Hook(GLenum mode, const GLsizei *count, GLenum type, const GLvoid* *indices, GLsizei primcount);
   1.657 +            void glPointParameterf_Hook(GLenum pname, GLfloat param);
   1.658 +            void glPointParameterfv_Hook(GLenum pname, const GLfloat *params);
   1.659 +            void glPointParameteri_Hook(GLenum pname, GLint param);
   1.660 +            void glPointParameteriv_Hook(GLenum pname, const GLint *params);
   1.661 +
   1.662 +            // GL_VERSION_1_4 deprecated functions
   1.663 +            void glFogCoordf_Hook(GLfloat coord);
   1.664 +            void glFogCoordfv_Hook(const GLfloat *coord);
   1.665 +            void glFogCoordd_Hook(GLdouble coord);
   1.666 +            void glFogCoorddv_Hook(const GLdouble *coord);
   1.667 +            void glFogCoordPointer_Hook(GLenum type, GLsizei stride, const GLvoid *pointer);
   1.668 +            void glSecondaryColor3b_Hook(GLbyte red, GLbyte green, GLbyte blue);
   1.669 +            void glSecondaryColor3bv_Hook(const GLbyte *v);
   1.670 +            void glSecondaryColor3d_Hook(GLdouble red, GLdouble green, GLdouble blue);
   1.671 +            void glSecondaryColor3dv_Hook(const GLdouble *v);
   1.672 +            void glSecondaryColor3f_Hook(GLfloat red, GLfloat green, GLfloat blue);
   1.673 +            void glSecondaryColor3fv_Hook(const GLfloat *v);
   1.674 +            void glSecondaryColor3i_Hook(GLint red, GLint green, GLint blue);
   1.675 +            void glSecondaryColor3iv_Hook(const GLint *v);
   1.676 +            void glSecondaryColor3s_Hook(GLshort red, GLshort green, GLshort blue);
   1.677 +            void glSecondaryColor3sv_Hook(const GLshort *v);
   1.678 +            void glSecondaryColor3ub_Hook(GLubyte red, GLubyte green, GLubyte blue);
   1.679 +            void glSecondaryColor3ubv_Hook(const GLubyte *v);
   1.680 +            void glSecondaryColor3ui_Hook(GLuint red, GLuint green, GLuint blue);
   1.681 +            void glSecondaryColor3uiv_Hook(const GLuint *v);
   1.682 +            void glSecondaryColor3us_Hook(GLushort red, GLushort green, GLushort blue);
   1.683 +            void glSecondaryColor3usv_Hook(const GLushort *v);
   1.684 +            void glSecondaryColorPointer_Hook(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
   1.685 +            void glWindowPos2d_Hook(GLdouble x, GLdouble y);
   1.686 +            void glWindowPos2dv_Hook(const GLdouble *v);
   1.687 +            void glWindowPos2f_Hook(GLfloat x, GLfloat y);
   1.688 +            void glWindowPos2fv_Hook(const GLfloat *v);
   1.689 +            void glWindowPos2i_Hook(GLint x, GLint y);
   1.690 +            void glWindowPos2iv_Hook(const GLint *v);
   1.691 +            void glWindowPos2s_Hook(GLshort x, GLshort y);
   1.692 +            void glWindowPos2sv_Hook(const GLshort *v);
   1.693 +            void glWindowPos3d_Hook(GLdouble x, GLdouble y, GLdouble z);
   1.694 +            void glWindowPos3dv_Hook(const GLdouble *v);
   1.695 +            void glWindowPos3f_Hook(GLfloat x, GLfloat y, GLfloat z);
   1.696 +            void glWindowPos3fv_Hook(const GLfloat *v);
   1.697 +            void glWindowPos3i_Hook(GLint x, GLint y, GLint z);
   1.698 +            void glWindowPos3iv_Hook(const GLint *v);
   1.699 +            void glWindowPos3s_Hook(GLshort x, GLshort y, GLshort z);
   1.700 +            void glWindowPos3sv_Hook(const GLshort *v);
   1.701 +
   1.702 +            // GL_VERSION_1_5
   1.703 +            void glGenQueries_Hook(GLsizei n, GLuint *ids);
   1.704 +            void glDeleteQueries_Hook(GLsizei n, const GLuint *ids);
   1.705 +            GLboolean glIsQuery_Hook(GLuint id);
   1.706 +            void glBeginQuery_Hook(GLenum target, GLuint id);
   1.707 +            void glEndQuery_Hook(GLenum target);
   1.708 +            void glGetQueryiv_Hook(GLenum target, GLenum pname, GLint *params);
   1.709 +            void glGetQueryObjectiv_Hook(GLuint id, GLenum pname, GLint *params);
   1.710 +            void glGetQueryObjectuiv_Hook(GLuint id, GLenum pname, GLuint *params);
   1.711 +            void glBindBuffer_Hook(GLenum target, GLuint buffer);
   1.712 +            void glDeleteBuffers_Hook(GLsizei n, const GLuint *buffers);
   1.713 +            void glGenBuffers_Hook(GLsizei n, GLuint *buffers);
   1.714 +            GLboolean glIsBuffer_Hook(GLuint buffer);
   1.715 +            void glBufferData_Hook(GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage);
   1.716 +            void glBufferSubData_Hook(GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid *data);
   1.717 +            void glGetBufferSubData_Hook(GLenum target, GLintptr offset, GLsizeiptr size, GLvoid *data);
   1.718 +            GLvoid* glMapBuffer_Hook(GLenum target, GLenum access);
   1.719 +            GLboolean glUnmapBuffer_Hook(GLenum target);
   1.720 +            void glGetBufferParameteriv_Hook(GLenum target, GLenum pname, GLint *params);
   1.721 +            void glGetBufferPointerv_Hook(GLenum target, GLenum pname, GLvoid* *params);
   1.722 +
   1.723 +            // GL_VERSION_2_0
   1.724 +            void glBlendEquationSeparate_Hook(GLenum modeRGB, GLenum modeAlpha);
   1.725 +            void glDrawBuffers_Hook(GLsizei n, const GLenum *bufs);
   1.726 +            void glStencilOpSeparate_Hook(GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
   1.727 +            void glStencilFuncSeparate_Hook(GLenum face, GLenum func, GLint ref, GLuint mask);
   1.728 +            void glStencilMaskSeparate_Hook(GLenum face, GLuint mask);
   1.729 +            void glAttachShader_Hook(GLuint program, GLuint shader);
   1.730 +            void glBindAttribLocation_Hook(GLuint program, GLuint index, const GLchar *name);
   1.731 +            void glCompileShader_Hook(GLuint shader);
   1.732 +            GLuint glCreateProgram_Hook(void);
   1.733 +            GLuint glCreateShader_Hook(GLenum type);
   1.734 +            void glDeleteProgram_Hook(GLuint program);
   1.735 +            void glDeleteShader_Hook(GLuint shader);
   1.736 +            void glDetachShader_Hook(GLuint program, GLuint shader);
   1.737 +            void glDisableVertexAttribArray_Hook(GLuint index);
   1.738 +            void glEnableVertexAttribArray_Hook(GLuint index);
   1.739 +            void glGetActiveAttrib_Hook(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
   1.740 +            void glGetActiveUniform_Hook(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
   1.741 +            void glGetAttachedShaders_Hook(GLuint program, GLsizei maxCount, GLsizei *count, GLuint *obj);
   1.742 +            GLint glGetAttribLocation_Hook(GLuint program, const GLchar *name);
   1.743 +            void glGetProgramiv_Hook(GLuint program, GLenum pname, GLint *params);
   1.744 +            void glGetProgramInfoLog_Hook(GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
   1.745 +            void glGetShaderiv_Hook(GLuint shader, GLenum pname, GLint *params);
   1.746 +            void glGetShaderInfoLog_Hook(GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
   1.747 +            void glGetShaderSource_Hook(GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source);
   1.748 +            GLint glGetUniformLocation_Hook(GLuint program, const GLchar *name);
   1.749 +            void glGetUniformfv_Hook(GLuint program, GLint location, GLfloat *params);
   1.750 +            void glGetUniformiv_Hook(GLuint program, GLint location, GLint *params);
   1.751 +            void glGetVertexAttribdv_Hook(GLuint index, GLenum pname, GLdouble *params);
   1.752 +            void glGetVertexAttribfv_Hook(GLuint index, GLenum pname, GLfloat *params);
   1.753 +            void glGetVertexAttribiv_Hook(GLuint index, GLenum pname, GLint *params);
   1.754 +            void glGetVertexAttribPointerv_Hook(GLuint index, GLenum pname, GLvoid* *pointer);
   1.755 +            GLboolean glIsProgram_Hook(GLuint program);
   1.756 +            GLboolean glIsShader_Hook(GLuint shader);
   1.757 +            void glLinkProgram_Hook(GLuint program);
   1.758 +            void glShaderSource_Hook(GLuint shader, GLsizei count, const GLchar* *string, const GLint *length);
   1.759 +            void glUseProgram_Hook(GLuint program);
   1.760 +            void glUniform1f_Hook(GLint location, GLfloat v0);
   1.761 +            void glUniform2f_Hook(GLint location, GLfloat v0, GLfloat v1);
   1.762 +            void glUniform3f_Hook(GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
   1.763 +            void glUniform4f_Hook(GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
   1.764 +            void glUniform1i_Hook(GLint location, GLint v0);
   1.765 +            void glUniform2i_Hook(GLint location, GLint v0, GLint v1);
   1.766 +            void glUniform3i_Hook(GLint location, GLint v0, GLint v1, GLint v2);
   1.767 +            void glUniform4i_Hook(GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
   1.768 +            void glUniform1fv_Hook(GLint location, GLsizei count, const GLfloat *value);
   1.769 +            void glUniform2fv_Hook(GLint location, GLsizei count, const GLfloat *value);
   1.770 +            void glUniform3fv_Hook(GLint location, GLsizei count, const GLfloat *value);
   1.771 +            void glUniform4fv_Hook(GLint location, GLsizei count, const GLfloat *value);
   1.772 +            void glUniform1iv_Hook(GLint location, GLsizei count, const GLint *value);
   1.773 +            void glUniform2iv_Hook(GLint location, GLsizei count, const GLint *value);
   1.774 +            void glUniform3iv_Hook(GLint location, GLsizei count, const GLint *value);
   1.775 +            void glUniform4iv_Hook(GLint location, GLsizei count, const GLint *value);
   1.776 +            void glUniformMatrix2fv_Hook(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
   1.777 +            void glUniformMatrix3fv_Hook(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
   1.778 +            void glUniformMatrix4fv_Hook(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
   1.779 +            void glValidateProgram_Hook(GLuint program);
   1.780 +            void glVertexAttrib1d_Hook(GLuint index, GLdouble x);
   1.781 +            void glVertexAttrib1dv_Hook(GLuint index, const GLdouble *v);
   1.782 +            void glVertexAttrib1f_Hook(GLuint index, GLfloat x);
   1.783 +            void glVertexAttrib1fv_Hook(GLuint index, const GLfloat *v);
   1.784 +            void glVertexAttrib1s_Hook(GLuint index, GLshort x);
   1.785 +            void glVertexAttrib1sv_Hook(GLuint index, const GLshort *v);
   1.786 +            void glVertexAttrib2d_Hook(GLuint index, GLdouble x, GLdouble y);
   1.787 +            void glVertexAttrib2dv_Hook(GLuint index, const GLdouble *v);
   1.788 +            void glVertexAttrib2f_Hook(GLuint index, GLfloat x, GLfloat y);
   1.789 +            void glVertexAttrib2fv_Hook(GLuint index, const GLfloat *v);
   1.790 +            void glVertexAttrib2s_Hook(GLuint index, GLshort x, GLshort y);
   1.791 +            void glVertexAttrib2sv_Hook(GLuint index, const GLshort *v);
   1.792 +            void glVertexAttrib3d_Hook(GLuint index, GLdouble x, GLdouble y, GLdouble z);
   1.793 +            void glVertexAttrib3dv_Hook(GLuint index, const GLdouble *v);
   1.794 +            void glVertexAttrib3f_Hook(GLuint index, GLfloat x, GLfloat y, GLfloat z);
   1.795 +            void glVertexAttrib3fv_Hook(GLuint index, const GLfloat *v);
   1.796 +            void glVertexAttrib3s_Hook(GLuint index, GLshort x, GLshort y, GLshort z);
   1.797 +            void glVertexAttrib3sv_Hook(GLuint index, const GLshort *v);
   1.798 +            void glVertexAttrib4Nbv_Hook(GLuint index, const GLbyte *v);
   1.799 +            void glVertexAttrib4Niv_Hook(GLuint index, const GLint *v);
   1.800 +            void glVertexAttrib4Nsv_Hook(GLuint index, const GLshort *v);
   1.801 +            void glVertexAttrib4Nub_Hook(GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
   1.802 +            void glVertexAttrib4Nubv_Hook(GLuint index, const GLubyte *v);
   1.803 +            void glVertexAttrib4Nuiv_Hook(GLuint index, const GLuint *v);
   1.804 +            void glVertexAttrib4Nusv_Hook(GLuint index, const GLushort *v);
   1.805 +            void glVertexAttrib4bv_Hook(GLuint index, const GLbyte *v);
   1.806 +            void glVertexAttrib4d_Hook(GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
   1.807 +            void glVertexAttrib4dv_Hook(GLuint index, const GLdouble *v);
   1.808 +            void glVertexAttrib4f_Hook(GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
   1.809 +            void glVertexAttrib4fv_Hook(GLuint index, const GLfloat *v);
   1.810 +            void glVertexAttrib4iv_Hook(GLuint index, const GLint *v);
   1.811 +            void glVertexAttrib4s_Hook(GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
   1.812 +            void glVertexAttrib4sv_Hook(GLuint index, const GLshort *v);
   1.813 +            void glVertexAttrib4ubv_Hook(GLuint index, const GLubyte *v);
   1.814 +            void glVertexAttrib4uiv_Hook(GLuint index, const GLuint *v);
   1.815 +            void glVertexAttrib4usv_Hook(GLuint index, const GLushort *v);
   1.816 +            void glVertexAttribPointer_Hook(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer);
   1.817 +
   1.818 +            // GL_VERSION_2_1
   1.819 +            void glUniformMatrix2x3fv_Hook(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
   1.820 +            void glUniformMatrix3x2fv_Hook(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
   1.821 +            void glUniformMatrix2x4fv_Hook(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
   1.822 +            void glUniformMatrix4x2fv_Hook(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
   1.823 +            void glUniformMatrix3x4fv_Hook(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
   1.824 +            void glUniformMatrix4x3fv_Hook(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
   1.825 +
   1.826 +            // GL_VERSION_3_0
   1.827 +            void glColorMaski_Hook(GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a);
   1.828 +            void glGetBooleani_v_Hook(GLenum target, GLuint index, GLboolean *data);
   1.829 +            void  glGetIntegeri_v_Hook(GLenum target, GLuint index, GLint *data);
   1.830 +            void   glEnablei_Hook(GLenum target, GLuint index);
   1.831 +            void     glDisablei_Hook(GLenum target, GLuint index);
   1.832 +            GLboolean glIsEnabledi_Hook(GLenum target, GLuint index);
   1.833 +            void     glBeginTransformFeedback_Hook(GLenum primitiveMode);
   1.834 +            void    glEndTransformFeedback_Hook(void);
   1.835 +            void  glBindBufferRange_Hook(GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);
   1.836 +            void glBindBufferBase_Hook(GLenum target, GLuint index, GLuint buffer);
   1.837 +            void glTransformFeedbackVaryings_Hook(GLuint program, GLsizei count, const GLchar* *varyings, GLenum bufferMode);
   1.838 +            void glGetTransformFeedbackVarying_Hook(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name);
   1.839 +            void glClampColor_Hook(GLenum target, GLenum clamp);
   1.840 +            void glBeginConditionalRender_Hook(GLuint id, GLenum mode);
   1.841 +            void glEndConditionalRender_Hook(void);
   1.842 +            void glVertexAttribIPointer_Hook(GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
   1.843 +            void glGetVertexAttribIiv_Hook(GLuint index, GLenum pname, GLint *params);
   1.844 +            void glGetVertexAttribIuiv_Hook(GLuint index, GLenum pname, GLuint *params);
   1.845 +            void glVertexAttribI1i_Hook(GLuint index, GLint x);
   1.846 +            void glVertexAttribI2i_Hook(GLuint index, GLint x, GLint y);
   1.847 +            void glVertexAttribI3i_Hook(GLuint index, GLint x, GLint y, GLint z);
   1.848 +            void glVertexAttribI4i_Hook(GLuint index, GLint x, GLint y, GLint z, GLint w);
   1.849 +            void glVertexAttribI1ui_Hook(GLuint index, GLuint x);
   1.850 +            void glVertexAttribI2ui_Hook(GLuint index, GLuint x, GLuint y);
   1.851 +            void glVertexAttribI3ui_Hook(GLuint index, GLuint x, GLuint y, GLuint z);
   1.852 +            void glVertexAttribI4ui_Hook(GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
   1.853 +            void glVertexAttribI1iv_Hook(GLuint index, const GLint *v);
   1.854 +            void glVertexAttribI2iv_Hook(GLuint index, const GLint *v);
   1.855 +            void glVertexAttribI3iv_Hook(GLuint index, const GLint *v);
   1.856 +            void glVertexAttribI4iv_Hook(GLuint index, const GLint *v);
   1.857 +            void glVertexAttribI1uiv_Hook(GLuint index, const GLuint *v);
   1.858 +            void glVertexAttribI2uiv_Hook(GLuint index, const GLuint *v);
   1.859 +            void glVertexAttribI3uiv_Hook(GLuint index, const GLuint *v);
   1.860 +            void glVertexAttribI4uiv_Hook(GLuint index, const GLuint *v);
   1.861 +            void glVertexAttribI4bv_Hook(GLuint index, const GLbyte *v);
   1.862 +            void glVertexAttribI4sv_Hook(GLuint index, const GLshort *v);
   1.863 +            void glVertexAttribI4ubv_Hook(GLuint index, const GLubyte *v);
   1.864 +            void glVertexAttribI4usv_Hook(GLuint index, const GLushort *v);
   1.865 +            void glGetUniformuiv_Hook(GLuint program, GLint location, GLuint *params);
   1.866 +            void  glBindFragDataLocation_Hook(GLuint program, GLuint color, const GLchar *name);
   1.867 +            GLint glGetFragDataLocation_Hook(GLuint program, const GLchar *name);
   1.868 +            void  glUniform1ui_Hook(GLint location, GLuint v0);
   1.869 +            void glUniform2ui_Hook(GLint location, GLuint v0, GLuint v1);
   1.870 +            void glUniform3ui_Hook(GLint location, GLuint v0, GLuint v1, GLuint v2);
   1.871 +            void glUniform4ui_Hook(GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
   1.872 +            void glUniform1uiv_Hook(GLint location, GLsizei count, const GLuint *value);
   1.873 +            void glUniform2uiv_Hook(GLint location, GLsizei count, const GLuint *value);
   1.874 +            void glUniform3uiv_Hook(GLint location, GLsizei count, const GLuint *value);
   1.875 +            void glUniform4uiv_Hook(GLint location, GLsizei count, const GLuint *value);
   1.876 +            void glTexParameterIiv_Hook(GLenum target, GLenum pname, const GLint *params);
   1.877 +            void glTexParameterIuiv_Hook(GLenum target, GLenum pname, const GLuint *params);
   1.878 +            void glGetTexParameterIiv_Hook(GLenum target, GLenum pname, GLint *params);
   1.879 +            void   glGetTexParameterIuiv_Hook(GLenum target, GLenum pname, GLuint *params);
   1.880 +            void     glClearBufferiv_Hook(GLenum buffer, GLint drawbuffer, const GLint *value);
   1.881 +            void      glClearBufferuiv_Hook(GLenum buffer, GLint drawbuffer, const GLuint *value);
   1.882 +            void        glClearBufferfv_Hook(GLenum buffer, GLint drawbuffer, const GLfloat *value);
   1.883 +            void          glClearBufferfi_Hook(GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil);
   1.884 +            const GLubyte* glGetStringi_Hook(GLenum name, GLuint index);
   1.885 +
   1.886 +            // GL_VERSION_3_1
   1.887 +            void glDrawArraysInstanced_Hook(GLenum mode, GLint first, GLsizei count, GLsizei primcount);
   1.888 +            void glDrawElementsInstanced_Hook(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei primcount);
   1.889 +            void glTexBuffer_Hook(GLenum target, GLenum internalformat, GLuint buffer);
   1.890 +            void glPrimitiveRestartIndex_Hook(GLuint index);
   1.891 +
   1.892 +            // GL_VERSION_3_2
   1.893 +            void glGetInteger64i_v_Hook(GLenum target, GLuint index, GLint64 *data);
   1.894 +            void glGetBufferParameteri64v_Hook(GLenum target, GLenum pname, GLint64 *params);
   1.895 +            void glFramebufferTexture_Hook(GLenum target, GLenum attachment, GLuint texture, GLint level);
   1.896 +
   1.897 +            // GL_VERSION_3_3
   1.898 +            void glVertexAttribDivisor_Hook(GLuint index, GLuint divisor);
   1.899 +
   1.900 +            // GL_VERSION_4_0
   1.901 +            void glMinSampleShading_Hook(GLclampf value);
   1.902 +            void glBlendEquationi_Hook(GLuint buf, GLenum mode);
   1.903 +            void glBlendEquationSeparatei_Hook(GLuint buf, GLenum modeRGB, GLenum modeAlpha);
   1.904 +            void glBlendFunci_Hook(GLuint buf, GLenum src, GLenum dst);
   1.905 +            void glBlendFuncSeparatei_Hook(GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
   1.906 +
   1.907 +            // GL_AMD_debug_output
   1.908 +            void   glDebugMessageEnableAMD_Hook(GLenum category, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
   1.909 +            void   glDebugMessageInsertAMD_Hook(GLenum category, GLenum severity, GLuint id, GLsizei length, const GLchar *buf);
   1.910 +            void   glDebugMessageCallbackAMD_Hook(GLDEBUGPROCAMD callback, GLvoid *userParam);
   1.911 +            GLuint glGetDebugMessageLogAMD_Hook(GLuint count, GLsizei bufsize, GLenum *categories, GLuint *severities, GLuint *ids, GLsizei *lengths, GLchar *message);
   1.912 +
   1.913 +        #if defined(GLE_CGL_ENABLED)
   1.914 +            // GL_APPLE_element_array
   1.915 +            void glElementPointerAPPLE_Hook(GLenum type, const GLvoid *pointer);
   1.916 +            void glDrawElementArrayAPPLE_Hook(GLenum mode, GLint first, GLsizei count);
   1.917 +            void glDrawRangeElementArrayAPPLE_Hook(GLenum mode, GLuint start, GLuint end, GLint first, GLsizei count);
   1.918 +            void glMultiDrawElementArrayAPPLE_Hook(GLenum mode, const GLint *first, const GLsizei *count, GLsizei primcount);
   1.919 +            void glMultiDrawRangeElementArrayAPPLE_Hook(GLenum mode, GLuint start, GLuint end, const GLint *first, const GLsizei *count, GLsizei primcount);
   1.920 +
   1.921 +            // GL_APPLE_fence
   1.922 +            void glGenFencesAPPLE_Hook(GLsizei n, GLuint *fences);
   1.923 +            void glDeleteFencesAPPLE_Hook(GLsizei n, const GLuint *fences);
   1.924 +            void glSetFenceAPPLE_Hook(GLuint fence);
   1.925 +            GLboolean glIsFenceAPPLE_Hook(GLuint fence);
   1.926 +            GLboolean glTestFenceAPPLE_Hook(GLuint fence);
   1.927 +            void glFinishFenceAPPLE_Hook(GLuint fence);
   1.928 +            GLboolean glTestObjectAPPLE_Hook(GLenum object, GLuint name);
   1.929 +            void glFinishObjectAPPLE_Hook(GLenum object, GLint name);
   1.930 +
   1.931 +            // GL_APPLE_flush_buffer_range
   1.932 +            void glBufferParameteriAPPLE_Hook(GLenum target, GLenum pname, GLint param);
   1.933 +            void glFlushMappedBufferRangeAPPLE_Hook(GLenum target, GLintptr offset, GLsizeiptr size);
   1.934 +
   1.935 +            // GL_APPLE_object_purgeable
   1.936 +            GLenum glObjectPurgeableAPPLE_Hook(GLenum objectType, GLuint name, GLenum option);
   1.937 +            GLenum glObjectUnpurgeableAPPLE_Hook(GLenum objectType, GLuint name, GLenum option);
   1.938 +            void glGetObjectParameterivAPPLE_Hook(GLenum objectType, GLuint name, GLenum pname, GLint *params);
   1.939 +
   1.940 +            // GL_APPLE_texture_range
   1.941 +            void glTextureRangeAPPLE_Hook(GLenum target, GLsizei length, const GLvoid *pointer);
   1.942 +            void glGetTexParameterPointervAPPLE_Hook(GLenum target, GLenum pname, GLvoid **params);
   1.943 +
   1.944 +            // GL_APPLE_vertex_array_object
   1.945 +            void glBindVertexArrayAPPLE_Hook(GLuint array);
   1.946 +            void glDeleteVertexArraysAPPLE_Hook(GLsizei n, const GLuint *arrays);
   1.947 +            void glGenVertexArraysAPPLE_Hook(GLsizei n, GLuint *arrays);
   1.948 +            GLboolean glIsVertexArrayAPPLE_Hook(GLuint array);
   1.949 +
   1.950 +            // GL_APPLE_vertex_array_range
   1.951 +            void glVertexArrayRangeAPPLE_Hook(GLsizei length, GLvoid *pointer);
   1.952 +            void glFlushVertexArrayRangeAPPLE_Hook(GLsizei length, GLvoid *pointer);
   1.953 +            void glVertexArrayParameteriAPPLE_Hook(GLenum pname, GLint param);
   1.954 +
   1.955 +            // GL_APPLE_vertex_program_evaluators
   1.956 +            void glEnableVertexAttribAPPLE_Hook(GLuint index, GLenum pname);
   1.957 +            void glDisableVertexAttribAPPLE_Hook(GLuint index, GLenum pname);
   1.958 +            GLboolean glIsVertexAttribEnabledAPPLE_Hook(GLuint index, GLenum pname);
   1.959 +            void glMapVertexAttrib1dAPPLE_Hook(GLuint index, GLuint size, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points);
   1.960 +            void glMapVertexAttrib1fAPPLE_Hook(GLuint index, GLuint size, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points);
   1.961 +            void glMapVertexAttrib2dAPPLE_Hook(GLuint index, GLuint size, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points);
   1.962 +            void glMapVertexAttrib2fAPPLE_Hook(GLuint index, GLuint size, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points);
   1.963 +        #endif // GLE_CGL_ENABLED
   1.964 +
   1.965 +            // GL_ARB_debug_output
   1.966 +            void   glDebugMessageControlARB_Hook(GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
   1.967 +            void   glDebugMessageInsertARB_Hook(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf);
   1.968 +            void   glDebugMessageCallbackARB_Hook(GLDEBUGPROCARB callback, const GLvoid *userParam);
   1.969 +            GLuint glGetDebugMessageLogARB_Hook(GLuint count, GLsizei bufsize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog);
   1.970 +
   1.971 +            // GL_ARB_ES2_compatibility
   1.972 +            void glReleaseShaderCompiler_Hook();
   1.973 +            void glShaderBinary_Hook(GLsizei count, const GLuint *shaders, GLenum binaryformat, const GLvoid *binary, GLsizei length);
   1.974 +            void glGetShaderPrecisionFormat_Hook(GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision);
   1.975 +            void glDepthRangef_Hook(GLclampf n, GLclampf f);
   1.976 +            void glClearDepthf_Hook(GLclampf d);
   1.977 +
   1.978 +            // GL_ARB_framebuffer_object
   1.979 +            GLboolean glIsRenderbuffer_Hook(GLuint renderbuffer);
   1.980 +            void glBindRenderbuffer_Hook(GLenum target, GLuint renderbuffer);
   1.981 +            void glDeleteRenderbuffers_Hook(GLsizei n, const GLuint *renderbuffers);
   1.982 +            void glGenRenderbuffers_Hook(GLsizei n, GLuint *renderbuffers);
   1.983 +            void glRenderbufferStorage_Hook(GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
   1.984 +            void glGetRenderbufferParameteriv_Hook(GLenum target, GLenum pname, GLint *params);
   1.985 +            GLboolean glIsFramebuffer_Hook(GLuint framebuffer);
   1.986 +            void glBindFramebuffer_Hook(GLenum target, GLuint framebuffer);
   1.987 +            void glDeleteFramebuffers_Hook(GLsizei n, const GLuint *framebuffers);
   1.988 +            void glGenFramebuffers_Hook(GLsizei n, GLuint *framebuffers);
   1.989 +            GLenum glCheckFramebufferStatus_Hook(GLenum target);
   1.990 +            void glFramebufferTexture1D_Hook(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
   1.991 +            void glFramebufferTexture2D_Hook(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
   1.992 +            void glFramebufferTexture3D_Hook(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
   1.993 +            void glFramebufferRenderbuffer_Hook(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
   1.994 +            void glGetFramebufferAttachmentParameteriv_Hook(GLenum target, GLenum attachment, GLenum pname, GLint *params);
   1.995 +            void glGenerateMipmap_Hook(GLenum target);
   1.996 +            void glBlitFramebuffer_Hook(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
   1.997 +            void glRenderbufferStorageMultisample_Hook(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
   1.998 +            void glFramebufferTextureLayer_Hook(GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer);
   1.999 +
  1.1000 +            // GL_ARB_texture_multisample
  1.1001 +            void glTexImage2DMultisample_Hook(GLenum target, GLsizei samples, GLint internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
  1.1002 +            void glTexImage3DMultisample_Hook(GLenum target, GLsizei samples, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations);
  1.1003 +            void glGetMultisamplefv_Hook(GLenum pname, GLuint index, GLfloat *val);
  1.1004 +            void glSampleMaski_Hook(GLuint index, GLbitfield mask);
  1.1005 +
  1.1006 +            // GL_ARB_timer_query
  1.1007 +            void glQueryCounter_Hook(GLuint id, GLenum target);
  1.1008 +            void glGetQueryObjecti64v_Hook(GLuint id, GLenum pname, GLint64 *params);
  1.1009 +            void glGetQueryObjectui64v_Hook(GLuint id, GLenum pname, GLuint64 *params);
  1.1010 +
  1.1011 +            // GL_ARB_vertex_array_object
  1.1012 +            void      glBindVertexArray_Hook(GLuint array);
  1.1013 +            void      glDeleteVertexArrays_Hook(GLsizei n, const GLuint *arrays);
  1.1014 +            void      glGenVertexArrays_Hook(GLsizei n, GLuint *arrays);
  1.1015 +            GLboolean glIsVertexArray_Hook(GLuint array);
  1.1016 +
  1.1017 +            // GL_EXT_draw_buffers2
  1.1018 +            void      glColorMaskIndexedEXT_Hook(GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a);
  1.1019 +            void      glGetBooleanIndexedvEXT_Hook(GLenum target, GLuint index, GLboolean *data);
  1.1020 +            void      glGetIntegerIndexedvEXT_Hook(GLenum target, GLuint index, GLint *data);
  1.1021 +            void      glEnableIndexedEXT_Hook(GLenum target, GLuint index);
  1.1022 +            void      glDisableIndexedEXT_Hook(GLenum target, GLuint index);
  1.1023 +            GLboolean glIsEnabledIndexedEXT_Hook(GLenum target, GLuint index);
  1.1024 +
  1.1025 +            // GL_KHR_debug
  1.1026 +            void   glDebugMessageControl_Hook(GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint* ids, GLboolean enabled);
  1.1027 +            void   glDebugMessageInsert_Hook(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const char* buf);
  1.1028 +            void   glDebugMessageCallback_Hook(GLDEBUGPROC callback, const void* userParam);
  1.1029 +            GLuint glGetDebugMessageLog_Hook(GLuint count, GLsizei bufSize, GLenum* sources, GLenum* types, GLuint* ids, GLenum* severities, GLsizei* lengths,  char* messageLog);
  1.1030 +            void   glPushDebugGroup_Hook(GLenum source, GLuint id, GLsizei length, const char * message);
  1.1031 +            void   glPopDebugGroup_Hook(void);
  1.1032 +            void   glObjectLabel_Hook(GLenum identifier, GLuint name, GLsizei length, const char *label);
  1.1033 +            void   glGetObjectLabel_Hook(GLenum identifier, GLuint name, GLsizei bufSize, GLsizei *length, char *label);
  1.1034 +            void   glObjectPtrLabel_Hook(void* ptr, GLsizei length, const char *label);
  1.1035 +            void   glGetObjectPtrLabel_Hook(void* ptr, GLsizei bufSize, GLsizei *length, char *label);
  1.1036 +
  1.1037 +            // GL_WIN_swap_hint
  1.1038 +            void glAddSwapHintRectWIN_Hook(GLint x, GLint y, GLsizei width, GLsizei height);
  1.1039 +
  1.1040 +          #if defined(GLE_WGL_ENABLED)
  1.1041 +            void PostWGLHook(const char* functionName);
  1.1042 +
  1.1043 +            // WGL
  1.1044 +            /* Hooking of these is currently disabled.
  1.1045 +            BOOL  wglCopyContext_Hook(HGLRC, HGLRC, UINT);
  1.1046 +            HGLRC wglCreateContext_Hook(HDC);
  1.1047 +            HGLRC wglCreateLayerContext_Hook(HDC, int);
  1.1048 +            BOOL  wglDeleteContext_Hook(HGLRC);
  1.1049 +            HGLRC wglGetCurrentContext_Hook(VOID);
  1.1050 +            HDC   wglGetCurrentDC_Hook(VOID);
  1.1051 +            PROC  wglGetProcAddress_Hook(LPCSTR);
  1.1052 +            BOOL  wglMakeCurrent_Hook(HDC, HGLRC);
  1.1053 +            BOOL  wglShareLists_Hook(HGLRC, HGLRC);
  1.1054 +            BOOL  wglUseFontBitmapsA_Hook(HDC, DWORD, DWORD, DWORD);
  1.1055 +            BOOL  wglUseFontBitmapsW_Hook(HDC, DWORD, DWORD, DWORD);
  1.1056 +            BOOL  wglUseFontOutlinesA_Hook(HDC, DWORD, DWORD, DWORD, FLOAT, FLOAT, int, LPGLYPHMETRICSFLOAT);
  1.1057 +            BOOL  wglUseFontOutlinesW_Hook(HDC, DWORD, DWORD, DWORD, FLOAT, FLOAT, int, LPGLYPHMETRICSFLOAT);
  1.1058 +            BOOL  wglDescribeLayerPlane_Hook(HDC, int, int, UINT, LPLAYERPLANEDESCRIPTOR);
  1.1059 +            int   wglSetLayerPaletteEntries_Hook(HDC, int, int, int, CONST COLORREF *);
  1.1060 +            int   wglGetLayerPaletteEntries_Hook(HDC, int, int, int, COLORREF *);
  1.1061 +            BOOL  wglRealizeLayerPalette_Hook(HDC, int, BOOL);
  1.1062 +            BOOL  wglSwapLayerBuffers_Hook(HDC, UINT);
  1.1063 +            DWORD wglSwapMultipleBuffers_Hook(UINT, CONST WGLSWAP *);
  1.1064 +            */
  1.1065 +
  1.1066 +            // WGL_ARB_buffer_region
  1.1067 +            HANDLE wglCreateBufferRegionARB_Hook (HDC hDC, int iLayerPlane, UINT uType);
  1.1068 +            VOID wglDeleteBufferRegionARB_Hook (HANDLE hRegion);
  1.1069 +            BOOL wglSaveBufferRegionARB_Hook (HANDLE hRegion, int x, int y, int width, int height);
  1.1070 +            BOOL wglRestoreBufferRegionARB_Hook (HANDLE hRegion, int x, int y, int width, int height, int xSrc, int ySrc);
  1.1071 +
  1.1072 +            // WGL_ARB_extensions_string
  1.1073 +            const char * wglGetExtensionsStringARB_Hook (HDC hdc);
  1.1074 +
  1.1075 +            // WGL_ARB_pixel_format
  1.1076 +            BOOL wglGetPixelFormatAttribivARB_Hook (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, int *piValues);
  1.1077 +            BOOL wglGetPixelFormatAttribfvARB_Hook (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, FLOAT *pfValues);
  1.1078 +            BOOL wglChoosePixelFormatARB_Hook (HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats);
  1.1079 +
  1.1080 +            // WGL_ARB_make_current_read
  1.1081 +            BOOL wglMakeContextCurrentARB_Hook (HDC hDrawDC, HDC hReadDC, HGLRC hglrc);
  1.1082 +            HDC wglGetCurrentReadDCARB_Hook (void);
  1.1083 +
  1.1084 +            // WGL_ARB_pbuffer
  1.1085 +            HPBUFFERARB wglCreatePbufferARB_Hook (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int *piAttribList);
  1.1086 +            HDC wglGetPbufferDCARB_Hook (HPBUFFERARB hPbuffer);
  1.1087 +            int wglReleasePbufferDCARB_Hook (HPBUFFERARB hPbuffer, HDC hDC);
  1.1088 +            BOOL wglDestroyPbufferARB_Hook (HPBUFFERARB hPbuffer);
  1.1089 +            BOOL wglQueryPbufferARB_Hook (HPBUFFERARB hPbuffer, int iAttribute, int *piValue);
  1.1090 +
  1.1091 +            // WGL_ARB_render_texture
  1.1092 +            BOOL wglBindTexImageARB_Hook (HPBUFFERARB hPbuffer, int iBuffer);
  1.1093 +            BOOL wglReleaseTexImageARB_Hook (HPBUFFERARB hPbuffer, int iBuffer);
  1.1094 +            BOOL wglSetPbufferAttribARB_Hook (HPBUFFERARB hPbuffer, const int *piAttribList);
  1.1095 +
  1.1096 +            // WGL_NV_present_video
  1.1097 +            int wglEnumerateVideoDevicesNV_Hook (HDC hDC, HVIDEOOUTPUTDEVICENV *phDeviceList);
  1.1098 +            BOOL wglBindVideoDeviceNV_Hook (HDC hDC, unsigned int uVideoSlot, HVIDEOOUTPUTDEVICENV hVideoDevice, const int *piAttribList);
  1.1099 +            BOOL wglQueryCurrentContextNV_Hook (int iAttribute, int *piValue);
  1.1100 +
  1.1101 +            // WGL_ARB_create_context
  1.1102 +            HGLRC wglCreateContextAttribsARB_Hook (HDC hDC, HGLRC hShareContext, const int *attribList);
  1.1103 +
  1.1104 +            // WGL_EXT_extensions_string
  1.1105 +            const char * wglGetExtensionsStringEXT_Hook ();
  1.1106 +
  1.1107 +            // WGL_EXT_swap_control
  1.1108 +            BOOL wglSwapIntervalEXT_Hook(int interval);
  1.1109 +            int  wglGetSwapIntervalEXT_Hook();
  1.1110 +
  1.1111 +            // WGL_OML_sync_control
  1.1112 +            BOOL  wglGetSyncValuesOML_Hook (HDC hdc, INT64 *ust, INT64 *msc, INT64 *sbc);
  1.1113 +            BOOL  wglGetMscRateOML_Hook (HDC hdc, INT32 *numerator, INT32 *denominator);
  1.1114 +            INT64 wglSwapBuffersMscOML_Hook (HDC hdc, INT64 target_msc, INT64 divisor, INT64 remainder);
  1.1115 +            INT64 wglSwapLayerBuffersMscOML_Hook (HDC hdc, int fuPlanes, INT64 target_msc, INT64 divisor, INT64 remainder);
  1.1116 +            BOOL  wglWaitForMscOML_Hook (HDC hdc, INT64 target_msc, INT64 divisor, INT64 remainder, INT64 *ust, INT64 *msc, INT64 *sbc);
  1.1117 +            BOOL  wglWaitForSbcOML_Hook (HDC hdc, INT64 target_sbc, INT64 *ust, INT64 *msc, INT64 *sbc);
  1.1118 +
  1.1119 +             // WGL_NV_video_output
  1.1120 +            BOOL wglGetVideoDeviceNV_Hook (HDC hDC, int numDevices, HPVIDEODEV *hVideoDevice);
  1.1121 +            BOOL wglReleaseVideoDeviceNV_Hook (HPVIDEODEV hVideoDevice);
  1.1122 +            BOOL wglBindVideoImageNV_Hook (HPVIDEODEV hVideoDevice, HPBUFFERARB hPbuffer, int iVideoBuffer);
  1.1123 +            BOOL wglReleaseVideoImageNV_Hook (HPBUFFERARB hPbuffer, int iVideoBuffer);
  1.1124 +            BOOL wglSendPbufferToVideoNV_Hook (HPBUFFERARB hPbuffer, int iBufferType, unsigned long *pulCounterPbuffer, BOOL bBlock);
  1.1125 +            BOOL wglGetVideoInfoNV_Hook (HPVIDEODEV hpVideoDevice, unsigned long *pulCounterOutputPbuffer, unsigned long *pulCounterOutputVideo);
  1.1126 +
  1.1127 +             // WGL_NV_swap_group
  1.1128 +            BOOL wglJoinSwapGroupNV_Hook (HDC hDC, GLuint group);
  1.1129 +            BOOL wglBindSwapBarrierNV_Hook (GLuint group, GLuint barrier);
  1.1130 +            BOOL wglQuerySwapGroupNV_Hook (HDC hDC, GLuint *group, GLuint *barrier);
  1.1131 +            BOOL wglQueryMaxSwapGroupsNV_Hook (HDC hDC, GLuint *maxGroups, GLuint *maxBarriers);
  1.1132 +            BOOL wglQueryFrameCountNV_Hook (HDC hDC, GLuint *count);
  1.1133 +            BOOL wglResetFrameCountNV_Hook (HDC hDC);
  1.1134 +
  1.1135 +             // WGL_NV_video_capture
  1.1136 +            BOOL wglBindVideoCaptureDeviceNV_Hook (UINT uVideoSlot, HVIDEOINPUTDEVICENV hDevice);
  1.1137 +            UINT wglEnumerateVideoCaptureDevicesNV_Hook (HDC hDc, HVIDEOINPUTDEVICENV *phDeviceList);
  1.1138 +            BOOL wglLockVideoCaptureDeviceNV_Hook (HDC hDc, HVIDEOINPUTDEVICENV hDevice);
  1.1139 +            BOOL wglQueryVideoCaptureDeviceNV_Hook (HDC hDc, HVIDEOINPUTDEVICENV hDevice, int iAttribute, int *piValue);
  1.1140 +            BOOL wglReleaseVideoCaptureDeviceNV_Hook (HDC hDc, HVIDEOINPUTDEVICENV hDevice);
  1.1141 +
  1.1142 +            // WGL_NV_copy_image
  1.1143 +            BOOL wglCopyImageSubDataNV_Hook (HGLRC hSrcRC, GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, HGLRC hDstRC, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei width, GLsizei height, GLsizei depth);
  1.1144 +
  1.1145 +            // WGL_NV_DX_interop
  1.1146 +            BOOL   wglDXSetResourceShareHandleNV_Hook(void *dxObject, HANDLE shareHandle);
  1.1147 +            HANDLE wglDXOpenDeviceNV_Hook(void *dxDevice);
  1.1148 +            BOOL   wglDXCloseDeviceNV_Hook(HANDLE hDevice);
  1.1149 +            HANDLE wglDXRegisterObjectNV_Hook(HANDLE hDevice, void *dxObject, GLuint name, GLenum type, GLenum access);
  1.1150 +            BOOL   wglDXUnregisterObjectNV_Hook(HANDLE hDevice, HANDLE hObject);
  1.1151 +            BOOL   wglDXObjectAccessNV_Hook(HANDLE hObject, GLenum access);
  1.1152 +            BOOL   wglDXLockObjectsNV_Hook(HANDLE hDevice, GLint count, HANDLE *hObjects);
  1.1153 +            BOOL   wglDXUnlockObjectsNV_Hook(HANDLE hDevice, GLint count, HANDLE *hObjects);
  1.1154 +          #endif // GLE_WGL_ENABLED
  1.1155 +
  1.1156 +          #if defined(GLE_GLX_ENABLED)
  1.1157 +            void PostGLXHook(const char* functionName);
  1.1158 +
  1.1159 +            // GLX_VERSION_1_0
  1.1160 +            // GLX_VERSION_1_1
  1.1161 +            // We don't currently do hooking of these.
  1.1162 +
  1.1163 +            // GLX_VERSION_1_2
  1.1164 +            ::Display* glXGetCurrentDisplay_Hook(void);
  1.1165 +
  1.1166 +            // GLX_VERSION_1_3
  1.1167 +            GLXFBConfig* glXChooseFBConfig_Hook(::Display *dpy, int screen, const int *attrib_list, int *nelements);
  1.1168 +            GLXContext   glXCreateNewContext_Hook(::Display *dpy, GLXFBConfig config, int render_type, GLXContext share_list, Bool direct);
  1.1169 +            GLXPbuffer   glXCreatePbuffer_Hook(::Display *dpy, GLXFBConfig config, const int *attrib_list);
  1.1170 +            GLXPixmap    glXCreatePixmap_Hook(::Display *dpy, GLXFBConfig config, Pixmap pixmap, const int *attrib_list);
  1.1171 +            GLXWindow    glXCreateWindow_Hook(::Display *dpy, GLXFBConfig config, Window win, const int *attrib_list);
  1.1172 +            void         glXDestroyPbuffer_Hook(::Display *dpy, GLXPbuffer pbuf);
  1.1173 +            void         glXDestroyPixmap_Hook(::Display *dpy, GLXPixmap pixmap);
  1.1174 +            void         glXDestroyWindow_Hook(::Display *dpy, GLXWindow win);
  1.1175 +            GLXDrawable  glXGetCurrentReadDrawable_Hook(void);
  1.1176 +            int          glXGetFBConfigAttrib_Hook(::Display *dpy, GLXFBConfig config, int attribute, int *value);
  1.1177 +            GLXFBConfig* glXGetFBConfigs_Hook(::Display *dpy, int screen, int *nelements);
  1.1178 +            void         glXGetSelectedEvent_Hook(::Display *dpy, GLXDrawable draw, unsigned long *event_mask);
  1.1179 +            XVisualInfo* glXGetVisualFromFBConfig_Hook(::Display *dpy, GLXFBConfig config);
  1.1180 +            Bool         glXMakeContextCurrent_Hook(::Display *display, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
  1.1181 +            int          glXQueryContext_Hook(::Display *dpy, GLXContext ctx, int attribute, int *value);
  1.1182 +            void         glXQueryDrawable_Hook(::Display *dpy, GLXDrawable draw, int attribute, unsigned int *value);
  1.1183 +            void         glXSelectEvent_Hook(::Display *dpy, GLXDrawable draw, unsigned long event_mask);
  1.1184 +
  1.1185 +            // GLX_VERSION_1_4
  1.1186 +            // We don't do hooking of this.
  1.1187 +
  1.1188 +            // GLX_ARB_create_context
  1.1189 +            GLXContext glXCreateContextAttribsARB_Hook(Display* dpy, GLXFBConfig config, GLXContext share_context, Bool direct, const int *attrib_list);
  1.1190 +
  1.1191 +            // GLX_EXT_swap_control
  1.1192 +            void glXSwapIntervalEXT_Hook(::Display* dpy, GLXDrawable drawable, int interval);
  1.1193 +
  1.1194 +            // GLX_OML_sync_control
  1.1195 +			Bool    glXGetMscRateOML_Hook(::Display* dpy, GLXDrawable drawable, int32_t* numerator, int32_t* denominator);
  1.1196 +			Bool    glXGetSyncValuesOML_Hook(::Display* dpy, GLXDrawable drawable, int64_t* ust, int64_t* msc, int64_t* sbc);
  1.1197 +			int64_t glXSwapBuffersMscOML_Hook(::Display* dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder);
  1.1198 +			Bool    glXWaitForMscOML_Hook(::Display* dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder, int64_t* ust, int64_t* msc, int64_t* sbc);
  1.1199 +			Bool    glXWaitForSbcOML_Hook(::Display* dpy, GLXDrawable drawable, int64_t target_sbc, int64_t* ust, int64_t* msc, int64_t* sbc);
  1.1200 +
  1.1201 +            // GLX_MESA_swap_control
  1.1202 +            int glXGetSwapIntervalMESA_Hook();
  1.1203 +            int glXSwapIntervalMESA_Hook(unsigned int interval);
  1.1204 +
  1.1205 +          #endif // GLE_GLX_ENABLED
  1.1206 +
  1.1207 +        #endif // #if defined(GLE_HOOKING_ENABLED)
  1.1208 +
  1.1209 +        // GL_VERSION_1_1
  1.1210 +        // These are not represented by function pointers.
  1.1211 +        
  1.1212 +        // GL_VERSION_1_2
  1.1213 +        PFNGLCOPYTEXSUBIMAGE3DPROC glCopyTexSubImage3D_Impl;
  1.1214 +        PFNGLDRAWRANGEELEMENTSPROC glDrawRangeElements_Impl;
  1.1215 +        PFNGLTEXIMAGE3DPROC glTexImage3D_Impl;
  1.1216 +        PFNGLTEXSUBIMAGE3DPROC glTexSubImage3D_Impl;
  1.1217 +
  1.1218 +        // GL_VERSION_1_2 deprecated functions
  1.1219 +        /* Not currently supported
  1.1220 +        PFNGLCOLORTABLEPROC glColorTable_Impl;
  1.1221 +        PFNGLCOLORTABLEPARAMETERFVPROC glColorTableParameterfv_Impl;
  1.1222 +        PFNGLCOLORTABLEPARAMETERIVPROC glColorTableParameteriv_Impl;
  1.1223 +        PFNGLCOPYCOLORTABLEPROC glCopyColorTable_Impl;
  1.1224 +        PFNGLGETCOLORTABLEPROC glGetColorTable_Impl;
  1.1225 +        PFNGLGETCOLORTABLEPARAMETERFVPROC glGetColorTableParameterfv_Impl;
  1.1226 +        PFNGLGETCOLORTABLEPARAMETERIVPROC glGetColorTableParameteriv_Impl;
  1.1227 +        PFNGLCOLORSUBTABLEPROC glColorSubTable_Impl;
  1.1228 +        PFNGLCOPYCOLORSUBTABLEPROC glCopyColorSubTable_Impl;
  1.1229 +        PFNGLCONVOLUTIONFILTER1DPROC glConvolutionFilter1D_Impl;
  1.1230 +        PFNGLCONVOLUTIONFILTER2DPROC glConvolutionFilter2D_Impl;
  1.1231 +        PFNGLCONVOLUTIONPARAMETERFPROC glConvolutionParameterf_Impl;
  1.1232 +        PFNGLCONVOLUTIONPARAMETERFVPROC glConvolutionParameterfv_Impl;
  1.1233 +        PFNGLCONVOLUTIONPARAMETERIPROC glConvolutionParameteri_Impl;
  1.1234 +        PFNGLCONVOLUTIONPARAMETERIVPROC glConvolutionParameteriv_Impl;
  1.1235 +        PFNGLCOPYCONVOLUTIONFILTER1DPROC glCopyConvolutionFilter1D_Impl;
  1.1236 +        PFNGLCOPYCONVOLUTIONFILTER2DPROC glCopyConvolutionFilter2D_Impl;
  1.1237 +        PFNGLGETCONVOLUTIONFILTERPROC glGetConvolutionFilter_Impl;
  1.1238 +        PFNGLGETCONVOLUTIONPARAMETERFVPROC glGetConvolutionParameterfv_Impl;
  1.1239 +        PFNGLGETCONVOLUTIONPARAMETERIVPROC glGetConvolutionParameteriv_Impl;
  1.1240 +        PFNGLGETSEPARABLEFILTERPROC glGetSeparableFilter_Impl;
  1.1241 +        PFNGLSEPARABLEFILTER2DPROC glSeparableFilter2D_Impl;
  1.1242 +        PFNGLGETHISTOGRAMPROC glGetHistogram_Impl;
  1.1243 +        PFNGLGETHISTOGRAMPARAMETERFVPROC glGetHistogramParameterfv_Impl;
  1.1244 +        PFNGLGETHISTOGRAMPARAMETERIVPROC glGetHistogramParameteriv_Impl;
  1.1245 +        PFNGLGETMINMAXPROC glGetMinmax_Impl;
  1.1246 +        PFNGLGETMINMAXPARAMETERFVPROC glGetMinmaxParameterfv_Impl;
  1.1247 +        PFNGLGETMINMAXPARAMETERIVPROC glGetMinmaxParameteriv_Impl;
  1.1248 +        PFNGLHISTOGRAMPROC glHistogram_Impl;
  1.1249 +        PFNGLMINMAXPROC glMinmax_Impl;
  1.1250 +        PFNGLRESETHISTOGRAMPROC glResetHistogram_Impl;
  1.1251 +        PFNGLRESETMINMAXPROC glResetMinmax_Impl;
  1.1252 +        */
  1.1253 +
  1.1254 +        // GL_VERSION_1_3
  1.1255 +        PFNGLACTIVETEXTUREPROC glActiveTexture_Impl;
  1.1256 +        PFNGLCLIENTACTIVETEXTUREPROC glClientActiveTexture_Impl;
  1.1257 +        PFNGLCOMPRESSEDTEXIMAGE1DPROC glCompressedTexImage1D_Impl;
  1.1258 +        PFNGLCOMPRESSEDTEXIMAGE2DPROC glCompressedTexImage2D_Impl;
  1.1259 +        PFNGLCOMPRESSEDTEXIMAGE3DPROC glCompressedTexImage3D_Impl;
  1.1260 +        PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC glCompressedTexSubImage1D_Impl;
  1.1261 +        PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC glCompressedTexSubImage2D_Impl;
  1.1262 +        PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC glCompressedTexSubImage3D_Impl;
  1.1263 +        PFNGLGETCOMPRESSEDTEXIMAGEPROC glGetCompressedTexImage_Impl;
  1.1264 +        PFNGLLOADTRANSPOSEMATRIXDPROC glLoadTransposeMatrixd_Impl;
  1.1265 +        PFNGLLOADTRANSPOSEMATRIXFPROC glLoadTransposeMatrixf_Impl;
  1.1266 +        PFNGLMULTTRANSPOSEMATRIXDPROC glMultTransposeMatrixd_Impl;
  1.1267 +        PFNGLMULTTRANSPOSEMATRIXFPROC glMultTransposeMatrixf_Impl;
  1.1268 +        PFNGLMULTITEXCOORD1DPROC glMultiTexCoord1d_Impl;
  1.1269 +        PFNGLMULTITEXCOORD1DVPROC glMultiTexCoord1dv_Impl;
  1.1270 +        PFNGLMULTITEXCOORD1FPROC glMultiTexCoord1f_Impl;
  1.1271 +        PFNGLMULTITEXCOORD1FVPROC glMultiTexCoord1fv_Impl;
  1.1272 +        PFNGLMULTITEXCOORD1IPROC glMultiTexCoord1i_Impl;
  1.1273 +        PFNGLMULTITEXCOORD1IVPROC glMultiTexCoord1iv_Impl;
  1.1274 +        PFNGLMULTITEXCOORD1SPROC glMultiTexCoord1s_Impl;
  1.1275 +        PFNGLMULTITEXCOORD1SVPROC glMultiTexCoord1sv_Impl;
  1.1276 +        PFNGLMULTITEXCOORD2DPROC glMultiTexCoord2d_Impl;
  1.1277 +        PFNGLMULTITEXCOORD2DVPROC glMultiTexCoord2dv_Impl;
  1.1278 +        PFNGLMULTITEXCOORD2FPROC glMultiTexCoord2f_Impl;
  1.1279 +        PFNGLMULTITEXCOORD2FVPROC glMultiTexCoord2fv_Impl;
  1.1280 +        PFNGLMULTITEXCOORD2IPROC glMultiTexCoord2i_Impl;
  1.1281 +        PFNGLMULTITEXCOORD2IVPROC glMultiTexCoord2iv_Impl;
  1.1282 +        PFNGLMULTITEXCOORD2SPROC glMultiTexCoord2s_Impl;
  1.1283 +        PFNGLMULTITEXCOORD2SVPROC glMultiTexCoord2sv_Impl;
  1.1284 +        PFNGLMULTITEXCOORD3DPROC glMultiTexCoord3d_Impl;
  1.1285 +        PFNGLMULTITEXCOORD3DVPROC glMultiTexCoord3dv_Impl;
  1.1286 +        PFNGLMULTITEXCOORD3FPROC glMultiTexCoord3f_Impl;
  1.1287 +        PFNGLMULTITEXCOORD3FVPROC glMultiTexCoord3fv_Impl;
  1.1288 +        PFNGLMULTITEXCOORD3IPROC glMultiTexCoord3i_Impl;
  1.1289 +        PFNGLMULTITEXCOORD3IVPROC glMultiTexCoord3iv_Impl;
  1.1290 +        PFNGLMULTITEXCOORD3SPROC glMultiTexCoord3s_Impl;
  1.1291 +        PFNGLMULTITEXCOORD3SVPROC glMultiTexCoord3sv_Impl;
  1.1292 +        PFNGLMULTITEXCOORD4DPROC glMultiTexCoord4d_Impl;
  1.1293 +        PFNGLMULTITEXCOORD4DVPROC glMultiTexCoord4dv_Impl;
  1.1294 +        PFNGLMULTITEXCOORD4FPROC glMultiTexCoord4f_Impl;
  1.1295 +        PFNGLMULTITEXCOORD4FVPROC glMultiTexCoord4fv_Impl;
  1.1296 +        PFNGLMULTITEXCOORD4IPROC glMultiTexCoord4i_Impl;
  1.1297 +        PFNGLMULTITEXCOORD4IVPROC glMultiTexCoord4iv_Impl;
  1.1298 +        PFNGLMULTITEXCOORD4SPROC glMultiTexCoord4s_Impl;
  1.1299 +        PFNGLMULTITEXCOORD4SVPROC glMultiTexCoord4sv_Impl;
  1.1300 +        PFNGLSAMPLECOVERAGEPROC glSampleCoverage_Impl;
  1.1301 +
  1.1302 +        // GL_VERSION_1_4
  1.1303 +        PFNGLBLENDCOLORPROC glBlendColor_Impl;
  1.1304 +        PFNGLBLENDEQUATIONPROC glBlendEquation_Impl;
  1.1305 +        PFNGLBLENDFUNCSEPARATEPROC glBlendFuncSeparate_Impl;
  1.1306 +        PFNGLFOGCOORDPOINTERPROC glFogCoordPointer_Impl;
  1.1307 +        PFNGLFOGCOORDDPROC glFogCoordd_Impl;
  1.1308 +        PFNGLFOGCOORDDVPROC glFogCoorddv_Impl;
  1.1309 +        PFNGLFOGCOORDFPROC glFogCoordf_Impl;
  1.1310 +        PFNGLFOGCOORDFVPROC glFogCoordfv_Impl;
  1.1311 +        PFNGLMULTIDRAWARRAYSPROC glMultiDrawArrays_Impl;
  1.1312 +        PFNGLMULTIDRAWELEMENTSPROC glMultiDrawElements_Impl;
  1.1313 +        PFNGLPOINTPARAMETERFPROC glPointParameterf_Impl;
  1.1314 +        PFNGLPOINTPARAMETERFVPROC glPointParameterfv_Impl;
  1.1315 +        PFNGLPOINTPARAMETERIPROC glPointParameteri_Impl;
  1.1316 +        PFNGLPOINTPARAMETERIVPROC glPointParameteriv_Impl;
  1.1317 +        PFNGLSECONDARYCOLOR3BPROC glSecondaryColor3b_Impl;
  1.1318 +        PFNGLSECONDARYCOLOR3BVPROC glSecondaryColor3bv_Impl;
  1.1319 +        PFNGLSECONDARYCOLOR3DPROC glSecondaryColor3d_Impl;
  1.1320 +        PFNGLSECONDARYCOLOR3DVPROC glSecondaryColor3dv_Impl;
  1.1321 +        PFNGLSECONDARYCOLOR3FPROC glSecondaryColor3f_Impl;
  1.1322 +        PFNGLSECONDARYCOLOR3FVPROC glSecondaryColor3fv_Impl;
  1.1323 +        PFNGLSECONDARYCOLOR3IPROC glSecondaryColor3i_Impl;
  1.1324 +        PFNGLSECONDARYCOLOR3IVPROC glSecondaryColor3iv_Impl;
  1.1325 +        PFNGLSECONDARYCOLOR3SPROC glSecondaryColor3s_Impl;
  1.1326 +        PFNGLSECONDARYCOLOR3SVPROC glSecondaryColor3sv_Impl;
  1.1327 +        PFNGLSECONDARYCOLOR3UBPROC glSecondaryColor3ub_Impl;
  1.1328 +        PFNGLSECONDARYCOLOR3UBVPROC glSecondaryColor3ubv_Impl;
  1.1329 +        PFNGLSECONDARYCOLOR3UIPROC glSecondaryColor3ui_Impl;
  1.1330 +        PFNGLSECONDARYCOLOR3UIVPROC glSecondaryColor3uiv_Impl;
  1.1331 +        PFNGLSECONDARYCOLOR3USPROC glSecondaryColor3us_Impl;
  1.1332 +        PFNGLSECONDARYCOLOR3USVPROC glSecondaryColor3usv_Impl;
  1.1333 +        PFNGLSECONDARYCOLORPOINTERPROC glSecondaryColorPointer_Impl;
  1.1334 +        PFNGLWINDOWPOS2DPROC glWindowPos2d_Impl;
  1.1335 +        PFNGLWINDOWPOS2DVPROC glWindowPos2dv_Impl;
  1.1336 +        PFNGLWINDOWPOS2FPROC glWindowPos2f_Impl;
  1.1337 +        PFNGLWINDOWPOS2FVPROC glWindowPos2fv_Impl;
  1.1338 +        PFNGLWINDOWPOS2IPROC glWindowPos2i_Impl;
  1.1339 +        PFNGLWINDOWPOS2IVPROC glWindowPos2iv_Impl;
  1.1340 +        PFNGLWINDOWPOS2SPROC glWindowPos2s_Impl;
  1.1341 +        PFNGLWINDOWPOS2SVPROC glWindowPos2sv_Impl;
  1.1342 +        PFNGLWINDOWPOS3DPROC glWindowPos3d_Impl;
  1.1343 +        PFNGLWINDOWPOS3DVPROC glWindowPos3dv_Impl;
  1.1344 +        PFNGLWINDOWPOS3FPROC glWindowPos3f_Impl;
  1.1345 +        PFNGLWINDOWPOS3FVPROC glWindowPos3fv_Impl;
  1.1346 +        PFNGLWINDOWPOS3IPROC glWindowPos3i_Impl;
  1.1347 +        PFNGLWINDOWPOS3IVPROC glWindowPos3iv_Impl;
  1.1348 +        PFNGLWINDOWPOS3SPROC glWindowPos3s_Impl;
  1.1349 +        PFNGLWINDOWPOS3SVPROC glWindowPos3sv_Impl;
  1.1350 +
  1.1351 +        // GL_VERSION_1_5
  1.1352 +        PFNGLBEGINQUERYPROC glBeginQuery_Impl;
  1.1353 +        PFNGLBINDBUFFERPROC glBindBuffer_Impl;
  1.1354 +        PFNGLBUFFERDATAPROC glBufferData_Impl;
  1.1355 +        PFNGLBUFFERSUBDATAPROC glBufferSubData_Impl;
  1.1356 +        PFNGLDELETEBUFFERSPROC glDeleteBuffers_Impl;
  1.1357 +        PFNGLDELETEQUERIESPROC glDeleteQueries_Impl;
  1.1358 +        PFNGLENDQUERYPROC glEndQuery_Impl;
  1.1359 +        PFNGLGENBUFFERSPROC glGenBuffers_Impl;
  1.1360 +        PFNGLGENQUERIESPROC glGenQueries_Impl;
  1.1361 +        PFNGLGETBUFFERPARAMETERIVPROC glGetBufferParameteriv_Impl;
  1.1362 +        PFNGLGETBUFFERPOINTERVPROC glGetBufferPointerv_Impl;
  1.1363 +        PFNGLGETBUFFERSUBDATAPROC glGetBufferSubData_Impl;
  1.1364 +        PFNGLGETQUERYOBJECTIVPROC glGetQueryObjectiv_Impl;
  1.1365 +        PFNGLGETQUERYOBJECTUIVPROC glGetQueryObjectuiv_Impl;
  1.1366 +        PFNGLGETQUERYIVPROC glGetQueryiv_Impl;
  1.1367 +        PFNGLISBUFFERPROC glIsBuffer_Impl;
  1.1368 +        PFNGLISQUERYPROC glIsQuery_Impl;
  1.1369 +        PFNGLMAPBUFFERPROC glMapBuffer_Impl;
  1.1370 +        PFNGLUNMAPBUFFERPROC glUnmapBuffer_Impl;
  1.1371 +
  1.1372 +        // GL_VERSION_2_0
  1.1373 +        PFNGLATTACHSHADERPROC glAttachShader_Impl;
  1.1374 +        PFNGLBINDATTRIBLOCATIONPROC glBindAttribLocation_Impl;
  1.1375 +        PFNGLBLENDEQUATIONSEPARATEPROC glBlendEquationSeparate_Impl;
  1.1376 +        PFNGLCOMPILESHADERPROC glCompileShader_Impl;
  1.1377 +        PFNGLCREATEPROGRAMPROC glCreateProgram_Impl;
  1.1378 +        PFNGLCREATESHADERPROC glCreateShader_Impl;
  1.1379 +        PFNGLDELETEPROGRAMPROC glDeleteProgram_Impl;
  1.1380 +        PFNGLDELETESHADERPROC glDeleteShader_Impl;
  1.1381 +        PFNGLDETACHSHADERPROC glDetachShader_Impl;
  1.1382 +        PFNGLDISABLEVERTEXATTRIBARRAYPROC glDisableVertexAttribArray_Impl;
  1.1383 +        PFNGLDRAWBUFFERSPROC glDrawBuffers_Impl;
  1.1384 +        PFNGLENABLEVERTEXATTRIBARRAYPROC glEnableVertexAttribArray_Impl;
  1.1385 +        PFNGLGETACTIVEATTRIBPROC glGetActiveAttrib_Impl;
  1.1386 +        PFNGLGETACTIVEUNIFORMPROC glGetActiveUniform_Impl;
  1.1387 +        PFNGLGETATTACHEDSHADERSPROC glGetAttachedShaders_Impl;
  1.1388 +        PFNGLGETATTRIBLOCATIONPROC glGetAttribLocation_Impl;
  1.1389 +        PFNGLGETPROGRAMINFOLOGPROC glGetProgramInfoLog_Impl;
  1.1390 +        PFNGLGETPROGRAMIVPROC glGetProgramiv_Impl;
  1.1391 +        PFNGLGETSHADERINFOLOGPROC glGetShaderInfoLog_Impl;
  1.1392 +        PFNGLGETSHADERSOURCEPROC glGetShaderSource_Impl;
  1.1393 +        PFNGLGETSHADERIVPROC glGetShaderiv_Impl;
  1.1394 +        PFNGLGETUNIFORMLOCATIONPROC glGetUniformLocation_Impl;
  1.1395 +        PFNGLGETUNIFORMFVPROC glGetUniformfv_Impl;
  1.1396 +        PFNGLGETUNIFORMIVPROC glGetUniformiv_Impl;
  1.1397 +        PFNGLGETVERTEXATTRIBPOINTERVPROC glGetVertexAttribPointerv_Impl;
  1.1398 +        PFNGLGETVERTEXATTRIBDVPROC glGetVertexAttribdv_Impl;
  1.1399 +        PFNGLGETVERTEXATTRIBFVPROC glGetVertexAttribfv_Impl;
  1.1400 +        PFNGLGETVERTEXATTRIBIVPROC glGetVertexAttribiv_Impl;
  1.1401 +        PFNGLISPROGRAMPROC glIsProgram_Impl;
  1.1402 +        PFNGLISSHADERPROC glIsShader_Impl;
  1.1403 +        PFNGLLINKPROGRAMPROC glLinkProgram_Impl;
  1.1404 +        PFNGLSHADERSOURCEPROC glShaderSource_Impl;
  1.1405 +        PFNGLSTENCILFUNCSEPARATEPROC glStencilFuncSeparate_Impl;
  1.1406 +        PFNGLSTENCILMASKSEPARATEPROC glStencilMaskSeparate_Impl;
  1.1407 +        PFNGLSTENCILOPSEPARATEPROC glStencilOpSeparate_Impl;
  1.1408 +        PFNGLUNIFORM1FPROC glUniform1f_Impl;
  1.1409 +        PFNGLUNIFORM1FVPROC glUniform1fv_Impl;
  1.1410 +        PFNGLUNIFORM1IPROC glUniform1i_Impl;
  1.1411 +        PFNGLUNIFORM1IVPROC glUniform1iv_Impl;
  1.1412 +        PFNGLUNIFORM2FPROC glUniform2f_Impl;
  1.1413 +        PFNGLUNIFORM2FVPROC glUniform2fv_Impl;
  1.1414 +        PFNGLUNIFORM2IPROC glUniform2i_Impl;
  1.1415 +        PFNGLUNIFORM2IVPROC glUniform2iv_Impl;
  1.1416 +        PFNGLUNIFORM3FPROC glUniform3f_Impl;
  1.1417 +        PFNGLUNIFORM3FVPROC glUniform3fv_Impl;
  1.1418 +        PFNGLUNIFORM3IPROC glUniform3i_Impl;
  1.1419 +        PFNGLUNIFORM3IVPROC glUniform3iv_Impl;
  1.1420 +        PFNGLUNIFORM4FPROC glUniform4f_Impl;
  1.1421 +        PFNGLUNIFORM4FVPROC glUniform4fv_Impl;
  1.1422 +        PFNGLUNIFORM4IPROC glUniform4i_Impl;
  1.1423 +        PFNGLUNIFORM4IVPROC glUniform4iv_Impl;
  1.1424 +        PFNGLUNIFORMMATRIX2FVPROC glUniformMatrix2fv_Impl;
  1.1425 +        PFNGLUNIFORMMATRIX3FVPROC glUniformMatrix3fv_Impl;
  1.1426 +        PFNGLUNIFORMMATRIX4FVPROC glUniformMatrix4fv_Impl;
  1.1427 +        PFNGLUSEPROGRAMPROC glUseProgram_Impl;
  1.1428 +        PFNGLVALIDATEPROGRAMPROC glValidateProgram_Impl;
  1.1429 +        PFNGLVERTEXATTRIB1DPROC glVertexAttrib1d_Impl;
  1.1430 +        PFNGLVERTEXATTRIB1DVPROC glVertexAttrib1dv_Impl;
  1.1431 +        PFNGLVERTEXATTRIB1FPROC glVertexAttrib1f_Impl;
  1.1432 +        PFNGLVERTEXATTRIB1FVPROC glVertexAttrib1fv_Impl;
  1.1433 +        PFNGLVERTEXATTRIB1SPROC glVertexAttrib1s_Impl;
  1.1434 +        PFNGLVERTEXATTRIB1SVPROC glVertexAttrib1sv_Impl;
  1.1435 +        PFNGLVERTEXATTRIB2DPROC glVertexAttrib2d_Impl;
  1.1436 +        PFNGLVERTEXATTRIB2DVPROC glVertexAttrib2dv_Impl;
  1.1437 +        PFNGLVERTEXATTRIB2FPROC glVertexAttrib2f_Impl;
  1.1438 +        PFNGLVERTEXATTRIB2FVPROC glVertexAttrib2fv_Impl;
  1.1439 +        PFNGLVERTEXATTRIB2SPROC glVertexAttrib2s_Impl;
  1.1440 +        PFNGLVERTEXATTRIB2SVPROC glVertexAttrib2sv_Impl;
  1.1441 +        PFNGLVERTEXATTRIB3DPROC glVertexAttrib3d_Impl;
  1.1442 +        PFNGLVERTEXATTRIB3DVPROC glVertexAttrib3dv_Impl;
  1.1443 +        PFNGLVERTEXATTRIB3FPROC glVertexAttrib3f_Impl;
  1.1444 +        PFNGLVERTEXATTRIB3FVPROC glVertexAttrib3fv_Impl;
  1.1445 +        PFNGLVERTEXATTRIB3SPROC glVertexAttrib3s_Impl;
  1.1446 +        PFNGLVERTEXATTRIB3SVPROC glVertexAttrib3sv_Impl;
  1.1447 +        PFNGLVERTEXATTRIB4NBVPROC glVertexAttrib4Nbv_Impl;
  1.1448 +        PFNGLVERTEXATTRIB4NIVPROC glVertexAttrib4Niv_Impl;
  1.1449 +        PFNGLVERTEXATTRIB4NSVPROC glVertexAttrib4Nsv_Impl;
  1.1450 +        PFNGLVERTEXATTRIB4NUBPROC glVertexAttrib4Nub_Impl;
  1.1451 +        PFNGLVERTEXATTRIB4NUBVPROC glVertexAttrib4Nubv_Impl;
  1.1452 +        PFNGLVERTEXATTRIB4NUIVPROC glVertexAttrib4Nuiv_Impl;
  1.1453 +        PFNGLVERTEXATTRIB4NUSVPROC glVertexAttrib4Nusv_Impl;
  1.1454 +        PFNGLVERTEXATTRIB4BVPROC glVertexAttrib4bv_Impl;
  1.1455 +        PFNGLVERTEXATTRIB4DPROC glVertexAttrib4d_Impl;
  1.1456 +        PFNGLVERTEXATTRIB4DVPROC glVertexAttrib4dv_Impl;
  1.1457 +        PFNGLVERTEXATTRIB4FPROC glVertexAttrib4f_Impl;
  1.1458 +        PFNGLVERTEXATTRIB4FVPROC glVertexAttrib4fv_Impl;
  1.1459 +        PFNGLVERTEXATTRIB4IVPROC glVertexAttrib4iv_Impl;
  1.1460 +        PFNGLVERTEXATTRIB4SPROC glVertexAttrib4s_Impl;
  1.1461 +        PFNGLVERTEXATTRIB4SVPROC glVertexAttrib4sv_Impl;
  1.1462 +        PFNGLVERTEXATTRIB4UBVPROC glVertexAttrib4ubv_Impl;
  1.1463 +        PFNGLVERTEXATTRIB4UIVPROC glVertexAttrib4uiv_Impl;
  1.1464 +        PFNGLVERTEXATTRIB4USVPROC glVertexAttrib4usv_Impl;
  1.1465 +        PFNGLVERTEXATTRIBPOINTERPROC glVertexAttribPointer_Impl;
  1.1466 +
  1.1467 +        // GL_VERSION_2_1
  1.1468 +        PFNGLUNIFORMMATRIX2X3FVPROC glUniformMatrix2x3fv_Impl;
  1.1469 +        PFNGLUNIFORMMATRIX2X4FVPROC glUniformMatrix2x4fv_Impl;
  1.1470 +        PFNGLUNIFORMMATRIX3X2FVPROC glUniformMatrix3x2fv_Impl;
  1.1471 +        PFNGLUNIFORMMATRIX3X4FVPROC glUniformMatrix3x4fv_Impl;
  1.1472 +        PFNGLUNIFORMMATRIX4X2FVPROC glUniformMatrix4x2fv_Impl;
  1.1473 +        PFNGLUNIFORMMATRIX4X3FVPROC glUniformMatrix4x3fv_Impl;
  1.1474 +
  1.1475 +        // GL_VERSION_3_0
  1.1476 +        PFNGLBEGINCONDITIONALRENDERPROC glBeginConditionalRender_Impl;
  1.1477 +        PFNGLBEGINTRANSFORMFEEDBACKPROC glBeginTransformFeedback_Impl;
  1.1478 +        PFNGLBINDFRAGDATALOCATIONPROC glBindFragDataLocation_Impl;
  1.1479 +        PFNGLCLAMPCOLORPROC glClampColor_Impl;
  1.1480 +        PFNGLCLEARBUFFERFIPROC glClearBufferfi_Impl;
  1.1481 +        PFNGLCLEARBUFFERFVPROC glClearBufferfv_Impl;
  1.1482 +        PFNGLCLEARBUFFERIVPROC glClearBufferiv_Impl;
  1.1483 +        PFNGLCLEARBUFFERUIVPROC glClearBufferuiv_Impl;
  1.1484 +        PFNGLCOLORMASKIPROC glColorMaski_Impl;
  1.1485 +        PFNGLDISABLEIPROC glDisablei_Impl;
  1.1486 +        PFNGLENABLEIPROC glEnablei_Impl;
  1.1487 +        PFNGLENDCONDITIONALRENDERPROC glEndConditionalRender_Impl;
  1.1488 +        PFNGLENDTRANSFORMFEEDBACKPROC glEndTransformFeedback_Impl;
  1.1489 +        PFNGLBINDBUFFERRANGEPROC glBindBufferRange_Impl;
  1.1490 +        PFNGLBINDBUFFERBASEPROC glBindBufferBase_Impl;
  1.1491 +        PFNGLGETBOOLEANI_VPROC glGetBooleani_v_Impl;
  1.1492 +        PFNGLGETINTEGERI_VPROC glGetIntegeri_v_Impl;
  1.1493 +        PFNGLGETFRAGDATALOCATIONPROC glGetFragDataLocation_Impl;
  1.1494 +        PFNGLGETSTRINGIPROC glGetStringi_Impl;
  1.1495 +        PFNGLGETTEXPARAMETERIIVPROC glGetTexParameterIiv_Impl;
  1.1496 +        PFNGLGETTEXPARAMETERIUIVPROC glGetTexParameterIuiv_Impl;
  1.1497 +        PFNGLGETTRANSFORMFEEDBACKVARYINGPROC glGetTransformFeedbackVarying_Impl;
  1.1498 +        PFNGLGETUNIFORMUIVPROC glGetUniformuiv_Impl;
  1.1499 +        PFNGLGETVERTEXATTRIBIIVPROC glGetVertexAttribIiv_Impl;
  1.1500 +        PFNGLGETVERTEXATTRIBIUIVPROC glGetVertexAttribIuiv_Impl;
  1.1501 +        PFNGLISENABLEDIPROC glIsEnabledi_Impl;
  1.1502 +        PFNGLTEXPARAMETERIIVPROC glTexParameterIiv_Impl;
  1.1503 +        PFNGLTEXPARAMETERIUIVPROC glTexParameterIuiv_Impl;
  1.1504 +        PFNGLTRANSFORMFEEDBACKVARYINGSPROC glTransformFeedbackVaryings_Impl;
  1.1505 +        PFNGLUNIFORM1UIPROC glUniform1ui_Impl;
  1.1506 +        PFNGLUNIFORM1UIVPROC glUniform1uiv_Impl;
  1.1507 +        PFNGLUNIFORM2UIPROC glUniform2ui_Impl;
  1.1508 +        PFNGLUNIFORM2UIVPROC glUniform2uiv_Impl;
  1.1509 +        PFNGLUNIFORM3UIPROC glUniform3ui_Impl;
  1.1510 +        PFNGLUNIFORM3UIVPROC glUniform3uiv_Impl;
  1.1511 +        PFNGLUNIFORM4UIPROC glUniform4ui_Impl;
  1.1512 +        PFNGLUNIFORM4UIVPROC glUniform4uiv_Impl;
  1.1513 +        PFNGLVERTEXATTRIBI1IPROC glVertexAttribI1i_Impl;
  1.1514 +        PFNGLVERTEXATTRIBI1IVPROC glVertexAttribI1iv_Impl;
  1.1515 +        PFNGLVERTEXATTRIBI1UIPROC glVertexAttribI1ui_Impl;
  1.1516 +        PFNGLVERTEXATTRIBI1UIVPROC glVertexAttribI1uiv_Impl;
  1.1517 +        PFNGLVERTEXATTRIBI2IPROC glVertexAttribI2i_Impl;
  1.1518 +        PFNGLVERTEXATTRIBI2IVPROC glVertexAttribI2iv_Impl;
  1.1519 +        PFNGLVERTEXATTRIBI2UIPROC glVertexAttribI2ui_Impl;
  1.1520 +        PFNGLVERTEXATTRIBI2UIVPROC glVertexAttribI2uiv_Impl;
  1.1521 +        PFNGLVERTEXATTRIBI3IPROC glVertexAttribI3i_Impl;
  1.1522 +        PFNGLVERTEXATTRIBI3IVPROC glVertexAttribI3iv_Impl;
  1.1523 +        PFNGLVERTEXATTRIBI3UIPROC glVertexAttribI3ui_Impl;
  1.1524 +        PFNGLVERTEXATTRIBI3UIVPROC glVertexAttribI3uiv_Impl;
  1.1525 +        PFNGLVERTEXATTRIBI4BVPROC glVertexAttribI4bv_Impl;
  1.1526 +        PFNGLVERTEXATTRIBI4IPROC glVertexAttribI4i_Impl;
  1.1527 +        PFNGLVERTEXATTRIBI4IVPROC glVertexAttribI4iv_Impl;
  1.1528 +        PFNGLVERTEXATTRIBI4SVPROC glVertexAttribI4sv_Impl;
  1.1529 +        PFNGLVERTEXATTRIBI4UBVPROC glVertexAttribI4ubv_Impl;
  1.1530 +        PFNGLVERTEXATTRIBI4UIPROC glVertexAttribI4ui_Impl;
  1.1531 +        PFNGLVERTEXATTRIBI4UIVPROC glVertexAttribI4uiv_Impl;
  1.1532 +        PFNGLVERTEXATTRIBI4USVPROC glVertexAttribI4usv_Impl;
  1.1533 +        PFNGLVERTEXATTRIBIPOINTERPROC glVertexAttribIPointer_Impl;
  1.1534 +
  1.1535 +        // GL_VERSION_3_1
  1.1536 +        PFNGLDRAWARRAYSINSTANCEDPROC glDrawArraysInstanced_Impl;
  1.1537 +        PFNGLDRAWELEMENTSINSTANCEDPROC glDrawElementsInstanced_Impl;
  1.1538 +        PFNGLPRIMITIVERESTARTINDEXPROC glPrimitiveRestartIndex_Impl;
  1.1539 +        PFNGLTEXBUFFERPROC glTexBuffer_Impl;
  1.1540 +
  1.1541 +        // GL_VERSION_3_2
  1.1542 +        PFNGLFRAMEBUFFERTEXTUREPROC glFramebufferTexture_Impl;
  1.1543 +        PFNGLGETBUFFERPARAMETERI64VPROC glGetBufferParameteri64v_Impl;
  1.1544 +        PFNGLGETINTEGER64I_VPROC glGetInteger64i_v_Impl;
  1.1545 +
  1.1546 +        // GL_VERSION_3_3
  1.1547 +        PFNGLVERTEXATTRIBDIVISORPROC glVertexAttribDivisor_Impl;
  1.1548 +
  1.1549 +        // GL_VERSION_4_0
  1.1550 +        PFNGLBLENDEQUATIONSEPARATEIPROC glBlendEquationSeparatei_Impl;
  1.1551 +        PFNGLBLENDEQUATIONIPROC glBlendEquationi_Impl;
  1.1552 +        PFNGLBLENDFUNCSEPARATEIPROC glBlendFuncSeparatei_Impl;
  1.1553 +        PFNGLBLENDFUNCIPROC glBlendFunci_Impl;
  1.1554 +        PFNGLMINSAMPLESHADINGPROC glMinSampleShading_Impl;
  1.1555 +
  1.1556 +        // GL_AMD_debug_output
  1.1557 +        PFNGLDEBUGMESSAGECALLBACKAMDPROC glDebugMessageCallbackAMD_Impl;
  1.1558 +        PFNGLDEBUGMESSAGEENABLEAMDPROC glDebugMessageEnableAMD_Impl;
  1.1559 +        PFNGLDEBUGMESSAGEINSERTAMDPROC glDebugMessageInsertAMD_Impl;
  1.1560 +        PFNGLGETDEBUGMESSAGELOGAMDPROC glGetDebugMessageLogAMD_Impl;
  1.1561 +
  1.1562 +      #if defined(GLE_CGL_ENABLED)
  1.1563 +        // GL_APPLE_aux_depth_stencil
  1.1564 +        // (no functions)
  1.1565 +
  1.1566 +        // GL_APPLE_client_storage
  1.1567 +        // (no functions)
  1.1568 +
  1.1569 +        // GL_APPLE_element_array
  1.1570 +        PFNGLDRAWELEMENTARRAYAPPLEPROC glDrawElementArrayAPPLE_Impl;
  1.1571 +        PFNGLDRAWRANGEELEMENTARRAYAPPLEPROC glDrawRangeElementArrayAPPLE_Impl;
  1.1572 +        PFNGLELEMENTPOINTERAPPLEPROC glElementPointerAPPLE_Impl;
  1.1573 +        PFNGLMULTIDRAWELEMENTARRAYAPPLEPROC glMultiDrawElementArrayAPPLE_Impl;
  1.1574 +        PFNGLMULTIDRAWRANGEELEMENTARRAYAPPLEPROC glMultiDrawRangeElementArrayAPPLE_Impl;
  1.1575 +
  1.1576 +        // GL_APPLE_fence
  1.1577 +        PFNGLDELETEFENCESAPPLEPROC glDeleteFencesAPPLE_Impl;
  1.1578 +        PFNGLFINISHFENCEAPPLEPROC glFinishFenceAPPLE_Impl;
  1.1579 +        PFNGLFINISHOBJECTAPPLEPROC glFinishObjectAPPLE_Impl;
  1.1580 +        PFNGLGENFENCESAPPLEPROC glGenFencesAPPLE_Impl;
  1.1581 +        PFNGLISFENCEAPPLEPROC glIsFenceAPPLE_Impl;
  1.1582 +        PFNGLSETFENCEAPPLEPROC glSetFenceAPPLE_Impl;
  1.1583 +        PFNGLTESTFENCEAPPLEPROC glTestFenceAPPLE_Impl;
  1.1584 +        PFNGLTESTOBJECTAPPLEPROC glTestObjectAPPLE_Impl;
  1.1585 +
  1.1586 +        // GL_APPLE_float_pixels
  1.1587 +        // (no functions)
  1.1588 +
  1.1589 +        // GL_APPLE_flush_buffer_range
  1.1590 +        PFNGLBUFFERPARAMETERIAPPLEPROC glBufferParameteriAPPLE_Impl;
  1.1591 +        PFNGLFLUSHMAPPEDBUFFERRANGEAPPLEPROC glFlushMappedBufferRangeAPPLE_Impl;
  1.1592 +
  1.1593 +        // GL_APPLE_object_purgeable
  1.1594 +        PFNGLGETOBJECTPARAMETERIVAPPLEPROC glGetObjectParameterivAPPLE_Impl;
  1.1595 +        PFNGLOBJECTPURGEABLEAPPLEPROC glObjectPurgeableAPPLE_Impl;
  1.1596 +        PFNGLOBJECTUNPURGEABLEAPPLEPROC glObjectUnpurgeableAPPLE_Impl;
  1.1597 +
  1.1598 +        // GL_APPLE_pixel_buffer
  1.1599 +        // (no functions)
  1.1600 +
  1.1601 +        // GL_APPLE_rgb_422
  1.1602 +        // (no functions)
  1.1603 +
  1.1604 +        // GL_APPLE_row_bytes
  1.1605 +        // (no functions)
  1.1606 +
  1.1607 +        // GL_APPLE_specular_vector
  1.1608 +        // (no functions)
  1.1609 +
  1.1610 +        // GL_APPLE_texture_range
  1.1611 +        PFNGLGETTEXPARAMETERPOINTERVAPPLEPROC glGetTexParameterPointervAPPLE_Impl;
  1.1612 +        PFNGLTEXTURERANGEAPPLEPROC glTextureRangeAPPLE_Impl;
  1.1613 +
  1.1614 +        // GL_APPLE_transform_hint
  1.1615 +        // (no functions)
  1.1616 +
  1.1617 +        // GL_APPLE_vertex_array_object
  1.1618 +        PFNGLBINDVERTEXARRAYAPPLEPROC glBindVertexArrayAPPLE_Impl;
  1.1619 +        PFNGLDELETEVERTEXARRAYSAPPLEPROC glDeleteVertexArraysAPPLE_Impl;
  1.1620 +        PFNGLGENVERTEXARRAYSAPPLEPROC glGenVertexArraysAPPLE_Impl;
  1.1621 +        PFNGLISVERTEXARRAYAPPLEPROC glIsVertexArrayAPPLE_Impl;
  1.1622 +
  1.1623 +        // GL_APPLE_vertex_array_range
  1.1624 +        PFNGLFLUSHVERTEXARRAYRANGEAPPLEPROC glFlushVertexArrayRangeAPPLE_Impl;
  1.1625 +        PFNGLVERTEXARRAYPARAMETERIAPPLEPROC glVertexArrayParameteriAPPLE_Impl;
  1.1626 +        PFNGLVERTEXARRAYRANGEAPPLEPROC glVertexArrayRangeAPPLE_Impl;
  1.1627 +
  1.1628 +        // GL_APPLE_vertex_program_evaluators
  1.1629 +        PFNGLDISABLEVERTEXATTRIBAPPLEPROC glDisableVertexAttribAPPLE_Impl;
  1.1630 +        PFNGLENABLEVERTEXATTRIBAPPLEPROC glEnableVertexAttribAPPLE_Impl;
  1.1631 +        PFNGLISVERTEXATTRIBENABLEDAPPLEPROC glIsVertexAttribEnabledAPPLE_Impl;
  1.1632 +        PFNGLMAPVERTEXATTRIB1DAPPLEPROC glMapVertexAttrib1dAPPLE_Impl;
  1.1633 +        PFNGLMAPVERTEXATTRIB1FAPPLEPROC glMapVertexAttrib1fAPPLE_Impl;
  1.1634 +        PFNGLMAPVERTEXATTRIB2DAPPLEPROC glMapVertexAttrib2dAPPLE_Impl;
  1.1635 +        PFNGLMAPVERTEXATTRIB2FAPPLEPROC glMapVertexAttrib2fAPPLE_Impl;
  1.1636 +      #endif // GLE_CGL_ENABLED
  1.1637 +      
  1.1638 +        // GL_ARB_debug_output
  1.1639 +        PFNGLDEBUGMESSAGECALLBACKARBPROC glDebugMessageCallbackARB_Impl;
  1.1640 +        PFNGLDEBUGMESSAGECONTROLARBPROC glDebugMessageControlARB_Impl;
  1.1641 +        PFNGLDEBUGMESSAGEINSERTARBPROC glDebugMessageInsertARB_Impl;
  1.1642 +        PFNGLGETDEBUGMESSAGELOGARBPROC glGetDebugMessageLogARB_Impl;
  1.1643 +
  1.1644 +        // GL_ARB_ES2_compatibility
  1.1645 +        PFNGLCLEARDEPTHFPROC glClearDepthf_Impl;
  1.1646 +        PFNGLDEPTHRANGEFPROC glDepthRangef_Impl;
  1.1647 +        PFNGLGETSHADERPRECISIONFORMATPROC glGetShaderPrecisionFormat_Impl;
  1.1648 +        PFNGLRELEASESHADERCOMPILERPROC glReleaseShaderCompiler_Impl;
  1.1649 +        PFNGLSHADERBINARYPROC glShaderBinary_Impl;
  1.1650 +
  1.1651 +        // GL_ARB_framebuffer_object
  1.1652 +        PFNGLBINDFRAMEBUFFERPROC glBindFramebuffer_Impl;
  1.1653 +        PFNGLBINDRENDERBUFFERPROC glBindRenderbuffer_Impl;
  1.1654 +        PFNGLBLITFRAMEBUFFERPROC glBlitFramebuffer_Impl;
  1.1655 +        PFNGLCHECKFRAMEBUFFERSTATUSPROC glCheckFramebufferStatus_Impl;
  1.1656 +        PFNGLDELETEFRAMEBUFFERSPROC glDeleteFramebuffers_Impl;
  1.1657 +        PFNGLDELETERENDERBUFFERSPROC glDeleteRenderbuffers_Impl;
  1.1658 +        PFNGLFRAMEBUFFERRENDERBUFFERPROC glFramebufferRenderbuffer_Impl;
  1.1659 +        PFNGLFRAMEBUFFERTEXTURE1DPROC glFramebufferTexture1D_Impl;
  1.1660 +        PFNGLFRAMEBUFFERTEXTURE2DPROC glFramebufferTexture2D_Impl;
  1.1661 +        PFNGLFRAMEBUFFERTEXTURE3DPROC glFramebufferTexture3D_Impl;
  1.1662 +        PFNGLFRAMEBUFFERTEXTURELAYERPROC glFramebufferTextureLayer_Impl;
  1.1663 +        PFNGLGENFRAMEBUFFERSPROC glGenFramebuffers_Impl;
  1.1664 +        PFNGLGENRENDERBUFFERSPROC glGenRenderbuffers_Impl;
  1.1665 +        PFNGLGENERATEMIPMAPPROC glGenerateMipmap_Impl;
  1.1666 +        PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC glGetFramebufferAttachmentParameteriv_Impl;
  1.1667 +        PFNGLGETRENDERBUFFERPARAMETERIVPROC glGetRenderbufferParameteriv_Impl;
  1.1668 +        PFNGLISFRAMEBUFFERPROC glIsFramebuffer_Impl;
  1.1669 +        PFNGLISRENDERBUFFERPROC glIsRenderbuffer_Impl;
  1.1670 +        PFNGLRENDERBUFFERSTORAGEPROC glRenderbufferStorage_Impl;
  1.1671 +        PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC glRenderbufferStorageMultisample_Impl;
  1.1672 +    
  1.1673 +        // GL_ARB_framebuffer_sRGB
  1.1674 +        // (no functions)
  1.1675 +
  1.1676 +        // GL_ARB_texture_multisample
  1.1677 +        PFNGLGETMULTISAMPLEFVPROC glGetMultisamplefv_Impl;
  1.1678 +        PFNGLSAMPLEMASKIPROC glSampleMaski_Impl;
  1.1679 +        PFNGLTEXIMAGE2DMULTISAMPLEPROC glTexImage2DMultisample_Impl;
  1.1680 +        PFNGLTEXIMAGE3DMULTISAMPLEPROC glTexImage3DMultisample_Impl;
  1.1681 +
  1.1682 +        // GL_ARB_texture_non_power_of_two
  1.1683 +        // (no functions)
  1.1684 +
  1.1685 +        // GL_ARB_texture_rectangle
  1.1686 +        // (no functions)
  1.1687 +
  1.1688 +        // GL_ARB_timer_query
  1.1689 +        PFNGLGETQUERYOBJECTI64VPROC glGetQueryObjecti64v_Impl;
  1.1690 +        PFNGLGETQUERYOBJECTUI64VPROC glGetQueryObjectui64v_Impl;
  1.1691 +        PFNGLQUERYCOUNTERPROC glQueryCounter_Impl;
  1.1692 +
  1.1693 +        // GL_ARB_vertex_array_object
  1.1694 +        PFNGLBINDVERTEXARRAYPROC glBindVertexArray_Impl;
  1.1695 +        PFNGLDELETEVERTEXARRAYSPROC glDeleteVertexArrays_Impl;
  1.1696 +        PFNGLGENVERTEXARRAYSPROC glGenVertexArrays_Impl;
  1.1697 +        PFNGLISVERTEXARRAYPROC glIsVertexArray_Impl;
  1.1698 +
  1.1699 +        // GL_EXT_draw_buffers2
  1.1700 +        PFNGLCOLORMASKINDEXEDEXTPROC glColorMaskIndexedEXT_Impl;
  1.1701 +        PFNGLDISABLEINDEXEDEXTPROC glDisableIndexedEXT_Impl;
  1.1702 +        PFNGLENABLEINDEXEDEXTPROC glEnableIndexedEXT_Impl;
  1.1703 +        PFNGLGETBOOLEANINDEXEDVEXTPROC glGetBooleanIndexedvEXT_Impl;
  1.1704 +        PFNGLGETINTEGERINDEXEDVEXTPROC glGetIntegerIndexedvEXT_Impl;
  1.1705 +        PFNGLISENABLEDINDEXEDEXTPROC glIsEnabledIndexedEXT_Impl;
  1.1706 +
  1.1707 +        // GL_EXT_texture_filter_anisotropic
  1.1708 +        // (no functions)
  1.1709 +
  1.1710 +        // GL_KHR_debug
  1.1711 +        PFNGLDEBUGMESSAGECALLBACKPROC glDebugMessageCallback_Impl;
  1.1712 +        PFNGLDEBUGMESSAGECONTROLPROC glDebugMessageControl_Impl;
  1.1713 +        PFNGLDEBUGMESSAGEINSERTPROC glDebugMessageInsert_Impl;
  1.1714 +        PFNGLGETDEBUGMESSAGELOGPROC glGetDebugMessageLog_Impl;
  1.1715 +        PFNGLGETOBJECTLABELPROC glGetObjectLabel_Impl;
  1.1716 +        PFNGLGETOBJECTPTRLABELPROC glGetObjectPtrLabel_Impl;
  1.1717 +        PFNGLOBJECTLABELPROC glObjectLabel_Impl;
  1.1718 +        PFNGLOBJECTPTRLABELPROC glObjectPtrLabel_Impl;
  1.1719 +        PFNGLPOPDEBUGGROUPPROC glPopDebugGroup_Impl;
  1.1720 +        PFNGLPUSHDEBUGGROUPPROC glPushDebugGroup_Impl;
  1.1721 +
  1.1722 +        // GL_KHR_robust_buffer_access_behavior
  1.1723 +        
  1.1724 +        // GL_WIN_swap_hint
  1.1725 +        PFNGLADDSWAPHINTRECTWINPROC glAddSwapHintRectWIN_Impl;
  1.1726 +
  1.1727 +      #if defined(GLE_WGL_ENABLED)
  1.1728 +        // WGL
  1.1729 +        // We don't declare pointers for these because we statically link to the implementations, same as with the OpenGL 1.1 functions.
  1.1730 +        // BOOL  wglCopyContext_Hook(HGLRC, HGLRC, UINT);
  1.1731 +        // HGLRC wglCreateContext_Hook(HDC);
  1.1732 +        // HGLRC wglCreateLayerContext_Hook(HDC, int);
  1.1733 +        // BOOL  wglDeleteContext_Hook(HGLRC);
  1.1734 +        // HGLRC wglGetCurrentContext_Hook(VOID);
  1.1735 +        // HDC   wglGetCurrentDC_Hook(VOID);
  1.1736 +        // PROC  wglGetProcAddress_Hook(LPCSTR);
  1.1737 +        // BOOL  wglMakeCurrent_Hook(HDC, HGLRC);
  1.1738 +        // BOOL  wglShareLists_Hook(HGLRC, HGLRC);
  1.1739 +        // BOOL  wglUseFontBitmapsA_Hook(HDC, DWORD, DWORD, DWORD);
  1.1740 +        // BOOL  wglUseFontBitmapsW_Hook(HDC, DWORD, DWORD, DWORD);
  1.1741 +        // BOOL  wglUseFontOutlinesA_Hook(HDC, DWORD, DWORD, DWORD, FLOAT, FLOAT, int, LPGLYPHMETRICSFLOAT);
  1.1742 +        // BOOL  wglUseFontOutlinesW_Hook(HDC, DWORD, DWORD, DWORD, FLOAT, FLOAT, int, LPGLYPHMETRICSFLOAT);
  1.1743 +        // BOOL  wglDescribeLayerPlane_Hook(HDC, int, int, UINT, LPLAYERPLANEDESCRIPTOR);
  1.1744 +        // int   wglSetLayerPaletteEntries_Hook(HDC, int, int, int, CONST COLORREF *);
  1.1745 +        // int   wglGetLayerPaletteEntries_Hook(HDC, int, int, int, COLORREF *);
  1.1746 +        // BOOL  wglRealizeLayerPalette_Hook(HDC, int, BOOL);
  1.1747 +        // BOOL  wglSwapLayerBuffers_Hook(HDC, UINT);
  1.1748 +        // DWORD wglSwapMultipleBuffers_Hook(UINT, CONST WGLSWAP *);
  1.1749 +
  1.1750 +        #if 0
  1.1751 +        PFNWGLCOPYCONTEXTPROC            wglCopyContext_Impl;
  1.1752 +        PFNWGLCREATECONTEXTPROC          wglCreateContext_Impl;
  1.1753 +        PFNWGLCREATELAYERCONTEXTPROC     wglCreateLayerContext_Impl;
  1.1754 +        PFNWGLDELETECONTEXTPROC          wglDeleteContext_Impl;
  1.1755 +        PFNWGLGETCURRENTCONTEXTPROC      wglGetCurrentContext_Impl;
  1.1756 +        PFNWGLGETCURRENTDCPROC           wglGetCurrentDC_Impl;
  1.1757 +        PFNWGLGETPROCADDRESSPROC         wglGetProcAddress_Impl;
  1.1758 +        PFNWGLMAKECURRENTPROC            wglMakeCurrent_Impl;
  1.1759 +        PFNWGLSHARELISTSPROC             wglShareLists_Impl;
  1.1760 +        PFNWGLUSEFONTBITMAPSAPROC        wglUseFontBitmapsA_Impl;
  1.1761 +        PFNWGLUSEFONTBITMAPSWPROC        wglUseFontBitmapsW_Impl;
  1.1762 +        PFNWGLUSEFONTOUTLINESAPROC       wglUseFontOutlinesA_Impl;
  1.1763 +        PFNWGLUSEFONTOUTLINESWPROC       wglUseFontOutlinesW_Impl;
  1.1764 +        PFNWGLDESCRIBELAYERPLANEPROC     wglDescribeLayerPlane_Impl;
  1.1765 +        PFNWGLSETLAYERPALETTEENTRIESPROC wglSetLayerPaletteEntries_Impl;
  1.1766 +        PFNWGLGETLAYERPALETTEENTRIESPROC wglGetLayerPaletteEntries_Impl;
  1.1767 +        PFNWGLREALIZELAYERPALETTEPROC    wglRealizeLayerPalette_Impl;
  1.1768 +        PFNWGLSWAPLAYERBUFFERSPROC       wglSwapLayerBuffers_Impl;
  1.1769 +        PFNWGLSWAPMULTIPLEBUFFERSPROC    wglSwapMultipleBuffers_Impl;
  1.1770 +        #endif
  1.1771 +
  1.1772 +        // WGL_ARB_buffer_region
  1.1773 +        PFNWGLCREATEBUFFERREGIONARBPROC  wglCreateBufferRegionARB_Impl;
  1.1774 +        PFNWGLDELETEBUFFERREGIONARBPROC  wglDeleteBufferRegionARB_Impl;
  1.1775 +        PFNWGLSAVEBUFFERREGIONARBPROC    wglSaveBufferRegionARB_Impl;
  1.1776 +        PFNWGLRESTOREBUFFERREGIONARBPROC wglRestoreBufferRegionARB_Impl;
  1.1777 +
  1.1778 +        // WGL_ARB_extensions_string
  1.1779 +        PFNWGLGETEXTENSIONSSTRINGARBPROC wglGetExtensionsStringARB_Impl;
  1.1780 +
  1.1781 +        // WGL_ARB_pixel_format
  1.1782 +        PFNWGLGETPIXELFORMATATTRIBIVARBPROC wglGetPixelFormatAttribivARB_Impl;
  1.1783 +        PFNWGLGETPIXELFORMATATTRIBFVARBPROC wglGetPixelFormatAttribfvARB_Impl;
  1.1784 +        PFNWGLCHOOSEPIXELFORMATARBPROC      wglChoosePixelFormatARB_Impl;
  1.1785 +
  1.1786 +        // WGL_ARB_make_current_read
  1.1787 +        PFNWGLMAKECONTEXTCURRENTARBPROC wglMakeContextCurrentARB_Impl;
  1.1788 +        PFNWGLGETCURRENTREADDCARBPROC   wglGetCurrentReadDCARB_Impl;
  1.1789 +
  1.1790 +        // WGL_ARB_pbuffer
  1.1791 +        PFNWGLCREATEPBUFFERARBPROC    wglCreatePbufferARB_Impl;
  1.1792 +        PFNWGLGETPBUFFERDCARBPROC     wglGetPbufferDCARB_Impl;
  1.1793 +        PFNWGLRELEASEPBUFFERDCARBPROC wglReleasePbufferDCARB_Impl;
  1.1794 +        PFNWGLDESTROYPBUFFERARBPROC   wglDestroyPbufferARB_Impl;
  1.1795 +        PFNWGLQUERYPBUFFERARBPROC     wglQueryPbufferARB_Impl;
  1.1796 +
  1.1797 +        // WGL_ARB_render_texture
  1.1798 +        PFNWGLBINDTEXIMAGEARBPROC     wglBindTexImageARB_Impl;
  1.1799 +        PFNWGLRELEASETEXIMAGEARBPROC  wglReleaseTexImageARB_Impl;
  1.1800 +        PFNWGLSETPBUFFERATTRIBARBPROC wglSetPbufferAttribARB_Impl;
  1.1801 +
  1.1802 +        // WGL_ARB_pixel_format_float
  1.1803 +        // (no functions)
  1.1804 +        
  1.1805 +        // WGL_ARB_framebuffer_sRGB
  1.1806 +        // (no functions)
  1.1807 +
  1.1808 +        // WGL_NV_present_video
  1.1809 +        PFNWGLENUMERATEVIDEODEVICESNVPROC wglEnumerateVideoDevicesNV_Impl;
  1.1810 +        PFNWGLBINDVIDEODEVICENVPROC       wglBindVideoDeviceNV_Impl;
  1.1811 +        PFNWGLQUERYCURRENTCONTEXTNVPROC   wglQueryCurrentContextNV_Impl;
  1.1812 +
  1.1813 +        // WGL_ARB_create_context
  1.1814 +        PFNWGLCREATECONTEXTATTRIBSARBPROC wglCreateContextAttribsARB_Impl;
  1.1815 +
  1.1816 +        // WGL_ARB_create_context_profile
  1.1817 +        // (no functions)
  1.1818 +
  1.1819 +        // WGL_ARB_create_context_robustness
  1.1820 +        // (no functions)
  1.1821 +
  1.1822 +        // WGL_EXT_extensions_string
  1.1823 +        PFNWGLGETEXTENSIONSSTRINGEXTPROC wglGetExtensionsStringEXT_Impl;
  1.1824 +
  1.1825 +        // WGL_EXT_swap_control
  1.1826 +        PFNWGLGETSWAPINTERVALEXTPROC wglGetSwapIntervalEXT_Impl;
  1.1827 +        PFNWGLSWAPINTERVALEXTPROC    wglSwapIntervalEXT_Impl;
  1.1828 +
  1.1829 +        // WGL_OML_sync_control
  1.1830 +        PFNWGLGETSYNCVALUESOMLPROC       wglGetSyncValuesOML_Impl;
  1.1831 +        PFNWGLGETMSCRATEOMLPROC          wglGetMscRateOML_Impl;
  1.1832 +        PFNWGLSWAPBUFFERSMSCOMLPROC      wglSwapBuffersMscOML_Impl;
  1.1833 +        PFNWGLSWAPLAYERBUFFERSMSCOMLPROC wglSwapLayerBuffersMscOML_Impl;
  1.1834 +        PFNWGLWAITFORMSCOMLPROC          wglWaitForMscOML_Impl;
  1.1835 +        PFNWGLWAITFORSBCOMLPROC          wglWaitForSbcOML_Impl;
  1.1836 +
  1.1837 +        // WGL_NV_video_output
  1.1838 +        PFNWGLGETVIDEODEVICENVPROC     wglGetVideoDeviceNV_Impl;
  1.1839 +        PFNWGLRELEASEVIDEODEVICENVPROC wglReleaseVideoDeviceNV_Impl;
  1.1840 +        PFNWGLBINDVIDEOIMAGENVPROC     wglBindVideoImageNV_Impl;
  1.1841 +        PFNWGLRELEASEVIDEOIMAGENVPROC  wglReleaseVideoImageNV_Impl;
  1.1842 +        PFNWGLSENDPBUFFERTOVIDEONVPROC wglSendPbufferToVideoNV_Impl;
  1.1843 +        PFNWGLGETVIDEOINFONVPROC       wglGetVideoInfoNV_Impl;
  1.1844 +
  1.1845 +        // WGL_NV_swap_group
  1.1846 +        PFNWGLJOINSWAPGROUPNVPROC      wglJoinSwapGroupNV_Impl;
  1.1847 +        PFNWGLBINDSWAPBARRIERNVPROC    wglBindSwapBarrierNV_Impl;
  1.1848 +        PFNWGLQUERYSWAPGROUPNVPROC     wglQuerySwapGroupNV_Impl;
  1.1849 +        PFNWGLQUERYMAXSWAPGROUPSNVPROC wglQueryMaxSwapGroupsNV_Impl;
  1.1850 +        PFNWGLQUERYFRAMECOUNTNVPROC    wglQueryFrameCountNV_Impl;
  1.1851 +        PFNWGLRESETFRAMECOUNTNVPROC    wglResetFrameCountNV_Impl;
  1.1852 +
  1.1853 +        // WGL_NV_video_capture
  1.1854 +        PFNWGLBINDVIDEOCAPTUREDEVICENVPROC       wglBindVideoCaptureDeviceNV_Impl;
  1.1855 +        PFNWGLENUMERATEVIDEOCAPTUREDEVICESNVPROC wglEnumerateVideoCaptureDevicesNV_Impl;
  1.1856 +        PFNWGLLOCKVIDEOCAPTUREDEVICENVPROC       wglLockVideoCaptureDeviceNV_Impl;
  1.1857 +        PFNWGLQUERYVIDEOCAPTUREDEVICENVPROC      wglQueryVideoCaptureDeviceNV_Impl;
  1.1858 +        PFNWGLRELEASEVIDEOCAPTUREDEVICENVPROC    wglReleaseVideoCaptureDeviceNV_Impl;
  1.1859 +
  1.1860 +        // WGL_NV_copy_image
  1.1861 +        PFNWGLCOPYIMAGESUBDATANVPROC wglCopyImageSubDataNV_Impl;
  1.1862 +    
  1.1863 +        // WGL_NV_DX_interop
  1.1864 +        PFNWGLDXCLOSEDEVICENVPROC            wglDXCloseDeviceNV_Impl;
  1.1865 +        PFNWGLDXLOCKOBJECTSNVPROC            wglDXLockObjectsNV_Impl;
  1.1866 +        PFNWGLDXOBJECTACCESSNVPROC           wglDXObjectAccessNV_Impl;
  1.1867 +        PFNWGLDXOPENDEVICENVPROC             wglDXOpenDeviceNV_Impl;
  1.1868 +        PFNWGLDXREGISTEROBJECTNVPROC         wglDXRegisterObjectNV_Impl;
  1.1869 +        PFNWGLDXSETRESOURCESHAREHANDLENVPROC wglDXSetResourceShareHandleNV_Impl;
  1.1870 +        PFNWGLDXUNLOCKOBJECTSNVPROC          wglDXUnlockObjectsNV_Impl;
  1.1871 +        PFNWGLDXUNREGISTEROBJECTNVPROC       wglDXUnregisterObjectNV_Impl;
  1.1872 +
  1.1873 +      #endif // GLE_WGL_ENABLED
  1.1874 +      
  1.1875 +      #if defined(GLE_GLX_ENABLED)
  1.1876 +        // GLX_VERSION_1_1
  1.1877 +        // We don't create any pointers, because we assume these functions are always present.
  1.1878 +        
  1.1879 +        // GLX_VERSION_1_2
  1.1880 +        PFNGLXGETCURRENTDISPLAYPROC      glXGetCurrentDisplay_Impl;
  1.1881 +
  1.1882 +        // GLX_VERSION_1_3
  1.1883 +        PFNGLXCHOOSEFBCONFIGPROC         glXChooseFBConfig_Impl;
  1.1884 +        PFNGLXCREATENEWCONTEXTPROC       glXCreateNewContext_Impl;
  1.1885 +        PFNGLXCREATEPBUFFERPROC          glXCreatePbuffer_Impl;
  1.1886 +        PFNGLXCREATEPIXMAPPROC           glXCreatePixmap_Impl;
  1.1887 +        PFNGLXCREATEWINDOWPROC           glXCreateWindow_Impl;
  1.1888 +        PFNGLXDESTROYPBUFFERPROC         glXDestroyPbuffer_Impl;
  1.1889 +        PFNGLXDESTROYPIXMAPPROC          glXDestroyPixmap_Impl;
  1.1890 +        PFNGLXDESTROYWINDOWPROC          glXDestroyWindow_Impl;
  1.1891 +        PFNGLXGETCURRENTREADDRAWABLEPROC glXGetCurrentReadDrawable_Impl;
  1.1892 +        PFNGLXGETFBCONFIGATTRIBPROC      glXGetFBConfigAttrib_Impl;
  1.1893 +        PFNGLXGETFBCONFIGSPROC           glXGetFBConfigs_Impl;
  1.1894 +        PFNGLXGETSELECTEDEVENTPROC       glXGetSelectedEvent_Impl;
  1.1895 +        PFNGLXGETVISUALFROMFBCONFIGPROC  glXGetVisualFromFBConfig_Impl;
  1.1896 +        PFNGLXMAKECONTEXTCURRENTPROC     glXMakeContextCurrent_Impl;
  1.1897 +        PFNGLXQUERYCONTEXTPROC           glXQueryContext_Impl;
  1.1898 +        PFNGLXQUERYDRAWABLEPROC          glXQueryDrawable_Impl;
  1.1899 +        PFNGLXSELECTEVENTPROC            glXSelectEvent_Impl;
  1.1900 +
  1.1901 +        // GLX_VERSION_1_4
  1.1902 +        // Nothing to declare
  1.1903 +        
  1.1904 +        // GLX_ARB_create_context
  1.1905 +        PFNGLXCREATECONTEXTATTRIBSARBPROC glXCreateContextAttribsARB_Impl;
  1.1906 +
  1.1907 +        // GLX_EXT_swap_control
  1.1908 +        PFNGLXSWAPINTERVALEXTPROC glXSwapIntervalEXT_Impl;
  1.1909 +
  1.1910 +        // GLX_OML_sync_control
  1.1911 +        PFNGLXGETMSCRATEOMLPROC     glXGetMscRateOML_Impl;
  1.1912 +        PFNGLXGETSYNCVALUESOMLPROC  glXGetSyncValuesOML_Impl;
  1.1913 +        PFNGLXSWAPBUFFERSMSCOMLPROC glXSwapBuffersMscOML_Impl;
  1.1914 +        PFNGLXWAITFORMSCOMLPROC     glXWaitForMscOML_Impl;
  1.1915 +        PFNGLXWAITFORSBCOMLPROC     glXWaitForSbcOML_Impl;
  1.1916 +
  1.1917 +        // GLX_MESA_swap_control
  1.1918 +        PFNGLXGETSWAPINTERVALMESAPROC glXGetSwapIntervalMESA_Impl;
  1.1919 +        PFNGLXSWAPINTERVALMESAPROC    glXSwapIntervalMESA_Impl;
  1.1920 +
  1.1921 +      #endif // GLE_GLX_ENABLED
  1.1922 +
  1.1923 +        
  1.1924 +        // Boolean extension support indicators. Each of these identifies the
  1.1925 +        // presence or absence of the given extension. A better solution here
  1.1926 +        // might be to use an STL map<const char*, bool>.
  1.1927 +        bool gle_AMD_debug_output;
  1.1928 +      //bool gle_AMD_performance_monitor;
  1.1929 +        bool gle_APPLE_aux_depth_stencil;
  1.1930 +        bool gle_APPLE_client_storage;
  1.1931 +        bool gle_APPLE_element_array;
  1.1932 +        bool gle_APPLE_fence;
  1.1933 +        bool gle_APPLE_float_pixels;
  1.1934 +        bool gle_APPLE_flush_buffer_range;
  1.1935 +        bool gle_APPLE_object_purgeable;
  1.1936 +        bool gle_APPLE_pixel_buffer;
  1.1937 +        bool gle_APPLE_rgb_422;
  1.1938 +        bool gle_APPLE_row_bytes;
  1.1939 +        bool gle_APPLE_specular_vector;
  1.1940 +        bool gle_APPLE_texture_range;
  1.1941 +        bool gle_APPLE_transform_hint;
  1.1942 +        bool gle_APPLE_vertex_array_object;
  1.1943 +        bool gle_APPLE_vertex_array_range;
  1.1944 +        bool gle_APPLE_vertex_program_evaluators;
  1.1945 +        bool gle_APPLE_ycbcr_422;
  1.1946 +        bool gle_ARB_debug_output;
  1.1947 +        bool gle_ARB_depth_buffer_float;
  1.1948 +      //bool gle_ARB_direct_state_access;
  1.1949 +        bool gle_ARB_ES2_compatibility;
  1.1950 +        bool gle_ARB_framebuffer_object;
  1.1951 +        bool gle_ARB_framebuffer_sRGB;
  1.1952 +        bool gle_ARB_texture_multisample;
  1.1953 +        bool gle_ARB_texture_non_power_of_two;
  1.1954 +        bool gle_ARB_texture_rectangle;
  1.1955 +        bool gle_ARB_timer_query;
  1.1956 +        bool gle_ARB_vertex_array_object;
  1.1957 +      //bool gle_ARB_vertex_attrib_binding;
  1.1958 +        bool gle_EXT_draw_buffers2;
  1.1959 +        bool gle_EXT_texture_compression_s3tc;
  1.1960 +        bool gle_EXT_texture_filter_anisotropic;
  1.1961 +      //bool gle_KHR_context_flush_control;
  1.1962 +        bool gle_KHR_debug;
  1.1963 +      //bool gle_KHR_robust_buffer_access_behavior;
  1.1964 +      //bool gle_KHR_robustness;
  1.1965 +        bool gle_WIN_swap_hint;
  1.1966 +        
  1.1967 +      #if defined(GLE_WGL_ENABLED)
  1.1968 +        bool gle_WGL_ARB_buffer_region;
  1.1969 +        bool gle_WGL_ARB_create_context;
  1.1970 +        bool gle_WGL_ARB_create_context_profile;
  1.1971 +        bool gle_WGL_ARB_create_context_robustness;
  1.1972 +        bool gle_WGL_ARB_extensions_string;
  1.1973 +        bool gle_WGL_ARB_framebuffer_sRGB;
  1.1974 +        bool gle_WGL_ARB_make_current_read;
  1.1975 +        bool gle_WGL_ARB_pbuffer;
  1.1976 +        bool gle_WGL_ARB_pixel_format;
  1.1977 +        bool gle_WGL_ARB_pixel_format_float;
  1.1978 +        bool gle_WGL_ARB_render_texture;
  1.1979 +        bool gle_WGL_ATI_render_texture_rectangle;
  1.1980 +        bool gle_WGL_EXT_extensions_string;
  1.1981 +        bool gle_WGL_EXT_swap_control;
  1.1982 +        bool gle_WGL_NV_copy_image;
  1.1983 +        bool gle_WGL_NV_DX_interop;
  1.1984 +        bool gle_WGL_NV_DX_interop2;
  1.1985 +        bool gle_WGL_NV_present_video;
  1.1986 +        bool gle_WGL_NV_render_texture_rectangle;
  1.1987 +        bool gle_WGL_NV_swap_group;
  1.1988 +        bool gle_WGL_NV_video_capture;
  1.1989 +        bool gle_WGL_NV_video_output;
  1.1990 +        bool gle_WGL_OML_sync_control;
  1.1991 +      #elif defined(GLE_GLX_ENABLED)
  1.1992 +        bool gle_GLX_ARB_create_context;
  1.1993 +        bool gle_GLX_ARB_create_context_profile;
  1.1994 +		bool gle_GLX_ARB_create_context_robustness;
  1.1995 +        bool gle_GLX_EXT_swap_control;
  1.1996 +        bool gle_GLX_OML_sync_control;
  1.1997 +        bool gle_MESA_swap_control;
  1.1998 +      #endif
  1.1999 +        
  1.2000 +    }; // class GLEContext
  1.2001 +
  1.2002 +
  1.2003 +} // namespace OVR
  1.2004 +
  1.2005 +
  1.2006 +#endif // Header include guard