rev |
line source |
nuclear@0
|
1 /************************************************************************************
|
nuclear@0
|
2
|
nuclear@0
|
3 Filename : Render_GLE.cpp
|
nuclear@0
|
4 Content : OpenGL Extensions support. Implements a stripped down glew-like
|
nuclear@0
|
5 interface with some additional functionality.
|
nuclear@0
|
6 Copyright : Copyright 2014 Oculus VR, LLC All Rights reserved.
|
nuclear@0
|
7
|
nuclear@0
|
8 Licensed under the Apache License, Version 2.0 (the "License");
|
nuclear@0
|
9 you may not use this file except in compliance with the License.
|
nuclear@0
|
10 You may obtain a copy of the License at
|
nuclear@0
|
11
|
nuclear@0
|
12 http://www.apache.org/licenses/LICENSE-2.0
|
nuclear@0
|
13
|
nuclear@0
|
14 Unless required by applicable law or agreed to in writing, software
|
nuclear@0
|
15 distributed under the License is distributed on an "AS IS" BASIS,
|
nuclear@0
|
16 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
nuclear@0
|
17 See the License for the specific language governing permissions and
|
nuclear@0
|
18 limitations under the License.
|
nuclear@0
|
19
|
nuclear@0
|
20 ************************************************************************************/
|
nuclear@0
|
21
|
nuclear@0
|
22 #include "CAPI_GLE.h"
|
nuclear@0
|
23 #include "../../Kernel/OVR_Log.h"
|
nuclear@0
|
24 #include <string.h>
|
nuclear@0
|
25
|
nuclear@0
|
26
|
nuclear@0
|
27 #if defined(_WIN32)
|
nuclear@0
|
28 #if !defined(WINAPI)
|
nuclear@0
|
29 #ifndef WIN32_LEAN_AND_MEAN
|
nuclear@0
|
30 #define WIN32_LEAN_AND_MEAN 1
|
nuclear@0
|
31 #endif
|
nuclear@0
|
32 #include <windows.h>
|
nuclear@0
|
33 #endif
|
nuclear@0
|
34
|
nuclear@0
|
35 #pragma comment(lib, "opengl32.lib")
|
nuclear@0
|
36 #elif defined(__APPLE__)
|
nuclear@0
|
37 #include <stdlib.h>
|
nuclear@0
|
38 #include <string.h>
|
nuclear@0
|
39 #include <AvailabilityMacros.h>
|
nuclear@0
|
40 #include <dlfcn.h>
|
nuclear@0
|
41 #endif
|
nuclear@0
|
42
|
nuclear@0
|
43
|
nuclear@0
|
44
|
nuclear@0
|
45 //namespace OVR
|
nuclear@0
|
46 //{
|
nuclear@0
|
47 // OVRTypeof
|
nuclear@0
|
48 // Acts the same as the C++11 decltype expression, though with reduced requirements.
|
nuclear@0
|
49 #if !defined(OVRTypeof)
|
nuclear@0
|
50 #if defined(_MSC_VER)
|
nuclear@0
|
51 #define OVRTypeof(x) decltype(x) // VS2010+ unilaterally supports decltype
|
nuclear@0
|
52 #else
|
nuclear@0
|
53 #define OVRTypeof(x) __typeof__(x) // Other compilers support decltype, but usually not unless C++11 support is present and explicitly enabled.
|
nuclear@0
|
54 #endif
|
nuclear@0
|
55 #endif
|
nuclear@0
|
56
|
nuclear@0
|
57
|
nuclear@0
|
58 // GLELoadProc
|
nuclear@0
|
59 // Macro which implements dynamically looking up and assigning an OpenGL function.
|
nuclear@0
|
60 //
|
nuclear@0
|
61 // Example usage:
|
nuclear@0
|
62 // GLELoadProc(glCopyTexSubImage3D, glCopyTexSubImage3D);
|
nuclear@0
|
63 // Expands to:
|
nuclear@0
|
64 // gleCopyTexSubImage3D = (OVRTypeof(gleCopyTexSubImage3D)) GLEGetProcAddress("glCopyTexSubImage3D");
|
nuclear@0
|
65
|
nuclear@0
|
66 #define GLELoadProc(var, name) var = (OVRTypeof(var))GLEGetProcAddress(#name)
|
nuclear@0
|
67
|
nuclear@0
|
68
|
nuclear@0
|
69 // Disable some #defines, as we need to call these functions directly.
|
nuclear@0
|
70 #if defined(GLE_HOOKING_ENABLED)
|
nuclear@0
|
71 #if defined(_WIN32)
|
nuclear@0
|
72 #undef wglGetProcAddress
|
nuclear@0
|
73 extern "C" { GLAPI PROC GLAPIENTRY wglGetProcAddress(LPCSTR lpszProc); }
|
nuclear@0
|
74 #endif
|
nuclear@0
|
75
|
nuclear@0
|
76 #undef glGetString
|
nuclear@0
|
77 extern "C" { GLAPI const GLubyte * GLAPIENTRY glGetString(GLenum name); }
|
nuclear@0
|
78 #endif
|
nuclear@0
|
79
|
nuclear@0
|
80
|
nuclear@0
|
81 // Generic OpenGL GetProcAddress function interface. Maps to platform-specific functionality
|
nuclear@0
|
82 // internally. On Windows this is equivalent to wglGetProcAddress as opposed to global GetProcAddress.
|
nuclear@0
|
83 void* OVR::GLEGetProcAddress(const char* name)
|
nuclear@0
|
84 {
|
nuclear@0
|
85 #if defined(_WIN32)
|
nuclear@0
|
86 return wglGetProcAddress(name);
|
nuclear@0
|
87
|
nuclear@0
|
88 #elif defined(__APPLE__)
|
nuclear@0
|
89 // Requires the OS 10.3 SDK or later.
|
nuclear@0
|
90 static void* dlImage = NULL;
|
nuclear@0
|
91 void* addr = nullptr;
|
nuclear@0
|
92
|
nuclear@0
|
93 if(!dlImage)
|
nuclear@0
|
94 dlImage = dlopen("/System/Library/Frameworks/OpenGL.framework/Versions/Current/OpenGL", RTLD_LAZY);
|
nuclear@0
|
95
|
nuclear@0
|
96 if(dlImage)
|
nuclear@0
|
97 addr = dlsym(dlImage, name);
|
nuclear@0
|
98
|
nuclear@0
|
99 return addr;
|
nuclear@0
|
100
|
nuclear@0
|
101 #elif defined(__ANDROID__)
|
nuclear@0
|
102 return eglGetProcAddress(name);
|
nuclear@0
|
103
|
nuclear@0
|
104 #else
|
nuclear@0
|
105 // This was glXGetProcAddressARB in GLX versions prior to v1.4, but that was ten years ago.
|
nuclear@0
|
106 return (void*)glXGetProcAddress((const GLubyte*)name);
|
nuclear@0
|
107 #endif
|
nuclear@0
|
108 }
|
nuclear@0
|
109
|
nuclear@0
|
110
|
nuclear@0
|
111
|
nuclear@0
|
112 // Current context functionality
|
nuclear@0
|
113 static OVR::GLEContext* GLECurrentContext = NULL;
|
nuclear@0
|
114
|
nuclear@0
|
115 OVR::GLEContext* OVR::GLEContext::GetCurrentContext()
|
nuclear@0
|
116 {
|
nuclear@0
|
117 return GLECurrentContext;
|
nuclear@0
|
118 }
|
nuclear@0
|
119
|
nuclear@0
|
120 void OVR::GLEContext::SetCurrentContext(OVR::GLEContext* p)
|
nuclear@0
|
121 {
|
nuclear@0
|
122 GLECurrentContext = p;
|
nuclear@0
|
123 }
|
nuclear@0
|
124
|
nuclear@0
|
125
|
nuclear@0
|
126
|
nuclear@0
|
127 OVR::GLEContext::GLEContext()
|
nuclear@0
|
128 : MajorVersion(0)
|
nuclear@0
|
129 , MinorVersion(0)
|
nuclear@0
|
130 , WholeVersion(0)
|
nuclear@0
|
131 , IsGLES(false)
|
nuclear@0
|
132 , IsCoreProfile(false)
|
nuclear@0
|
133 , EnableHookGetError(true)
|
nuclear@0
|
134 , PlatformMajorVersion(0)
|
nuclear@0
|
135 , PlatformMinorVersion(0)
|
nuclear@0
|
136 , PlatformWholeVersion(0)
|
nuclear@0
|
137 {
|
nuclear@0
|
138 // The following sequence is not thread-safe. Two threads could set the context to this at the same time.
|
nuclear@0
|
139 if(GetCurrentContext() == NULL)
|
nuclear@0
|
140 SetCurrentContext(this);
|
nuclear@0
|
141 }
|
nuclear@0
|
142
|
nuclear@0
|
143
|
nuclear@0
|
144 OVR::GLEContext::~GLEContext()
|
nuclear@0
|
145 {
|
nuclear@0
|
146 // Currently empty
|
nuclear@0
|
147 }
|
nuclear@0
|
148
|
nuclear@0
|
149
|
nuclear@0
|
150 void OVR::GLEContext::Init()
|
nuclear@0
|
151 {
|
nuclear@0
|
152 PlatformInit();
|
nuclear@0
|
153
|
nuclear@0
|
154 if(!IsInitialized())
|
nuclear@0
|
155 {
|
nuclear@0
|
156 InitVersion();
|
nuclear@0
|
157 InitExtensionLoad();
|
nuclear@0
|
158 InitExtensionSupport();
|
nuclear@0
|
159 }
|
nuclear@0
|
160 }
|
nuclear@0
|
161
|
nuclear@0
|
162
|
nuclear@0
|
163 bool OVR::GLEContext::IsInitialized() const
|
nuclear@0
|
164 {
|
nuclear@0
|
165 return (MajorVersion != 0);
|
nuclear@0
|
166 }
|
nuclear@0
|
167
|
nuclear@0
|
168
|
nuclear@0
|
169 void OVR::GLEContext::Shutdown()
|
nuclear@0
|
170 {
|
nuclear@0
|
171 // This memset is valid only if this class has no virtual functions (similar to concept of POD).
|
nuclear@0
|
172 // We cannot assert this because restrictions prevent us from using C++11 type traits here.
|
nuclear@0
|
173 memset(this, 0, sizeof(GLEContext));
|
nuclear@0
|
174 }
|
nuclear@0
|
175
|
nuclear@0
|
176
|
nuclear@0
|
177 void OVR::GLEContext::PlatformInit()
|
nuclear@0
|
178 {
|
nuclear@0
|
179 if(!IsPlatformInitialized())
|
nuclear@0
|
180 {
|
nuclear@0
|
181 InitPlatformExtensionLoad();
|
nuclear@0
|
182 InitPlatformExtensionSupport();
|
nuclear@0
|
183 InitPlatformVersion();
|
nuclear@0
|
184 }
|
nuclear@0
|
185 }
|
nuclear@0
|
186
|
nuclear@0
|
187
|
nuclear@0
|
188 bool OVR::GLEContext::IsPlatformInitialized() const
|
nuclear@0
|
189 {
|
nuclear@0
|
190 return (PlatformMajorVersion != 0);
|
nuclear@0
|
191 }
|
nuclear@0
|
192
|
nuclear@0
|
193
|
nuclear@0
|
194 void OVR::GLEContext::InitVersion()
|
nuclear@0
|
195 {
|
nuclear@0
|
196 const char* version = (const char*)glGetString(GL_VERSION);
|
nuclear@0
|
197 int fields = 0, major = 0, minor = 0;
|
nuclear@0
|
198 bool isGLES = false;
|
nuclear@0
|
199
|
nuclear@0
|
200 OVR_ASSERT(version);
|
nuclear@0
|
201 if (version)
|
nuclear@0
|
202 {
|
nuclear@0
|
203 OVR_DEBUG_LOG(("GL_VERSION: %s", (const char*)version));
|
nuclear@0
|
204
|
nuclear@0
|
205 // Skip all leading non-digits before reading %d.
|
nuclear@0
|
206 // Example GL_VERSION strings:
|
nuclear@0
|
207 // "1.5 ATI-1.4.18"
|
nuclear@0
|
208 // "OpenGL ES-CM 3.2"
|
nuclear@0
|
209 OVR_DISABLE_MSVC_WARNING(4996) // "scanf may be unsafe"
|
nuclear@0
|
210 fields = sscanf(version, isdigit(*version) ? "%d.%d" : "%*[^0-9]%d.%d", &major, &minor);
|
nuclear@0
|
211 isGLES = (strstr(version, "OpenGL ES") != NULL);
|
nuclear@0
|
212 OVR_RESTORE_MSVC_WARNING()
|
nuclear@0
|
213 }
|
nuclear@0
|
214 else
|
nuclear@0
|
215 {
|
nuclear@0
|
216 LogText("Warning: GL_VERSION was NULL\n");
|
nuclear@0
|
217 }
|
nuclear@0
|
218
|
nuclear@0
|
219 // If two fields were not found,
|
nuclear@0
|
220 if (fields != 2)
|
nuclear@0
|
221 {
|
nuclear@0
|
222 static_assert(sizeof(major) == sizeof(GLint), "type mis-match");
|
nuclear@0
|
223
|
nuclear@0
|
224 glGetIntegerv(GL_MAJOR_VERSION, &major);
|
nuclear@0
|
225 glGetIntegerv(GL_MINOR_VERSION, &minor);
|
nuclear@0
|
226 }
|
nuclear@0
|
227
|
nuclear@0
|
228 // Write version data
|
nuclear@0
|
229 MajorVersion = major;
|
nuclear@0
|
230 MinorVersion = minor;
|
nuclear@0
|
231 WholeVersion = (major * 100) + minor;
|
nuclear@0
|
232
|
nuclear@0
|
233 GLint profileMask = 0;
|
nuclear@0
|
234 if(WholeVersion >= 302)
|
nuclear@0
|
235 {
|
nuclear@0
|
236 // Older NVidia drivers have a bug with this on at least Windows.
|
nuclear@0
|
237 // https://www.opengl.org/discussion_boards/showthread.php/171380-NVIDIA-drivers-not-returning-the-right-profile-mas
|
nuclear@0
|
238 // A workaround could be to check for the GL_ARB_compatibility extension, which indicates if OpenGL is in compatibility mode,
|
nuclear@0
|
239 // and if not then we are in core profile mode. On Apple another solution would be to use NSOpeNGLPixelFormat
|
nuclear@0
|
240 // NSOpenGLView::pixelFormat to get the core profile attribute.
|
nuclear@0
|
241 glGetIntegerv(GL_CONTEXT_PROFILE_MASK, &profileMask);
|
nuclear@0
|
242 }
|
nuclear@0
|
243 IsCoreProfile = (profileMask == GL_CONTEXT_CORE_PROFILE_BIT); // There's also GL_CONTEXT_COMPATIBILITY_PROFILE_BIT
|
nuclear@0
|
244 IsGLES = isGLES;
|
nuclear@0
|
245 }
|
nuclear@0
|
246
|
nuclear@0
|
247
|
nuclear@0
|
248 void OVR::GLEContext::InitExtensionLoad()
|
nuclear@0
|
249 {
|
nuclear@0
|
250 // GL_VERSION_1_1
|
nuclear@0
|
251 // We don't load these but rather link to them directly.
|
nuclear@0
|
252
|
nuclear@0
|
253 // GL_VERSION_1_2
|
nuclear@0
|
254 GLELoadProc(glCopyTexSubImage3D_Impl, glCopyTexSubImage3D); // This expands to a get proc address call (e.g. wglGetProcAddress on Windows).
|
nuclear@0
|
255 GLELoadProc(glDrawRangeElements_Impl, glDrawRangeElements);
|
nuclear@0
|
256 GLELoadProc(glTexImage3D_Impl, glTexImage3D);
|
nuclear@0
|
257 GLELoadProc(glTexSubImage3D_Impl, glTexSubImage3D);
|
nuclear@0
|
258
|
nuclear@0
|
259 // GL_VERSION_1_3
|
nuclear@0
|
260 GLELoadProc(glActiveTexture_Impl, glActiveTexture);
|
nuclear@0
|
261 GLELoadProc(glClientActiveTexture_Impl, glClientActiveTexture);
|
nuclear@0
|
262 GLELoadProc(glCompressedTexImage1D_Impl, glCompressedTexImage1D);
|
nuclear@0
|
263 GLELoadProc(glCompressedTexImage2D_Impl, glCompressedTexImage2D);
|
nuclear@0
|
264 GLELoadProc(glCompressedTexImage3D_Impl, glCompressedTexImage3D);
|
nuclear@0
|
265 GLELoadProc(glCompressedTexSubImage1D_Impl, glCompressedTexSubImage1D);
|
nuclear@0
|
266 GLELoadProc(glCompressedTexSubImage2D_Impl, glCompressedTexSubImage2D);
|
nuclear@0
|
267 GLELoadProc(glCompressedTexSubImage3D_Impl, glCompressedTexSubImage3D);
|
nuclear@0
|
268 GLELoadProc(glGetCompressedTexImage_Impl, glGetCompressedTexImage);
|
nuclear@0
|
269 GLELoadProc(glLoadTransposeMatrixd_Impl, glLoadTransposeMatrixd);
|
nuclear@0
|
270 GLELoadProc(glLoadTransposeMatrixf_Impl, glLoadTransposeMatrixf);
|
nuclear@0
|
271 GLELoadProc(glMultTransposeMatrixd_Impl, glMultTransposeMatrixd);
|
nuclear@0
|
272 GLELoadProc(glMultTransposeMatrixf_Impl, glMultTransposeMatrixf);
|
nuclear@0
|
273 GLELoadProc(glMultiTexCoord1d_Impl, glMultiTexCoord1d);
|
nuclear@0
|
274 GLELoadProc(glMultiTexCoord1dv_Impl, glMultiTexCoord1dv);
|
nuclear@0
|
275 GLELoadProc(glMultiTexCoord1f_Impl, glMultiTexCoord1f);
|
nuclear@0
|
276 GLELoadProc(glMultiTexCoord1fv_Impl, glMultiTexCoord1fv);
|
nuclear@0
|
277 GLELoadProc(glMultiTexCoord1i_Impl, glMultiTexCoord1i);
|
nuclear@0
|
278 GLELoadProc(glMultiTexCoord1iv_Impl, glMultiTexCoord1iv);
|
nuclear@0
|
279 GLELoadProc(glMultiTexCoord1s_Impl, glMultiTexCoord1s);
|
nuclear@0
|
280 GLELoadProc(glMultiTexCoord1sv_Impl, glMultiTexCoord1sv);
|
nuclear@0
|
281 GLELoadProc(glMultiTexCoord2d_Impl, glMultiTexCoord2d);
|
nuclear@0
|
282 GLELoadProc(glMultiTexCoord2dv_Impl, glMultiTexCoord2dv);
|
nuclear@0
|
283 GLELoadProc(glMultiTexCoord2f_Impl, glMultiTexCoord2f);
|
nuclear@0
|
284 GLELoadProc(glMultiTexCoord2fv_Impl, glMultiTexCoord2fv);
|
nuclear@0
|
285 GLELoadProc(glMultiTexCoord2i_Impl, glMultiTexCoord2i);
|
nuclear@0
|
286 GLELoadProc(glMultiTexCoord2iv_Impl, glMultiTexCoord2iv);
|
nuclear@0
|
287 GLELoadProc(glMultiTexCoord2s_Impl, glMultiTexCoord2s);
|
nuclear@0
|
288 GLELoadProc(glMultiTexCoord2sv_Impl, glMultiTexCoord2sv);
|
nuclear@0
|
289 GLELoadProc(glMultiTexCoord3d_Impl, glMultiTexCoord3d);
|
nuclear@0
|
290 GLELoadProc(glMultiTexCoord3dv_Impl, glMultiTexCoord3dv);
|
nuclear@0
|
291 GLELoadProc(glMultiTexCoord3f_Impl, glMultiTexCoord3f);
|
nuclear@0
|
292 GLELoadProc(glMultiTexCoord3fv_Impl, glMultiTexCoord3fv);
|
nuclear@0
|
293 GLELoadProc(glMultiTexCoord3i_Impl, glMultiTexCoord3i);
|
nuclear@0
|
294 GLELoadProc(glMultiTexCoord3iv_Impl, glMultiTexCoord3iv);
|
nuclear@0
|
295 GLELoadProc(glMultiTexCoord3s_Impl, glMultiTexCoord3s);
|
nuclear@0
|
296 GLELoadProc(glMultiTexCoord3sv_Impl, glMultiTexCoord3sv);
|
nuclear@0
|
297 GLELoadProc(glMultiTexCoord4d_Impl, glMultiTexCoord4d);
|
nuclear@0
|
298 GLELoadProc(glMultiTexCoord4dv_Impl, glMultiTexCoord4dv);
|
nuclear@0
|
299 GLELoadProc(glMultiTexCoord4f_Impl, glMultiTexCoord4f);
|
nuclear@0
|
300 GLELoadProc(glMultiTexCoord4fv_Impl, glMultiTexCoord4fv);
|
nuclear@0
|
301 GLELoadProc(glMultiTexCoord4i_Impl, glMultiTexCoord4i);
|
nuclear@0
|
302 GLELoadProc(glMultiTexCoord4iv_Impl, glMultiTexCoord4iv);
|
nuclear@0
|
303 GLELoadProc(glMultiTexCoord4s_Impl, glMultiTexCoord4s);
|
nuclear@0
|
304 GLELoadProc(glMultiTexCoord4sv_Impl, glMultiTexCoord4sv);
|
nuclear@0
|
305 GLELoadProc(glSampleCoverage_Impl, glSampleCoverage);
|
nuclear@0
|
306
|
nuclear@0
|
307 // GL_VERSION_1_4
|
nuclear@0
|
308 GLELoadProc(glBlendColor_Impl, glBlendColor);
|
nuclear@0
|
309 GLELoadProc(glBlendEquation_Impl, glBlendEquation);
|
nuclear@0
|
310 GLELoadProc(glBlendFuncSeparate_Impl, glBlendFuncSeparate);
|
nuclear@0
|
311 GLELoadProc(glFogCoordPointer_Impl, glFogCoordPointer);
|
nuclear@0
|
312 GLELoadProc(glFogCoordd_Impl, glFogCoordd);
|
nuclear@0
|
313 GLELoadProc(glFogCoorddv_Impl, glFogCoorddv);
|
nuclear@0
|
314 GLELoadProc(glFogCoordf_Impl, glFogCoordf);
|
nuclear@0
|
315 GLELoadProc(glFogCoordfv_Impl, glFogCoordfv);
|
nuclear@0
|
316 GLELoadProc(glMultiDrawArrays_Impl, glMultiDrawArrays);
|
nuclear@0
|
317 GLELoadProc(glMultiDrawElements_Impl, glMultiDrawElements);
|
nuclear@0
|
318 GLELoadProc(glPointParameterf_Impl, glPointParameterf);
|
nuclear@0
|
319 GLELoadProc(glPointParameterfv_Impl, glPointParameterfv);
|
nuclear@0
|
320 GLELoadProc(glPointParameteri_Impl, glPointParameteri);
|
nuclear@0
|
321 GLELoadProc(glPointParameteriv_Impl, glPointParameteriv);
|
nuclear@0
|
322 GLELoadProc(glSecondaryColor3b_Impl, glSecondaryColor3b);
|
nuclear@0
|
323 GLELoadProc(glSecondaryColor3bv_Impl, glSecondaryColor3bv);
|
nuclear@0
|
324 GLELoadProc(glSecondaryColor3d_Impl, glSecondaryColor3d);
|
nuclear@0
|
325 GLELoadProc(glSecondaryColor3dv_Impl, glSecondaryColor3dv);
|
nuclear@0
|
326 GLELoadProc(glSecondaryColor3f_Impl, glSecondaryColor3f);
|
nuclear@0
|
327 GLELoadProc(glSecondaryColor3fv_Impl, glSecondaryColor3fv);
|
nuclear@0
|
328 GLELoadProc(glSecondaryColor3i_Impl, glSecondaryColor3i);
|
nuclear@0
|
329 GLELoadProc(glSecondaryColor3iv_Impl, glSecondaryColor3iv);
|
nuclear@0
|
330 GLELoadProc(glSecondaryColor3s_Impl, glSecondaryColor3s);
|
nuclear@0
|
331 GLELoadProc(glSecondaryColor3sv_Impl, glSecondaryColor3sv);
|
nuclear@0
|
332 GLELoadProc(glSecondaryColor3ub_Impl, glSecondaryColor3ub);
|
nuclear@0
|
333 GLELoadProc(glSecondaryColor3ubv_Impl, glSecondaryColor3ubv);
|
nuclear@0
|
334 GLELoadProc(glSecondaryColor3ui_Impl, glSecondaryColor3ui);
|
nuclear@0
|
335 GLELoadProc(glSecondaryColor3uiv_Impl, glSecondaryColor3uiv);
|
nuclear@0
|
336 GLELoadProc(glSecondaryColor3us_Impl, glSecondaryColor3us);
|
nuclear@0
|
337 GLELoadProc(glSecondaryColor3usv_Impl, glSecondaryColor3usv);
|
nuclear@0
|
338 GLELoadProc(glSecondaryColorPointer_Impl, glSecondaryColorPointer);
|
nuclear@0
|
339 GLELoadProc(glWindowPos2d_Impl, glWindowPos2d);
|
nuclear@0
|
340 GLELoadProc(glWindowPos2dv_Impl, glWindowPos2dv);
|
nuclear@0
|
341 GLELoadProc(glWindowPos2f_Impl, glWindowPos2f);
|
nuclear@0
|
342 GLELoadProc(glWindowPos2fv_Impl, glWindowPos2fv);
|
nuclear@0
|
343 GLELoadProc(glWindowPos2i_Impl, glWindowPos2i);
|
nuclear@0
|
344 GLELoadProc(glWindowPos2iv_Impl, glWindowPos2iv);
|
nuclear@0
|
345 GLELoadProc(glWindowPos2s_Impl, glWindowPos2s);
|
nuclear@0
|
346 GLELoadProc(glWindowPos2sv_Impl, glWindowPos2sv);
|
nuclear@0
|
347 GLELoadProc(glWindowPos3d_Impl, glWindowPos3d);
|
nuclear@0
|
348 GLELoadProc(glWindowPos3dv_Impl, glWindowPos3dv);
|
nuclear@0
|
349 GLELoadProc(glWindowPos3f_Impl, glWindowPos3f);
|
nuclear@0
|
350 GLELoadProc(glWindowPos3fv_Impl, glWindowPos3fv);
|
nuclear@0
|
351 GLELoadProc(glWindowPos3i_Impl, glWindowPos3i);
|
nuclear@0
|
352 GLELoadProc(glWindowPos3iv_Impl, glWindowPos3iv);
|
nuclear@0
|
353 GLELoadProc(glWindowPos3s_Impl, glWindowPos3s);
|
nuclear@0
|
354 GLELoadProc(glWindowPos3sv_Impl, glWindowPos3sv);
|
nuclear@0
|
355
|
nuclear@0
|
356 // GL_VERSION_1_5
|
nuclear@0
|
357 GLELoadProc(glBeginQuery_Impl, glBeginQuery);
|
nuclear@0
|
358 GLELoadProc(glBindBuffer_Impl, glBindBuffer);
|
nuclear@0
|
359 GLELoadProc(glBufferData_Impl, glBufferData);
|
nuclear@0
|
360 GLELoadProc(glBufferSubData_Impl, glBufferSubData);
|
nuclear@0
|
361 GLELoadProc(glDeleteBuffers_Impl, glDeleteBuffers);
|
nuclear@0
|
362 GLELoadProc(glDeleteQueries_Impl, glDeleteQueries);
|
nuclear@0
|
363 GLELoadProc(glEndQuery_Impl, glEndQuery);
|
nuclear@0
|
364 GLELoadProc(glGenBuffers_Impl, glGenBuffers);
|
nuclear@0
|
365 GLELoadProc(glGenQueries_Impl, glGenQueries);
|
nuclear@0
|
366 GLELoadProc(glGetBufferParameteriv_Impl, glGetBufferParameteriv);
|
nuclear@0
|
367 GLELoadProc(glGetBufferPointerv_Impl, glGetBufferPointerv);
|
nuclear@0
|
368 GLELoadProc(glGetBufferSubData_Impl, glGetBufferSubData);
|
nuclear@0
|
369 GLELoadProc(glGetQueryObjectiv_Impl, glGetQueryObjectiv);
|
nuclear@0
|
370 GLELoadProc(glGetQueryObjectuiv_Impl, glGetQueryObjectuiv);
|
nuclear@0
|
371 GLELoadProc(glGetQueryiv_Impl, glGetQueryiv);
|
nuclear@0
|
372 GLELoadProc(glIsBuffer_Impl, glIsBuffer);
|
nuclear@0
|
373 GLELoadProc(glIsQuery_Impl, glIsQuery);
|
nuclear@0
|
374 GLELoadProc(glMapBuffer_Impl, glMapBuffer);
|
nuclear@0
|
375 GLELoadProc(glUnmapBuffer_Impl, glUnmapBuffer);
|
nuclear@0
|
376
|
nuclear@0
|
377 // GL_VERSION_2_0
|
nuclear@0
|
378 GLELoadProc(glAttachShader_Impl, glAttachShader);
|
nuclear@0
|
379 GLELoadProc(glBindAttribLocation_Impl, glBindAttribLocation);
|
nuclear@0
|
380 GLELoadProc(glBlendEquationSeparate_Impl, glBlendEquationSeparate);
|
nuclear@0
|
381 GLELoadProc(glCompileShader_Impl, glCompileShader);
|
nuclear@0
|
382 GLELoadProc(glCreateProgram_Impl, glCreateProgram);
|
nuclear@0
|
383 GLELoadProc(glCreateShader_Impl, glCreateShader);
|
nuclear@0
|
384 GLELoadProc(glDeleteProgram_Impl, glDeleteProgram);
|
nuclear@0
|
385 GLELoadProc(glDeleteShader_Impl, glDeleteShader);
|
nuclear@0
|
386 GLELoadProc(glDetachShader_Impl, glDetachShader);
|
nuclear@0
|
387 GLELoadProc(glDisableVertexAttribArray_Impl, glDisableVertexAttribArray);
|
nuclear@0
|
388 GLELoadProc(glDrawBuffers_Impl, glDrawBuffers);
|
nuclear@0
|
389 GLELoadProc(glEnableVertexAttribArray_Impl, glEnableVertexAttribArray);
|
nuclear@0
|
390 GLELoadProc(glGetActiveAttrib_Impl, glGetActiveAttrib);
|
nuclear@0
|
391 GLELoadProc(glGetActiveUniform_Impl, glGetActiveUniform);
|
nuclear@0
|
392 GLELoadProc(glGetAttachedShaders_Impl, glGetAttachedShaders);
|
nuclear@0
|
393 GLELoadProc(glGetAttribLocation_Impl, glGetAttribLocation);
|
nuclear@0
|
394 GLELoadProc(glGetProgramInfoLog_Impl, glGetProgramInfoLog);
|
nuclear@0
|
395 GLELoadProc(glGetProgramiv_Impl, glGetProgramiv);
|
nuclear@0
|
396 GLELoadProc(glGetShaderInfoLog_Impl, glGetShaderInfoLog);
|
nuclear@0
|
397 GLELoadProc(glGetShaderSource_Impl, glGetShaderSource);
|
nuclear@0
|
398 GLELoadProc(glGetShaderiv_Impl, glGetShaderiv);
|
nuclear@0
|
399 GLELoadProc(glGetUniformLocation_Impl, glGetUniformLocation);
|
nuclear@0
|
400 GLELoadProc(glGetUniformfv_Impl, glGetUniformfv);
|
nuclear@0
|
401 GLELoadProc(glGetUniformiv_Impl, glGetUniformiv);
|
nuclear@0
|
402 GLELoadProc(glGetVertexAttribPointerv_Impl, glGetVertexAttribPointerv);
|
nuclear@0
|
403 GLELoadProc(glGetVertexAttribdv_Impl, glGetVertexAttribdv);
|
nuclear@0
|
404 GLELoadProc(glGetVertexAttribfv_Impl, glGetVertexAttribfv);
|
nuclear@0
|
405 GLELoadProc(glGetVertexAttribiv_Impl, glGetVertexAttribiv);
|
nuclear@0
|
406 GLELoadProc(glIsProgram_Impl, glIsProgram);
|
nuclear@0
|
407 GLELoadProc(glIsShader_Impl, glIsShader);
|
nuclear@0
|
408 GLELoadProc(glLinkProgram_Impl, glLinkProgram);
|
nuclear@0
|
409 GLELoadProc(glShaderSource_Impl, glShaderSource);
|
nuclear@0
|
410 GLELoadProc(glStencilFuncSeparate_Impl, glStencilFuncSeparate);
|
nuclear@0
|
411 GLELoadProc(glStencilMaskSeparate_Impl, glStencilMaskSeparate);
|
nuclear@0
|
412 GLELoadProc(glStencilOpSeparate_Impl, glStencilOpSeparate);
|
nuclear@0
|
413 GLELoadProc(glUniform1f_Impl, glUniform1f);
|
nuclear@0
|
414 GLELoadProc(glUniform1fv_Impl, glUniform1fv);
|
nuclear@0
|
415 GLELoadProc(glUniform1i_Impl, glUniform1i);
|
nuclear@0
|
416 GLELoadProc(glUniform1iv_Impl, glUniform1iv);
|
nuclear@0
|
417 GLELoadProc(glUniform2f_Impl, glUniform2f);
|
nuclear@0
|
418 GLELoadProc(glUniform2fv_Impl, glUniform2fv);
|
nuclear@0
|
419 GLELoadProc(glUniform2i_Impl, glUniform2i);
|
nuclear@0
|
420 GLELoadProc(glUniform2iv_Impl, glUniform2iv);
|
nuclear@0
|
421 GLELoadProc(glUniform3f_Impl, glUniform3f);
|
nuclear@0
|
422 GLELoadProc(glUniform3fv_Impl, glUniform3fv);
|
nuclear@0
|
423 GLELoadProc(glUniform3i_Impl, glUniform3i);
|
nuclear@0
|
424 GLELoadProc(glUniform3iv_Impl, glUniform3iv);
|
nuclear@0
|
425 GLELoadProc(glUniform4f_Impl, glUniform4f);
|
nuclear@0
|
426 GLELoadProc(glUniform4fv_Impl, glUniform4fv);
|
nuclear@0
|
427 GLELoadProc(glUniform4i_Impl, glUniform4i);
|
nuclear@0
|
428 GLELoadProc(glUniform4iv_Impl, glUniform4iv);
|
nuclear@0
|
429 GLELoadProc(glUniformMatrix2fv_Impl, glUniformMatrix2fv);
|
nuclear@0
|
430 GLELoadProc(glUniformMatrix3fv_Impl, glUniformMatrix3fv);
|
nuclear@0
|
431 GLELoadProc(glUniformMatrix4fv_Impl, glUniformMatrix4fv);
|
nuclear@0
|
432 GLELoadProc(glUseProgram_Impl, glUseProgram);
|
nuclear@0
|
433 GLELoadProc(glValidateProgram_Impl, glValidateProgram);
|
nuclear@0
|
434 GLELoadProc(glVertexAttrib1d_Impl, glVertexAttrib1d);
|
nuclear@0
|
435 GLELoadProc(glVertexAttrib1dv_Impl, glVertexAttrib1dv);
|
nuclear@0
|
436 GLELoadProc(glVertexAttrib1f_Impl, glVertexAttrib1f);
|
nuclear@0
|
437 GLELoadProc(glVertexAttrib1fv_Impl, glVertexAttrib1fv);
|
nuclear@0
|
438 GLELoadProc(glVertexAttrib1s_Impl, glVertexAttrib1s);
|
nuclear@0
|
439 GLELoadProc(glVertexAttrib1sv_Impl, glVertexAttrib1sv);
|
nuclear@0
|
440 GLELoadProc(glVertexAttrib2d_Impl, glVertexAttrib2d);
|
nuclear@0
|
441 GLELoadProc(glVertexAttrib2dv_Impl, glVertexAttrib2dv);
|
nuclear@0
|
442 GLELoadProc(glVertexAttrib2f_Impl, glVertexAttrib2f);
|
nuclear@0
|
443 GLELoadProc(glVertexAttrib2fv_Impl, glVertexAttrib2fv);
|
nuclear@0
|
444 GLELoadProc(glVertexAttrib2s_Impl, glVertexAttrib2s);
|
nuclear@0
|
445 GLELoadProc(glVertexAttrib2sv_Impl, glVertexAttrib2sv);
|
nuclear@0
|
446 GLELoadProc(glVertexAttrib3d_Impl, glVertexAttrib3d);
|
nuclear@0
|
447 GLELoadProc(glVertexAttrib3dv_Impl, glVertexAttrib3dv);
|
nuclear@0
|
448 GLELoadProc(glVertexAttrib3f_Impl, glVertexAttrib3f);
|
nuclear@0
|
449 GLELoadProc(glVertexAttrib3fv_Impl, glVertexAttrib3fv);
|
nuclear@0
|
450 GLELoadProc(glVertexAttrib3s_Impl, glVertexAttrib3s);
|
nuclear@0
|
451 GLELoadProc(glVertexAttrib3sv_Impl, glVertexAttrib3sv);
|
nuclear@0
|
452 GLELoadProc(glVertexAttrib4Nbv_Impl, glVertexAttrib4Nbv);
|
nuclear@0
|
453 GLELoadProc(glVertexAttrib4Niv_Impl, glVertexAttrib4Niv);
|
nuclear@0
|
454 GLELoadProc(glVertexAttrib4Nsv_Impl, glVertexAttrib4Nsv);
|
nuclear@0
|
455 GLELoadProc(glVertexAttrib4Nub_Impl, glVertexAttrib4Nub);
|
nuclear@0
|
456 GLELoadProc(glVertexAttrib4Nubv_Impl, glVertexAttrib4Nubv);
|
nuclear@0
|
457 GLELoadProc(glVertexAttrib4Nuiv_Impl, glVertexAttrib4Nuiv);
|
nuclear@0
|
458 GLELoadProc(glVertexAttrib4Nusv_Impl, glVertexAttrib4Nusv);
|
nuclear@0
|
459 GLELoadProc(glVertexAttrib4bv_Impl, glVertexAttrib4bv);
|
nuclear@0
|
460 GLELoadProc(glVertexAttrib4d_Impl, glVertexAttrib4d);
|
nuclear@0
|
461 GLELoadProc(glVertexAttrib4dv_Impl, glVertexAttrib4dv);
|
nuclear@0
|
462 GLELoadProc(glVertexAttrib4f_Impl, glVertexAttrib4f);
|
nuclear@0
|
463 GLELoadProc(glVertexAttrib4fv_Impl, glVertexAttrib4fv);
|
nuclear@0
|
464 GLELoadProc(glVertexAttrib4iv_Impl, glVertexAttrib4iv);
|
nuclear@0
|
465 GLELoadProc(glVertexAttrib4s_Impl, glVertexAttrib4s);
|
nuclear@0
|
466 GLELoadProc(glVertexAttrib4sv_Impl, glVertexAttrib4sv);
|
nuclear@0
|
467 GLELoadProc(glVertexAttrib4ubv_Impl, glVertexAttrib4ubv);
|
nuclear@0
|
468 GLELoadProc(glVertexAttrib4uiv_Impl, glVertexAttrib4uiv);
|
nuclear@0
|
469 GLELoadProc(glVertexAttrib4usv_Impl, glVertexAttrib4usv);
|
nuclear@0
|
470 GLELoadProc(glVertexAttribPointer_Impl, glVertexAttribPointer);
|
nuclear@0
|
471
|
nuclear@0
|
472 // GL_VERSION_2_1
|
nuclear@0
|
473 GLELoadProc(glUniformMatrix2x3fv_Impl, glUniformMatrix2x3fv);
|
nuclear@0
|
474 GLELoadProc(glUniformMatrix2x4fv_Impl, glUniformMatrix2x4fv);
|
nuclear@0
|
475 GLELoadProc(glUniformMatrix3x2fv_Impl, glUniformMatrix3x2fv);
|
nuclear@0
|
476 GLELoadProc(glUniformMatrix3x4fv_Impl, glUniformMatrix3x4fv);
|
nuclear@0
|
477 GLELoadProc(glUniformMatrix4x2fv_Impl, glUniformMatrix4x2fv);
|
nuclear@0
|
478 GLELoadProc(glUniformMatrix4x3fv_Impl, glUniformMatrix4x3fv);
|
nuclear@0
|
479
|
nuclear@0
|
480 // GL_VERSION_3_0
|
nuclear@0
|
481 GLELoadProc(glBeginConditionalRender_Impl, glBeginConditionalRender);
|
nuclear@0
|
482 GLELoadProc(glBeginTransformFeedback_Impl, glBeginTransformFeedback);
|
nuclear@0
|
483 GLELoadProc(glBindFragDataLocation_Impl, glBindFragDataLocation);
|
nuclear@0
|
484 GLELoadProc(glClampColor_Impl, glClampColor);
|
nuclear@0
|
485 GLELoadProc(glClearBufferfi_Impl, glClearBufferfi);
|
nuclear@0
|
486 GLELoadProc(glClearBufferfv_Impl, glClearBufferfv);
|
nuclear@0
|
487 GLELoadProc(glClearBufferiv_Impl, glClearBufferiv);
|
nuclear@0
|
488 GLELoadProc(glClearBufferuiv_Impl, glClearBufferuiv);
|
nuclear@0
|
489 GLELoadProc(glColorMaski_Impl, glColorMaski);
|
nuclear@0
|
490 GLELoadProc(glDisablei_Impl, glDisablei);
|
nuclear@0
|
491 GLELoadProc(glEnablei_Impl, glEnablei);
|
nuclear@0
|
492 GLELoadProc(glEndConditionalRender_Impl, glEndConditionalRender);
|
nuclear@0
|
493 GLELoadProc(glEndTransformFeedback_Impl, glEndTransformFeedback);
|
nuclear@0
|
494 GLELoadProc(glBindBufferRange_Impl, glBindBufferRange);
|
nuclear@0
|
495 GLELoadProc(glBindBufferBase_Impl, glBindBufferBase);
|
nuclear@0
|
496 GLELoadProc(glGetBooleani_v_Impl, glGetBooleani_v);
|
nuclear@0
|
497 GLELoadProc(glGetIntegeri_v_Impl, glGetIntegeri_v);
|
nuclear@0
|
498 GLELoadProc(glGetFragDataLocation_Impl, glGetFragDataLocation);
|
nuclear@0
|
499 GLELoadProc(glGetStringi_Impl, glGetStringi);
|
nuclear@0
|
500 GLELoadProc(glGetTexParameterIiv_Impl, glGetTexParameterIiv);
|
nuclear@0
|
501 GLELoadProc(glGetTexParameterIuiv_Impl, glGetTexParameterIuiv);
|
nuclear@0
|
502 GLELoadProc(glGetTransformFeedbackVarying_Impl, glGetTransformFeedbackVarying);
|
nuclear@0
|
503 GLELoadProc(glGetUniformuiv_Impl, glGetUniformuiv);
|
nuclear@0
|
504 GLELoadProc(glGetVertexAttribIiv_Impl, glGetVertexAttribIiv);
|
nuclear@0
|
505 GLELoadProc(glGetVertexAttribIuiv_Impl, glGetVertexAttribIuiv);
|
nuclear@0
|
506 GLELoadProc(glIsEnabledi_Impl, glIsEnabledi);
|
nuclear@0
|
507 GLELoadProc(glTexParameterIiv_Impl, glTexParameterIiv);
|
nuclear@0
|
508 GLELoadProc(glTexParameterIuiv_Impl, glTexParameterIuiv);
|
nuclear@0
|
509 GLELoadProc(glTransformFeedbackVaryings_Impl, glTransformFeedbackVaryings);
|
nuclear@0
|
510 GLELoadProc(glUniform1ui_Impl, glUniform1ui);
|
nuclear@0
|
511 GLELoadProc(glUniform1uiv_Impl, glUniform1uiv);
|
nuclear@0
|
512 GLELoadProc(glUniform2ui_Impl, glUniform2ui);
|
nuclear@0
|
513 GLELoadProc(glUniform2uiv_Impl, glUniform2uiv);
|
nuclear@0
|
514 GLELoadProc(glUniform3ui_Impl, glUniform3ui);
|
nuclear@0
|
515 GLELoadProc(glUniform3uiv_Impl, glUniform3uiv);
|
nuclear@0
|
516 GLELoadProc(glUniform4ui_Impl, glUniform4ui);
|
nuclear@0
|
517 GLELoadProc(glUniform4uiv_Impl, glUniform4uiv);
|
nuclear@0
|
518 GLELoadProc(glVertexAttribI1i_Impl, glVertexAttribI1i);
|
nuclear@0
|
519 GLELoadProc(glVertexAttribI1iv_Impl, glVertexAttribI1iv);
|
nuclear@0
|
520 GLELoadProc(glVertexAttribI1ui_Impl, glVertexAttribI1ui);
|
nuclear@0
|
521 GLELoadProc(glVertexAttribI1uiv_Impl, glVertexAttribI1uiv);
|
nuclear@0
|
522 GLELoadProc(glVertexAttribI2i_Impl, glVertexAttribI2i);
|
nuclear@0
|
523 GLELoadProc(glVertexAttribI2iv_Impl, glVertexAttribI2iv);
|
nuclear@0
|
524 GLELoadProc(glVertexAttribI2ui_Impl, glVertexAttribI2ui);
|
nuclear@0
|
525 GLELoadProc(glVertexAttribI2uiv_Impl, glVertexAttribI2uiv);
|
nuclear@0
|
526 GLELoadProc(glVertexAttribI3i_Impl, glVertexAttribI3i);
|
nuclear@0
|
527 GLELoadProc(glVertexAttribI3iv_Impl, glVertexAttribI3iv);
|
nuclear@0
|
528 GLELoadProc(glVertexAttribI3ui_Impl, glVertexAttribI3ui);
|
nuclear@0
|
529 GLELoadProc(glVertexAttribI3uiv_Impl, glVertexAttribI3uiv);
|
nuclear@0
|
530 GLELoadProc(glVertexAttribI4bv_Impl, glVertexAttribI4bv);
|
nuclear@0
|
531 GLELoadProc(glVertexAttribI4i_Impl, glVertexAttribI4i);
|
nuclear@0
|
532 GLELoadProc(glVertexAttribI4iv_Impl, glVertexAttribI4iv);
|
nuclear@0
|
533 GLELoadProc(glVertexAttribI4sv_Impl, glVertexAttribI4sv);
|
nuclear@0
|
534 GLELoadProc(glVertexAttribI4ubv_Impl, glVertexAttribI4ubv);
|
nuclear@0
|
535 GLELoadProc(glVertexAttribI4ui_Impl, glVertexAttribI4ui);
|
nuclear@0
|
536 GLELoadProc(glVertexAttribI4uiv_Impl, glVertexAttribI4uiv);
|
nuclear@0
|
537 GLELoadProc(glVertexAttribI4usv_Impl, glVertexAttribI4usv);
|
nuclear@0
|
538 GLELoadProc(glVertexAttribIPointer_Impl, glVertexAttribIPointer);
|
nuclear@0
|
539
|
nuclear@0
|
540 // GL_VERSION_3_1
|
nuclear@0
|
541 GLELoadProc(glDrawArraysInstanced_Impl, glDrawArraysInstanced);
|
nuclear@0
|
542 GLELoadProc(glDrawElementsInstanced_Impl, glDrawElementsInstanced);
|
nuclear@0
|
543 GLELoadProc(glPrimitiveRestartIndex_Impl, glPrimitiveRestartIndex);
|
nuclear@0
|
544 GLELoadProc(glTexBuffer_Impl, glTexBuffer);
|
nuclear@0
|
545
|
nuclear@0
|
546 // GL_VERSION_3_2
|
nuclear@0
|
547 GLELoadProc(glFramebufferTexture_Impl, glFramebufferTexture);
|
nuclear@0
|
548 GLELoadProc(glGetBufferParameteri64v_Impl, glGetBufferParameteri64v);
|
nuclear@0
|
549 GLELoadProc(glGetInteger64i_v_Impl, glGetInteger64i_v);
|
nuclear@0
|
550
|
nuclear@0
|
551 // GL_VERSION_3_3
|
nuclear@0
|
552 GLELoadProc(glVertexAttribDivisor_Impl, glVertexAttribDivisor);
|
nuclear@0
|
553
|
nuclear@0
|
554 // GL_VERSION_4_0
|
nuclear@0
|
555 GLELoadProc(glBlendEquationSeparatei_Impl, glBlendEquationSeparatei);
|
nuclear@0
|
556 GLELoadProc(glBlendEquationi_Impl, glBlendEquationi);
|
nuclear@0
|
557 GLELoadProc(glBlendFuncSeparatei_Impl, glBlendFuncSeparatei);
|
nuclear@0
|
558 GLELoadProc(glBlendFunci_Impl, glBlendFunci);
|
nuclear@0
|
559 GLELoadProc(glMinSampleShading_Impl, glMinSampleShading);
|
nuclear@0
|
560
|
nuclear@0
|
561 // GL_AMD_debug_output
|
nuclear@0
|
562 GLELoadProc(glDebugMessageCallbackAMD_Impl, glDebugMessageCallbackAMD);
|
nuclear@0
|
563 GLELoadProc(glDebugMessageEnableAMD_Impl, glDebugMessageEnableAMD);
|
nuclear@0
|
564 GLELoadProc(glDebugMessageInsertAMD_Impl, glDebugMessageInsertAMD);
|
nuclear@0
|
565 GLELoadProc(glGetDebugMessageLogAMD_Impl, glGetDebugMessageLogAMD);
|
nuclear@0
|
566
|
nuclear@0
|
567 #if defined(GLE_CGL_ENABLED)
|
nuclear@0
|
568 // GL_APPLE_element_array
|
nuclear@0
|
569 GLELoadProc(glDrawElementArrayAPPLE_Impl, glDrawElementArrayAPPLE);
|
nuclear@0
|
570 GLELoadProc(glDrawRangeElementArrayAPPLE_Impl, glDrawRangeElementArrayAPPLE);
|
nuclear@0
|
571 GLELoadProc(glElementPointerAPPLE_Impl, glElementPointerAPPLE);
|
nuclear@0
|
572 GLELoadProc(glMultiDrawElementArrayAPPLE_Impl, glMultiDrawElementArrayAPPLE);
|
nuclear@0
|
573 GLELoadProc(glMultiDrawRangeElementArrayAPPLE_Impl, glMultiDrawRangeElementArrayAPPLE);
|
nuclear@0
|
574
|
nuclear@0
|
575 // GL_APPLE_fence
|
nuclear@0
|
576 GLELoadProc(glDeleteFencesAPPLE_Impl, glDeleteFencesAPPLE);
|
nuclear@0
|
577 GLELoadProc(glFinishFenceAPPLE_Impl, glFinishFenceAPPLE);
|
nuclear@0
|
578 GLELoadProc(glFinishObjectAPPLE_Impl, glFinishObjectAPPLE);
|
nuclear@0
|
579 GLELoadProc(glGenFencesAPPLE_Impl, glGenFencesAPPLE);
|
nuclear@0
|
580 GLELoadProc(glIsFenceAPPLE_Impl, glIsFenceAPPLE);
|
nuclear@0
|
581 GLELoadProc(glSetFenceAPPLE_Impl, glSetFenceAPPLE);
|
nuclear@0
|
582 GLELoadProc(glTestFenceAPPLE_Impl, glTestFenceAPPLE);
|
nuclear@0
|
583 GLELoadProc(glTestObjectAPPLE_Impl, glTestObjectAPPLE);
|
nuclear@0
|
584
|
nuclear@0
|
585 // GL_APPLE_flush_buffer_range
|
nuclear@0
|
586 GLELoadProc(glBufferParameteriAPPLE_Impl, glMultiDrawRangeElementArrayAPPLE);
|
nuclear@0
|
587 GLELoadProc(glFlushMappedBufferRangeAPPLE_Impl, glFlushMappedBufferRangeAPPLE);
|
nuclear@0
|
588
|
nuclear@0
|
589 // GL_APPLE_object_purgeable
|
nuclear@0
|
590 GLELoadProc(glGetObjectParameterivAPPLE_Impl, glGetObjectParameterivAPPLE);
|
nuclear@0
|
591 GLELoadProc(glObjectPurgeableAPPLE_Impl, glObjectPurgeableAPPLE);
|
nuclear@0
|
592 GLELoadProc(glObjectUnpurgeableAPPLE_Impl, glObjectUnpurgeableAPPLE);
|
nuclear@0
|
593
|
nuclear@0
|
594 // GL_APPLE_texture_range
|
nuclear@0
|
595 GLELoadProc(glGetTexParameterPointervAPPLE_Impl, glGetTexParameterPointervAPPLE);
|
nuclear@0
|
596 GLELoadProc(glTextureRangeAPPLE_Impl, glTextureRangeAPPLE);
|
nuclear@0
|
597
|
nuclear@0
|
598 // GL_APPLE_vertex_array_object
|
nuclear@0
|
599 GLELoadProc(glBindVertexArrayAPPLE_Impl, glBindVertexArrayAPPLE);
|
nuclear@0
|
600 GLELoadProc(glDeleteVertexArraysAPPLE_Impl, glDeleteVertexArraysAPPLE);
|
nuclear@0
|
601 GLELoadProc(glGenVertexArraysAPPLE_Impl, glGenVertexArraysAPPLE);
|
nuclear@0
|
602 GLELoadProc(glIsVertexArrayAPPLE_Impl, glIsVertexArrayAPPLE);
|
nuclear@0
|
603
|
nuclear@0
|
604 // GL_APPLE_vertex_array_range
|
nuclear@0
|
605 GLELoadProc(glFlushVertexArrayRangeAPPLE_Impl, glFlushVertexArrayRangeAPPLE);
|
nuclear@0
|
606 GLELoadProc(glVertexArrayParameteriAPPLE_Impl, glVertexArrayParameteriAPPLE);
|
nuclear@0
|
607 GLELoadProc(glVertexArrayRangeAPPLE_Impl, glVertexArrayRangeAPPLE);
|
nuclear@0
|
608
|
nuclear@0
|
609 // GL_APPLE_vertex_program_evaluators
|
nuclear@0
|
610 GLELoadProc(glDisableVertexAttribAPPLE_Impl, glDisableVertexAttribAPPLE);
|
nuclear@0
|
611 GLELoadProc(glEnableVertexAttribAPPLE_Impl, glEnableVertexAttribAPPLE);
|
nuclear@0
|
612 GLELoadProc(glIsVertexAttribEnabledAPPLE_Impl, glIsVertexAttribEnabledAPPLE);
|
nuclear@0
|
613 GLELoadProc(glMapVertexAttrib1dAPPLE_Impl, glMapVertexAttrib1dAPPLE);
|
nuclear@0
|
614 GLELoadProc(glMapVertexAttrib1fAPPLE_Impl, glMapVertexAttrib1fAPPLE);
|
nuclear@0
|
615 GLELoadProc(glMapVertexAttrib2dAPPLE_Impl, glMapVertexAttrib2dAPPLE);
|
nuclear@0
|
616 GLELoadProc(glMapVertexAttrib2fAPPLE_Impl, glMapVertexAttrib2fAPPLE);
|
nuclear@0
|
617
|
nuclear@0
|
618 #endif // GLE_CGL_ENABLED
|
nuclear@0
|
619
|
nuclear@0
|
620 // GL_ARB_debug_output
|
nuclear@0
|
621 GLELoadProc(glDebugMessageCallbackARB_Impl, glDebugMessageCallbackARB);
|
nuclear@0
|
622 GLELoadProc(glDebugMessageControlARB_Impl, glDebugMessageControlARB);
|
nuclear@0
|
623 GLELoadProc(glDebugMessageInsertARB_Impl, glDebugMessageInsertARB);
|
nuclear@0
|
624 GLELoadProc(glGetDebugMessageLogARB_Impl, glGetDebugMessageLogARB);
|
nuclear@0
|
625
|
nuclear@0
|
626 // GL_ARB_ES2_compatibility
|
nuclear@0
|
627 GLELoadProc(glClearDepthf_Impl, glClearDepthf);
|
nuclear@0
|
628 GLELoadProc(glDepthRangef_Impl, glDepthRangef);
|
nuclear@0
|
629 GLELoadProc(glGetShaderPrecisionFormat_Impl, glGetShaderPrecisionFormat);
|
nuclear@0
|
630 GLELoadProc(glReleaseShaderCompiler_Impl, glReleaseShaderCompiler);
|
nuclear@0
|
631 GLELoadProc(glShaderBinary_Impl, glShaderBinary);
|
nuclear@0
|
632
|
nuclear@0
|
633 // GL_ARB_framebuffer_object
|
nuclear@0
|
634 GLELoadProc(glBindFramebuffer_Impl, glBindFramebuffer);
|
nuclear@0
|
635 GLELoadProc(glBindRenderbuffer_Impl, glBindRenderbuffer);
|
nuclear@0
|
636 GLELoadProc(glBlitFramebuffer_Impl, glBlitFramebuffer);
|
nuclear@0
|
637 GLELoadProc(glCheckFramebufferStatus_Impl, glCheckFramebufferStatus);
|
nuclear@0
|
638 GLELoadProc(glDeleteFramebuffers_Impl, glDeleteFramebuffers);
|
nuclear@0
|
639 GLELoadProc(glDeleteRenderbuffers_Impl, glDeleteRenderbuffers);
|
nuclear@0
|
640 GLELoadProc(glFramebufferRenderbuffer_Impl, glFramebufferRenderbuffer);
|
nuclear@0
|
641 GLELoadProc(glFramebufferTexture1D_Impl, glFramebufferTexture1D);
|
nuclear@0
|
642 GLELoadProc(glFramebufferTexture2D_Impl, glFramebufferTexture2D);
|
nuclear@0
|
643 GLELoadProc(glFramebufferTexture3D_Impl, glFramebufferTexture3D);
|
nuclear@0
|
644 GLELoadProc(glFramebufferTextureLayer_Impl, glFramebufferTextureLayer);
|
nuclear@0
|
645 GLELoadProc(glGenFramebuffers_Impl, glGenFramebuffers);
|
nuclear@0
|
646 GLELoadProc(glGenRenderbuffers_Impl, glGenRenderbuffers);
|
nuclear@0
|
647 GLELoadProc(glGenerateMipmap_Impl, glGenerateMipmap);
|
nuclear@0
|
648 GLELoadProc(glGetFramebufferAttachmentParameteriv_Impl, glGetFramebufferAttachmentParameteriv);
|
nuclear@0
|
649 GLELoadProc(glGetRenderbufferParameteriv_Impl, glGetRenderbufferParameteriv);
|
nuclear@0
|
650 GLELoadProc(glIsFramebuffer_Impl, glIsFramebuffer);
|
nuclear@0
|
651 GLELoadProc(glIsRenderbuffer_Impl, glIsRenderbuffer);
|
nuclear@0
|
652 GLELoadProc(glRenderbufferStorage_Impl, glRenderbufferStorage);
|
nuclear@0
|
653 GLELoadProc(glRenderbufferStorageMultisample_Impl, glRenderbufferStorageMultisample);
|
nuclear@0
|
654
|
nuclear@0
|
655 if(!glBindFramebuffer_Impl) // This will rarely if ever be the case in practice with modern computers and drivers.
|
nuclear@0
|
656 {
|
nuclear@0
|
657 // See if we can map GL_EXT_framebuffer_object to GL_ARB_framebuffer_object. The former is basically a subset of the latter, but we use only that subset.
|
nuclear@0
|
658 GLELoadProc(glBindFramebuffer_Impl, glBindFramebufferEXT);
|
nuclear@0
|
659 GLELoadProc(glBindRenderbuffer_Impl, glBindRenderbufferEXT);
|
nuclear@0
|
660 //GLELoadProc(glBlitFramebuffer_Impl, glBlitFramebufferEXT (nonexistent));
|
nuclear@0
|
661 GLELoadProc(glCheckFramebufferStatus_Impl, glCheckFramebufferStatusEXT);
|
nuclear@0
|
662 GLELoadProc(glDeleteFramebuffers_Impl, glDeleteFramebuffersEXT);
|
nuclear@0
|
663 GLELoadProc(glDeleteRenderbuffers_Impl, glDeleteRenderbuffersEXT);
|
nuclear@0
|
664 GLELoadProc(glFramebufferRenderbuffer_Impl, glFramebufferRenderbufferEXT);
|
nuclear@0
|
665 GLELoadProc(glFramebufferTexture1D_Impl, glFramebufferTexture1DEXT);
|
nuclear@0
|
666 GLELoadProc(glFramebufferTexture2D_Impl, glFramebufferTexture2DEXT);
|
nuclear@0
|
667 GLELoadProc(glFramebufferTexture3D_Impl, glFramebufferTexture3DEXT);
|
nuclear@0
|
668 //GLELoadProc(glFramebufferTextureLayer_Impl, glFramebufferTextureLayerEXT (nonexistent));
|
nuclear@0
|
669 GLELoadProc(glGenFramebuffers_Impl, glGenFramebuffersEXT);
|
nuclear@0
|
670 GLELoadProc(glGenRenderbuffers_Impl, glGenRenderbuffersEXT);
|
nuclear@0
|
671 GLELoadProc(glGenerateMipmap_Impl, glGenerateMipmapEXT);
|
nuclear@0
|
672 GLELoadProc(glGetFramebufferAttachmentParameteriv_Impl, glGetFramebufferAttachmentParameterivEXT);
|
nuclear@0
|
673 GLELoadProc(glGetRenderbufferParameteriv_Impl, glGetRenderbufferParameterivEXT);
|
nuclear@0
|
674 GLELoadProc(glIsFramebuffer_Impl, glIsFramebufferEXT);
|
nuclear@0
|
675 GLELoadProc(glIsRenderbuffer_Impl, glIsRenderbufferEXT);
|
nuclear@0
|
676 GLELoadProc(glRenderbufferStorage_Impl, glRenderbufferStorageEXT);
|
nuclear@0
|
677 //GLELoadProc(glRenderbufferStorageMultisample_Impl, glRenderbufferStorageMultisampleEXT (nonexistent));
|
nuclear@0
|
678 }
|
nuclear@0
|
679
|
nuclear@0
|
680 // GL_ARB_texture_multisample
|
nuclear@0
|
681 GLELoadProc(glGetMultisamplefv_Impl, glGetMultisamplefv);
|
nuclear@0
|
682 GLELoadProc(glSampleMaski_Impl, glSampleMaski);
|
nuclear@0
|
683 GLELoadProc(glTexImage2DMultisample_Impl, glTexImage2DMultisample);
|
nuclear@0
|
684 GLELoadProc(glTexImage3DMultisample_Impl, glTexImage3DMultisample);
|
nuclear@0
|
685
|
nuclear@0
|
686 // GL_ARB_timer_query
|
nuclear@0
|
687 GLELoadProc(glGetQueryObjecti64v_Impl, glGetQueryObjecti64v);
|
nuclear@0
|
688 GLELoadProc(glGetQueryObjectui64v_Impl, glGetQueryObjectui64v);
|
nuclear@0
|
689 GLELoadProc(glQueryCounter_Impl, glQueryCounter);
|
nuclear@0
|
690
|
nuclear@0
|
691 // GL_ARB_vertex_array_object
|
nuclear@0
|
692 GLELoadProc(glBindVertexArray_Impl, glBindVertexArray);
|
nuclear@0
|
693 GLELoadProc(glDeleteVertexArrays_Impl, glDeleteVertexArrays);
|
nuclear@0
|
694 GLELoadProc(glGenVertexArrays_Impl, glGenVertexArrays);
|
nuclear@0
|
695 GLELoadProc(glIsVertexArray_Impl, glIsVertexArray);
|
nuclear@0
|
696
|
nuclear@0
|
697 #if defined(GLE_CGL_ENABLED) // Apple OpenGL...
|
nuclear@0
|
698 if(WholeVersion < 302) // It turns out that Apple OpenGL versions prior to 3.2 have glBindVertexArray, etc. but they silently fail by default. So always use the APPLE version.
|
nuclear@0
|
699 {
|
nuclear@0
|
700 glBindVertexArray_Impl = glBindVertexArrayAPPLE_Impl;
|
nuclear@0
|
701 glDeleteVertexArrays_Impl = glDeleteVertexArraysAPPLE_Impl;
|
nuclear@0
|
702 glGenVertexArrays_Impl = (OVRTypeof(glGenVertexArrays_Impl)) glGenVertexArraysAPPLE_Impl; // There is a const cast of the arrays argument here due to a slight difference in the Apple behavior. For our purposes it should be OK.
|
nuclear@0
|
703 glIsVertexArray_Impl = glIsVertexArrayAPPLE_Impl;
|
nuclear@0
|
704
|
nuclear@0
|
705 if(glBindVertexArray_Impl)
|
nuclear@0
|
706 gle_ARB_vertex_array_object = true; // We are routing the APPLE version through our version, with the assumption that we use the ARB version the same as we would use the APPLE version.
|
nuclear@0
|
707 }
|
nuclear@0
|
708 #endif
|
nuclear@0
|
709
|
nuclear@0
|
710 // GL_EXT_draw_buffers2
|
nuclear@0
|
711 GLELoadProc(glColorMaskIndexedEXT_Impl, glColorMaskIndexedEXT);
|
nuclear@0
|
712 GLELoadProc(glDisableIndexedEXT_Impl, glDisableIndexedEXT);
|
nuclear@0
|
713 GLELoadProc(glEnableIndexedEXT_Impl, glEnableIndexedEXT);
|
nuclear@0
|
714 GLELoadProc(glGetBooleanIndexedvEXT_Impl, glGetBooleanIndexedvEXT);
|
nuclear@0
|
715 GLELoadProc(glGetIntegerIndexedvEXT_Impl, glGetIntegerIndexedvEXT);
|
nuclear@0
|
716 GLELoadProc(glIsEnabledIndexedEXT_Impl, glIsEnabledIndexedEXT);
|
nuclear@0
|
717
|
nuclear@0
|
718 // GL_KHR_debug
|
nuclear@0
|
719 GLELoadProc(glDebugMessageCallback_Impl, glDebugMessageCallback);
|
nuclear@0
|
720 GLELoadProc(glDebugMessageControl_Impl, glDebugMessageControl);
|
nuclear@0
|
721 GLELoadProc(glDebugMessageInsert_Impl, glDebugMessageInsert);
|
nuclear@0
|
722 GLELoadProc(glGetDebugMessageLog_Impl, glGetDebugMessageLog);
|
nuclear@0
|
723 GLELoadProc(glGetObjectLabel_Impl, glGetObjectLabel);
|
nuclear@0
|
724 GLELoadProc(glGetObjectPtrLabel_Impl, glGetObjectPtrLabel);
|
nuclear@0
|
725 GLELoadProc(glObjectLabel_Impl, glObjectLabel);
|
nuclear@0
|
726 GLELoadProc(glObjectPtrLabel_Impl, glObjectPtrLabel);
|
nuclear@0
|
727 GLELoadProc(glPopDebugGroup_Impl, glPopDebugGroup);
|
nuclear@0
|
728 GLELoadProc(glPushDebugGroup_Impl, glPushDebugGroup);
|
nuclear@0
|
729
|
nuclear@0
|
730 // GL_WIN_swap_hint
|
nuclear@0
|
731 GLELoadProc(glAddSwapHintRectWIN_Impl, glAddSwapHintRectWIN);
|
nuclear@0
|
732 }
|
nuclear@0
|
733
|
nuclear@0
|
734
|
nuclear@0
|
735
|
nuclear@0
|
736 OVR_DISABLE_MSVC_WARNING(4510 4512 4610) // default constructor could not be generated,
|
nuclear@0
|
737 struct ValueStringPair
|
nuclear@0
|
738 {
|
nuclear@0
|
739 bool& IsPresent;
|
nuclear@0
|
740 const char* ExtensionName;
|
nuclear@0
|
741 };
|
nuclear@0
|
742
|
nuclear@0
|
743
|
nuclear@0
|
744 // Helper function for InitExtensionSupport.
|
nuclear@0
|
745 static void CheckExtensions(ValueStringPair* pValueStringPairArray, size_t arrayCount, const char* extensions)
|
nuclear@0
|
746 {
|
nuclear@0
|
747 // We search the extesion list string for each of the individual extensions we are interested in.
|
nuclear@0
|
748 // We do this by walking over the string and comparing each entry in turn to our array of entries of interest.
|
nuclear@0
|
749 // Example string (with patholigical extra spaces): " ext1 ext2 ext3 "
|
nuclear@0
|
750
|
nuclear@0
|
751 char extension[64];
|
nuclear@0
|
752 const char* p = extensions; // p points to the beginning of the current word
|
nuclear@0
|
753 const char* pEnd; // pEnd points to one-past the last character of the current word. It is where the trailing '\0' of the string would be.
|
nuclear@0
|
754
|
nuclear@0
|
755 while(*p)
|
nuclear@0
|
756 {
|
nuclear@0
|
757 while(*p == ' ') // Find the next word begin.
|
nuclear@0
|
758 ++p;
|
nuclear@0
|
759
|
nuclear@0
|
760 pEnd = p;
|
nuclear@0
|
761
|
nuclear@0
|
762 while((*pEnd != '\0') && (*pEnd != ' ')) // Find the next word end.
|
nuclear@0
|
763 ++pEnd;
|
nuclear@0
|
764
|
nuclear@0
|
765 if(((pEnd - p) > 0) && ((size_t)(pEnd - p) < OVR_ARRAY_COUNT(extension)))
|
nuclear@0
|
766 {
|
nuclear@0
|
767 memcpy(extension, p, pEnd - p); // To consider: Revise this code to directly read from p/pEnd instead of doing a memcpy.
|
nuclear@0
|
768 extension[pEnd - p] = '\0';
|
nuclear@0
|
769
|
nuclear@0
|
770 for(size_t i = 0; i < arrayCount; i++) // For each extension we are interested in...
|
nuclear@0
|
771 {
|
nuclear@0
|
772 ValueStringPair& vsp = pValueStringPairArray[i];
|
nuclear@0
|
773
|
nuclear@0
|
774 if(strcmp(extension, vsp.ExtensionName) == 0) // case-sensitive compare
|
nuclear@0
|
775 pValueStringPairArray[i].IsPresent = true;
|
nuclear@0
|
776 }
|
nuclear@0
|
777 }
|
nuclear@0
|
778
|
nuclear@0
|
779 p = pEnd;
|
nuclear@0
|
780 }
|
nuclear@0
|
781 }
|
nuclear@0
|
782
|
nuclear@0
|
783
|
nuclear@0
|
784 void OVR::GLEContext::InitExtensionSupport()
|
nuclear@0
|
785 {
|
nuclear@0
|
786 // It may be better in the long run to use a member STL map<const char*, bool>.
|
nuclear@0
|
787 // It would make this loading code cleaner, though it would make lookups slower.
|
nuclear@0
|
788
|
nuclear@0
|
789 ValueStringPair vspArray[] =
|
nuclear@0
|
790 {
|
nuclear@0
|
791 { gle_AMD_debug_output, "GL_AMD_debug_output" },
|
nuclear@0
|
792 #if defined(GLE_CGL_ENABLED)
|
nuclear@0
|
793 { gle_APPLE_aux_depth_stencil, "GL_APPLE_aux_depth_stencil" },
|
nuclear@0
|
794 { gle_APPLE_client_storage, "GL_APPLE_client_storage" },
|
nuclear@0
|
795 { gle_APPLE_element_array, "GL_APPLE_element_array" },
|
nuclear@0
|
796 { gle_APPLE_fence, "GL_APPLE_fence" },
|
nuclear@0
|
797 { gle_APPLE_float_pixels, "GL_APPLE_float_pixels" },
|
nuclear@0
|
798 { gle_APPLE_flush_buffer_range, "GL_APPLE_flush_buffer_range" },
|
nuclear@0
|
799 { gle_APPLE_object_purgeable, "GL_APPLE_object_purgeable" },
|
nuclear@0
|
800 { gle_APPLE_pixel_buffer, "GL_APPLE_pixel_buffer" },
|
nuclear@0
|
801 { gle_APPLE_rgb_422, "GL_APPLE_rgb_422" },
|
nuclear@0
|
802 { gle_APPLE_row_bytes, "GL_APPLE_row_bytes" },
|
nuclear@0
|
803 { gle_APPLE_specular_vector, "GL_APPLE_specular_vector" },
|
nuclear@0
|
804 { gle_APPLE_texture_range, "GL_APPLE_texture_range" },
|
nuclear@0
|
805 { gle_APPLE_transform_hint, "GL_APPLE_transform_hint" },
|
nuclear@0
|
806 { gle_APPLE_vertex_array_object, "GL_APPLE_vertex_array_object" },
|
nuclear@0
|
807 { gle_APPLE_vertex_array_range, "GL_APPLE_vertex_array_range" },
|
nuclear@0
|
808 { gle_APPLE_vertex_program_evaluators, "GL_APPLE_vertex_program_evaluators" },
|
nuclear@0
|
809 { gle_APPLE_ycbcr_422, "GL_APPLE_ycbcr_422" },
|
nuclear@0
|
810 #endif
|
nuclear@0
|
811 { gle_ARB_debug_output, "GL_ARB_debug_output" },
|
nuclear@0
|
812 { gle_ARB_depth_buffer_float, "GL_ARB_depth_buffer_float" },
|
nuclear@0
|
813 { gle_ARB_ES2_compatibility, "GL_ARB_ES2_compatibility" },
|
nuclear@0
|
814 { gle_ARB_framebuffer_object, "GL_ARB_framebuffer_object" },
|
nuclear@0
|
815 { gle_ARB_framebuffer_object, "GL_EXT_framebuffer_object" }, // We map glBindFramebuffer, etc. to glBindFramebufferEXT, etc. if necessary
|
nuclear@0
|
816 { gle_ARB_framebuffer_sRGB, "GL_ARB_framebuffer_sRGB" },
|
nuclear@0
|
817 { gle_ARB_texture_multisample, "GL_ARB_texture_multisample" },
|
nuclear@0
|
818 { gle_ARB_texture_non_power_of_two, "GL_ARB_texture_non_power_of_two" },
|
nuclear@0
|
819 { gle_ARB_texture_rectangle, "GL_ARB_texture_rectangle" },
|
nuclear@0
|
820 { gle_ARB_texture_rectangle, "GL_EXT_texture_rectangle" }, // We also check for GL_EXT_texture_rectangle and GL_NV_texture_rectangle.
|
nuclear@0
|
821 { gle_ARB_texture_rectangle, "GL_NV_texture_rectangle" },
|
nuclear@0
|
822 { gle_ARB_timer_query, "GL_ARB_timer_query" },
|
nuclear@0
|
823 { gle_ARB_vertex_array_object, "GL_ARB_vertex_array_object" },
|
nuclear@0
|
824 { gle_EXT_draw_buffers2, "GL_EXT_draw_buffers2" },
|
nuclear@0
|
825 { gle_EXT_texture_compression_s3tc, "GL_EXT_texture_compression_s3tc" },
|
nuclear@0
|
826 { gle_EXT_texture_filter_anisotropic, "GL_EXT_texture_filter_anisotropic" },
|
nuclear@0
|
827 { gle_KHR_debug, "GL_KHR_debug" },
|
nuclear@0
|
828 { gle_WIN_swap_hint, "GL_WIN_swap_hint" }
|
nuclear@0
|
829 // Windows WGL, Unix GLX, and Apple CGL extensions are handled below, as they require different calls from glGetString(GL_EXTENSIONS).
|
nuclear@0
|
830 };
|
nuclear@0
|
831
|
nuclear@0
|
832 // We cannot use glGetString(GL_EXTENSIONS) when an OpenGL core profile is active,
|
nuclear@0
|
833 // as it's deprecated in favor of using OpenGL 3+ glGetStringi.
|
nuclear@0
|
834 const char* extensions = (MajorVersion < 3) ? (const char*)glGetString(GL_EXTENSIONS) : "";
|
nuclear@0
|
835
|
nuclear@0
|
836 if (extensions && *extensions) // If we have a space-delimited extension string to search for individual extensions...
|
nuclear@0
|
837 {
|
nuclear@0
|
838 OVR_DEBUG_LOG(("GL_EXTENSIONS: %s", (const char*)extensions));
|
nuclear@0
|
839 CheckExtensions(vspArray, OVR_ARRAY_COUNT(vspArray), extensions); // Call our shared helper function for this.
|
nuclear@0
|
840 }
|
nuclear@0
|
841 else
|
nuclear@0
|
842 {
|
nuclear@0
|
843 if(MajorVersion >= 3) // If glGetIntegerv(GL_NUM_EXTENSIONS, ...) is supported...
|
nuclear@0
|
844 {
|
nuclear@0
|
845 // In this case we need to match an array of individual extensions against an array of
|
nuclear@0
|
846 // externsions provided by glGetStringi. This is an O(n^2) operation, but at least we
|
nuclear@0
|
847 // are doing this only once on startup. There are a few tricks we can employ to speed
|
nuclear@0
|
848 // up the logic below, but they may not be worth much.
|
nuclear@0
|
849
|
nuclear@0
|
850 GLint extensionCount = 0;
|
nuclear@0
|
851 glGetIntegerv(GL_NUM_EXTENSIONS, &extensionCount);
|
nuclear@0
|
852 GLenum err = glGetError();
|
nuclear@0
|
853
|
nuclear@0
|
854 if(err == 0)
|
nuclear@0
|
855 {
|
nuclear@0
|
856 #ifdef OVR_BUILD_DEBUG
|
nuclear@0
|
857 OVR::StringBuffer extensionsStr;
|
nuclear@0
|
858 #endif
|
nuclear@0
|
859
|
nuclear@0
|
860 for(GLint e = 0; e != extensionCount; ++e) // For each extension supported...
|
nuclear@0
|
861 {
|
nuclear@0
|
862 const char* extension = (const char*)glGetStringi(GL_EXTENSIONS, (GLuint)e);
|
nuclear@0
|
863
|
nuclear@0
|
864 if(extension) // glGetStringi returns NULL upon error.
|
nuclear@0
|
865 {
|
nuclear@0
|
866 #ifdef OVR_BUILD_DEBUG
|
nuclear@0
|
867 extensionsStr.AppendFormat(" %s", extension);
|
nuclear@0
|
868 #endif
|
nuclear@0
|
869
|
nuclear@0
|
870 for(size_t i = 0; i < OVR_ARRAY_COUNT(vspArray); i++) // For each extension we are interested in...
|
nuclear@0
|
871 {
|
nuclear@0
|
872 ValueStringPair& vsp = vspArray[i];
|
nuclear@0
|
873
|
nuclear@0
|
874 if(strcmp(extension, vsp.ExtensionName) == 0) // case-sensitive compare
|
nuclear@0
|
875 vspArray[i].IsPresent = true;
|
nuclear@0
|
876 }
|
nuclear@0
|
877 }
|
nuclear@0
|
878 else
|
nuclear@0
|
879 break;
|
nuclear@0
|
880 }
|
nuclear@0
|
881
|
nuclear@0
|
882 OVR_DEBUG_LOG(("GL_EXTENSIONS: %s", extensionsStr.ToCStr()));
|
nuclear@0
|
883 }
|
nuclear@0
|
884 }
|
nuclear@0
|
885 // Else we have a problem: no means to read the extensions was successful.
|
nuclear@0
|
886 }
|
nuclear@0
|
887
|
nuclear@0
|
888 #if defined(GLE_CGL_ENABLED)
|
nuclear@0
|
889 // The following are built into Apple OpenGL 3.2+ (declared in <OpenGL/gl3.h>) and not identified as extensions.
|
nuclear@0
|
890 // On other platforms (e.g. Windows) these are identified as extensions and are detected above.
|
nuclear@0
|
891 if(WholeVersion >= 302)
|
nuclear@0
|
892 {
|
nuclear@0
|
893 gle_ARB_depth_buffer_float = true;
|
nuclear@0
|
894 gle_ARB_framebuffer_object = true;
|
nuclear@0
|
895 gle_ARB_framebuffer_sRGB = true;
|
nuclear@0
|
896 gle_ARB_texture_multisample = true;
|
nuclear@0
|
897 gle_ARB_texture_non_power_of_two = true;
|
nuclear@0
|
898 gle_ARB_texture_rectangle = true;
|
nuclear@0
|
899 gle_ARB_vertex_array_object = true;
|
nuclear@0
|
900 }
|
nuclear@0
|
901 #endif
|
nuclear@0
|
902
|
nuclear@0
|
903 } // GLEContext::InitExtensionSupport()
|
nuclear@0
|
904
|
nuclear@0
|
905
|
nuclear@0
|
906 void OVR::GLEContext::InitPlatformVersion()
|
nuclear@0
|
907 {
|
nuclear@0
|
908 #if defined(GLE_GLX_ENABLED)
|
nuclear@0
|
909 const char* pGLXVersion = glXGetClientString(glXGetCurrentDisplay(), GLX_VERSION); // To do: Use a better mechanism to get the desired display.
|
nuclear@0
|
910 sscanf(pGLXVersion, "%d.%d", &PlatformMajorVersion, &PlatformMinorVersion);
|
nuclear@0
|
911
|
nuclear@0
|
912 #elif defined(GLE_EGL_ENABLED)
|
nuclear@0
|
913 const char* pEGLVersion = eglQueryString(eglGetDisplay(EGL_DEFAULT_DISPLAY), EGL_VERSION);
|
nuclear@0
|
914 sscanf(pEGLVersion, "%d.%d", &PlatformMajorVersion, &PlatformMinorVersion);
|
nuclear@0
|
915
|
nuclear@0
|
916 #else
|
nuclear@0
|
917 PlatformMajorVersion = 1;
|
nuclear@0
|
918 PlatformMinorVersion = 0;
|
nuclear@0
|
919 PlatformWholeVersion = 100;
|
nuclear@0
|
920 #endif
|
nuclear@0
|
921 }
|
nuclear@0
|
922
|
nuclear@0
|
923
|
nuclear@0
|
924 void OVR::GLEContext::InitPlatformExtensionLoad()
|
nuclear@0
|
925 {
|
nuclear@0
|
926 #if defined(GLE_WGL_ENABLED)
|
nuclear@0
|
927 // WGL
|
nuclear@0
|
928 // We don't load these as function pointers but rather statically link to them.
|
nuclear@0
|
929 // These need to be loaded via LoadLibrary instead of wglLoadLibrary.
|
nuclear@0
|
930
|
nuclear@0
|
931 #if 0
|
nuclear@0
|
932 HINSTANCE hOpenGL = LoadLibraryW(L"Opengl32.dll");
|
nuclear@0
|
933 if(hOpenGL)
|
nuclear@0
|
934 {
|
nuclear@0
|
935 wglCopyContext_Impl = (OVRTypeof(wglCopyContext_Impl)) GetProcAddress(hOpenGL, "wglCopyContext");
|
nuclear@0
|
936 wglCreateContext_Impl = (OVRTypeof(wglCreateContext_Impl)) GetProcAddress(hOpenGL, "wglCreateContext");
|
nuclear@0
|
937 wglCreateLayerContext_Impl = (OVRTypeof(wglCreateLayerContext_Impl)) GetProcAddress(hOpenGL, "wglCreateLayerContext");
|
nuclear@0
|
938 wglDeleteContext_Impl = (OVRTypeof(wglDeleteContext_Impl)) GetProcAddress(hOpenGL, "wglDeleteContext");
|
nuclear@0
|
939 wglGetCurrentContext_Impl = (OVRTypeof(wglGetCurrentContext_Impl)) GetProcAddress(hOpenGL, "wglGetCurrentContext");
|
nuclear@0
|
940 wglGetCurrentDC_Impl = (OVRTypeof(wglGetCurrentDC_Impl)) GetProcAddress(hOpenGL, "wglGetCurrentDC");
|
nuclear@0
|
941 wglGetProcAddress_Impl = (OVRTypeof(wglGetProcAddress_Impl)) GetProcAddress(hOpenGL, "wglGetProcAddress");
|
nuclear@0
|
942 wglMakeCurrent_Impl = (OVRTypeof(wglMakeCurrent_Impl)) GetProcAddress(hOpenGL, "wglMakeCurrent");
|
nuclear@0
|
943 wglShareLists_Impl = (OVRTypeof(wglShareLists_Impl)) GetProcAddress(hOpenGL, "wglShareLists");
|
nuclear@0
|
944 wglUseFontBitmapsA_Impl = (OVRTypeof(wglUseFontBitmapsA_Impl)) GetProcAddress(hOpenGL, "wglUseFontBitmapsA");
|
nuclear@0
|
945 wglUseFontBitmapsW_Impl = (OVRTypeof(wglUseFontBitmapsW_Impl)) GetProcAddress(hOpenGL, "wglUseFontBitmapsW");
|
nuclear@0
|
946 wglUseFontOutlinesA_Impl = (OVRTypeof(wglUseFontOutlinesA_Impl)) GetProcAddress(hOpenGL, "wglUseFontOutlinesA");
|
nuclear@0
|
947 wglUseFontOutlinesW_Impl = (OVRTypeof(wglUseFontOutlinesW_Impl)) GetProcAddress(hOpenGL, "wglUseFontOutlinesW");
|
nuclear@0
|
948 wglDescribeLayerPlane_Impl = (OVRTypeof(wglDescribeLayerPlane_Impl)) GetProcAddress(hOpenGL, "wglDescribeLayerPlane");
|
nuclear@0
|
949 wglSetLayerPaletteEntries_Impl = (OVRTypeof(wglSetLayerPaletteEntries_Impl)) GetProcAddress(hOpenGL, "wglSetLayerPaletteEntries");
|
nuclear@0
|
950 wglGetLayerPaletteEntries_Impl = (OVRTypeof(wglGetLayerPaletteEntries_Impl)) GetProcAddress(hOpenGL, "wglGetLayerPaletteEntries");
|
nuclear@0
|
951 wglRealizeLayerPalette_Impl = (OVRTypeof(wglRealizeLayerPalette_Impl)) GetProcAddress(hOpenGL, "wglRealizeLayerPalette");
|
nuclear@0
|
952 wglSwapLayerBuffers_Impl = (OVRTypeof(wglSwapLayerBuffers_Impl)) GetProcAddress(hOpenGL, "wglSwapLayerBuffers");
|
nuclear@0
|
953 wglSwapMultipleBuffers_Impl = (OVRTypeof(wglSwapMultipleBuffers_Impl)) GetProcAddress(hOpenGL, "wglSwapMultipleBuffers");
|
nuclear@0
|
954 FreeLibrary(hOpenGL);
|
nuclear@0
|
955 }
|
nuclear@0
|
956 #endif
|
nuclear@0
|
957
|
nuclear@0
|
958 // WGL_ARB_buffer_region
|
nuclear@0
|
959 GLELoadProc(wglCreateBufferRegionARB_Impl, wglCreateBufferRegionARB);
|
nuclear@0
|
960 GLELoadProc(wglDeleteBufferRegionARB_Impl, wglDeleteBufferRegionARB);
|
nuclear@0
|
961 GLELoadProc(wglSaveBufferRegionARB_Impl, wglSaveBufferRegionARB);
|
nuclear@0
|
962 GLELoadProc(wglRestoreBufferRegionARB_Impl, wglRestoreBufferRegionARB);
|
nuclear@0
|
963
|
nuclear@0
|
964 // WGL_ARB_extensions_string
|
nuclear@0
|
965 GLELoadProc(wglGetExtensionsStringARB_Impl, wglGetExtensionsStringARB);
|
nuclear@0
|
966
|
nuclear@0
|
967 // WGL_ARB_pixel_format
|
nuclear@0
|
968 GLELoadProc(wglGetPixelFormatAttribivARB_Impl, wglGetPixelFormatAttribivARB);
|
nuclear@0
|
969 GLELoadProc(wglGetPixelFormatAttribfvARB_Impl, wglGetPixelFormatAttribfvARB);
|
nuclear@0
|
970 GLELoadProc(wglChoosePixelFormatARB_Impl, wglChoosePixelFormatARB);
|
nuclear@0
|
971
|
nuclear@0
|
972 // WGL_ARB_make_current_read
|
nuclear@0
|
973 GLELoadProc(wglMakeContextCurrentARB_Impl, wglMakeContextCurrentARB);
|
nuclear@0
|
974 GLELoadProc(wglGetCurrentReadDCARB_Impl, wglGetCurrentReadDCARB);
|
nuclear@0
|
975
|
nuclear@0
|
976 // WGL_ARB_pbuffer
|
nuclear@0
|
977 GLELoadProc(wglCreatePbufferARB_Impl, wglCreatePbufferARB);
|
nuclear@0
|
978 GLELoadProc(wglGetPbufferDCARB_Impl, wglGetPbufferDCARB);
|
nuclear@0
|
979 GLELoadProc(wglReleasePbufferDCARB_Impl, wglReleasePbufferDCARB);
|
nuclear@0
|
980 GLELoadProc(wglDestroyPbufferARB_Impl, wglDestroyPbufferARB);
|
nuclear@0
|
981 GLELoadProc(wglQueryPbufferARB_Impl, wglQueryPbufferARB);
|
nuclear@0
|
982
|
nuclear@0
|
983 // WGL_ARB_render_texture
|
nuclear@0
|
984 GLELoadProc(wglBindTexImageARB_Impl, wglBindTexImageARB);
|
nuclear@0
|
985 GLELoadProc(wglReleaseTexImageARB_Impl, wglReleaseTexImageARB);
|
nuclear@0
|
986 GLELoadProc(wglSetPbufferAttribARB_Impl, wglSetPbufferAttribARB);
|
nuclear@0
|
987
|
nuclear@0
|
988 // WGL_NV_present_video
|
nuclear@0
|
989 GLELoadProc(wglEnumerateVideoDevicesNV_Impl, wglEnumerateVideoDevicesNV);
|
nuclear@0
|
990 GLELoadProc(wglBindVideoDeviceNV_Impl, wglBindVideoDeviceNV);
|
nuclear@0
|
991 GLELoadProc(wglQueryCurrentContextNV_Impl, wglQueryCurrentContextNV);
|
nuclear@0
|
992
|
nuclear@0
|
993 // WGL_ARB_create_context
|
nuclear@0
|
994 GLELoadProc(wglCreateContextAttribsARB_Impl, wglCreateContextAttribsARB);
|
nuclear@0
|
995
|
nuclear@0
|
996 // WGL_EXT_extensions_string
|
nuclear@0
|
997 GLELoadProc(wglGetExtensionsStringEXT_Impl, wglGetExtensionsStringEXT);
|
nuclear@0
|
998
|
nuclear@0
|
999 // WGL_EXT_swap_control
|
nuclear@0
|
1000 GLELoadProc(wglGetSwapIntervalEXT_Impl, wglGetSwapIntervalEXT);
|
nuclear@0
|
1001 GLELoadProc(wglSwapIntervalEXT_Impl, wglSwapIntervalEXT);
|
nuclear@0
|
1002
|
nuclear@0
|
1003 // WGL_OML_sync_control
|
nuclear@0
|
1004 GLELoadProc(wglGetSyncValuesOML_Impl, wglGetSyncValuesOML);
|
nuclear@0
|
1005 GLELoadProc(wglGetMscRateOML_Impl, wglGetMscRateOML);
|
nuclear@0
|
1006 GLELoadProc(wglSwapBuffersMscOML_Impl, wglSwapBuffersMscOML);
|
nuclear@0
|
1007 GLELoadProc(wglSwapLayerBuffersMscOML_Impl, wglSwapLayerBuffersMscOML);
|
nuclear@0
|
1008 GLELoadProc(wglWaitForMscOML_Impl, wglWaitForMscOML);
|
nuclear@0
|
1009 GLELoadProc(wglWaitForSbcOML_Impl, wglWaitForSbcOML);
|
nuclear@0
|
1010
|
nuclear@0
|
1011 // WGL_NV_video_output
|
nuclear@0
|
1012 GLELoadProc(wglGetVideoDeviceNV_Impl, wglGetVideoDeviceNV);
|
nuclear@0
|
1013 GLELoadProc(wglReleaseVideoDeviceNV_Impl, wglReleaseVideoDeviceNV);
|
nuclear@0
|
1014 GLELoadProc(wglBindVideoImageNV_Impl, wglBindVideoImageNV);
|
nuclear@0
|
1015 GLELoadProc(wglReleaseVideoImageNV_Impl, wglReleaseVideoImageNV);
|
nuclear@0
|
1016 GLELoadProc(wglSendPbufferToVideoNV_Impl, wglSendPbufferToVideoNV);
|
nuclear@0
|
1017 GLELoadProc(wglGetVideoInfoNV_Impl, wglGetVideoInfoNV);
|
nuclear@0
|
1018
|
nuclear@0
|
1019 // WGL_NV_swap_group
|
nuclear@0
|
1020 GLELoadProc(wglJoinSwapGroupNV_Impl, wglJoinSwapGroupNV);
|
nuclear@0
|
1021 GLELoadProc(wglBindSwapBarrierNV_Impl, wglBindSwapBarrierNV);
|
nuclear@0
|
1022 GLELoadProc(wglQuerySwapGroupNV_Impl, wglQuerySwapGroupNV);
|
nuclear@0
|
1023 GLELoadProc(wglQueryMaxSwapGroupsNV_Impl, wglQueryMaxSwapGroupsNV);
|
nuclear@0
|
1024 GLELoadProc(wglQueryFrameCountNV_Impl, wglQueryFrameCountNV);
|
nuclear@0
|
1025 GLELoadProc(wglResetFrameCountNV_Impl, wglResetFrameCountNV);
|
nuclear@0
|
1026
|
nuclear@0
|
1027 // WGL_NV_video_capture
|
nuclear@0
|
1028 GLELoadProc(wglBindVideoCaptureDeviceNV_Impl, wglBindVideoCaptureDeviceNV);
|
nuclear@0
|
1029 GLELoadProc(wglEnumerateVideoCaptureDevicesNV_Impl, wglEnumerateVideoCaptureDevicesNV);
|
nuclear@0
|
1030 GLELoadProc(wglLockVideoCaptureDeviceNV_Impl, wglLockVideoCaptureDeviceNV);
|
nuclear@0
|
1031 GLELoadProc(wglQueryVideoCaptureDeviceNV_Impl, wglQueryVideoCaptureDeviceNV);
|
nuclear@0
|
1032 GLELoadProc(wglReleaseVideoCaptureDeviceNV_Impl, wglReleaseVideoCaptureDeviceNV);
|
nuclear@0
|
1033
|
nuclear@0
|
1034 // WGL_NV_copy_image
|
nuclear@0
|
1035 GLELoadProc(wglCopyImageSubDataNV_Impl, wglCopyImageSubDataNV);
|
nuclear@0
|
1036
|
nuclear@0
|
1037 // WGL_NV_DX_interop
|
nuclear@0
|
1038 GLELoadProc(wglDXCloseDeviceNV_Impl, wglDXCloseDeviceNV);
|
nuclear@0
|
1039 GLELoadProc(wglDXLockObjectsNV_Impl, wglDXLockObjectsNV);
|
nuclear@0
|
1040 GLELoadProc(wglDXObjectAccessNV_Impl, wglDXObjectAccessNV);
|
nuclear@0
|
1041 GLELoadProc(wglDXOpenDeviceNV_Impl, wglDXOpenDeviceNV);
|
nuclear@0
|
1042 GLELoadProc(wglDXRegisterObjectNV_Impl, wglDXRegisterObjectNV);
|
nuclear@0
|
1043 GLELoadProc(wglDXSetResourceShareHandleNV_Impl, wglDXSetResourceShareHandleNV);
|
nuclear@0
|
1044 GLELoadProc(wglDXUnlockObjectsNV_Impl, wglDXUnlockObjectsNV);
|
nuclear@0
|
1045 GLELoadProc(wglDXUnregisterObjectNV_Impl, wglDXUnregisterObjectNV);
|
nuclear@0
|
1046
|
nuclear@0
|
1047 #elif defined(GLE_GLX_ENABLED)
|
nuclear@0
|
1048 // GLX_VERSION_1_1
|
nuclear@0
|
1049 // We don't create any pointers_Impl, because we assume these functions are always present.
|
nuclear@0
|
1050
|
nuclear@0
|
1051 // GLX_VERSION_1_2
|
nuclear@0
|
1052 GLELoadProc(glXGetCurrentDisplay_Impl, glXGetCurrentDisplay);
|
nuclear@0
|
1053
|
nuclear@0
|
1054 // GLX_VERSION_1_3
|
nuclear@0
|
1055 GLELoadProc(glXChooseFBConfig_Impl, glXChooseFBConfig);
|
nuclear@0
|
1056 GLELoadProc(glXCreateNewContext_Impl, glXCreateNewContext);
|
nuclear@0
|
1057 GLELoadProc(glXCreatePbuffer_Impl, glXCreatePbuffer);
|
nuclear@0
|
1058 GLELoadProc(glXCreatePixmap_Impl, glXCreatePixmap);
|
nuclear@0
|
1059 GLELoadProc(glXCreateWindow_Impl, glXCreateWindow);
|
nuclear@0
|
1060 GLELoadProc(glXDestroyPbuffer_Impl, glXDestroyPbuffer);
|
nuclear@0
|
1061 GLELoadProc(glXDestroyPixmap_Impl, glXDestroyPixmap);
|
nuclear@0
|
1062 GLELoadProc(glXDestroyWindow_Impl, glXDestroyWindow);
|
nuclear@0
|
1063 GLELoadProc(glXGetCurrentReadDrawable_Impl, glXGetCurrentReadDrawable);
|
nuclear@0
|
1064 GLELoadProc(glXGetFBConfigAttrib_Impl, glXGetFBConfigAttrib);
|
nuclear@0
|
1065 GLELoadProc(glXGetFBConfigs_Impl, glXGetFBConfigs);
|
nuclear@0
|
1066 GLELoadProc(glXGetSelectedEvent_Impl, glXGetSelectedEvent);
|
nuclear@0
|
1067 GLELoadProc(glXGetVisualFromFBConfig_Impl, glXGetVisualFromFBConfig);
|
nuclear@0
|
1068 GLELoadProc(glXMakeContextCurrent_Impl, glXMakeContextCurrent);
|
nuclear@0
|
1069 GLELoadProc(glXQueryContext_Impl, glXQueryContext);
|
nuclear@0
|
1070 GLELoadProc(glXQueryDrawable_Impl, glXQueryDrawable);
|
nuclear@0
|
1071 GLELoadProc(glXSelectEvent_Impl, glXSelectEvent);
|
nuclear@0
|
1072
|
nuclear@0
|
1073 // GLX_VERSION_1_4
|
nuclear@0
|
1074 // Nothing to declare
|
nuclear@0
|
1075
|
nuclear@0
|
1076 // GLX_ARB_create_context
|
nuclear@0
|
1077 GLELoadProc(glXCreateContextAttribsARB_Impl, glXCreateContextAttribsARB);
|
nuclear@0
|
1078
|
nuclear@0
|
1079 // GLX_EXT_swap_control
|
nuclear@0
|
1080 GLELoadProc(glXSwapIntervalEXT_Impl, glXSwapIntervalEXT);
|
nuclear@0
|
1081
|
nuclear@0
|
1082 // GLX_OML_sync_control
|
nuclear@0
|
1083 GLELoadProc(glXGetMscRateOML_Impl, glXGetMscRateOML);
|
nuclear@0
|
1084 GLELoadProc(glXGetSyncValuesOML_Impl, glXGetSyncValuesOML);
|
nuclear@0
|
1085 GLELoadProc(glXGetSyncValuesOML_Impl, glXSwapBuffersMscOML);
|
nuclear@0
|
1086 GLELoadProc(glXSwapBuffersMscOML_Impl, glXSwapBuffersMscOML);
|
nuclear@0
|
1087 GLELoadProc(glXWaitForSbcOML_Impl, glXWaitForSbcOML);
|
nuclear@0
|
1088
|
nuclear@0
|
1089 // GLX_MESA_swap_control
|
nuclear@0
|
1090 GLELoadProc(glXGetSwapIntervalMESA_Impl, glXGetSwapIntervalMESA);
|
nuclear@0
|
1091 GLELoadProc(glXSwapIntervalMESA_Impl, glXSwapIntervalMESA);
|
nuclear@0
|
1092 #endif
|
nuclear@0
|
1093 }
|
nuclear@0
|
1094
|
nuclear@0
|
1095
|
nuclear@0
|
1096 void OVR::GLEContext::InitPlatformExtensionSupport()
|
nuclear@0
|
1097 {
|
nuclear@0
|
1098 #if defined(GLE_WGL_ENABLED)
|
nuclear@0
|
1099 // We need to use wglGetExtensionsStringARB or wglGetExtensionsStringEXT as opposed to above with glGetString(GL_EXTENSIONS).
|
nuclear@0
|
1100 ValueStringPair vspWGLArray[] =
|
nuclear@0
|
1101 {
|
nuclear@0
|
1102 { gle_WGL_ARB_buffer_region, "WGL_ARB_buffer_region" }
|
nuclear@0
|
1103 ,{ gle_WGL_ARB_create_context, "WGL_ARB_create_context" }
|
nuclear@0
|
1104 ,{ gle_WGL_ARB_create_context_profile, "WGL_ARB_create_context_profile" }
|
nuclear@0
|
1105 ,{ gle_WGL_ARB_create_context_robustness, "WGL_ARB_create_context_robustness" }
|
nuclear@0
|
1106 ,{ gle_WGL_ARB_extensions_string, "WGL_ARB_extensions_string" }
|
nuclear@0
|
1107 ,{ gle_WGL_ARB_framebuffer_sRGB, "WGL_ARB_framebuffer_sRGB" }
|
nuclear@0
|
1108 ,{ gle_WGL_ARB_framebuffer_sRGB, "WGL_EXT_framebuffer_sRGB" } // We map the EXT to the ARB.
|
nuclear@0
|
1109 ,{ gle_WGL_ARB_make_current_read, "WGL_ARB_make_current_read" }
|
nuclear@0
|
1110 ,{ gle_WGL_ARB_pbuffer, "WGL_ARB_pbuffer" }
|
nuclear@0
|
1111 ,{ gle_WGL_ARB_pixel_format, "WGL_ARB_pixel_format" }
|
nuclear@0
|
1112 ,{ gle_WGL_ARB_pixel_format_float, "WGL_ARB_pixel_format_float" }
|
nuclear@0
|
1113 ,{ gle_WGL_ARB_render_texture, "WGL_ARB_render_texture" }
|
nuclear@0
|
1114 ,{ gle_WGL_ATI_render_texture_rectangle, "WGL_ATI_render_texture_rectangle" }
|
nuclear@0
|
1115 ,{ gle_WGL_EXT_extensions_string, "WGL_EXT_extensions_string" }
|
nuclear@0
|
1116 ,{ gle_WGL_EXT_swap_control, "WGL_EXT_swap_control" }
|
nuclear@0
|
1117 ,{ gle_WGL_NV_copy_image, "WGL_NV_copy_image" }
|
nuclear@0
|
1118 ,{ gle_WGL_NV_DX_interop, "WGL_NV_DX_interop" }
|
nuclear@0
|
1119 ,{ gle_WGL_NV_DX_interop2, "WGL_NV_DX_interop2" }
|
nuclear@0
|
1120 ,{ gle_WGL_NV_present_video, "WGL_NV_present_video" }
|
nuclear@0
|
1121 ,{ gle_WGL_NV_render_texture_rectangle, "WGL_NV_render_texture_rectangle" }
|
nuclear@0
|
1122 ,{ gle_WGL_NV_swap_group, "WGL_NV_swap_group" }
|
nuclear@0
|
1123 ,{ gle_WGL_NV_video_capture, "WGL_NV_video_capture" }
|
nuclear@0
|
1124 ,{ gle_WGL_NV_video_output, "WGL_NV_video_output" }
|
nuclear@0
|
1125 ,{ gle_WGL_OML_sync_control, "WGL_OML_sync_control" }
|
nuclear@0
|
1126 };
|
nuclear@0
|
1127
|
nuclear@0
|
1128 const char* extensions = NULL;
|
nuclear@0
|
1129
|
nuclear@0
|
1130 if(wglGetExtensionsStringARB_Impl)
|
nuclear@0
|
1131 extensions = wglGetExtensionsStringARB_Impl(wglGetCurrentDC()); // To do: Use a better mechanism to get the desired HDC.
|
nuclear@0
|
1132 else if(wglGetExtensionsStringEXT_Impl)
|
nuclear@0
|
1133 extensions = wglGetExtensionsStringEXT_Impl();
|
nuclear@0
|
1134
|
nuclear@0
|
1135 if (extensions && *extensions)
|
nuclear@0
|
1136 {
|
nuclear@0
|
1137 OVR_DEBUG_LOG(("WGL_EXTENSIONS: %s", (const char*)extensions));
|
nuclear@0
|
1138 CheckExtensions(vspWGLArray, OVR_ARRAY_COUNT(vspWGLArray), extensions);
|
nuclear@0
|
1139 }
|
nuclear@0
|
1140
|
nuclear@0
|
1141 #elif defined(GLE_GLX_ENABLED)
|
nuclear@0
|
1142 ValueStringPair vspGLXArray[] =
|
nuclear@0
|
1143 {
|
nuclear@0
|
1144 { gle_GLX_ARB_create_context, "GLX_ARB_create_context" }
|
nuclear@0
|
1145 ,{ gle_GLX_ARB_create_context_profile, "GLX_ARB_create_context_profile" }
|
nuclear@0
|
1146 ,{ gle_GLX_ARB_create_context_robustness, "GLX_ARB_create_context_robustness" }
|
nuclear@0
|
1147 ,{ gle_GLX_EXT_swap_control, "GLX_EXT_swap_control" }
|
nuclear@0
|
1148 ,{ gle_GLX_OML_sync_control, "GLX_OML_sync_control" }
|
nuclear@0
|
1149 ,{ gle_MESA_swap_control, "GLX_MESA_swap_control" }
|
nuclear@0
|
1150 };
|
nuclear@0
|
1151
|
nuclear@0
|
1152 const char* extensions = glXGetClientString(glXGetCurrentDisplay(), GLX_EXTENSIONS); // To do: Use a better mechanism to get the desired display.
|
nuclear@0
|
1153
|
nuclear@0
|
1154 if (extensions && *extensions)
|
nuclear@0
|
1155 {
|
nuclear@0
|
1156 OVR_DEBUG_LOG(("GLX_EXTENSIONS: %s", (const char*)extensions));
|
nuclear@0
|
1157 CheckExtensions(vspGLXArray, OVR_ARRAY_COUNT(vspGLXArray), extensions);
|
nuclear@0
|
1158 }
|
nuclear@0
|
1159 #endif
|
nuclear@0
|
1160 }
|
nuclear@0
|
1161
|
nuclear@0
|
1162
|
nuclear@0
|
1163 #if defined(GLE_HOOKING_ENABLED)
|
nuclear@0
|
1164
|
nuclear@0
|
1165 #undef glGetError
|
nuclear@0
|
1166 extern "C" { GLAPI GLenum GLAPIENTRY glGetError(); }
|
nuclear@0
|
1167
|
nuclear@0
|
1168 // Disabled until such time as it might be useful to enable for debug purposes.
|
nuclear@0
|
1169 //void OVR::GLEContext::PreHook(const char* functionName)
|
nuclear@0
|
1170 //{
|
nuclear@0
|
1171 // if(EnableHookGetError)
|
nuclear@0
|
1172 // {
|
nuclear@0
|
1173 // int err = glGetError();
|
nuclear@0
|
1174 //
|
nuclear@0
|
1175 // for(int i = 0; (i < 6) && (err != GL_NO_ERROR); i++) // 6 is an arbitrary cap to prevent infinite looping which would occur if the current GL context is invalid.
|
nuclear@0
|
1176 // {
|
nuclear@0
|
1177 // OVR_DEBUG_LOG(("GL Error prior to hook: %d (%#x) from %s", err, err, functionName ? functionName : "OpenGL")); OVR_UNUSED(functionName);
|
nuclear@0
|
1178 // err = glGetError();
|
nuclear@0
|
1179 // }
|
nuclear@0
|
1180 // }
|
nuclear@0
|
1181 //}
|
nuclear@0
|
1182
|
nuclear@0
|
1183 void OVR::GLEContext::PostHook(const char* functionName)
|
nuclear@0
|
1184 {
|
nuclear@0
|
1185 if(EnableHookGetError)
|
nuclear@0
|
1186 {
|
nuclear@0
|
1187 // OpenGL Standard regarding error state: To allow for distributed implementations, there may be several error flags. If any single error flag has recorded an error, the value of that flag
|
nuclear@0
|
1188 // is returned and that flag is reset to GL_NO_ERROR when glGetError is called. If more than one flag has recorded an error, glGetError returns and
|
nuclear@0
|
1189 // clears an arbitrary error flag value. Thus, glGetError should always be called in a loop, until it returns GL_NO_ERROR, if all error flags are to be reset.
|
nuclear@0
|
1190 int err = glGetError();
|
nuclear@0
|
1191
|
nuclear@0
|
1192 for(int i = 0; (i < 6) && (err != GL_NO_ERROR); i++) // 6 is an arbitrary cap to prevent infinite looping which would occur if the current GL context is invalid.
|
nuclear@0
|
1193 {
|
nuclear@0
|
1194 OVR_DEBUG_LOG(("GL Error: %d (%#x) from %s", err, err, functionName ? functionName : "OpenGL")); OVR_UNUSED(functionName);
|
nuclear@0
|
1195 err = glGetError();
|
nuclear@0
|
1196 }
|
nuclear@0
|
1197 }
|
nuclear@0
|
1198 }
|
nuclear@0
|
1199
|
nuclear@0
|
1200
|
nuclear@0
|
1201 // OpenGL 1.1 link-based functions
|
nuclear@0
|
1202 #undef glAccum // Undefine the macro from our header so that we can directly call the real version of this function.
|
nuclear@0
|
1203 extern "C" { GLAPI void GLAPIENTRY glAccum(GLenum op, GLfloat value); }
|
nuclear@0
|
1204 void OVR::GLEContext::glAccum_Hook(GLenum op, GLfloat value)
|
nuclear@0
|
1205 {
|
nuclear@0
|
1206 glAccum(op, value);
|
nuclear@0
|
1207 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1208 }
|
nuclear@0
|
1209
|
nuclear@0
|
1210 #undef glAlphaFunc
|
nuclear@0
|
1211 extern "C" { GLAPI void GLAPIENTRY glAlphaFunc(GLenum func, GLclampf ref); }
|
nuclear@0
|
1212 void OVR::GLEContext::glAlphaFunc_Hook(GLenum func, GLclampf ref)
|
nuclear@0
|
1213 {
|
nuclear@0
|
1214 glAlphaFunc(func, ref);
|
nuclear@0
|
1215 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1216 }
|
nuclear@0
|
1217
|
nuclear@0
|
1218 #undef glAreTexturesResident
|
nuclear@0
|
1219 extern "C" { GLAPI GLboolean GLAPIENTRY glAreTexturesResident(GLsizei n, const GLuint *textures, GLboolean *residences); }
|
nuclear@0
|
1220 GLboolean OVR::GLEContext::glAreTexturesResident_Hook(GLsizei n, const GLuint *textures, GLboolean *residences)
|
nuclear@0
|
1221 {
|
nuclear@0
|
1222 GLboolean b = glAreTexturesResident(n, textures, residences);
|
nuclear@0
|
1223 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1224 return b;
|
nuclear@0
|
1225 }
|
nuclear@0
|
1226
|
nuclear@0
|
1227 #undef glArrayElement
|
nuclear@0
|
1228 extern "C" { GLAPI void GLAPIENTRY glArrayElement(GLint i); }
|
nuclear@0
|
1229 void OVR::GLEContext::glArrayElement_Hook(GLint i)
|
nuclear@0
|
1230 {
|
nuclear@0
|
1231 glArrayElement(i);
|
nuclear@0
|
1232 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1233 }
|
nuclear@0
|
1234
|
nuclear@0
|
1235 #undef glBegin
|
nuclear@0
|
1236 extern "C" { GLAPI void GLAPIENTRY glBegin(GLenum mode); }
|
nuclear@0
|
1237 void OVR::GLEContext::glBegin_Hook(GLenum mode)
|
nuclear@0
|
1238 {
|
nuclear@0
|
1239 glBegin(mode);
|
nuclear@0
|
1240 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1241 }
|
nuclear@0
|
1242
|
nuclear@0
|
1243 #undef glBindTexture
|
nuclear@0
|
1244 extern "C" { GLAPI void GLAPIENTRY glBindTexture(GLenum target, GLuint texture); }
|
nuclear@0
|
1245 void OVR::GLEContext::glBindTexture_Hook(GLenum target, GLuint texture)
|
nuclear@0
|
1246 {
|
nuclear@0
|
1247 glBindTexture(target, texture);
|
nuclear@0
|
1248 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1249 }
|
nuclear@0
|
1250
|
nuclear@0
|
1251 #undef glBitmap
|
nuclear@0
|
1252 extern "C" { GLAPI void GLAPIENTRY glBitmap(GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte *bitmap); }
|
nuclear@0
|
1253 void OVR::GLEContext::glBitmap_Hook(GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte *bitmap)
|
nuclear@0
|
1254 {
|
nuclear@0
|
1255 glBitmap(width, height, xorig, yorig, xmove, ymove, bitmap);
|
nuclear@0
|
1256 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1257 }
|
nuclear@0
|
1258
|
nuclear@0
|
1259 #undef glBlendFunc
|
nuclear@0
|
1260 extern "C" { GLAPI void GLAPIENTRY glBlendFunc(GLenum sfactor, GLenum dfactor); }
|
nuclear@0
|
1261 void OVR::GLEContext::glBlendFunc_Hook(GLenum sfactor, GLenum dfactor)
|
nuclear@0
|
1262 {
|
nuclear@0
|
1263 glBlendFunc(sfactor, dfactor);
|
nuclear@0
|
1264 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1265 }
|
nuclear@0
|
1266
|
nuclear@0
|
1267 #undef glCallList
|
nuclear@0
|
1268 extern "C" { GLAPI void GLAPIENTRY glCallList(GLuint list); }
|
nuclear@0
|
1269 void OVR::GLEContext::glCallList_Hook(GLuint list)
|
nuclear@0
|
1270 {
|
nuclear@0
|
1271 glCallList(list);
|
nuclear@0
|
1272 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1273 }
|
nuclear@0
|
1274
|
nuclear@0
|
1275 #undef glCallLists
|
nuclear@0
|
1276 extern "C" { GLAPI void GLAPIENTRY glCallLists(GLsizei n, GLenum type, const void *lists); }
|
nuclear@0
|
1277 void OVR::GLEContext::glCallLists_Hook(GLsizei n, GLenum type, const void *lists)
|
nuclear@0
|
1278 {
|
nuclear@0
|
1279 glCallLists(n, type, lists);
|
nuclear@0
|
1280 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1281 }
|
nuclear@0
|
1282
|
nuclear@0
|
1283 #undef glClear
|
nuclear@0
|
1284 extern "C" { GLAPI void GLAPIENTRY glClear(GLbitfield mask); }
|
nuclear@0
|
1285 void OVR::GLEContext::glClear_Hook(GLbitfield mask)
|
nuclear@0
|
1286 {
|
nuclear@0
|
1287 glClear(mask);
|
nuclear@0
|
1288 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1289 }
|
nuclear@0
|
1290
|
nuclear@0
|
1291 #undef glClearAccum
|
nuclear@0
|
1292 extern "C" { GLAPI void GLAPIENTRY glClearAccum(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); }
|
nuclear@0
|
1293 void OVR::GLEContext::glClearAccum_Hook(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
|
nuclear@0
|
1294 {
|
nuclear@0
|
1295 glClearAccum(red, green, blue, alpha);
|
nuclear@0
|
1296 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1297 }
|
nuclear@0
|
1298
|
nuclear@0
|
1299 #undef glClearColor
|
nuclear@0
|
1300 extern "C" { GLAPI void GLAPIENTRY glClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha); }
|
nuclear@0
|
1301 void OVR::GLEContext::glClearColor_Hook(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
|
nuclear@0
|
1302 {
|
nuclear@0
|
1303 glClearColor(red, green, blue, alpha);
|
nuclear@0
|
1304 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1305 }
|
nuclear@0
|
1306
|
nuclear@0
|
1307 #undef glClearDepth
|
nuclear@0
|
1308 extern "C" { GLAPI void GLAPIENTRY glClearDepth(GLclampd depth); }
|
nuclear@0
|
1309 void OVR::GLEContext::glClearDepth_Hook(GLclampd depth)
|
nuclear@0
|
1310 {
|
nuclear@0
|
1311 glClearDepth(depth);
|
nuclear@0
|
1312 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1313 }
|
nuclear@0
|
1314
|
nuclear@0
|
1315 #undef glClearIndex
|
nuclear@0
|
1316 extern "C" { GLAPI void GLAPIENTRY glClearIndex(GLfloat c); }
|
nuclear@0
|
1317 void OVR::GLEContext::glClearIndex_Hook(GLfloat c)
|
nuclear@0
|
1318 {
|
nuclear@0
|
1319 glClearIndex(c);
|
nuclear@0
|
1320 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1321 }
|
nuclear@0
|
1322
|
nuclear@0
|
1323 #undef glClearStencil
|
nuclear@0
|
1324 extern "C" { GLAPI void GLAPIENTRY glClearStencil(GLint s); }
|
nuclear@0
|
1325 void OVR::GLEContext::glClearStencil_Hook(GLint s)
|
nuclear@0
|
1326 {
|
nuclear@0
|
1327 glClearStencil(s);
|
nuclear@0
|
1328 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1329 }
|
nuclear@0
|
1330
|
nuclear@0
|
1331 #undef glClipPlane
|
nuclear@0
|
1332 extern "C" { GLAPI void GLAPIENTRY glClipPlane(GLenum plane, const GLdouble *equation); }
|
nuclear@0
|
1333 void OVR::GLEContext::glClipPlane_Hook(GLenum plane, const GLdouble *equation)
|
nuclear@0
|
1334 {
|
nuclear@0
|
1335 glClipPlane(plane, equation);
|
nuclear@0
|
1336 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1337 }
|
nuclear@0
|
1338
|
nuclear@0
|
1339 #undef glColor3b
|
nuclear@0
|
1340 extern "C" { GLAPI void GLAPIENTRY glColor3b(GLbyte red, GLbyte green, GLbyte blue); }
|
nuclear@0
|
1341 void OVR::GLEContext::glColor3b_Hook(GLbyte red, GLbyte green, GLbyte blue)
|
nuclear@0
|
1342 {
|
nuclear@0
|
1343 glColor3b(red, green, blue);
|
nuclear@0
|
1344 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1345 }
|
nuclear@0
|
1346
|
nuclear@0
|
1347 #undef glColor3bv
|
nuclear@0
|
1348 extern "C" { GLAPI void GLAPIENTRY glColor3bv(const GLbyte *v); }
|
nuclear@0
|
1349 void OVR::GLEContext::glColor3bv_Hook(const GLbyte *v)
|
nuclear@0
|
1350 {
|
nuclear@0
|
1351 glColor3bv(v);
|
nuclear@0
|
1352 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1353 }
|
nuclear@0
|
1354
|
nuclear@0
|
1355 #undef glColor3d
|
nuclear@0
|
1356 extern "C" { GLAPI void GLAPIENTRY glColor3d(GLdouble red, GLdouble green, GLdouble blue); }
|
nuclear@0
|
1357 void OVR::GLEContext::glColor3d_Hook(GLdouble red, GLdouble green, GLdouble blue)
|
nuclear@0
|
1358 {
|
nuclear@0
|
1359 glColor3d(red, green, blue);
|
nuclear@0
|
1360 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1361 }
|
nuclear@0
|
1362
|
nuclear@0
|
1363 #undef glColor3dv
|
nuclear@0
|
1364 extern "C" { GLAPI void GLAPIENTRY glColor3dv(const GLdouble *v); }
|
nuclear@0
|
1365 void OVR::GLEContext::glColor3dv_Hook(const GLdouble *v)
|
nuclear@0
|
1366 {
|
nuclear@0
|
1367 glColor3dv(v);
|
nuclear@0
|
1368 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1369 }
|
nuclear@0
|
1370
|
nuclear@0
|
1371 #undef glColor3f
|
nuclear@0
|
1372 extern "C" { GLAPI void GLAPIENTRY glColor3f(GLfloat red, GLfloat green, GLfloat blue); }
|
nuclear@0
|
1373 void OVR::GLEContext::glColor3f_Hook(GLfloat red, GLfloat green, GLfloat blue)
|
nuclear@0
|
1374 {
|
nuclear@0
|
1375 glColor3f(red, green, blue);
|
nuclear@0
|
1376 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1377 }
|
nuclear@0
|
1378
|
nuclear@0
|
1379 #undef glColor3fv
|
nuclear@0
|
1380 extern "C" { GLAPI void GLAPIENTRY glColor3fv(const GLfloat *v); }
|
nuclear@0
|
1381 void OVR::GLEContext::glColor3fv_Hook(const GLfloat *v)
|
nuclear@0
|
1382 {
|
nuclear@0
|
1383 glColor3fv(v);
|
nuclear@0
|
1384 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1385 }
|
nuclear@0
|
1386
|
nuclear@0
|
1387 #undef glColor3i
|
nuclear@0
|
1388 extern "C" { GLAPI void GLAPIENTRY glColor3i(GLint red, GLint green, GLint blue); }
|
nuclear@0
|
1389 void OVR::GLEContext::glColor3i_Hook(GLint red, GLint green, GLint blue)
|
nuclear@0
|
1390 {
|
nuclear@0
|
1391 glColor3i(red, green, blue);
|
nuclear@0
|
1392 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1393 }
|
nuclear@0
|
1394
|
nuclear@0
|
1395 #undef glColor3iv
|
nuclear@0
|
1396 extern "C" { GLAPI void GLAPIENTRY glColor3iv(const GLint *v); }
|
nuclear@0
|
1397 void OVR::GLEContext::glColor3iv_Hook(const GLint *v)
|
nuclear@0
|
1398 {
|
nuclear@0
|
1399 glColor3iv(v);
|
nuclear@0
|
1400 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1401 }
|
nuclear@0
|
1402
|
nuclear@0
|
1403 #undef glColor3s
|
nuclear@0
|
1404 extern "C" { GLAPI void GLAPIENTRY glColor3s(GLshort red, GLshort green, GLshort blue); }
|
nuclear@0
|
1405 void OVR::GLEContext::glColor3s_Hook(GLshort red, GLshort green, GLshort blue)
|
nuclear@0
|
1406 {
|
nuclear@0
|
1407 glColor3s(red, green, blue);
|
nuclear@0
|
1408 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1409 }
|
nuclear@0
|
1410
|
nuclear@0
|
1411 #undef glColor3sv
|
nuclear@0
|
1412 extern "C" { GLAPI void GLAPIENTRY glColor3sv(const GLshort *v); }
|
nuclear@0
|
1413 void OVR::GLEContext::glColor3sv_Hook(const GLshort *v)
|
nuclear@0
|
1414 {
|
nuclear@0
|
1415 glColor3sv(v);
|
nuclear@0
|
1416 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1417 }
|
nuclear@0
|
1418
|
nuclear@0
|
1419 #undef glColor3ub
|
nuclear@0
|
1420 extern "C" { GLAPI void GLAPIENTRY glColor3ub(GLubyte red, GLubyte green, GLubyte blue); }
|
nuclear@0
|
1421 void OVR::GLEContext::glColor3ub_Hook(GLubyte red, GLubyte green, GLubyte blue)
|
nuclear@0
|
1422 {
|
nuclear@0
|
1423 glColor3ub(red, green, blue);
|
nuclear@0
|
1424 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1425 }
|
nuclear@0
|
1426
|
nuclear@0
|
1427 #undef glColor3ubv
|
nuclear@0
|
1428 extern "C" { GLAPI void GLAPIENTRY glColor3ubv(const GLubyte *v); }
|
nuclear@0
|
1429 void OVR::GLEContext::glColor3ubv_Hook(const GLubyte *v)
|
nuclear@0
|
1430 {
|
nuclear@0
|
1431 glColor3ubv(v);
|
nuclear@0
|
1432 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1433 }
|
nuclear@0
|
1434
|
nuclear@0
|
1435 #undef glColor3ui
|
nuclear@0
|
1436 extern "C" { GLAPI void GLAPIENTRY glColor3ui(GLuint red, GLuint green, GLuint blue); }
|
nuclear@0
|
1437 void OVR::GLEContext::glColor3ui_Hook(GLuint red, GLuint green, GLuint blue)
|
nuclear@0
|
1438 {
|
nuclear@0
|
1439 glColor3ui(red, green, blue);
|
nuclear@0
|
1440 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1441 }
|
nuclear@0
|
1442
|
nuclear@0
|
1443 #undef glColor3uiv
|
nuclear@0
|
1444 extern "C" { GLAPI void GLAPIENTRY glColor3uiv(const GLuint *v); }
|
nuclear@0
|
1445 void OVR::GLEContext::glColor3uiv_Hook(const GLuint *v)
|
nuclear@0
|
1446 {
|
nuclear@0
|
1447 glColor3uiv(v);
|
nuclear@0
|
1448 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1449 }
|
nuclear@0
|
1450
|
nuclear@0
|
1451 #undef glColor3us
|
nuclear@0
|
1452 extern "C" { GLAPI void GLAPIENTRY glColor3us(GLushort red, GLushort green, GLushort blue); }
|
nuclear@0
|
1453 void OVR::GLEContext::glColor3us_Hook(GLushort red, GLushort green, GLushort blue)
|
nuclear@0
|
1454 {
|
nuclear@0
|
1455 glColor3us(red, green, blue);
|
nuclear@0
|
1456 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1457 }
|
nuclear@0
|
1458
|
nuclear@0
|
1459 #undef glColor3usv
|
nuclear@0
|
1460 extern "C" { GLAPI void GLAPIENTRY glColor3usv(const GLushort *v); }
|
nuclear@0
|
1461 void OVR::GLEContext::glColor3usv_Hook(const GLushort *v)
|
nuclear@0
|
1462 {
|
nuclear@0
|
1463 glColor3usv(v);
|
nuclear@0
|
1464 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1465 }
|
nuclear@0
|
1466
|
nuclear@0
|
1467 #undef glColor4b
|
nuclear@0
|
1468 extern "C" { GLAPI void GLAPIENTRY glColor4b(GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha); }
|
nuclear@0
|
1469 void OVR::GLEContext::glColor4b_Hook(GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha)
|
nuclear@0
|
1470 {
|
nuclear@0
|
1471 glColor4b(red, green, blue, alpha);
|
nuclear@0
|
1472 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1473 }
|
nuclear@0
|
1474
|
nuclear@0
|
1475 #undef glColor4bv
|
nuclear@0
|
1476 extern "C" { GLAPI void GLAPIENTRY glColor4bv(const GLbyte *v); }
|
nuclear@0
|
1477 void OVR::GLEContext::glColor4bv_Hook(const GLbyte *v)
|
nuclear@0
|
1478 {
|
nuclear@0
|
1479 glColor4bv(v);
|
nuclear@0
|
1480 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1481 }
|
nuclear@0
|
1482
|
nuclear@0
|
1483 #undef glColor4d
|
nuclear@0
|
1484 extern "C" { GLAPI void GLAPIENTRY glColor4d(GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha); }
|
nuclear@0
|
1485 void OVR::GLEContext::glColor4d_Hook(GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha)
|
nuclear@0
|
1486 {
|
nuclear@0
|
1487 glColor4d(red, green, blue, alpha);
|
nuclear@0
|
1488 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1489 }
|
nuclear@0
|
1490
|
nuclear@0
|
1491 #undef glColor4dv
|
nuclear@0
|
1492 extern "C" { GLAPI void GLAPIENTRY glColor4dv(const GLdouble *v); }
|
nuclear@0
|
1493 void OVR::GLEContext::glColor4dv_Hook(const GLdouble *v)
|
nuclear@0
|
1494 {
|
nuclear@0
|
1495 glColor4dv(v);
|
nuclear@0
|
1496 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1497 }
|
nuclear@0
|
1498
|
nuclear@0
|
1499 #undef glColor4f
|
nuclear@0
|
1500 extern "C" { GLAPI void GLAPIENTRY glColor4f(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); }
|
nuclear@0
|
1501 void OVR::GLEContext::glColor4f_Hook(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
|
nuclear@0
|
1502 {
|
nuclear@0
|
1503 glColor4f(red, green, blue, alpha);
|
nuclear@0
|
1504 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1505 }
|
nuclear@0
|
1506
|
nuclear@0
|
1507 #undef glColor4fv
|
nuclear@0
|
1508 extern "C" { GLAPI void GLAPIENTRY glColor4fv(const GLfloat *v); }
|
nuclear@0
|
1509 void OVR::GLEContext::glColor4fv_Hook(const GLfloat *v)
|
nuclear@0
|
1510 {
|
nuclear@0
|
1511 glColor4fv(v);
|
nuclear@0
|
1512 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1513 }
|
nuclear@0
|
1514
|
nuclear@0
|
1515 #undef glColor4i
|
nuclear@0
|
1516 extern "C" { GLAPI void GLAPIENTRY glColor4i(GLint red, GLint green, GLint blue, GLint alpha); }
|
nuclear@0
|
1517 void OVR::GLEContext::glColor4i_Hook(GLint red, GLint green, GLint blue, GLint alpha)
|
nuclear@0
|
1518 {
|
nuclear@0
|
1519 glColor4i(red, green, blue, alpha);
|
nuclear@0
|
1520 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1521 }
|
nuclear@0
|
1522
|
nuclear@0
|
1523 #undef glColor4iv
|
nuclear@0
|
1524 extern "C" { GLAPI void GLAPIENTRY glColor4iv(const GLint *v); }
|
nuclear@0
|
1525 void OVR::GLEContext::glColor4iv_Hook(const GLint *v)
|
nuclear@0
|
1526 {
|
nuclear@0
|
1527 glColor4iv(v);
|
nuclear@0
|
1528 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1529 }
|
nuclear@0
|
1530
|
nuclear@0
|
1531 #undef glColor4s
|
nuclear@0
|
1532 extern "C" { GLAPI void GLAPIENTRY glColor4s(GLshort red, GLshort green, GLshort blue, GLshort alpha); }
|
nuclear@0
|
1533 void OVR::GLEContext::glColor4s_Hook(GLshort red, GLshort green, GLshort blue, GLshort alpha)
|
nuclear@0
|
1534 {
|
nuclear@0
|
1535 glColor4s(red, green, blue, alpha);
|
nuclear@0
|
1536 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1537 }
|
nuclear@0
|
1538
|
nuclear@0
|
1539 #undef glColor4sv
|
nuclear@0
|
1540 extern "C" { GLAPI void GLAPIENTRY glColor4sv(const GLshort *v); }
|
nuclear@0
|
1541 void OVR::GLEContext::glColor4sv_Hook(const GLshort *v)
|
nuclear@0
|
1542 {
|
nuclear@0
|
1543 glColor4sv(v);
|
nuclear@0
|
1544 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1545 }
|
nuclear@0
|
1546
|
nuclear@0
|
1547 #undef glColor4ub
|
nuclear@0
|
1548 extern "C" { GLAPI void GLAPIENTRY glColor4ub(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha); }
|
nuclear@0
|
1549 void OVR::GLEContext::glColor4ub_Hook(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha)
|
nuclear@0
|
1550 {
|
nuclear@0
|
1551 glColor4ub(red, green, blue, alpha);
|
nuclear@0
|
1552 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1553 }
|
nuclear@0
|
1554
|
nuclear@0
|
1555 #undef glColor4ubv
|
nuclear@0
|
1556 extern "C" { GLAPI void GLAPIENTRY glColor4ubv(const GLubyte *v); }
|
nuclear@0
|
1557 void OVR::GLEContext::glColor4ubv_Hook(const GLubyte *v)
|
nuclear@0
|
1558 {
|
nuclear@0
|
1559 glColor4ubv(v);
|
nuclear@0
|
1560 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1561 }
|
nuclear@0
|
1562
|
nuclear@0
|
1563 #undef glColor4ui
|
nuclear@0
|
1564 extern "C" { GLAPI void GLAPIENTRY glColor4ui(GLuint red, GLuint green, GLuint blue, GLuint alpha); }
|
nuclear@0
|
1565 void OVR::GLEContext::glColor4ui_Hook(GLuint red, GLuint green, GLuint blue, GLuint alpha)
|
nuclear@0
|
1566 {
|
nuclear@0
|
1567 glColor4ui(red, green, blue, alpha);
|
nuclear@0
|
1568 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1569 }
|
nuclear@0
|
1570
|
nuclear@0
|
1571 #undef glColor4uiv
|
nuclear@0
|
1572 extern "C" { GLAPI void GLAPIENTRY glColor4uiv(const GLuint *v); }
|
nuclear@0
|
1573 void OVR::GLEContext::glColor4uiv_Hook(const GLuint *v)
|
nuclear@0
|
1574 {
|
nuclear@0
|
1575 glColor4uiv(v);
|
nuclear@0
|
1576 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1577 }
|
nuclear@0
|
1578
|
nuclear@0
|
1579 #undef glColor4us
|
nuclear@0
|
1580 extern "C" { GLAPI void GLAPIENTRY glColor4us(GLushort red, GLushort green, GLushort blue, GLushort alpha); }
|
nuclear@0
|
1581 void OVR::GLEContext::glColor4us_Hook(GLushort red, GLushort green, GLushort blue, GLushort alpha)
|
nuclear@0
|
1582 {
|
nuclear@0
|
1583 glColor4us(red, green, blue, alpha);
|
nuclear@0
|
1584 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1585 }
|
nuclear@0
|
1586
|
nuclear@0
|
1587 #undef glColor4usv
|
nuclear@0
|
1588 extern "C" { GLAPI void GLAPIENTRY glColor4usv(const GLushort *v); }
|
nuclear@0
|
1589 void OVR::GLEContext::glColor4usv_Hook(const GLushort *v)
|
nuclear@0
|
1590 {
|
nuclear@0
|
1591 glColor4usv(v);
|
nuclear@0
|
1592 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1593 }
|
nuclear@0
|
1594
|
nuclear@0
|
1595 #undef glColorMask
|
nuclear@0
|
1596 extern "C" { GLAPI void GLAPIENTRY glColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha); }
|
nuclear@0
|
1597 void OVR::GLEContext::glColorMask_Hook(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
|
nuclear@0
|
1598 {
|
nuclear@0
|
1599 glColorMask(red, green, blue, alpha);
|
nuclear@0
|
1600 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1601 }
|
nuclear@0
|
1602
|
nuclear@0
|
1603 #undef glColorMaterial
|
nuclear@0
|
1604 extern "C" { GLAPI void GLAPIENTRY glColorMaterial(GLenum face, GLenum mode); }
|
nuclear@0
|
1605 void OVR::GLEContext::glColorMaterial_Hook(GLenum face, GLenum mode)
|
nuclear@0
|
1606 {
|
nuclear@0
|
1607 glColorMaterial(face, mode);
|
nuclear@0
|
1608 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1609 }
|
nuclear@0
|
1610
|
nuclear@0
|
1611 #undef glColorPointer
|
nuclear@0
|
1612 extern "C" { GLAPI void GLAPIENTRY glColorPointer(GLint size, GLenum type, GLsizei stride, const void *pointer); }
|
nuclear@0
|
1613 void OVR::GLEContext::glColorPointer_Hook(GLint size, GLenum type, GLsizei stride, const void *pointer)
|
nuclear@0
|
1614 {
|
nuclear@0
|
1615 glColorPointer(size, type, stride, pointer);
|
nuclear@0
|
1616 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1617 }
|
nuclear@0
|
1618
|
nuclear@0
|
1619 #undef glCopyPixels
|
nuclear@0
|
1620 extern "C" { GLAPI void GLAPIENTRY glCopyPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum type); }
|
nuclear@0
|
1621 void OVR::GLEContext::glCopyPixels_Hook(GLint x, GLint y, GLsizei width, GLsizei height, GLenum type)
|
nuclear@0
|
1622 {
|
nuclear@0
|
1623 glCopyPixels(x, y, width, height, type);
|
nuclear@0
|
1624 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1625 }
|
nuclear@0
|
1626
|
nuclear@0
|
1627 #undef glCopyTexImage1D
|
nuclear@0
|
1628 extern "C" { GLAPI void GLAPIENTRY glCopyTexImage1D(GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLint border); }
|
nuclear@0
|
1629 void OVR::GLEContext::glCopyTexImage1D_Hook(GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLint border)
|
nuclear@0
|
1630 {
|
nuclear@0
|
1631 glCopyTexImage1D(target, level, internalFormat, x, y, width, border);
|
nuclear@0
|
1632 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1633 }
|
nuclear@0
|
1634
|
nuclear@0
|
1635 #undef glCopyTexImage2D
|
nuclear@0
|
1636 extern "C" { GLAPI void GLAPIENTRY glCopyTexImage2D(GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); }
|
nuclear@0
|
1637 void OVR::GLEContext::glCopyTexImage2D_Hook(GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border)
|
nuclear@0
|
1638 {
|
nuclear@0
|
1639 glCopyTexImage2D(target, level, internalFormat, x, y, width, height, border);
|
nuclear@0
|
1640 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1641 }
|
nuclear@0
|
1642
|
nuclear@0
|
1643 #undef glCopyTexSubImage1D
|
nuclear@0
|
1644 extern "C" { GLAPI void GLAPIENTRY glCopyTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width); }
|
nuclear@0
|
1645 void OVR::GLEContext::glCopyTexSubImage1D_Hook(GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width)
|
nuclear@0
|
1646 {
|
nuclear@0
|
1647 glCopyTexSubImage1D(target, level, xoffset, x, y, width);
|
nuclear@0
|
1648 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1649 }
|
nuclear@0
|
1650
|
nuclear@0
|
1651 #undef glCopyTexSubImage2D
|
nuclear@0
|
1652 extern "C" { GLAPI void GLAPIENTRY glCopyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); }
|
nuclear@0
|
1653 void OVR::GLEContext::glCopyTexSubImage2D_Hook(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height)
|
nuclear@0
|
1654 {
|
nuclear@0
|
1655 glCopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height);
|
nuclear@0
|
1656 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1657 }
|
nuclear@0
|
1658
|
nuclear@0
|
1659 #undef glCullFace
|
nuclear@0
|
1660 extern "C" { GLAPI void GLAPIENTRY glCullFace(GLenum mode); }
|
nuclear@0
|
1661 void OVR::GLEContext::glCullFace_Hook(GLenum mode)
|
nuclear@0
|
1662 {
|
nuclear@0
|
1663 glCullFace(mode);
|
nuclear@0
|
1664 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1665 }
|
nuclear@0
|
1666
|
nuclear@0
|
1667 #undef glDeleteLists
|
nuclear@0
|
1668 extern "C" { GLAPI void GLAPIENTRY glDeleteLists(GLuint list, GLsizei range); }
|
nuclear@0
|
1669 void OVR::GLEContext::glDeleteLists_Hook(GLuint list, GLsizei range)
|
nuclear@0
|
1670 {
|
nuclear@0
|
1671 glDeleteLists(list, range);
|
nuclear@0
|
1672 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1673 }
|
nuclear@0
|
1674
|
nuclear@0
|
1675 #undef glDeleteTextures
|
nuclear@0
|
1676 extern "C" { GLAPI void GLAPIENTRY glDeleteTextures(GLsizei n, const GLuint *textures); }
|
nuclear@0
|
1677 void OVR::GLEContext::glDeleteTextures_Hook(GLsizei n, const GLuint *textures)
|
nuclear@0
|
1678 {
|
nuclear@0
|
1679 glDeleteTextures(n, textures);
|
nuclear@0
|
1680 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1681 }
|
nuclear@0
|
1682
|
nuclear@0
|
1683 #undef glDepthFunc
|
nuclear@0
|
1684 extern "C" { GLAPI void GLAPIENTRY glDepthFunc(GLenum func); }
|
nuclear@0
|
1685 void OVR::GLEContext::glDepthFunc_Hook(GLenum func)
|
nuclear@0
|
1686 {
|
nuclear@0
|
1687 glDepthFunc(func);
|
nuclear@0
|
1688 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1689 }
|
nuclear@0
|
1690
|
nuclear@0
|
1691 #undef glDepthMask
|
nuclear@0
|
1692 extern "C" { GLAPI void GLAPIENTRY glDepthMask(GLboolean flag); }
|
nuclear@0
|
1693 void OVR::GLEContext::glDepthMask_Hook(GLboolean flag)
|
nuclear@0
|
1694 {
|
nuclear@0
|
1695 glDepthMask(flag);
|
nuclear@0
|
1696 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1697 }
|
nuclear@0
|
1698
|
nuclear@0
|
1699 #undef glDepthRange
|
nuclear@0
|
1700 extern "C" { GLAPI void GLAPIENTRY glDepthRange(GLclampd zNear, GLclampd zFar); }
|
nuclear@0
|
1701 void OVR::GLEContext::glDepthRange_Hook(GLclampd zNear, GLclampd zFar)
|
nuclear@0
|
1702 {
|
nuclear@0
|
1703 glDepthRange(zNear, zFar);
|
nuclear@0
|
1704 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1705 }
|
nuclear@0
|
1706
|
nuclear@0
|
1707 #undef glDisable
|
nuclear@0
|
1708 extern "C" { GLAPI void GLAPIENTRY glDisable(GLenum cap); }
|
nuclear@0
|
1709 void OVR::GLEContext::glDisable_Hook(GLenum cap)
|
nuclear@0
|
1710 {
|
nuclear@0
|
1711 glDisable(cap);
|
nuclear@0
|
1712 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1713 }
|
nuclear@0
|
1714
|
nuclear@0
|
1715 #undef glDisableClientState
|
nuclear@0
|
1716 extern "C" { GLAPI void GLAPIENTRY glDisableClientState(GLenum array); }
|
nuclear@0
|
1717 void OVR::GLEContext::glDisableClientState_Hook(GLenum array)
|
nuclear@0
|
1718 {
|
nuclear@0
|
1719 glDisableClientState(array);
|
nuclear@0
|
1720 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1721 }
|
nuclear@0
|
1722
|
nuclear@0
|
1723 #undef glDrawArrays
|
nuclear@0
|
1724 extern "C" { GLAPI void GLAPIENTRY glDrawArrays(GLenum mode, GLint first, GLsizei count); }
|
nuclear@0
|
1725 void OVR::GLEContext::glDrawArrays_Hook(GLenum mode, GLint first, GLsizei count)
|
nuclear@0
|
1726 {
|
nuclear@0
|
1727 glDrawArrays(mode, first, count);
|
nuclear@0
|
1728 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1729 }
|
nuclear@0
|
1730
|
nuclear@0
|
1731 #undef glDrawBuffer
|
nuclear@0
|
1732 extern "C" { GLAPI void GLAPIENTRY glDrawBuffer(GLenum mode); }
|
nuclear@0
|
1733 void OVR::GLEContext::glDrawBuffer_Hook(GLenum mode)
|
nuclear@0
|
1734 {
|
nuclear@0
|
1735 glDrawBuffer(mode);
|
nuclear@0
|
1736 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1737 }
|
nuclear@0
|
1738
|
nuclear@0
|
1739 #undef glDrawElements
|
nuclear@0
|
1740 extern "C" { GLAPI void GLAPIENTRY glDrawElements(GLenum mode, GLsizei count, GLenum type, const void *indices); }
|
nuclear@0
|
1741 void OVR::GLEContext::glDrawElements_Hook(GLenum mode, GLsizei count, GLenum type, const void *indices)
|
nuclear@0
|
1742 {
|
nuclear@0
|
1743 glDrawElements(mode, count, type, indices);
|
nuclear@0
|
1744 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1745 }
|
nuclear@0
|
1746
|
nuclear@0
|
1747 #undef glDrawPixels
|
nuclear@0
|
1748 extern "C" { GLAPI void GLAPIENTRY glDrawPixels(GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels); }
|
nuclear@0
|
1749 void OVR::GLEContext::glDrawPixels_Hook(GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels)
|
nuclear@0
|
1750 {
|
nuclear@0
|
1751 glDrawPixels(width, height, format, type, pixels);
|
nuclear@0
|
1752 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1753 }
|
nuclear@0
|
1754
|
nuclear@0
|
1755 #undef glEdgeFlag
|
nuclear@0
|
1756 extern "C" { GLAPI void GLAPIENTRY glEdgeFlag(GLboolean flag); }
|
nuclear@0
|
1757 void OVR::GLEContext::glEdgeFlag_Hook(GLboolean flag)
|
nuclear@0
|
1758 {
|
nuclear@0
|
1759 glEdgeFlag(flag);
|
nuclear@0
|
1760 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1761 }
|
nuclear@0
|
1762
|
nuclear@0
|
1763 #undef glEdgeFlagPointer
|
nuclear@0
|
1764 extern "C" { GLAPI void GLAPIENTRY glEdgeFlagPointer(GLsizei stride, const void *pointer); }
|
nuclear@0
|
1765 void OVR::GLEContext::glEdgeFlagPointer_Hook(GLsizei stride, const void *pointer)
|
nuclear@0
|
1766 {
|
nuclear@0
|
1767 glEdgeFlagPointer(stride, pointer);
|
nuclear@0
|
1768 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1769 }
|
nuclear@0
|
1770
|
nuclear@0
|
1771 #undef glEdgeFlagv
|
nuclear@0
|
1772 extern "C" { GLAPI void GLAPIENTRY glEdgeFlagv(const GLboolean *flag); }
|
nuclear@0
|
1773 void OVR::GLEContext::glEdgeFlagv_Hook(const GLboolean *flag)
|
nuclear@0
|
1774 {
|
nuclear@0
|
1775 glEdgeFlagv(flag);
|
nuclear@0
|
1776 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1777 }
|
nuclear@0
|
1778
|
nuclear@0
|
1779 #undef glEnable
|
nuclear@0
|
1780 extern "C" { GLAPI void GLAPIENTRY glEnable(GLenum cap); }
|
nuclear@0
|
1781 namespace OVR {
|
nuclear@0
|
1782 void GLEContext::glEnable_Hook(GLenum cap)
|
nuclear@0
|
1783 {
|
nuclear@0
|
1784 glEnable(cap);
|
nuclear@0
|
1785 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1786 }
|
nuclear@0
|
1787 }
|
nuclear@0
|
1788
|
nuclear@0
|
1789 #undef glEnableClientState
|
nuclear@0
|
1790 extern "C" { GLAPI void GLAPIENTRY glEnableClientState(GLenum array); }
|
nuclear@0
|
1791 void OVR::GLEContext::glEnableClientState_Hook(GLenum array)
|
nuclear@0
|
1792 {
|
nuclear@0
|
1793 glEnableClientState(array);
|
nuclear@0
|
1794 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1795 }
|
nuclear@0
|
1796
|
nuclear@0
|
1797 #undef glEnd
|
nuclear@0
|
1798 extern "C" { GLAPI void GLAPIENTRY glEnd(); }
|
nuclear@0
|
1799 void OVR::GLEContext::glEnd_Hook()
|
nuclear@0
|
1800 {
|
nuclear@0
|
1801 glEnd();
|
nuclear@0
|
1802 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1803 }
|
nuclear@0
|
1804
|
nuclear@0
|
1805 #undef glEndList
|
nuclear@0
|
1806 extern "C" { GLAPI void GLAPIENTRY glEndList(); }
|
nuclear@0
|
1807 void OVR::GLEContext::glEndList_Hook()
|
nuclear@0
|
1808 {
|
nuclear@0
|
1809 glEndList();
|
nuclear@0
|
1810 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1811 }
|
nuclear@0
|
1812
|
nuclear@0
|
1813 #undef glEvalCoord1d
|
nuclear@0
|
1814 extern "C" { GLAPI void GLAPIENTRY glEvalCoord1d(GLdouble u); }
|
nuclear@0
|
1815 void OVR::GLEContext::glEvalCoord1d_Hook(GLdouble u)
|
nuclear@0
|
1816 {
|
nuclear@0
|
1817 glEvalCoord1d(u);
|
nuclear@0
|
1818 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1819 }
|
nuclear@0
|
1820
|
nuclear@0
|
1821 #undef glEvalCoord1dv
|
nuclear@0
|
1822 extern "C" { GLAPI void GLAPIENTRY glEvalCoord1dv(const GLdouble *u); }
|
nuclear@0
|
1823 void OVR::GLEContext::glEvalCoord1dv_Hook(const GLdouble *u)
|
nuclear@0
|
1824 {
|
nuclear@0
|
1825 glEvalCoord1dv(u);
|
nuclear@0
|
1826 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1827 }
|
nuclear@0
|
1828
|
nuclear@0
|
1829 #undef glEvalCoord1f
|
nuclear@0
|
1830 extern "C" { GLAPI void GLAPIENTRY glEvalCoord1f(GLfloat u); }
|
nuclear@0
|
1831 void OVR::GLEContext::glEvalCoord1f_Hook(GLfloat u)
|
nuclear@0
|
1832 {
|
nuclear@0
|
1833 glEvalCoord1f(u);
|
nuclear@0
|
1834 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1835 }
|
nuclear@0
|
1836
|
nuclear@0
|
1837 #undef glEvalCoord1fv
|
nuclear@0
|
1838 extern "C" { GLAPI void GLAPIENTRY glEvalCoord1fv(const GLfloat *u); }
|
nuclear@0
|
1839 void OVR::GLEContext::glEvalCoord1fv_Hook(const GLfloat *u)
|
nuclear@0
|
1840 {
|
nuclear@0
|
1841 glEvalCoord1fv(u);
|
nuclear@0
|
1842 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1843 }
|
nuclear@0
|
1844
|
nuclear@0
|
1845 #undef glEvalCoord2d
|
nuclear@0
|
1846 extern "C" { GLAPI void GLAPIENTRY glEvalCoord2d(GLdouble u, GLdouble v); }
|
nuclear@0
|
1847 void OVR::GLEContext::glEvalCoord2d_Hook(GLdouble u, GLdouble v)
|
nuclear@0
|
1848 {
|
nuclear@0
|
1849 glEvalCoord2d(u, v);
|
nuclear@0
|
1850 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1851 }
|
nuclear@0
|
1852
|
nuclear@0
|
1853 #undef glEvalCoord2dv
|
nuclear@0
|
1854 extern "C" { GLAPI void GLAPIENTRY glEvalCoord2dv(const GLdouble *u); }
|
nuclear@0
|
1855 void OVR::GLEContext::glEvalCoord2dv_Hook(const GLdouble *u)
|
nuclear@0
|
1856 {
|
nuclear@0
|
1857 glEvalCoord2dv(u);
|
nuclear@0
|
1858 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1859 }
|
nuclear@0
|
1860
|
nuclear@0
|
1861 #undef glEvalCoord2f
|
nuclear@0
|
1862 extern "C" { GLAPI void GLAPIENTRY glEvalCoord2f(GLfloat u, GLfloat v); }
|
nuclear@0
|
1863 void OVR::GLEContext::glEvalCoord2f_Hook(GLfloat u, GLfloat v)
|
nuclear@0
|
1864 {
|
nuclear@0
|
1865 glEvalCoord2f(u, v);
|
nuclear@0
|
1866 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1867 }
|
nuclear@0
|
1868
|
nuclear@0
|
1869 #undef glEvalCoord2fv
|
nuclear@0
|
1870 extern "C" { GLAPI void GLAPIENTRY glEvalCoord2fv(const GLfloat *u); }
|
nuclear@0
|
1871 void OVR::GLEContext::glEvalCoord2fv_Hook(const GLfloat *u)
|
nuclear@0
|
1872 {
|
nuclear@0
|
1873 glEvalCoord2fv(u);
|
nuclear@0
|
1874 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1875 }
|
nuclear@0
|
1876
|
nuclear@0
|
1877 #undef glEvalMesh1
|
nuclear@0
|
1878 extern "C" { GLAPI void GLAPIENTRY glEvalMesh1(GLenum mode, GLint i1, GLint i2); }
|
nuclear@0
|
1879 void OVR::GLEContext::glEvalMesh1_Hook(GLenum mode, GLint i1, GLint i2)
|
nuclear@0
|
1880 {
|
nuclear@0
|
1881 glEvalMesh1(mode, i1, i2);
|
nuclear@0
|
1882 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1883 }
|
nuclear@0
|
1884
|
nuclear@0
|
1885 #undef glEvalMesh2
|
nuclear@0
|
1886 extern "C" { GLAPI void GLAPIENTRY glEvalMesh2(GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2); }
|
nuclear@0
|
1887 void OVR::GLEContext::glEvalMesh2_Hook(GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2)
|
nuclear@0
|
1888 {
|
nuclear@0
|
1889 glEvalMesh2(mode, i1, i2, j1, j2);
|
nuclear@0
|
1890 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1891 }
|
nuclear@0
|
1892
|
nuclear@0
|
1893 #undef glEvalPoint1
|
nuclear@0
|
1894 extern "C" { GLAPI void GLAPIENTRY glEvalPoint1(GLint i); }
|
nuclear@0
|
1895 void OVR::GLEContext::glEvalPoint1_Hook(GLint i)
|
nuclear@0
|
1896 {
|
nuclear@0
|
1897 glEvalPoint1(i);
|
nuclear@0
|
1898 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1899 }
|
nuclear@0
|
1900
|
nuclear@0
|
1901 #undef glEvalPoint2
|
nuclear@0
|
1902 extern "C" { GLAPI void GLAPIENTRY glEvalPoint2(GLint i, GLint j); }
|
nuclear@0
|
1903 void OVR::GLEContext::glEvalPoint2_Hook(GLint i, GLint j)
|
nuclear@0
|
1904 {
|
nuclear@0
|
1905 glEvalPoint2(i, j);
|
nuclear@0
|
1906 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1907 }
|
nuclear@0
|
1908
|
nuclear@0
|
1909 #undef glFeedbackBuffer
|
nuclear@0
|
1910 extern "C" { GLAPI void GLAPIENTRY glFeedbackBuffer(GLsizei size, GLenum type, GLfloat *buffer); }
|
nuclear@0
|
1911 void OVR::GLEContext::glFeedbackBuffer_Hook(GLsizei size, GLenum type, GLfloat *buffer)
|
nuclear@0
|
1912 {
|
nuclear@0
|
1913 glFeedbackBuffer(size, type, buffer);
|
nuclear@0
|
1914 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1915 }
|
nuclear@0
|
1916
|
nuclear@0
|
1917 #undef glFinish
|
nuclear@0
|
1918 extern "C" { GLAPI void GLAPIENTRY glFinish(); }
|
nuclear@0
|
1919 void OVR::GLEContext::glFinish_Hook()
|
nuclear@0
|
1920 {
|
nuclear@0
|
1921 glFinish();
|
nuclear@0
|
1922 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1923 }
|
nuclear@0
|
1924
|
nuclear@0
|
1925 #undef glFlush
|
nuclear@0
|
1926 extern "C" { GLAPI void GLAPIENTRY glFlush(); }
|
nuclear@0
|
1927 void OVR::GLEContext::glFlush_Hook()
|
nuclear@0
|
1928 {
|
nuclear@0
|
1929 glFlush();
|
nuclear@0
|
1930 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1931 }
|
nuclear@0
|
1932
|
nuclear@0
|
1933 #undef glFogf
|
nuclear@0
|
1934 extern "C" { GLAPI void GLAPIENTRY glFogf(GLenum pname, GLfloat param); }
|
nuclear@0
|
1935 void OVR::GLEContext::glFogf_Hook(GLenum pname, GLfloat param)
|
nuclear@0
|
1936 {
|
nuclear@0
|
1937 glFogf(pname, param);
|
nuclear@0
|
1938 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1939 }
|
nuclear@0
|
1940
|
nuclear@0
|
1941 #undef glFogfv
|
nuclear@0
|
1942 extern "C" { GLAPI void GLAPIENTRY glFogfv(GLenum pname, const GLfloat *params); }
|
nuclear@0
|
1943 void OVR::GLEContext::glFogfv_Hook(GLenum pname, const GLfloat *params)
|
nuclear@0
|
1944 {
|
nuclear@0
|
1945 glFogfv(pname, params);
|
nuclear@0
|
1946 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1947 }
|
nuclear@0
|
1948
|
nuclear@0
|
1949 #undef glFogi
|
nuclear@0
|
1950 extern "C" { GLAPI void GLAPIENTRY glFogi(GLenum pname, GLint param); }
|
nuclear@0
|
1951 void OVR::GLEContext::glFogi_Hook(GLenum pname, GLint param)
|
nuclear@0
|
1952 {
|
nuclear@0
|
1953 glFogi(pname, param);
|
nuclear@0
|
1954 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1955 }
|
nuclear@0
|
1956
|
nuclear@0
|
1957 #undef glFogiv
|
nuclear@0
|
1958 extern "C" { GLAPI void GLAPIENTRY glFogiv(GLenum pname, const GLint *params); }
|
nuclear@0
|
1959 void OVR::GLEContext::glFogiv_Hook(GLenum pname, const GLint *params)
|
nuclear@0
|
1960 {
|
nuclear@0
|
1961 glFogiv(pname, params);
|
nuclear@0
|
1962 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1963 }
|
nuclear@0
|
1964
|
nuclear@0
|
1965 #undef glFrontFace
|
nuclear@0
|
1966 extern "C" { GLAPI void GLAPIENTRY glFrontFace(GLenum mode); }
|
nuclear@0
|
1967 void OVR::GLEContext::glFrontFace_Hook(GLenum mode)
|
nuclear@0
|
1968 {
|
nuclear@0
|
1969 glFrontFace(mode);
|
nuclear@0
|
1970 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1971 }
|
nuclear@0
|
1972
|
nuclear@0
|
1973 #undef glFrustum
|
nuclear@0
|
1974 extern "C" { GLAPI void GLAPIENTRY glFrustum(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar); }
|
nuclear@0
|
1975 void OVR::GLEContext::glFrustum_Hook(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar)
|
nuclear@0
|
1976 {
|
nuclear@0
|
1977 glFrustum(left, right, bottom, top, zNear, zFar);
|
nuclear@0
|
1978 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1979 }
|
nuclear@0
|
1980
|
nuclear@0
|
1981 #undef glGenLists
|
nuclear@0
|
1982 extern "C" { GLAPI GLuint GLAPIENTRY glGenLists(GLsizei range); }
|
nuclear@0
|
1983 GLuint OVR::GLEContext::glGenLists_Hook(GLsizei range)
|
nuclear@0
|
1984 {
|
nuclear@0
|
1985 GLuint u = glGenLists(range);
|
nuclear@0
|
1986 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1987 return u;
|
nuclear@0
|
1988 }
|
nuclear@0
|
1989
|
nuclear@0
|
1990 #undef glGenTextures
|
nuclear@0
|
1991 extern "C" { GLAPI void GLAPIENTRY glGenTextures(GLsizei n, GLuint *textures); }
|
nuclear@0
|
1992 void OVR::GLEContext::glGenTextures_Hook(GLsizei n, GLuint *textures)
|
nuclear@0
|
1993 {
|
nuclear@0
|
1994 glGenTextures(n, textures);
|
nuclear@0
|
1995 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
1996 }
|
nuclear@0
|
1997
|
nuclear@0
|
1998 #undef glGetBooleanv
|
nuclear@0
|
1999 extern "C" { GLAPI void GLAPIENTRY glGetBooleanv(GLenum pname, GLboolean *params); }
|
nuclear@0
|
2000 void OVR::GLEContext::glGetBooleanv_Hook(GLenum pname, GLboolean *params)
|
nuclear@0
|
2001 {
|
nuclear@0
|
2002 glGetBooleanv(pname, params);
|
nuclear@0
|
2003 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2004 }
|
nuclear@0
|
2005
|
nuclear@0
|
2006 #undef glGetClipPlane
|
nuclear@0
|
2007 extern "C" { GLAPI void GLAPIENTRY glGetClipPlane(GLenum plane, GLdouble *equation); }
|
nuclear@0
|
2008 void OVR::GLEContext::glGetClipPlane_Hook(GLenum plane, GLdouble *equation)
|
nuclear@0
|
2009 {
|
nuclear@0
|
2010 glGetClipPlane(plane, equation);
|
nuclear@0
|
2011 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2012 }
|
nuclear@0
|
2013
|
nuclear@0
|
2014 #undef glGetDoublev
|
nuclear@0
|
2015 extern "C" { GLAPI void GLAPIENTRY glGetDoublev(GLenum pname, GLdouble *params); }
|
nuclear@0
|
2016 void OVR::GLEContext::glGetDoublev_Hook(GLenum pname, GLdouble *params)
|
nuclear@0
|
2017 {
|
nuclear@0
|
2018 glGetDoublev(pname, params);
|
nuclear@0
|
2019 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2020 }
|
nuclear@0
|
2021
|
nuclear@0
|
2022 //#undef glGetError Not needed because we happen to do this above already.
|
nuclear@0
|
2023 //extern "C" { GLAPI GLenum GLAPIENTRY glGetError(); }
|
nuclear@0
|
2024 GLenum OVR::GLEContext::glGetError_Hook()
|
nuclear@0
|
2025 {
|
nuclear@0
|
2026 GLenum e = glGetError();
|
nuclear@0
|
2027 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2028 return e;
|
nuclear@0
|
2029 }
|
nuclear@0
|
2030
|
nuclear@0
|
2031 #undef glGetFloatv
|
nuclear@0
|
2032 extern "C" { GLAPI void GLAPIENTRY glGetFloatv(GLenum pname, GLfloat *params); }
|
nuclear@0
|
2033 void OVR::GLEContext::glGetFloatv_Hook(GLenum pname, GLfloat *params)
|
nuclear@0
|
2034 {
|
nuclear@0
|
2035 glGetFloatv(pname, params);
|
nuclear@0
|
2036 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2037 }
|
nuclear@0
|
2038
|
nuclear@0
|
2039 #undef glGetIntegerv
|
nuclear@0
|
2040 extern "C" { GLAPI void GLAPIENTRY glGetIntegerv(GLenum pname, GLint *params); }
|
nuclear@0
|
2041 void OVR::GLEContext::glGetIntegerv_Hook(GLenum pname, GLint *params)
|
nuclear@0
|
2042 {
|
nuclear@0
|
2043 glGetIntegerv(pname, params);
|
nuclear@0
|
2044 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2045 }
|
nuclear@0
|
2046
|
nuclear@0
|
2047 #undef glGetLightfv
|
nuclear@0
|
2048 extern "C" { GLAPI void GLAPIENTRY glGetLightfv(GLenum light, GLenum pname, GLfloat *params); }
|
nuclear@0
|
2049 void OVR::GLEContext::glGetLightfv_Hook(GLenum light, GLenum pname, GLfloat *params)
|
nuclear@0
|
2050 {
|
nuclear@0
|
2051 glGetLightfv(light, pname, params);
|
nuclear@0
|
2052 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2053 }
|
nuclear@0
|
2054
|
nuclear@0
|
2055 #undef glGetLightiv
|
nuclear@0
|
2056 extern "C" { GLAPI void GLAPIENTRY glGetLightiv(GLenum light, GLenum pname, GLint *params); }
|
nuclear@0
|
2057 void OVR::GLEContext::glGetLightiv_Hook(GLenum light, GLenum pname, GLint *params)
|
nuclear@0
|
2058 {
|
nuclear@0
|
2059 glGetLightiv(light, pname, params);
|
nuclear@0
|
2060 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2061 }
|
nuclear@0
|
2062
|
nuclear@0
|
2063 #undef glGetMapdv
|
nuclear@0
|
2064 extern "C" { GLAPI void GLAPIENTRY glGetMapdv(GLenum target, GLenum query, GLdouble *v); }
|
nuclear@0
|
2065 void OVR::GLEContext::glGetMapdv_Hook(GLenum target, GLenum query, GLdouble *v)
|
nuclear@0
|
2066 {
|
nuclear@0
|
2067 glGetMapdv(target, query, v);
|
nuclear@0
|
2068 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2069 }
|
nuclear@0
|
2070
|
nuclear@0
|
2071 #undef glGetMapfv
|
nuclear@0
|
2072 extern "C" { GLAPI void GLAPIENTRY glGetMapfv(GLenum target, GLenum query, GLfloat *v); }
|
nuclear@0
|
2073 void OVR::GLEContext::glGetMapfv_Hook(GLenum target, GLenum query, GLfloat *v)
|
nuclear@0
|
2074 {
|
nuclear@0
|
2075 glGetMapfv(target, query, v);
|
nuclear@0
|
2076 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2077 }
|
nuclear@0
|
2078
|
nuclear@0
|
2079 #undef glGetMapiv
|
nuclear@0
|
2080 extern "C" { GLAPI void GLAPIENTRY glGetMapiv(GLenum target, GLenum query, GLint *v); }
|
nuclear@0
|
2081 void OVR::GLEContext::glGetMapiv_Hook(GLenum target, GLenum query, GLint *v)
|
nuclear@0
|
2082 {
|
nuclear@0
|
2083 glGetMapiv(target, query, v);
|
nuclear@0
|
2084 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2085 }
|
nuclear@0
|
2086
|
nuclear@0
|
2087 #undef glGetMaterialfv
|
nuclear@0
|
2088 extern "C" { GLAPI void GLAPIENTRY glGetMaterialfv(GLenum face, GLenum pname, GLfloat *params); }
|
nuclear@0
|
2089 void OVR::GLEContext::glGetMaterialfv_Hook(GLenum face, GLenum pname, GLfloat *params)
|
nuclear@0
|
2090 {
|
nuclear@0
|
2091 glGetMaterialfv(face, pname, params);
|
nuclear@0
|
2092 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2093 }
|
nuclear@0
|
2094
|
nuclear@0
|
2095 #undef glGetMaterialiv
|
nuclear@0
|
2096 extern "C" { GLAPI void GLAPIENTRY glGetMaterialiv(GLenum face, GLenum pname, GLint *params); }
|
nuclear@0
|
2097 void OVR::GLEContext::glGetMaterialiv_Hook(GLenum face, GLenum pname, GLint *params)
|
nuclear@0
|
2098 {
|
nuclear@0
|
2099 glGetMaterialiv(face, pname, params);
|
nuclear@0
|
2100 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2101 }
|
nuclear@0
|
2102
|
nuclear@0
|
2103 #undef glGetPixelMapfv
|
nuclear@0
|
2104 extern "C" { GLAPI void GLAPIENTRY glGetPixelMapfv(GLenum map, GLfloat *values); }
|
nuclear@0
|
2105 void OVR::GLEContext::glGetPixelMapfv_Hook(GLenum map, GLfloat *values)
|
nuclear@0
|
2106 {
|
nuclear@0
|
2107 glGetPixelMapfv(map, values);
|
nuclear@0
|
2108 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2109 }
|
nuclear@0
|
2110
|
nuclear@0
|
2111 #undef glGetPixelMapuiv
|
nuclear@0
|
2112 extern "C" { GLAPI void GLAPIENTRY glGetPixelMapuiv(GLenum map, GLuint *values); }
|
nuclear@0
|
2113 void OVR::GLEContext::glGetPixelMapuiv_Hook(GLenum map, GLuint *values)
|
nuclear@0
|
2114 {
|
nuclear@0
|
2115 glGetPixelMapuiv(map, values);
|
nuclear@0
|
2116 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2117 }
|
nuclear@0
|
2118
|
nuclear@0
|
2119 #undef glGetPixelMapusv
|
nuclear@0
|
2120 extern "C" { GLAPI void GLAPIENTRY glGetPixelMapusv(GLenum map, GLushort *values); }
|
nuclear@0
|
2121 void OVR::GLEContext::glGetPixelMapusv_Hook(GLenum map, GLushort *values)
|
nuclear@0
|
2122 {
|
nuclear@0
|
2123 glGetPixelMapusv(map, values);
|
nuclear@0
|
2124 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2125 }
|
nuclear@0
|
2126
|
nuclear@0
|
2127 #undef glGetPointerv
|
nuclear@0
|
2128 extern "C" { GLAPI void GLAPIENTRY glGetPointerv(GLenum pname, void* *params); }
|
nuclear@0
|
2129 void OVR::GLEContext::glGetPointerv_Hook(GLenum pname, void* *params)
|
nuclear@0
|
2130 {
|
nuclear@0
|
2131 glGetPointerv(pname, params);
|
nuclear@0
|
2132 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2133 }
|
nuclear@0
|
2134
|
nuclear@0
|
2135 #undef glGetPolygonStipple
|
nuclear@0
|
2136 extern "C" { GLAPI void GLAPIENTRY glGetPolygonStipple(GLubyte *mask); }
|
nuclear@0
|
2137 void OVR::GLEContext::glGetPolygonStipple_Hook(GLubyte *mask)
|
nuclear@0
|
2138 {
|
nuclear@0
|
2139 glGetPolygonStipple(mask);
|
nuclear@0
|
2140 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2141 }
|
nuclear@0
|
2142
|
nuclear@0
|
2143 // #undef glGetString // This was already disabled above.
|
nuclear@0
|
2144 // extern "C" { GLAPI const GLubyte * GLAPIENTRY glGetString(GLenum name); }
|
nuclear@0
|
2145 const GLubyte * OVR::GLEContext::glGetString_Hook(GLenum name)
|
nuclear@0
|
2146 {
|
nuclear@0
|
2147 const GLubyte * p = glGetString(name);
|
nuclear@0
|
2148 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2149 return p;
|
nuclear@0
|
2150 }
|
nuclear@0
|
2151
|
nuclear@0
|
2152 #undef glGetTexEnvfv
|
nuclear@0
|
2153 extern "C" { GLAPI void GLAPIENTRY glGetTexEnvfv(GLenum target, GLenum pname, GLfloat *params); }
|
nuclear@0
|
2154 void OVR::GLEContext::glGetTexEnvfv_Hook(GLenum target, GLenum pname, GLfloat *params)
|
nuclear@0
|
2155 {
|
nuclear@0
|
2156 glGetTexEnvfv(target, pname, params);
|
nuclear@0
|
2157 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2158 }
|
nuclear@0
|
2159
|
nuclear@0
|
2160 #undef glGetTexEnviv
|
nuclear@0
|
2161 extern "C" { GLAPI void GLAPIENTRY glGetTexEnviv(GLenum target, GLenum pname, GLint *params); }
|
nuclear@0
|
2162 void OVR::GLEContext::glGetTexEnviv_Hook(GLenum target, GLenum pname, GLint *params)
|
nuclear@0
|
2163 {
|
nuclear@0
|
2164 glGetTexEnviv(target, pname, params);
|
nuclear@0
|
2165 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2166 }
|
nuclear@0
|
2167
|
nuclear@0
|
2168 #undef glGetTexGendv
|
nuclear@0
|
2169 extern "C" { GLAPI void GLAPIENTRY glGetTexGendv(GLenum coord, GLenum pname, GLdouble *params); }
|
nuclear@0
|
2170 void OVR::GLEContext::glGetTexGendv_Hook(GLenum coord, GLenum pname, GLdouble *params)
|
nuclear@0
|
2171 {
|
nuclear@0
|
2172 glGetTexGendv(coord, pname, params);
|
nuclear@0
|
2173 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2174 }
|
nuclear@0
|
2175
|
nuclear@0
|
2176 #undef glGetTexGenfv
|
nuclear@0
|
2177 extern "C" { GLAPI void GLAPIENTRY glGetTexGenfv(GLenum coord, GLenum pname, GLfloat *params); }
|
nuclear@0
|
2178 void OVR::GLEContext::glGetTexGenfv_Hook(GLenum coord, GLenum pname, GLfloat *params)
|
nuclear@0
|
2179 {
|
nuclear@0
|
2180 glGetTexGenfv(coord, pname, params);
|
nuclear@0
|
2181 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2182 }
|
nuclear@0
|
2183
|
nuclear@0
|
2184 #undef glGetTexGeniv
|
nuclear@0
|
2185 extern "C" { GLAPI void GLAPIENTRY glGetTexGeniv(GLenum coord, GLenum pname, GLint *params); }
|
nuclear@0
|
2186 void OVR::GLEContext::glGetTexGeniv_Hook(GLenum coord, GLenum pname, GLint *params)
|
nuclear@0
|
2187 {
|
nuclear@0
|
2188 glGetTexGeniv(coord, pname, params);
|
nuclear@0
|
2189 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2190 }
|
nuclear@0
|
2191
|
nuclear@0
|
2192 #undef glGetTexImage
|
nuclear@0
|
2193 extern "C" { GLAPI void GLAPIENTRY glGetTexImage(GLenum target, GLint level, GLenum format, GLenum type, void *pixels); }
|
nuclear@0
|
2194 void OVR::GLEContext::glGetTexImage_Hook(GLenum target, GLint level, GLenum format, GLenum type, void *pixels)
|
nuclear@0
|
2195 {
|
nuclear@0
|
2196 glGetTexImage(target, level, format, type, pixels);
|
nuclear@0
|
2197 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2198 }
|
nuclear@0
|
2199
|
nuclear@0
|
2200 #undef glGetTexLevelParameterfv
|
nuclear@0
|
2201 extern "C" { GLAPI void GLAPIENTRY glGetTexLevelParameterfv(GLenum target, GLint level, GLenum pname, GLfloat *params); }
|
nuclear@0
|
2202 void OVR::GLEContext::glGetTexLevelParameterfv_Hook(GLenum target, GLint level, GLenum pname, GLfloat *params)
|
nuclear@0
|
2203 {
|
nuclear@0
|
2204 glGetTexLevelParameterfv(target, level, pname, params);
|
nuclear@0
|
2205 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2206 }
|
nuclear@0
|
2207
|
nuclear@0
|
2208 #undef glGetTexLevelParameteriv
|
nuclear@0
|
2209 extern "C" { GLAPI void GLAPIENTRY glGetTexLevelParameteriv(GLenum target, GLint level, GLenum pname, GLint *params); }
|
nuclear@0
|
2210 void OVR::GLEContext::glGetTexLevelParameteriv_Hook(GLenum target, GLint level, GLenum pname, GLint *params)
|
nuclear@0
|
2211 {
|
nuclear@0
|
2212 glGetTexLevelParameteriv(target, level, pname, params);
|
nuclear@0
|
2213 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2214 }
|
nuclear@0
|
2215
|
nuclear@0
|
2216 #undef glGetTexParameterfv
|
nuclear@0
|
2217 extern "C" { GLAPI void GLAPIENTRY glGetTexParameterfv(GLenum target, GLenum pname, GLfloat *params); }
|
nuclear@0
|
2218 void OVR::GLEContext::glGetTexParameterfv_Hook(GLenum target, GLenum pname, GLfloat *params)
|
nuclear@0
|
2219 {
|
nuclear@0
|
2220 glGetTexParameterfv(target, pname, params);
|
nuclear@0
|
2221 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2222 }
|
nuclear@0
|
2223
|
nuclear@0
|
2224 #undef glGetTexParameteriv
|
nuclear@0
|
2225 extern "C" { GLAPI void GLAPIENTRY glGetTexParameteriv(GLenum target, GLenum pname, GLint *params); }
|
nuclear@0
|
2226 void OVR::GLEContext::glGetTexParameteriv_Hook(GLenum target, GLenum pname, GLint *params)
|
nuclear@0
|
2227 {
|
nuclear@0
|
2228 glGetTexParameteriv(target, pname, params);
|
nuclear@0
|
2229 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2230 }
|
nuclear@0
|
2231
|
nuclear@0
|
2232 #undef glHint
|
nuclear@0
|
2233 extern "C" { GLAPI void GLAPIENTRY glHint(GLenum target, GLenum mode); }
|
nuclear@0
|
2234 void OVR::GLEContext::glHint_Hook(GLenum target, GLenum mode)
|
nuclear@0
|
2235 {
|
nuclear@0
|
2236 glHint(target, mode);
|
nuclear@0
|
2237 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2238 }
|
nuclear@0
|
2239
|
nuclear@0
|
2240 #undef glIndexMask
|
nuclear@0
|
2241 extern "C" { GLAPI void GLAPIENTRY glIndexMask(GLuint mask); }
|
nuclear@0
|
2242 void OVR::GLEContext::glIndexMask_Hook(GLuint mask)
|
nuclear@0
|
2243 {
|
nuclear@0
|
2244 glIndexMask(mask);
|
nuclear@0
|
2245 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2246 }
|
nuclear@0
|
2247
|
nuclear@0
|
2248 #undef glIndexPointer
|
nuclear@0
|
2249 extern "C" { GLAPI void GLAPIENTRY glIndexPointer(GLenum type, GLsizei stride, const void *pointer); }
|
nuclear@0
|
2250 void OVR::GLEContext::glIndexPointer_Hook(GLenum type, GLsizei stride, const void *pointer)
|
nuclear@0
|
2251 {
|
nuclear@0
|
2252 glIndexPointer(type, stride, pointer);
|
nuclear@0
|
2253 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2254 }
|
nuclear@0
|
2255
|
nuclear@0
|
2256 #undef glIndexd
|
nuclear@0
|
2257 extern "C" { GLAPI void GLAPIENTRY glIndexd(GLdouble c); }
|
nuclear@0
|
2258 void OVR::GLEContext::glIndexd_Hook(GLdouble c)
|
nuclear@0
|
2259 {
|
nuclear@0
|
2260 glIndexd(c);
|
nuclear@0
|
2261 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2262 }
|
nuclear@0
|
2263
|
nuclear@0
|
2264 #undef glIndexdv
|
nuclear@0
|
2265 extern "C" { GLAPI void GLAPIENTRY glIndexdv(const GLdouble *c); }
|
nuclear@0
|
2266 void OVR::GLEContext::glIndexdv_Hook(const GLdouble *c)
|
nuclear@0
|
2267 {
|
nuclear@0
|
2268 glIndexdv(c);
|
nuclear@0
|
2269 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2270 }
|
nuclear@0
|
2271
|
nuclear@0
|
2272 #undef glIndexf
|
nuclear@0
|
2273 extern "C" { GLAPI void GLAPIENTRY glIndexf(GLfloat c); }
|
nuclear@0
|
2274 void OVR::GLEContext::glIndexf_Hook(GLfloat c)
|
nuclear@0
|
2275 {
|
nuclear@0
|
2276 glIndexf(c);
|
nuclear@0
|
2277 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2278 }
|
nuclear@0
|
2279
|
nuclear@0
|
2280 #undef glIndexfv
|
nuclear@0
|
2281 extern "C" { GLAPI void GLAPIENTRY glIndexfv(const GLfloat *c); }
|
nuclear@0
|
2282 void OVR::GLEContext::glIndexfv_Hook(const GLfloat *c)
|
nuclear@0
|
2283 {
|
nuclear@0
|
2284 glIndexfv(c);
|
nuclear@0
|
2285 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2286 }
|
nuclear@0
|
2287
|
nuclear@0
|
2288 #undef glIndexi
|
nuclear@0
|
2289 extern "C" { GLAPI void GLAPIENTRY glIndexi(GLint c); }
|
nuclear@0
|
2290 void OVR::GLEContext::glIndexi_Hook(GLint c)
|
nuclear@0
|
2291 {
|
nuclear@0
|
2292 glIndexi(c);
|
nuclear@0
|
2293 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2294 }
|
nuclear@0
|
2295
|
nuclear@0
|
2296 #undef glIndexiv
|
nuclear@0
|
2297 extern "C" { GLAPI void GLAPIENTRY glIndexiv(const GLint *c); }
|
nuclear@0
|
2298 void OVR::GLEContext::glIndexiv_Hook(const GLint *c)
|
nuclear@0
|
2299 {
|
nuclear@0
|
2300 glIndexiv(c);
|
nuclear@0
|
2301 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2302 }
|
nuclear@0
|
2303
|
nuclear@0
|
2304 #undef glIndexs
|
nuclear@0
|
2305 extern "C" { GLAPI void GLAPIENTRY glIndexs(GLshort c); }
|
nuclear@0
|
2306 void OVR::GLEContext::glIndexs_Hook(GLshort c)
|
nuclear@0
|
2307 {
|
nuclear@0
|
2308 glIndexs(c);
|
nuclear@0
|
2309 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2310 }
|
nuclear@0
|
2311
|
nuclear@0
|
2312 #undef glIndexsv
|
nuclear@0
|
2313 extern "C" { GLAPI void GLAPIENTRY glIndexsv(const GLshort *c); }
|
nuclear@0
|
2314 void OVR::GLEContext::glIndexsv_Hook(const GLshort *c)
|
nuclear@0
|
2315 {
|
nuclear@0
|
2316 glIndexsv(c);
|
nuclear@0
|
2317 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2318 }
|
nuclear@0
|
2319
|
nuclear@0
|
2320 #undef glIndexub
|
nuclear@0
|
2321 extern "C" { GLAPI void GLAPIENTRY glIndexub(GLubyte c); }
|
nuclear@0
|
2322 void OVR::GLEContext::glIndexub_Hook(GLubyte c)
|
nuclear@0
|
2323 {
|
nuclear@0
|
2324 glIndexub(c);
|
nuclear@0
|
2325 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2326 }
|
nuclear@0
|
2327
|
nuclear@0
|
2328 #undef glIndexubv
|
nuclear@0
|
2329 extern "C" { GLAPI void GLAPIENTRY glIndexubv(const GLubyte *c); }
|
nuclear@0
|
2330 void OVR::GLEContext::glIndexubv_Hook(const GLubyte *c)
|
nuclear@0
|
2331 {
|
nuclear@0
|
2332 glIndexubv(c);
|
nuclear@0
|
2333 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2334 }
|
nuclear@0
|
2335
|
nuclear@0
|
2336 #undef glInitNames
|
nuclear@0
|
2337 extern "C" { GLAPI void GLAPIENTRY glInitNames(); }
|
nuclear@0
|
2338 void OVR::GLEContext::glInitNames_Hook()
|
nuclear@0
|
2339 {
|
nuclear@0
|
2340 glInitNames();
|
nuclear@0
|
2341 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2342 }
|
nuclear@0
|
2343
|
nuclear@0
|
2344 #undef glInterleavedArrays
|
nuclear@0
|
2345 extern "C" { GLAPI void GLAPIENTRY glInterleavedArrays(GLenum format, GLsizei stride, const void *pointer); }
|
nuclear@0
|
2346 void OVR::GLEContext::glInterleavedArrays_Hook(GLenum format, GLsizei stride, const void *pointer)
|
nuclear@0
|
2347 {
|
nuclear@0
|
2348 glInterleavedArrays(format, stride, pointer);
|
nuclear@0
|
2349 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2350 }
|
nuclear@0
|
2351
|
nuclear@0
|
2352 #undef glIsEnabled
|
nuclear@0
|
2353 extern "C" { GLAPI GLboolean GLAPIENTRY glIsEnabled(GLenum cap); }
|
nuclear@0
|
2354 GLboolean OVR::GLEContext::glIsEnabled_Hook(GLenum cap)
|
nuclear@0
|
2355 {
|
nuclear@0
|
2356 GLboolean b = glIsEnabled(cap);
|
nuclear@0
|
2357 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2358 return b;
|
nuclear@0
|
2359 }
|
nuclear@0
|
2360
|
nuclear@0
|
2361 #undef glIsList
|
nuclear@0
|
2362 extern "C" { GLAPI GLboolean GLAPIENTRY glIsList(GLuint list); }
|
nuclear@0
|
2363 GLboolean OVR::GLEContext::glIsList_Hook(GLuint list)
|
nuclear@0
|
2364 {
|
nuclear@0
|
2365 GLboolean b = glIsList(list);
|
nuclear@0
|
2366 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2367 return b;
|
nuclear@0
|
2368 }
|
nuclear@0
|
2369
|
nuclear@0
|
2370 #undef glIsTexture
|
nuclear@0
|
2371 extern "C" { GLAPI GLboolean GLAPIENTRY glIsTexture(GLuint texture); }
|
nuclear@0
|
2372 GLboolean OVR::GLEContext::glIsTexture_Hook(GLuint texture)
|
nuclear@0
|
2373 {
|
nuclear@0
|
2374 GLboolean b = glIsTexture(texture);
|
nuclear@0
|
2375 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2376 return b;
|
nuclear@0
|
2377 }
|
nuclear@0
|
2378
|
nuclear@0
|
2379 #undef glLightModelf
|
nuclear@0
|
2380 extern "C" { GLAPI void GLAPIENTRY glLightModelf(GLenum pname, GLfloat param); }
|
nuclear@0
|
2381 void OVR::GLEContext::glLightModelf_Hook(GLenum pname, GLfloat param)
|
nuclear@0
|
2382 {
|
nuclear@0
|
2383 glLightModelf(pname, param);
|
nuclear@0
|
2384 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2385 }
|
nuclear@0
|
2386
|
nuclear@0
|
2387 #undef glLightModelfv
|
nuclear@0
|
2388 extern "C" { GLAPI void GLAPIENTRY glLightModelfv(GLenum pname, const GLfloat *params); }
|
nuclear@0
|
2389 void OVR::GLEContext::glLightModelfv_Hook(GLenum pname, const GLfloat *params)
|
nuclear@0
|
2390 {
|
nuclear@0
|
2391 glLightModelfv(pname, params);
|
nuclear@0
|
2392 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2393 }
|
nuclear@0
|
2394
|
nuclear@0
|
2395 #undef glLightModeli
|
nuclear@0
|
2396 extern "C" { GLAPI void GLAPIENTRY glLightModeli(GLenum pname, GLint param); }
|
nuclear@0
|
2397 void OVR::GLEContext::glLightModeli_Hook(GLenum pname, GLint param)
|
nuclear@0
|
2398 {
|
nuclear@0
|
2399 glLightModeli(pname, param);
|
nuclear@0
|
2400 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2401 }
|
nuclear@0
|
2402
|
nuclear@0
|
2403 #undef glLightModeliv
|
nuclear@0
|
2404 extern "C" { GLAPI void GLAPIENTRY glLightModeliv(GLenum pname, const GLint *params); }
|
nuclear@0
|
2405 void OVR::GLEContext::glLightModeliv_Hook(GLenum pname, const GLint *params)
|
nuclear@0
|
2406 {
|
nuclear@0
|
2407 glLightModeliv(pname, params);
|
nuclear@0
|
2408 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2409 }
|
nuclear@0
|
2410
|
nuclear@0
|
2411 #undef glLightf
|
nuclear@0
|
2412 extern "C" { GLAPI void GLAPIENTRY glLightf(GLenum light, GLenum pname, GLfloat param); }
|
nuclear@0
|
2413 void OVR::GLEContext::glLightf_Hook(GLenum light, GLenum pname, GLfloat param)
|
nuclear@0
|
2414 {
|
nuclear@0
|
2415 glLightf(light, pname, param);
|
nuclear@0
|
2416 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2417 }
|
nuclear@0
|
2418
|
nuclear@0
|
2419 #undef glLightfv
|
nuclear@0
|
2420 extern "C" { GLAPI void GLAPIENTRY glLightfv(GLenum light, GLenum pname, const GLfloat *params); }
|
nuclear@0
|
2421 void OVR::GLEContext::glLightfv_Hook(GLenum light, GLenum pname, const GLfloat *params)
|
nuclear@0
|
2422 {
|
nuclear@0
|
2423 glLightfv(light, pname, params);
|
nuclear@0
|
2424 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2425 }
|
nuclear@0
|
2426
|
nuclear@0
|
2427 #undef glLighti
|
nuclear@0
|
2428 extern "C" { GLAPI void GLAPIENTRY glLighti(GLenum light, GLenum pname, GLint param); }
|
nuclear@0
|
2429 void OVR::GLEContext::glLighti_Hook(GLenum light, GLenum pname, GLint param)
|
nuclear@0
|
2430 {
|
nuclear@0
|
2431 glLighti(light, pname, param);
|
nuclear@0
|
2432 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2433 }
|
nuclear@0
|
2434
|
nuclear@0
|
2435 #undef glLightiv
|
nuclear@0
|
2436 extern "C" { GLAPI void GLAPIENTRY glLightiv(GLenum light, GLenum pname, const GLint *params); }
|
nuclear@0
|
2437 void OVR::GLEContext::glLightiv_Hook(GLenum light, GLenum pname, const GLint *params)
|
nuclear@0
|
2438 {
|
nuclear@0
|
2439 glLightiv(light, pname, params);
|
nuclear@0
|
2440 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2441 }
|
nuclear@0
|
2442
|
nuclear@0
|
2443 #undef glLineStipple
|
nuclear@0
|
2444 extern "C" { GLAPI void GLAPIENTRY glLineStipple(GLint factor, GLushort pattern); }
|
nuclear@0
|
2445 void OVR::GLEContext::glLineStipple_Hook(GLint factor, GLushort pattern)
|
nuclear@0
|
2446 {
|
nuclear@0
|
2447 glLineStipple(factor, pattern);
|
nuclear@0
|
2448 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2449 }
|
nuclear@0
|
2450
|
nuclear@0
|
2451 #undef glLineWidth
|
nuclear@0
|
2452 extern "C" { GLAPI void GLAPIENTRY glLineWidth(GLfloat width); }
|
nuclear@0
|
2453 void OVR::GLEContext::glLineWidth_Hook(GLfloat width)
|
nuclear@0
|
2454 {
|
nuclear@0
|
2455 glLineWidth(width);
|
nuclear@0
|
2456 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2457 }
|
nuclear@0
|
2458
|
nuclear@0
|
2459 #undef glListBase
|
nuclear@0
|
2460 extern "C" { GLAPI void GLAPIENTRY glListBase(GLuint base); }
|
nuclear@0
|
2461 void OVR::GLEContext::glListBase_Hook(GLuint base)
|
nuclear@0
|
2462 {
|
nuclear@0
|
2463 glListBase(base);
|
nuclear@0
|
2464 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2465 }
|
nuclear@0
|
2466
|
nuclear@0
|
2467 #undef glLoadIdentity
|
nuclear@0
|
2468 extern "C" { GLAPI void GLAPIENTRY glLoadIdentity(); }
|
nuclear@0
|
2469 void OVR::GLEContext::glLoadIdentity_Hook()
|
nuclear@0
|
2470 {
|
nuclear@0
|
2471 glLoadIdentity();
|
nuclear@0
|
2472 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2473 }
|
nuclear@0
|
2474
|
nuclear@0
|
2475 #undef glLoadMatrixd
|
nuclear@0
|
2476 extern "C" { GLAPI void GLAPIENTRY glLoadMatrixd(const GLdouble *m); }
|
nuclear@0
|
2477 void OVR::GLEContext::glLoadMatrixd_Hook(const GLdouble *m)
|
nuclear@0
|
2478 {
|
nuclear@0
|
2479 glLoadMatrixd(m);
|
nuclear@0
|
2480 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2481 }
|
nuclear@0
|
2482
|
nuclear@0
|
2483 #undef glLoadMatrixf
|
nuclear@0
|
2484 extern "C" { GLAPI void GLAPIENTRY glLoadMatrixf(const GLfloat *m); }
|
nuclear@0
|
2485 void OVR::GLEContext::glLoadMatrixf_Hook(const GLfloat *m)
|
nuclear@0
|
2486 {
|
nuclear@0
|
2487 glLoadMatrixf(m);
|
nuclear@0
|
2488 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2489 }
|
nuclear@0
|
2490
|
nuclear@0
|
2491 #undef glLoadName
|
nuclear@0
|
2492 extern "C" { GLAPI void GLAPIENTRY glLoadName(GLuint name); }
|
nuclear@0
|
2493 void OVR::GLEContext::glLoadName_Hook(GLuint name)
|
nuclear@0
|
2494 {
|
nuclear@0
|
2495 glLoadName(name);
|
nuclear@0
|
2496 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2497 }
|
nuclear@0
|
2498
|
nuclear@0
|
2499 #undef glLogicOp
|
nuclear@0
|
2500 extern "C" { GLAPI void GLAPIENTRY glLogicOp(GLenum opcode); }
|
nuclear@0
|
2501 void OVR::GLEContext::glLogicOp_Hook(GLenum opcode)
|
nuclear@0
|
2502 {
|
nuclear@0
|
2503 glLogicOp(opcode);
|
nuclear@0
|
2504 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2505 }
|
nuclear@0
|
2506
|
nuclear@0
|
2507 #undef glMap1d
|
nuclear@0
|
2508 extern "C" { GLAPI void GLAPIENTRY glMap1d(GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points); }
|
nuclear@0
|
2509 void OVR::GLEContext::glMap1d_Hook(GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points)
|
nuclear@0
|
2510 {
|
nuclear@0
|
2511 glMap1d(target, u1, u2, stride, order, points);
|
nuclear@0
|
2512 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2513 }
|
nuclear@0
|
2514
|
nuclear@0
|
2515 #undef glMap1f
|
nuclear@0
|
2516 extern "C" { GLAPI void GLAPIENTRY glMap1f(GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points); }
|
nuclear@0
|
2517 void OVR::GLEContext::glMap1f_Hook(GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points)
|
nuclear@0
|
2518 {
|
nuclear@0
|
2519 glMap1f(target, u1, u2, stride, order, points);
|
nuclear@0
|
2520 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2521 }
|
nuclear@0
|
2522
|
nuclear@0
|
2523 #undef glMap2d
|
nuclear@0
|
2524 extern "C" { GLAPI void GLAPIENTRY glMap2d(GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points); }
|
nuclear@0
|
2525 void OVR::GLEContext::glMap2d_Hook(GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points)
|
nuclear@0
|
2526 {
|
nuclear@0
|
2527 glMap2d(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points);
|
nuclear@0
|
2528 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2529 }
|
nuclear@0
|
2530
|
nuclear@0
|
2531 #undef glMap2f
|
nuclear@0
|
2532 extern "C" { GLAPI void GLAPIENTRY glMap2f(GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points); }
|
nuclear@0
|
2533 void OVR::GLEContext::glMap2f_Hook(GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points)
|
nuclear@0
|
2534 {
|
nuclear@0
|
2535 glMap2f(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points);
|
nuclear@0
|
2536 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2537 }
|
nuclear@0
|
2538
|
nuclear@0
|
2539 #undef glMapGrid1d
|
nuclear@0
|
2540 extern "C" { GLAPI void GLAPIENTRY glMapGrid1d(GLint un, GLdouble u1, GLdouble u2); }
|
nuclear@0
|
2541 void OVR::GLEContext::glMapGrid1d_Hook(GLint un, GLdouble u1, GLdouble u2)
|
nuclear@0
|
2542 {
|
nuclear@0
|
2543 glMapGrid1d(un, u1, u2);
|
nuclear@0
|
2544 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2545 }
|
nuclear@0
|
2546
|
nuclear@0
|
2547 #undef glMapGrid1f
|
nuclear@0
|
2548 extern "C" { GLAPI void GLAPIENTRY glMapGrid1f(GLint un, GLfloat u1, GLfloat u2); }
|
nuclear@0
|
2549 void OVR::GLEContext::glMapGrid1f_Hook(GLint un, GLfloat u1, GLfloat u2)
|
nuclear@0
|
2550 {
|
nuclear@0
|
2551 glMapGrid1f(un, u1, u2);
|
nuclear@0
|
2552 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2553 }
|
nuclear@0
|
2554
|
nuclear@0
|
2555 #undef glMapGrid2d
|
nuclear@0
|
2556 extern "C" { GLAPI void GLAPIENTRY glMapGrid2d(GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2); }
|
nuclear@0
|
2557 void OVR::GLEContext::glMapGrid2d_Hook(GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2)
|
nuclear@0
|
2558 {
|
nuclear@0
|
2559 glMapGrid2d(un, u1, u2, vn, v1, v2);
|
nuclear@0
|
2560 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2561 }
|
nuclear@0
|
2562
|
nuclear@0
|
2563 #undef glMapGrid2f
|
nuclear@0
|
2564 extern "C" { GLAPI void GLAPIENTRY glMapGrid2f(GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2); }
|
nuclear@0
|
2565 void OVR::GLEContext::glMapGrid2f_Hook(GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2)
|
nuclear@0
|
2566 {
|
nuclear@0
|
2567 glMapGrid2f(un, u1, u2, vn, v1, v2);
|
nuclear@0
|
2568 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2569 }
|
nuclear@0
|
2570
|
nuclear@0
|
2571 #undef glMaterialf
|
nuclear@0
|
2572 extern "C" { GLAPI void GLAPIENTRY glMaterialf(GLenum face, GLenum pname, GLfloat param); }
|
nuclear@0
|
2573 void OVR::GLEContext::glMaterialf_Hook(GLenum face, GLenum pname, GLfloat param)
|
nuclear@0
|
2574 {
|
nuclear@0
|
2575 glMaterialf(face, pname, param);
|
nuclear@0
|
2576 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2577 }
|
nuclear@0
|
2578
|
nuclear@0
|
2579 #undef glMaterialfv
|
nuclear@0
|
2580 extern "C" { GLAPI void GLAPIENTRY glMaterialfv(GLenum face, GLenum pname, const GLfloat *params); }
|
nuclear@0
|
2581 void OVR::GLEContext::glMaterialfv_Hook(GLenum face, GLenum pname, const GLfloat *params)
|
nuclear@0
|
2582 {
|
nuclear@0
|
2583 glMaterialfv(face, pname, params);
|
nuclear@0
|
2584 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2585 }
|
nuclear@0
|
2586
|
nuclear@0
|
2587 #undef glMateriali
|
nuclear@0
|
2588 extern "C" { GLAPI void GLAPIENTRY glMateriali(GLenum face, GLenum pname, GLint param); }
|
nuclear@0
|
2589 void OVR::GLEContext::glMateriali_Hook(GLenum face, GLenum pname, GLint param)
|
nuclear@0
|
2590 {
|
nuclear@0
|
2591 glMateriali(face, pname, param);
|
nuclear@0
|
2592 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2593 }
|
nuclear@0
|
2594
|
nuclear@0
|
2595 #undef glMaterialiv
|
nuclear@0
|
2596 extern "C" { GLAPI void GLAPIENTRY glMaterialiv(GLenum face, GLenum pname, const GLint *params); }
|
nuclear@0
|
2597 void OVR::GLEContext::glMaterialiv_Hook(GLenum face, GLenum pname, const GLint *params)
|
nuclear@0
|
2598 {
|
nuclear@0
|
2599 glMaterialiv(face, pname, params);
|
nuclear@0
|
2600 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2601 }
|
nuclear@0
|
2602
|
nuclear@0
|
2603 #undef glMatrixMode
|
nuclear@0
|
2604 extern "C" { GLAPI void GLAPIENTRY glMatrixMode(GLenum mode); }
|
nuclear@0
|
2605 void OVR::GLEContext::glMatrixMode_Hook(GLenum mode)
|
nuclear@0
|
2606 {
|
nuclear@0
|
2607 glMatrixMode(mode);
|
nuclear@0
|
2608 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2609 }
|
nuclear@0
|
2610
|
nuclear@0
|
2611 #undef glMultMatrixd
|
nuclear@0
|
2612 extern "C" { GLAPI void GLAPIENTRY glMultMatrixd(const GLdouble *m); }
|
nuclear@0
|
2613 void OVR::GLEContext::glMultMatrixd_Hook(const GLdouble *m)
|
nuclear@0
|
2614 {
|
nuclear@0
|
2615 glMultMatrixd(m);
|
nuclear@0
|
2616 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2617 }
|
nuclear@0
|
2618
|
nuclear@0
|
2619 #undef glMultMatrixf
|
nuclear@0
|
2620 extern "C" { GLAPI void GLAPIENTRY glMultMatrixf(const GLfloat *m); }
|
nuclear@0
|
2621 void OVR::GLEContext::glMultMatrixf_Hook(const GLfloat *m)
|
nuclear@0
|
2622 {
|
nuclear@0
|
2623 glMultMatrixf(m);
|
nuclear@0
|
2624 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2625 }
|
nuclear@0
|
2626
|
nuclear@0
|
2627 #undef glNewList
|
nuclear@0
|
2628 extern "C" { GLAPI void GLAPIENTRY glNewList(GLuint list, GLenum mode); }
|
nuclear@0
|
2629 void OVR::GLEContext::glNewList_Hook(GLuint list, GLenum mode)
|
nuclear@0
|
2630 {
|
nuclear@0
|
2631 glNewList(list, mode);
|
nuclear@0
|
2632 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2633 }
|
nuclear@0
|
2634
|
nuclear@0
|
2635 #undef glNormal3b
|
nuclear@0
|
2636 extern "C" { GLAPI void GLAPIENTRY glNormal3b(GLbyte nx, GLbyte ny, GLbyte nz); }
|
nuclear@0
|
2637 void OVR::GLEContext::glNormal3b_Hook(GLbyte nx, GLbyte ny, GLbyte nz)
|
nuclear@0
|
2638 {
|
nuclear@0
|
2639 glNormal3b(nx, ny, nz);
|
nuclear@0
|
2640 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2641 }
|
nuclear@0
|
2642
|
nuclear@0
|
2643 #undef glNormal3bv
|
nuclear@0
|
2644 extern "C" { GLAPI void GLAPIENTRY glNormal3bv(const GLbyte *v); }
|
nuclear@0
|
2645 void OVR::GLEContext::glNormal3bv_Hook(const GLbyte *v)
|
nuclear@0
|
2646 {
|
nuclear@0
|
2647 glNormal3bv(v);
|
nuclear@0
|
2648 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2649 }
|
nuclear@0
|
2650
|
nuclear@0
|
2651 #undef glNormal3d
|
nuclear@0
|
2652 extern "C" { GLAPI void GLAPIENTRY glNormal3d(GLdouble nx, GLdouble ny, GLdouble nz); }
|
nuclear@0
|
2653 void OVR::GLEContext::glNormal3d_Hook(GLdouble nx, GLdouble ny, GLdouble nz)
|
nuclear@0
|
2654 {
|
nuclear@0
|
2655 glNormal3d(nx, ny, nz);
|
nuclear@0
|
2656 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2657 }
|
nuclear@0
|
2658
|
nuclear@0
|
2659 #undef glNormal3dv
|
nuclear@0
|
2660 extern "C" { GLAPI void GLAPIENTRY glNormal3dv(const GLdouble *v); }
|
nuclear@0
|
2661 void OVR::GLEContext::glNormal3dv_Hook(const GLdouble *v)
|
nuclear@0
|
2662 {
|
nuclear@0
|
2663 glNormal3dv(v);
|
nuclear@0
|
2664 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2665 }
|
nuclear@0
|
2666
|
nuclear@0
|
2667 #undef glNormal3f
|
nuclear@0
|
2668 extern "C" { GLAPI void GLAPIENTRY glNormal3f(GLfloat nx, GLfloat ny, GLfloat nz); }
|
nuclear@0
|
2669 void OVR::GLEContext::glNormal3f_Hook(GLfloat nx, GLfloat ny, GLfloat nz)
|
nuclear@0
|
2670 {
|
nuclear@0
|
2671 glNormal3f(nx, ny, nz);
|
nuclear@0
|
2672 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2673 }
|
nuclear@0
|
2674
|
nuclear@0
|
2675 #undef glNormal3fv
|
nuclear@0
|
2676 extern "C" { GLAPI void GLAPIENTRY glNormal3fv(const GLfloat *v); }
|
nuclear@0
|
2677 void OVR::GLEContext::glNormal3fv_Hook(const GLfloat *v)
|
nuclear@0
|
2678 {
|
nuclear@0
|
2679 glNormal3fv(v);
|
nuclear@0
|
2680 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2681 }
|
nuclear@0
|
2682
|
nuclear@0
|
2683 #undef glNormal3i
|
nuclear@0
|
2684 extern "C" { GLAPI void GLAPIENTRY glNormal3i(GLint nx, GLint ny, GLint nz); }
|
nuclear@0
|
2685 void OVR::GLEContext::glNormal3i_Hook(GLint nx, GLint ny, GLint nz)
|
nuclear@0
|
2686 {
|
nuclear@0
|
2687 glNormal3i(nx, ny, nz);
|
nuclear@0
|
2688 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2689 }
|
nuclear@0
|
2690
|
nuclear@0
|
2691 #undef glNormal3iv
|
nuclear@0
|
2692 extern "C" { GLAPI void GLAPIENTRY glNormal3iv(const GLint *v); }
|
nuclear@0
|
2693 void OVR::GLEContext::glNormal3iv_Hook(const GLint *v)
|
nuclear@0
|
2694 {
|
nuclear@0
|
2695 glNormal3iv(v);
|
nuclear@0
|
2696 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2697 }
|
nuclear@0
|
2698
|
nuclear@0
|
2699 #undef glNormal3s
|
nuclear@0
|
2700 extern "C" { GLAPI void GLAPIENTRY glNormal3s(GLshort nx, GLshort ny, GLshort nz); }
|
nuclear@0
|
2701 void OVR::GLEContext::glNormal3s_Hook(GLshort nx, GLshort ny, GLshort nz)
|
nuclear@0
|
2702 {
|
nuclear@0
|
2703 glNormal3s(nx, ny, nz);
|
nuclear@0
|
2704 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2705 }
|
nuclear@0
|
2706
|
nuclear@0
|
2707 #undef glNormal3sv
|
nuclear@0
|
2708 extern "C" { GLAPI void GLAPIENTRY glNormal3sv(const GLshort *v); }
|
nuclear@0
|
2709 void OVR::GLEContext::glNormal3sv_Hook(const GLshort *v)
|
nuclear@0
|
2710 {
|
nuclear@0
|
2711 glNormal3sv(v);
|
nuclear@0
|
2712 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2713 }
|
nuclear@0
|
2714
|
nuclear@0
|
2715 #undef glNormalPointer
|
nuclear@0
|
2716 extern "C" { GLAPI void GLAPIENTRY glNormalPointer(GLenum type, GLsizei stride, const void *pointer); }
|
nuclear@0
|
2717 void OVR::GLEContext::glNormalPointer_Hook(GLenum type, GLsizei stride, const void *pointer)
|
nuclear@0
|
2718 {
|
nuclear@0
|
2719 glNormalPointer(type, stride, pointer);
|
nuclear@0
|
2720 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2721 }
|
nuclear@0
|
2722
|
nuclear@0
|
2723 #undef glOrtho
|
nuclear@0
|
2724 extern "C" { GLAPI void GLAPIENTRY glOrtho(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar); }
|
nuclear@0
|
2725 void OVR::GLEContext::glOrtho_Hook(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar)
|
nuclear@0
|
2726 {
|
nuclear@0
|
2727 glOrtho(left, right, bottom, top, zNear, zFar);
|
nuclear@0
|
2728 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2729 }
|
nuclear@0
|
2730
|
nuclear@0
|
2731 #undef glPassThrough
|
nuclear@0
|
2732 extern "C" { GLAPI void GLAPIENTRY glPassThrough(GLfloat token); }
|
nuclear@0
|
2733 void OVR::GLEContext::glPassThrough_Hook(GLfloat token)
|
nuclear@0
|
2734 {
|
nuclear@0
|
2735 glPassThrough(token);
|
nuclear@0
|
2736 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2737 }
|
nuclear@0
|
2738
|
nuclear@0
|
2739 #undef glPixelMapfv
|
nuclear@0
|
2740 extern "C" { GLAPI void GLAPIENTRY glPixelMapfv(GLenum map, GLsizei mapsize, const GLfloat *values); }
|
nuclear@0
|
2741 void OVR::GLEContext::glPixelMapfv_Hook(GLenum map, GLsizei mapsize, const GLfloat *values)
|
nuclear@0
|
2742 {
|
nuclear@0
|
2743 glPixelMapfv(map, mapsize, values);
|
nuclear@0
|
2744 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2745 }
|
nuclear@0
|
2746
|
nuclear@0
|
2747 #undef glPixelMapuiv
|
nuclear@0
|
2748 extern "C" { GLAPI void GLAPIENTRY glPixelMapuiv(GLenum map, GLsizei mapsize, const GLuint *values); }
|
nuclear@0
|
2749 void OVR::GLEContext::glPixelMapuiv_Hook(GLenum map, GLsizei mapsize, const GLuint *values)
|
nuclear@0
|
2750 {
|
nuclear@0
|
2751 glPixelMapuiv(map, mapsize, values);
|
nuclear@0
|
2752 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2753 }
|
nuclear@0
|
2754
|
nuclear@0
|
2755 #undef glPixelMapusv
|
nuclear@0
|
2756 extern "C" { GLAPI void GLAPIENTRY glPixelMapusv(GLenum map, GLsizei mapsize, const GLushort *values); }
|
nuclear@0
|
2757 void OVR::GLEContext::glPixelMapusv_Hook(GLenum map, GLsizei mapsize, const GLushort *values)
|
nuclear@0
|
2758 {
|
nuclear@0
|
2759 glPixelMapusv(map, mapsize, values);
|
nuclear@0
|
2760 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2761 }
|
nuclear@0
|
2762
|
nuclear@0
|
2763 #undef glPixelStoref
|
nuclear@0
|
2764 extern "C" { GLAPI void GLAPIENTRY glPixelStoref(GLenum pname, GLfloat param); }
|
nuclear@0
|
2765 void OVR::GLEContext::glPixelStoref_Hook(GLenum pname, GLfloat param)
|
nuclear@0
|
2766 {
|
nuclear@0
|
2767 glPixelStoref(pname, param);
|
nuclear@0
|
2768 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2769 }
|
nuclear@0
|
2770
|
nuclear@0
|
2771 #undef glPixelStorei
|
nuclear@0
|
2772 extern "C" { GLAPI void GLAPIENTRY glPixelStorei(GLenum pname, GLint param); }
|
nuclear@0
|
2773 void OVR::GLEContext::glPixelStorei_Hook(GLenum pname, GLint param)
|
nuclear@0
|
2774 {
|
nuclear@0
|
2775 glPixelStorei(pname, param);
|
nuclear@0
|
2776 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2777 }
|
nuclear@0
|
2778
|
nuclear@0
|
2779 #undef glPixelTransferf
|
nuclear@0
|
2780 extern "C" { GLAPI void GLAPIENTRY glPixelTransferf(GLenum pname, GLfloat param); }
|
nuclear@0
|
2781 void OVR::GLEContext::glPixelTransferf_Hook(GLenum pname, GLfloat param)
|
nuclear@0
|
2782 {
|
nuclear@0
|
2783 glPixelTransferf(pname, param);
|
nuclear@0
|
2784 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2785 }
|
nuclear@0
|
2786
|
nuclear@0
|
2787 #undef glPixelTransferi
|
nuclear@0
|
2788 extern "C" { GLAPI void GLAPIENTRY glPixelTransferi(GLenum pname, GLint param); }
|
nuclear@0
|
2789 void OVR::GLEContext::glPixelTransferi_Hook(GLenum pname, GLint param)
|
nuclear@0
|
2790 {
|
nuclear@0
|
2791 glPixelTransferi(pname, param);
|
nuclear@0
|
2792 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2793 }
|
nuclear@0
|
2794
|
nuclear@0
|
2795 #undef glPixelZoom
|
nuclear@0
|
2796 extern "C" { GLAPI void GLAPIENTRY glPixelZoom(GLfloat xfactor, GLfloat yfactor); }
|
nuclear@0
|
2797 void OVR::GLEContext::glPixelZoom_Hook(GLfloat xfactor, GLfloat yfactor)
|
nuclear@0
|
2798 {
|
nuclear@0
|
2799 glPixelZoom(xfactor, yfactor);
|
nuclear@0
|
2800 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2801 }
|
nuclear@0
|
2802
|
nuclear@0
|
2803 #undef glPointSize
|
nuclear@0
|
2804 extern "C" { GLAPI void GLAPIENTRY glPointSize(GLfloat size); }
|
nuclear@0
|
2805 void OVR::GLEContext::glPointSize_Hook(GLfloat size)
|
nuclear@0
|
2806 {
|
nuclear@0
|
2807 glPointSize(size);
|
nuclear@0
|
2808 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2809 }
|
nuclear@0
|
2810
|
nuclear@0
|
2811 #undef glPolygonMode
|
nuclear@0
|
2812 extern "C" { GLAPI void GLAPIENTRY glPolygonMode(GLenum face, GLenum mode); }
|
nuclear@0
|
2813 void OVR::GLEContext::glPolygonMode_Hook(GLenum face, GLenum mode)
|
nuclear@0
|
2814 {
|
nuclear@0
|
2815 glPolygonMode(face, mode);
|
nuclear@0
|
2816 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2817 }
|
nuclear@0
|
2818
|
nuclear@0
|
2819 #undef glPolygonOffset
|
nuclear@0
|
2820 extern "C" { GLAPI void GLAPIENTRY glPolygonOffset(GLfloat factor, GLfloat units); }
|
nuclear@0
|
2821 void OVR::GLEContext::glPolygonOffset_Hook(GLfloat factor, GLfloat units)
|
nuclear@0
|
2822 {
|
nuclear@0
|
2823 glPolygonOffset(factor, units);
|
nuclear@0
|
2824 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2825 }
|
nuclear@0
|
2826
|
nuclear@0
|
2827 #undef glPolygonStipple
|
nuclear@0
|
2828 extern "C" { GLAPI void GLAPIENTRY glPolygonStipple(const GLubyte *mask); }
|
nuclear@0
|
2829 void OVR::GLEContext::glPolygonStipple_Hook(const GLubyte *mask)
|
nuclear@0
|
2830 {
|
nuclear@0
|
2831 glPolygonStipple(mask);
|
nuclear@0
|
2832 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2833 }
|
nuclear@0
|
2834
|
nuclear@0
|
2835 #undef glPopAttrib
|
nuclear@0
|
2836 extern "C" { GLAPI void GLAPIENTRY glPopAttrib(); }
|
nuclear@0
|
2837 void OVR::GLEContext::glPopAttrib_Hook()
|
nuclear@0
|
2838 {
|
nuclear@0
|
2839 glPopAttrib();
|
nuclear@0
|
2840 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2841 }
|
nuclear@0
|
2842
|
nuclear@0
|
2843 #undef glPopClientAttrib
|
nuclear@0
|
2844 extern "C" { GLAPI void GLAPIENTRY glPopClientAttrib(); }
|
nuclear@0
|
2845 void OVR::GLEContext::glPopClientAttrib_Hook()
|
nuclear@0
|
2846 {
|
nuclear@0
|
2847 glPopClientAttrib();
|
nuclear@0
|
2848 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2849 }
|
nuclear@0
|
2850
|
nuclear@0
|
2851 #undef glPopMatrix
|
nuclear@0
|
2852 extern "C" { GLAPI void GLAPIENTRY glPopMatrix(); }
|
nuclear@0
|
2853 void OVR::GLEContext::glPopMatrix_Hook()
|
nuclear@0
|
2854 {
|
nuclear@0
|
2855 glPopMatrix();
|
nuclear@0
|
2856 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2857 }
|
nuclear@0
|
2858
|
nuclear@0
|
2859 #undef glPopName
|
nuclear@0
|
2860 extern "C" { GLAPI void GLAPIENTRY glPopName(); }
|
nuclear@0
|
2861 void OVR::GLEContext::glPopName_Hook()
|
nuclear@0
|
2862 {
|
nuclear@0
|
2863 glPopName();
|
nuclear@0
|
2864 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2865 }
|
nuclear@0
|
2866
|
nuclear@0
|
2867 #undef glPrioritizeTextures
|
nuclear@0
|
2868 extern "C" { GLAPI void GLAPIENTRY glPrioritizeTextures(GLsizei n, const GLuint *textures, const GLclampf *priorities); }
|
nuclear@0
|
2869 void OVR::GLEContext::glPrioritizeTextures_Hook(GLsizei n, const GLuint *textures, const GLclampf *priorities)
|
nuclear@0
|
2870 {
|
nuclear@0
|
2871 glPrioritizeTextures(n, textures, priorities);
|
nuclear@0
|
2872 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2873 }
|
nuclear@0
|
2874
|
nuclear@0
|
2875 #undef glPushAttrib
|
nuclear@0
|
2876 extern "C" { GLAPI void GLAPIENTRY glPushAttrib(GLbitfield mask); }
|
nuclear@0
|
2877 void OVR::GLEContext::glPushAttrib_Hook(GLbitfield mask)
|
nuclear@0
|
2878 {
|
nuclear@0
|
2879 glPushAttrib(mask);
|
nuclear@0
|
2880 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2881 }
|
nuclear@0
|
2882
|
nuclear@0
|
2883 #undef glPushClientAttrib
|
nuclear@0
|
2884 extern "C" { GLAPI void GLAPIENTRY glPushClientAttrib(GLbitfield mask); }
|
nuclear@0
|
2885 void OVR::GLEContext::glPushClientAttrib_Hook(GLbitfield mask)
|
nuclear@0
|
2886 {
|
nuclear@0
|
2887 glPushClientAttrib(mask);
|
nuclear@0
|
2888 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2889 }
|
nuclear@0
|
2890
|
nuclear@0
|
2891 #undef glPushMatrix
|
nuclear@0
|
2892 extern "C" { GLAPI void GLAPIENTRY glPushMatrix(); }
|
nuclear@0
|
2893 void OVR::GLEContext::glPushMatrix_Hook()
|
nuclear@0
|
2894 {
|
nuclear@0
|
2895 glPushMatrix();
|
nuclear@0
|
2896 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2897 }
|
nuclear@0
|
2898
|
nuclear@0
|
2899 #undef glPushName
|
nuclear@0
|
2900 extern "C" { GLAPI void GLAPIENTRY glPushName(GLuint name); }
|
nuclear@0
|
2901 void OVR::GLEContext::glPushName_Hook(GLuint name)
|
nuclear@0
|
2902 {
|
nuclear@0
|
2903 glPushName(name);
|
nuclear@0
|
2904 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2905 }
|
nuclear@0
|
2906
|
nuclear@0
|
2907 #undef glRasterPos2d
|
nuclear@0
|
2908 extern "C" { GLAPI void GLAPIENTRY glRasterPos2d(GLdouble x, GLdouble y); }
|
nuclear@0
|
2909 void OVR::GLEContext::glRasterPos2d_Hook(GLdouble x, GLdouble y)
|
nuclear@0
|
2910 {
|
nuclear@0
|
2911 glRasterPos2d(x, y);
|
nuclear@0
|
2912 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2913 }
|
nuclear@0
|
2914
|
nuclear@0
|
2915 #undef glRasterPos2dv
|
nuclear@0
|
2916 extern "C" { GLAPI void GLAPIENTRY glRasterPos2dv(const GLdouble *v); }
|
nuclear@0
|
2917 void OVR::GLEContext::glRasterPos2dv_Hook(const GLdouble *v)
|
nuclear@0
|
2918 {
|
nuclear@0
|
2919 glRasterPos2dv(v);
|
nuclear@0
|
2920 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2921 }
|
nuclear@0
|
2922
|
nuclear@0
|
2923 #undef glRasterPos2f
|
nuclear@0
|
2924 extern "C" { GLAPI void GLAPIENTRY glRasterPos2f(GLfloat x, GLfloat y); }
|
nuclear@0
|
2925 void OVR::GLEContext::glRasterPos2f_Hook(GLfloat x, GLfloat y)
|
nuclear@0
|
2926 {
|
nuclear@0
|
2927 glRasterPos2f(x, y);
|
nuclear@0
|
2928 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2929 }
|
nuclear@0
|
2930
|
nuclear@0
|
2931 #undef glRasterPos2fv
|
nuclear@0
|
2932 extern "C" { GLAPI void GLAPIENTRY glRasterPos2fv(const GLfloat *v); }
|
nuclear@0
|
2933 void OVR::GLEContext::glRasterPos2fv_Hook(const GLfloat *v)
|
nuclear@0
|
2934 {
|
nuclear@0
|
2935 glRasterPos2fv(v);
|
nuclear@0
|
2936 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2937 }
|
nuclear@0
|
2938
|
nuclear@0
|
2939 #undef glRasterPos2i
|
nuclear@0
|
2940 extern "C" { GLAPI void GLAPIENTRY glRasterPos2i(GLint x, GLint y); }
|
nuclear@0
|
2941 void OVR::GLEContext::glRasterPos2i_Hook(GLint x, GLint y)
|
nuclear@0
|
2942 {
|
nuclear@0
|
2943 glRasterPos2i(x, y);
|
nuclear@0
|
2944 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2945 }
|
nuclear@0
|
2946
|
nuclear@0
|
2947 #undef glRasterPos2iv
|
nuclear@0
|
2948 extern "C" { GLAPI void GLAPIENTRY glRasterPos2iv(const GLint *v); }
|
nuclear@0
|
2949 void OVR::GLEContext::glRasterPos2iv_Hook(const GLint *v)
|
nuclear@0
|
2950 {
|
nuclear@0
|
2951 glRasterPos2iv(v);
|
nuclear@0
|
2952 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2953 }
|
nuclear@0
|
2954
|
nuclear@0
|
2955 #undef glRasterPos2s
|
nuclear@0
|
2956 extern "C" { GLAPI void GLAPIENTRY glRasterPos2s(GLshort x, GLshort y); }
|
nuclear@0
|
2957 void OVR::GLEContext::glRasterPos2s_Hook(GLshort x, GLshort y)
|
nuclear@0
|
2958 {
|
nuclear@0
|
2959 glRasterPos2s(x, y);
|
nuclear@0
|
2960 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2961 }
|
nuclear@0
|
2962
|
nuclear@0
|
2963 #undef glRasterPos2sv
|
nuclear@0
|
2964 extern "C" { GLAPI void GLAPIENTRY glRasterPos2sv(const GLshort *v); }
|
nuclear@0
|
2965 void OVR::GLEContext::glRasterPos2sv_Hook(const GLshort *v)
|
nuclear@0
|
2966 {
|
nuclear@0
|
2967 glRasterPos2sv(v);
|
nuclear@0
|
2968 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2969 }
|
nuclear@0
|
2970
|
nuclear@0
|
2971 #undef glRasterPos3d
|
nuclear@0
|
2972 extern "C" { GLAPI void GLAPIENTRY glRasterPos3d(GLdouble x, GLdouble y, GLdouble z); }
|
nuclear@0
|
2973 void OVR::GLEContext::glRasterPos3d_Hook(GLdouble x, GLdouble y, GLdouble z)
|
nuclear@0
|
2974 {
|
nuclear@0
|
2975 glRasterPos3d(x, y, z);
|
nuclear@0
|
2976 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2977 }
|
nuclear@0
|
2978
|
nuclear@0
|
2979 #undef glRasterPos3dv
|
nuclear@0
|
2980 extern "C" { GLAPI void GLAPIENTRY glRasterPos3dv(const GLdouble *v); }
|
nuclear@0
|
2981 void OVR::GLEContext::glRasterPos3dv_Hook(const GLdouble *v)
|
nuclear@0
|
2982 {
|
nuclear@0
|
2983 glRasterPos3dv(v);
|
nuclear@0
|
2984 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2985 }
|
nuclear@0
|
2986
|
nuclear@0
|
2987 #undef glRasterPos3f
|
nuclear@0
|
2988 extern "C" { GLAPI void GLAPIENTRY glRasterPos3f(GLfloat x, GLfloat y, GLfloat z); }
|
nuclear@0
|
2989 void OVR::GLEContext::glRasterPos3f_Hook(GLfloat x, GLfloat y, GLfloat z)
|
nuclear@0
|
2990 {
|
nuclear@0
|
2991 glRasterPos3f(x, y, z);
|
nuclear@0
|
2992 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
2993 }
|
nuclear@0
|
2994
|
nuclear@0
|
2995 #undef glRasterPos3fv
|
nuclear@0
|
2996 extern "C" { GLAPI void GLAPIENTRY glRasterPos3fv(const GLfloat *v); }
|
nuclear@0
|
2997 void OVR::GLEContext::glRasterPos3fv_Hook(const GLfloat *v)
|
nuclear@0
|
2998 {
|
nuclear@0
|
2999 glRasterPos3fv(v);
|
nuclear@0
|
3000 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3001 }
|
nuclear@0
|
3002
|
nuclear@0
|
3003 #undef glRasterPos3i
|
nuclear@0
|
3004 extern "C" { GLAPI void GLAPIENTRY glRasterPos3i(GLint x, GLint y, GLint z); }
|
nuclear@0
|
3005 void OVR::GLEContext::glRasterPos3i_Hook(GLint x, GLint y, GLint z)
|
nuclear@0
|
3006 {
|
nuclear@0
|
3007 glRasterPos3i(x, y, z);
|
nuclear@0
|
3008 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3009 }
|
nuclear@0
|
3010
|
nuclear@0
|
3011 #undef glRasterPos3iv
|
nuclear@0
|
3012 extern "C" { GLAPI void GLAPIENTRY glRasterPos3iv(const GLint *v); }
|
nuclear@0
|
3013 void OVR::GLEContext::glRasterPos3iv_Hook(const GLint *v)
|
nuclear@0
|
3014 {
|
nuclear@0
|
3015 glRasterPos3iv(v);
|
nuclear@0
|
3016 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3017 }
|
nuclear@0
|
3018
|
nuclear@0
|
3019 #undef glRasterPos3s
|
nuclear@0
|
3020 extern "C" { GLAPI void GLAPIENTRY glRasterPos3s(GLshort x, GLshort y, GLshort z); }
|
nuclear@0
|
3021 void OVR::GLEContext::glRasterPos3s_Hook(GLshort x, GLshort y, GLshort z)
|
nuclear@0
|
3022 {
|
nuclear@0
|
3023 glRasterPos3s(x, y, z);
|
nuclear@0
|
3024 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3025 }
|
nuclear@0
|
3026
|
nuclear@0
|
3027 #undef glRasterPos3sv
|
nuclear@0
|
3028 extern "C" { GLAPI void GLAPIENTRY glRasterPos3sv(const GLshort *v); }
|
nuclear@0
|
3029 void OVR::GLEContext::glRasterPos3sv_Hook(const GLshort *v)
|
nuclear@0
|
3030 {
|
nuclear@0
|
3031 glRasterPos3sv(v);
|
nuclear@0
|
3032 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3033 }
|
nuclear@0
|
3034
|
nuclear@0
|
3035 #undef glRasterPos4d
|
nuclear@0
|
3036 extern "C" { GLAPI void GLAPIENTRY glRasterPos4d(GLdouble x, GLdouble y, GLdouble z, GLdouble w); }
|
nuclear@0
|
3037 void OVR::GLEContext::glRasterPos4d_Hook(GLdouble x, GLdouble y, GLdouble z, GLdouble w)
|
nuclear@0
|
3038 {
|
nuclear@0
|
3039 glRasterPos4d(x, y, z, w);
|
nuclear@0
|
3040 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3041 }
|
nuclear@0
|
3042
|
nuclear@0
|
3043 #undef glRasterPos4dv
|
nuclear@0
|
3044 extern "C" { GLAPI void GLAPIENTRY glRasterPos4dv(const GLdouble *v); }
|
nuclear@0
|
3045 void OVR::GLEContext::glRasterPos4dv_Hook(const GLdouble *v)
|
nuclear@0
|
3046 {
|
nuclear@0
|
3047 glRasterPos4dv(v);
|
nuclear@0
|
3048 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3049 }
|
nuclear@0
|
3050
|
nuclear@0
|
3051 #undef glRasterPos4f
|
nuclear@0
|
3052 extern "C" { GLAPI void GLAPIENTRY glRasterPos4f(GLfloat x, GLfloat y, GLfloat z, GLfloat w); }
|
nuclear@0
|
3053 void OVR::GLEContext::glRasterPos4f_Hook(GLfloat x, GLfloat y, GLfloat z, GLfloat w)
|
nuclear@0
|
3054 {
|
nuclear@0
|
3055 glRasterPos4f(x, y, z, w);
|
nuclear@0
|
3056 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3057 }
|
nuclear@0
|
3058
|
nuclear@0
|
3059 #undef glRasterPos4fv
|
nuclear@0
|
3060 extern "C" { GLAPI void GLAPIENTRY glRasterPos4fv(const GLfloat *v); }
|
nuclear@0
|
3061 void OVR::GLEContext::glRasterPos4fv_Hook(const GLfloat *v)
|
nuclear@0
|
3062 {
|
nuclear@0
|
3063 glRasterPos4fv(v);
|
nuclear@0
|
3064 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3065 }
|
nuclear@0
|
3066
|
nuclear@0
|
3067 #undef glRasterPos4i
|
nuclear@0
|
3068 extern "C" { GLAPI void GLAPIENTRY glRasterPos4i(GLint x, GLint y, GLint z, GLint w); }
|
nuclear@0
|
3069 void OVR::GLEContext::glRasterPos4i_Hook(GLint x, GLint y, GLint z, GLint w)
|
nuclear@0
|
3070 {
|
nuclear@0
|
3071 glRasterPos4i(x, y, z, w);
|
nuclear@0
|
3072 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3073 }
|
nuclear@0
|
3074
|
nuclear@0
|
3075 #undef glRasterPos4iv
|
nuclear@0
|
3076 extern "C" { GLAPI void GLAPIENTRY glRasterPos4iv(const GLint *v); }
|
nuclear@0
|
3077 void OVR::GLEContext::glRasterPos4iv_Hook(const GLint *v)
|
nuclear@0
|
3078 {
|
nuclear@0
|
3079 glRasterPos4iv(v);
|
nuclear@0
|
3080 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3081 }
|
nuclear@0
|
3082
|
nuclear@0
|
3083 #undef glRasterPos4s
|
nuclear@0
|
3084 extern "C" { GLAPI void GLAPIENTRY glRasterPos4s(GLshort x, GLshort y, GLshort z, GLshort w); }
|
nuclear@0
|
3085 void OVR::GLEContext::glRasterPos4s_Hook(GLshort x, GLshort y, GLshort z, GLshort w)
|
nuclear@0
|
3086 {
|
nuclear@0
|
3087 glRasterPos4s(x, y, z, w);
|
nuclear@0
|
3088 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3089 }
|
nuclear@0
|
3090
|
nuclear@0
|
3091 #undef glRasterPos4sv
|
nuclear@0
|
3092 extern "C" { GLAPI void GLAPIENTRY glRasterPos4sv(const GLshort *v); }
|
nuclear@0
|
3093 void OVR::GLEContext::glRasterPos4sv_Hook(const GLshort *v)
|
nuclear@0
|
3094 {
|
nuclear@0
|
3095 glRasterPos4sv(v);
|
nuclear@0
|
3096 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3097 }
|
nuclear@0
|
3098
|
nuclear@0
|
3099 #undef glReadBuffer
|
nuclear@0
|
3100 extern "C" { GLAPI void GLAPIENTRY glReadBuffer(GLenum mode); }
|
nuclear@0
|
3101 void OVR::GLEContext::glReadBuffer_Hook(GLenum mode)
|
nuclear@0
|
3102 {
|
nuclear@0
|
3103 glReadBuffer(mode);
|
nuclear@0
|
3104 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3105 }
|
nuclear@0
|
3106
|
nuclear@0
|
3107 #undef glReadPixels
|
nuclear@0
|
3108 extern "C" { GLAPI void GLAPIENTRY glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, void *pixels); }
|
nuclear@0
|
3109 void OVR::GLEContext::glReadPixels_Hook(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, void *pixels)
|
nuclear@0
|
3110 {
|
nuclear@0
|
3111 glReadPixels(x, y, width, height, format, type, pixels);
|
nuclear@0
|
3112 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3113 }
|
nuclear@0
|
3114
|
nuclear@0
|
3115 #undef glRectd
|
nuclear@0
|
3116 extern "C" { GLAPI void GLAPIENTRY glRectd(GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2); }
|
nuclear@0
|
3117 void OVR::GLEContext::glRectd_Hook(GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2)
|
nuclear@0
|
3118 {
|
nuclear@0
|
3119 glRectd(x1, y1, x2, y2);
|
nuclear@0
|
3120 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3121 }
|
nuclear@0
|
3122
|
nuclear@0
|
3123 #undef glRectdv
|
nuclear@0
|
3124 extern "C" { GLAPI void GLAPIENTRY glRectdv(const GLdouble *v1, const GLdouble *v2); }
|
nuclear@0
|
3125 void OVR::GLEContext::glRectdv_Hook(const GLdouble *v1, const GLdouble *v2)
|
nuclear@0
|
3126 {
|
nuclear@0
|
3127 glRectdv(v1, v2);
|
nuclear@0
|
3128 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3129 }
|
nuclear@0
|
3130
|
nuclear@0
|
3131 #undef glRectf
|
nuclear@0
|
3132 extern "C" { GLAPI void GLAPIENTRY glRectf(GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2); }
|
nuclear@0
|
3133 void OVR::GLEContext::glRectf_Hook(GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2)
|
nuclear@0
|
3134 {
|
nuclear@0
|
3135 glRectf(x1, y1, x2, y2);
|
nuclear@0
|
3136 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3137 }
|
nuclear@0
|
3138
|
nuclear@0
|
3139 #undef glRectfv
|
nuclear@0
|
3140 extern "C" { GLAPI void GLAPIENTRY glRectfv(const GLfloat *v1, const GLfloat *v2); }
|
nuclear@0
|
3141 void OVR::GLEContext::glRectfv_Hook(const GLfloat *v1, const GLfloat *v2)
|
nuclear@0
|
3142 {
|
nuclear@0
|
3143 glRectfv(v1, v2);
|
nuclear@0
|
3144 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3145 }
|
nuclear@0
|
3146
|
nuclear@0
|
3147 #undef glRecti
|
nuclear@0
|
3148 extern "C" { GLAPI void GLAPIENTRY glRecti(GLint x1, GLint y1, GLint x2, GLint y2); }
|
nuclear@0
|
3149 void OVR::GLEContext::glRecti_Hook(GLint x1, GLint y1, GLint x2, GLint y2)
|
nuclear@0
|
3150 {
|
nuclear@0
|
3151 glRecti(x1, y1, x2, y2);
|
nuclear@0
|
3152 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3153 }
|
nuclear@0
|
3154
|
nuclear@0
|
3155 #undef glRectiv
|
nuclear@0
|
3156 extern "C" { GLAPI void GLAPIENTRY glRectiv(const GLint *v1, const GLint *v2); }
|
nuclear@0
|
3157 void OVR::GLEContext::glRectiv_Hook(const GLint *v1, const GLint *v2)
|
nuclear@0
|
3158 {
|
nuclear@0
|
3159 glRectiv(v1, v2);
|
nuclear@0
|
3160 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3161 }
|
nuclear@0
|
3162
|
nuclear@0
|
3163 #undef glRects
|
nuclear@0
|
3164 extern "C" { GLAPI void GLAPIENTRY glRects(GLshort x1, GLshort y1, GLshort x2, GLshort y2); }
|
nuclear@0
|
3165 void OVR::GLEContext::glRects_Hook(GLshort x1, GLshort y1, GLshort x2, GLshort y2)
|
nuclear@0
|
3166 {
|
nuclear@0
|
3167 glRects(x1, y1, x2, y2);
|
nuclear@0
|
3168 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3169 }
|
nuclear@0
|
3170
|
nuclear@0
|
3171 #undef glRectsv
|
nuclear@0
|
3172 extern "C" { GLAPI void GLAPIENTRY glRectsv(const GLshort *v1, const GLshort *v2); }
|
nuclear@0
|
3173 void OVR::GLEContext::glRectsv_Hook(const GLshort *v1, const GLshort *v2)
|
nuclear@0
|
3174 {
|
nuclear@0
|
3175 glRectsv(v1, v2);
|
nuclear@0
|
3176 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3177 }
|
nuclear@0
|
3178
|
nuclear@0
|
3179 #undef glRenderMode
|
nuclear@0
|
3180 extern "C" { GLAPI GLint GLAPIENTRY glRenderMode(GLenum mode); }
|
nuclear@0
|
3181 GLint OVR::GLEContext::glRenderMode_Hook(GLenum mode)
|
nuclear@0
|
3182 {
|
nuclear@0
|
3183 GLint i = glRenderMode(mode);
|
nuclear@0
|
3184 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3185 return i;
|
nuclear@0
|
3186 }
|
nuclear@0
|
3187
|
nuclear@0
|
3188 #undef glRotated
|
nuclear@0
|
3189 extern "C" { GLAPI void GLAPIENTRY glRotated(GLdouble angle, GLdouble x, GLdouble y, GLdouble z); }
|
nuclear@0
|
3190 void OVR::GLEContext::glRotated_Hook(GLdouble angle, GLdouble x, GLdouble y, GLdouble z)
|
nuclear@0
|
3191 {
|
nuclear@0
|
3192 glRotated(angle, x, y, z);
|
nuclear@0
|
3193 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3194 }
|
nuclear@0
|
3195
|
nuclear@0
|
3196 #undef glRotatef
|
nuclear@0
|
3197 extern "C" { GLAPI void GLAPIENTRY glRotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z); }
|
nuclear@0
|
3198 void OVR::GLEContext::glRotatef_Hook(GLfloat angle, GLfloat x, GLfloat y, GLfloat z)
|
nuclear@0
|
3199 {
|
nuclear@0
|
3200 glRotatef(angle, x, y, z);
|
nuclear@0
|
3201 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3202 }
|
nuclear@0
|
3203
|
nuclear@0
|
3204 #undef glScaled
|
nuclear@0
|
3205 extern "C" { GLAPI void GLAPIENTRY glScaled(GLdouble x, GLdouble y, GLdouble z); }
|
nuclear@0
|
3206 void OVR::GLEContext::glScaled_Hook(GLdouble x, GLdouble y, GLdouble z)
|
nuclear@0
|
3207 {
|
nuclear@0
|
3208 glScaled(x, y, z);
|
nuclear@0
|
3209 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3210 }
|
nuclear@0
|
3211
|
nuclear@0
|
3212 #undef glScalef
|
nuclear@0
|
3213 extern "C" { GLAPI void GLAPIENTRY glScalef(GLfloat x, GLfloat y, GLfloat z); }
|
nuclear@0
|
3214 void OVR::GLEContext::glScalef_Hook(GLfloat x, GLfloat y, GLfloat z)
|
nuclear@0
|
3215 {
|
nuclear@0
|
3216 glScalef(x, y, z);
|
nuclear@0
|
3217 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3218 }
|
nuclear@0
|
3219
|
nuclear@0
|
3220 #undef glScissor
|
nuclear@0
|
3221 extern "C" { GLAPI void GLAPIENTRY glScissor(GLint x, GLint y, GLsizei width, GLsizei height); }
|
nuclear@0
|
3222 void OVR::GLEContext::glScissor_Hook(GLint x, GLint y, GLsizei width, GLsizei height)
|
nuclear@0
|
3223 {
|
nuclear@0
|
3224 glScissor(x, y, width, height);
|
nuclear@0
|
3225 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3226 }
|
nuclear@0
|
3227
|
nuclear@0
|
3228 #undef glSelectBuffer
|
nuclear@0
|
3229 extern "C" { GLAPI void GLAPIENTRY glSelectBuffer(GLsizei size, GLuint *buffer); }
|
nuclear@0
|
3230 void OVR::GLEContext::glSelectBuffer_Hook(GLsizei size, GLuint *buffer)
|
nuclear@0
|
3231 {
|
nuclear@0
|
3232 glSelectBuffer(size, buffer);
|
nuclear@0
|
3233 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3234 }
|
nuclear@0
|
3235
|
nuclear@0
|
3236 #undef glShadeModel
|
nuclear@0
|
3237 extern "C" { GLAPI void GLAPIENTRY glShadeModel(GLenum mode); }
|
nuclear@0
|
3238 void OVR::GLEContext::glShadeModel_Hook(GLenum mode)
|
nuclear@0
|
3239 {
|
nuclear@0
|
3240 glShadeModel(mode);
|
nuclear@0
|
3241 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3242 }
|
nuclear@0
|
3243
|
nuclear@0
|
3244 #undef glStencilFunc
|
nuclear@0
|
3245 extern "C" { GLAPI void GLAPIENTRY glStencilFunc(GLenum func, GLint ref, GLuint mask); }
|
nuclear@0
|
3246 void OVR::GLEContext::glStencilFunc_Hook(GLenum func, GLint ref, GLuint mask)
|
nuclear@0
|
3247 {
|
nuclear@0
|
3248 glStencilFunc(func, ref, mask);
|
nuclear@0
|
3249 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3250 }
|
nuclear@0
|
3251
|
nuclear@0
|
3252 #undef glStencilMask
|
nuclear@0
|
3253 extern "C" { GLAPI void GLAPIENTRY glStencilMask(GLuint mask); }
|
nuclear@0
|
3254 void OVR::GLEContext::glStencilMask_Hook(GLuint mask)
|
nuclear@0
|
3255 {
|
nuclear@0
|
3256 glStencilMask(mask);
|
nuclear@0
|
3257 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3258 }
|
nuclear@0
|
3259
|
nuclear@0
|
3260 #undef glStencilOp
|
nuclear@0
|
3261 extern "C" { GLAPI void GLAPIENTRY glStencilOp(GLenum fail, GLenum zfail, GLenum zpass); }
|
nuclear@0
|
3262 void OVR::GLEContext::glStencilOp_Hook(GLenum fail, GLenum zfail, GLenum zpass)
|
nuclear@0
|
3263 {
|
nuclear@0
|
3264 glStencilOp(fail, zfail, zpass);
|
nuclear@0
|
3265 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3266 }
|
nuclear@0
|
3267
|
nuclear@0
|
3268 #undef glTexCoord1d
|
nuclear@0
|
3269 extern "C" { GLAPI void GLAPIENTRY glTexCoord1d(GLdouble s); }
|
nuclear@0
|
3270 void OVR::GLEContext::glTexCoord1d_Hook(GLdouble s)
|
nuclear@0
|
3271 {
|
nuclear@0
|
3272 glTexCoord1d(s);
|
nuclear@0
|
3273 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3274 }
|
nuclear@0
|
3275
|
nuclear@0
|
3276 #undef glTexCoord1dv
|
nuclear@0
|
3277 extern "C" { GLAPI void GLAPIENTRY glTexCoord1dv(const GLdouble *v); }
|
nuclear@0
|
3278 void OVR::GLEContext::glTexCoord1dv_Hook(const GLdouble *v)
|
nuclear@0
|
3279 {
|
nuclear@0
|
3280 glTexCoord1dv(v);
|
nuclear@0
|
3281 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3282 }
|
nuclear@0
|
3283
|
nuclear@0
|
3284 #undef glTexCoord1f
|
nuclear@0
|
3285 extern "C" { GLAPI void GLAPIENTRY glTexCoord1f(GLfloat s); }
|
nuclear@0
|
3286 void OVR::GLEContext::glTexCoord1f_Hook(GLfloat s)
|
nuclear@0
|
3287 {
|
nuclear@0
|
3288 glTexCoord1f(s);
|
nuclear@0
|
3289 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3290 }
|
nuclear@0
|
3291
|
nuclear@0
|
3292 #undef glTexCoord1fv
|
nuclear@0
|
3293 extern "C" { GLAPI void GLAPIENTRY glTexCoord1fv(const GLfloat *v); }
|
nuclear@0
|
3294 void OVR::GLEContext::glTexCoord1fv_Hook(const GLfloat *v)
|
nuclear@0
|
3295 {
|
nuclear@0
|
3296 glTexCoord1fv(v);
|
nuclear@0
|
3297 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3298 }
|
nuclear@0
|
3299
|
nuclear@0
|
3300 #undef glTexCoord1i
|
nuclear@0
|
3301 extern "C" { GLAPI void GLAPIENTRY glTexCoord1i(GLint s); }
|
nuclear@0
|
3302 void OVR::GLEContext::glTexCoord1i_Hook(GLint s)
|
nuclear@0
|
3303 {
|
nuclear@0
|
3304 glTexCoord1i(s);
|
nuclear@0
|
3305 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3306 }
|
nuclear@0
|
3307
|
nuclear@0
|
3308 #undef glTexCoord1iv
|
nuclear@0
|
3309 extern "C" { GLAPI void GLAPIENTRY glTexCoord1iv(const GLint *v); }
|
nuclear@0
|
3310 void OVR::GLEContext::glTexCoord1iv_Hook(const GLint *v)
|
nuclear@0
|
3311 {
|
nuclear@0
|
3312 glTexCoord1iv(v);
|
nuclear@0
|
3313 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3314 }
|
nuclear@0
|
3315
|
nuclear@0
|
3316 #undef glTexCoord1s
|
nuclear@0
|
3317 extern "C" { GLAPI void GLAPIENTRY glTexCoord1s(GLshort s); }
|
nuclear@0
|
3318 void OVR::GLEContext::glTexCoord1s_Hook(GLshort s)
|
nuclear@0
|
3319 {
|
nuclear@0
|
3320 glTexCoord1s(s);
|
nuclear@0
|
3321 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3322 }
|
nuclear@0
|
3323
|
nuclear@0
|
3324 #undef glTexCoord1sv
|
nuclear@0
|
3325 extern "C" { GLAPI void GLAPIENTRY glTexCoord1sv(const GLshort *v); }
|
nuclear@0
|
3326 void OVR::GLEContext::glTexCoord1sv_Hook(const GLshort *v)
|
nuclear@0
|
3327 {
|
nuclear@0
|
3328 glTexCoord1sv(v);
|
nuclear@0
|
3329 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3330 }
|
nuclear@0
|
3331
|
nuclear@0
|
3332 #undef glTexCoord2d
|
nuclear@0
|
3333 extern "C" { GLAPI void GLAPIENTRY glTexCoord2d(GLdouble s, GLdouble t); }
|
nuclear@0
|
3334 void OVR::GLEContext::glTexCoord2d_Hook(GLdouble s, GLdouble t)
|
nuclear@0
|
3335 {
|
nuclear@0
|
3336 glTexCoord2d(s, t);
|
nuclear@0
|
3337 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3338 }
|
nuclear@0
|
3339
|
nuclear@0
|
3340 #undef glTexCoord2dv
|
nuclear@0
|
3341 extern "C" { GLAPI void GLAPIENTRY glTexCoord2dv(const GLdouble *v); }
|
nuclear@0
|
3342 void OVR::GLEContext::glTexCoord2dv_Hook(const GLdouble *v)
|
nuclear@0
|
3343 {
|
nuclear@0
|
3344 glTexCoord2dv(v);
|
nuclear@0
|
3345 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3346 }
|
nuclear@0
|
3347
|
nuclear@0
|
3348 #undef glTexCoord2f
|
nuclear@0
|
3349 extern "C" { GLAPI void GLAPIENTRY glTexCoord2f(GLfloat s, GLfloat t); }
|
nuclear@0
|
3350 void OVR::GLEContext::glTexCoord2f_Hook(GLfloat s, GLfloat t)
|
nuclear@0
|
3351 {
|
nuclear@0
|
3352 glTexCoord2f(s, t);
|
nuclear@0
|
3353 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3354 }
|
nuclear@0
|
3355
|
nuclear@0
|
3356 #undef glTexCoord2fv
|
nuclear@0
|
3357 extern "C" { GLAPI void GLAPIENTRY glTexCoord2fv(const GLfloat *v); }
|
nuclear@0
|
3358 void OVR::GLEContext::glTexCoord2fv_Hook(const GLfloat *v)
|
nuclear@0
|
3359 {
|
nuclear@0
|
3360 glTexCoord2fv(v);
|
nuclear@0
|
3361 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3362 }
|
nuclear@0
|
3363
|
nuclear@0
|
3364 #undef glTexCoord2i
|
nuclear@0
|
3365 extern "C" { GLAPI void GLAPIENTRY glTexCoord2i(GLint s, GLint t); }
|
nuclear@0
|
3366 void OVR::GLEContext::glTexCoord2i_Hook(GLint s, GLint t)
|
nuclear@0
|
3367 {
|
nuclear@0
|
3368 glTexCoord2i(s, t);
|
nuclear@0
|
3369 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3370 }
|
nuclear@0
|
3371
|
nuclear@0
|
3372 #undef glTexCoord2iv
|
nuclear@0
|
3373 extern "C" { GLAPI void GLAPIENTRY glTexCoord2iv(const GLint *v); }
|
nuclear@0
|
3374 void OVR::GLEContext::glTexCoord2iv_Hook(const GLint *v)
|
nuclear@0
|
3375 {
|
nuclear@0
|
3376 glTexCoord2iv(v);
|
nuclear@0
|
3377 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3378 }
|
nuclear@0
|
3379
|
nuclear@0
|
3380 #undef glTexCoord2s
|
nuclear@0
|
3381 extern "C" { GLAPI void GLAPIENTRY glTexCoord2s(GLshort s, GLshort t); }
|
nuclear@0
|
3382 void OVR::GLEContext::glTexCoord2s_Hook(GLshort s, GLshort t)
|
nuclear@0
|
3383 {
|
nuclear@0
|
3384 glTexCoord2s(s, t);
|
nuclear@0
|
3385 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3386 }
|
nuclear@0
|
3387
|
nuclear@0
|
3388 #undef glTexCoord2sv
|
nuclear@0
|
3389 extern "C" { GLAPI void GLAPIENTRY glTexCoord2sv(const GLshort *v); }
|
nuclear@0
|
3390 void OVR::GLEContext::glTexCoord2sv_Hook(const GLshort *v)
|
nuclear@0
|
3391 {
|
nuclear@0
|
3392 glTexCoord2sv(v);
|
nuclear@0
|
3393 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3394 }
|
nuclear@0
|
3395
|
nuclear@0
|
3396 #undef glTexCoord3d
|
nuclear@0
|
3397 extern "C" { GLAPI void GLAPIENTRY glTexCoord3d(GLdouble s, GLdouble t, GLdouble r); }
|
nuclear@0
|
3398 void OVR::GLEContext::glTexCoord3d_Hook(GLdouble s, GLdouble t, GLdouble r)
|
nuclear@0
|
3399 {
|
nuclear@0
|
3400 glTexCoord3d(s, t, r);
|
nuclear@0
|
3401 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3402 }
|
nuclear@0
|
3403
|
nuclear@0
|
3404 #undef glTexCoord3dv
|
nuclear@0
|
3405 extern "C" { GLAPI void GLAPIENTRY glTexCoord3dv(const GLdouble *v); }
|
nuclear@0
|
3406 void OVR::GLEContext::glTexCoord3dv_Hook(const GLdouble *v)
|
nuclear@0
|
3407 {
|
nuclear@0
|
3408 glTexCoord3dv(v);
|
nuclear@0
|
3409 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3410 }
|
nuclear@0
|
3411
|
nuclear@0
|
3412 #undef glTexCoord3f
|
nuclear@0
|
3413 extern "C" { GLAPI void GLAPIENTRY glTexCoord3f(GLfloat s, GLfloat t, GLfloat r); }
|
nuclear@0
|
3414 void OVR::GLEContext::glTexCoord3f_Hook(GLfloat s, GLfloat t, GLfloat r)
|
nuclear@0
|
3415 {
|
nuclear@0
|
3416 glTexCoord3f(s, t, r);
|
nuclear@0
|
3417 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3418 }
|
nuclear@0
|
3419
|
nuclear@0
|
3420 #undef glTexCoord3fv
|
nuclear@0
|
3421 extern "C" { GLAPI void GLAPIENTRY glTexCoord3fv(const GLfloat *v); }
|
nuclear@0
|
3422 void OVR::GLEContext::glTexCoord3fv_Hook(const GLfloat *v)
|
nuclear@0
|
3423 {
|
nuclear@0
|
3424 glTexCoord3fv(v);
|
nuclear@0
|
3425 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3426 }
|
nuclear@0
|
3427
|
nuclear@0
|
3428 #undef glTexCoord3i
|
nuclear@0
|
3429 extern "C" { GLAPI void GLAPIENTRY glTexCoord3i(GLint s, GLint t, GLint r); }
|
nuclear@0
|
3430 void OVR::GLEContext::glTexCoord3i_Hook(GLint s, GLint t, GLint r)
|
nuclear@0
|
3431 {
|
nuclear@0
|
3432 glTexCoord3i(s, t, r);
|
nuclear@0
|
3433 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3434 }
|
nuclear@0
|
3435
|
nuclear@0
|
3436 #undef glTexCoord3iv
|
nuclear@0
|
3437 extern "C" { GLAPI void GLAPIENTRY glTexCoord3iv(const GLint *v); }
|
nuclear@0
|
3438 void OVR::GLEContext::glTexCoord3iv_Hook(const GLint *v)
|
nuclear@0
|
3439 {
|
nuclear@0
|
3440 glTexCoord3iv(v);
|
nuclear@0
|
3441 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3442 }
|
nuclear@0
|
3443
|
nuclear@0
|
3444 #undef glTexCoord3s
|
nuclear@0
|
3445 extern "C" { GLAPI void GLAPIENTRY glTexCoord3s(GLshort s, GLshort t, GLshort r); }
|
nuclear@0
|
3446 void OVR::GLEContext::glTexCoord3s_Hook(GLshort s, GLshort t, GLshort r)
|
nuclear@0
|
3447 {
|
nuclear@0
|
3448 glTexCoord3s(s, t, r);
|
nuclear@0
|
3449 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3450 }
|
nuclear@0
|
3451
|
nuclear@0
|
3452 #undef glTexCoord3sv
|
nuclear@0
|
3453 extern "C" { GLAPI void GLAPIENTRY glTexCoord3sv(const GLshort *v); }
|
nuclear@0
|
3454 void OVR::GLEContext::glTexCoord3sv_Hook(const GLshort *v)
|
nuclear@0
|
3455 {
|
nuclear@0
|
3456 glTexCoord3sv(v);
|
nuclear@0
|
3457 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3458 }
|
nuclear@0
|
3459
|
nuclear@0
|
3460 #undef glTexCoord4d
|
nuclear@0
|
3461 extern "C" { GLAPI void GLAPIENTRY glTexCoord4d(GLdouble s, GLdouble t, GLdouble r, GLdouble q); }
|
nuclear@0
|
3462 void OVR::GLEContext::glTexCoord4d_Hook(GLdouble s, GLdouble t, GLdouble r, GLdouble q)
|
nuclear@0
|
3463 {
|
nuclear@0
|
3464 glTexCoord4d(s, t, r, q);
|
nuclear@0
|
3465 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3466 }
|
nuclear@0
|
3467
|
nuclear@0
|
3468 #undef glTexCoord4dv
|
nuclear@0
|
3469 extern "C" { GLAPI void GLAPIENTRY glTexCoord4dv(const GLdouble *v); }
|
nuclear@0
|
3470 void OVR::GLEContext::glTexCoord4dv_Hook(const GLdouble *v)
|
nuclear@0
|
3471 {
|
nuclear@0
|
3472 glTexCoord4dv(v);
|
nuclear@0
|
3473 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3474 }
|
nuclear@0
|
3475
|
nuclear@0
|
3476 #undef glTexCoord4f
|
nuclear@0
|
3477 extern "C" { GLAPI void GLAPIENTRY glTexCoord4f(GLfloat s, GLfloat t, GLfloat r, GLfloat q); }
|
nuclear@0
|
3478 void OVR::GLEContext::glTexCoord4f_Hook(GLfloat s, GLfloat t, GLfloat r, GLfloat q)
|
nuclear@0
|
3479 {
|
nuclear@0
|
3480 glTexCoord4f(s, t, r, q);
|
nuclear@0
|
3481 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3482 }
|
nuclear@0
|
3483
|
nuclear@0
|
3484 #undef glTexCoord4fv
|
nuclear@0
|
3485 extern "C" { GLAPI void GLAPIENTRY glTexCoord4fv(const GLfloat *v); }
|
nuclear@0
|
3486 void OVR::GLEContext::glTexCoord4fv_Hook(const GLfloat *v)
|
nuclear@0
|
3487 {
|
nuclear@0
|
3488 glTexCoord4fv(v);
|
nuclear@0
|
3489 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3490 }
|
nuclear@0
|
3491
|
nuclear@0
|
3492 #undef glTexCoord4i
|
nuclear@0
|
3493 extern "C" { GLAPI void GLAPIENTRY glTexCoord4i(GLint s, GLint t, GLint r, GLint q); }
|
nuclear@0
|
3494 void OVR::GLEContext::glTexCoord4i_Hook(GLint s, GLint t, GLint r, GLint q)
|
nuclear@0
|
3495 {
|
nuclear@0
|
3496 glTexCoord4i(s, t, r, q);
|
nuclear@0
|
3497 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3498 }
|
nuclear@0
|
3499
|
nuclear@0
|
3500 #undef glTexCoord4iv
|
nuclear@0
|
3501 extern "C" { GLAPI void GLAPIENTRY glTexCoord4iv(const GLint *v); }
|
nuclear@0
|
3502 void OVR::GLEContext::glTexCoord4iv_Hook(const GLint *v)
|
nuclear@0
|
3503 {
|
nuclear@0
|
3504 glTexCoord4iv(v);
|
nuclear@0
|
3505 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3506 }
|
nuclear@0
|
3507
|
nuclear@0
|
3508 #undef glTexCoord4s
|
nuclear@0
|
3509 extern "C" { GLAPI void GLAPIENTRY glTexCoord4s(GLshort s, GLshort t, GLshort r, GLshort q); }
|
nuclear@0
|
3510 void OVR::GLEContext::glTexCoord4s_Hook(GLshort s, GLshort t, GLshort r, GLshort q)
|
nuclear@0
|
3511 {
|
nuclear@0
|
3512 glTexCoord4s(s, t, r, q);
|
nuclear@0
|
3513 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3514 }
|
nuclear@0
|
3515
|
nuclear@0
|
3516 #undef glTexCoord4sv
|
nuclear@0
|
3517 extern "C" { GLAPI void GLAPIENTRY glTexCoord4sv(const GLshort *v); }
|
nuclear@0
|
3518 void OVR::GLEContext::glTexCoord4sv_Hook(const GLshort *v)
|
nuclear@0
|
3519 {
|
nuclear@0
|
3520 glTexCoord4sv(v);
|
nuclear@0
|
3521 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3522 }
|
nuclear@0
|
3523
|
nuclear@0
|
3524 #undef glTexCoordPointer
|
nuclear@0
|
3525 extern "C" { GLAPI void GLAPIENTRY glTexCoordPointer(GLint size, GLenum type, GLsizei stride, const void *pointer); }
|
nuclear@0
|
3526 void OVR::GLEContext::glTexCoordPointer_Hook(GLint size, GLenum type, GLsizei stride, const void *pointer)
|
nuclear@0
|
3527 {
|
nuclear@0
|
3528 glTexCoordPointer(size, type, stride, pointer);
|
nuclear@0
|
3529 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3530 }
|
nuclear@0
|
3531
|
nuclear@0
|
3532 #undef glTexEnvf
|
nuclear@0
|
3533 extern "C" { GLAPI void GLAPIENTRY glTexEnvf(GLenum target, GLenum pname, GLfloat param); }
|
nuclear@0
|
3534 void OVR::GLEContext::glTexEnvf_Hook(GLenum target, GLenum pname, GLfloat param)
|
nuclear@0
|
3535 {
|
nuclear@0
|
3536 glTexEnvf(target, pname, param);
|
nuclear@0
|
3537 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3538 }
|
nuclear@0
|
3539
|
nuclear@0
|
3540 #undef glTexEnvfv
|
nuclear@0
|
3541 extern "C" { GLAPI void GLAPIENTRY glTexEnvfv(GLenum target, GLenum pname, const GLfloat *params); }
|
nuclear@0
|
3542 void OVR::GLEContext::glTexEnvfv_Hook(GLenum target, GLenum pname, const GLfloat *params)
|
nuclear@0
|
3543 {
|
nuclear@0
|
3544 glTexEnvfv(target, pname, params);
|
nuclear@0
|
3545 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3546 }
|
nuclear@0
|
3547
|
nuclear@0
|
3548 #undef glTexEnvi
|
nuclear@0
|
3549 extern "C" { GLAPI void GLAPIENTRY glTexEnvi(GLenum target, GLenum pname, GLint param); }
|
nuclear@0
|
3550 void OVR::GLEContext::glTexEnvi_Hook(GLenum target, GLenum pname, GLint param)
|
nuclear@0
|
3551 {
|
nuclear@0
|
3552 glTexEnvi(target, pname, param);
|
nuclear@0
|
3553 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3554 }
|
nuclear@0
|
3555
|
nuclear@0
|
3556 #undef glTexEnviv
|
nuclear@0
|
3557 extern "C" { GLAPI void GLAPIENTRY glTexEnviv(GLenum target, GLenum pname, const GLint *params); }
|
nuclear@0
|
3558 void OVR::GLEContext::glTexEnviv_Hook(GLenum target, GLenum pname, const GLint *params)
|
nuclear@0
|
3559 {
|
nuclear@0
|
3560 glTexEnviv(target, pname, params);
|
nuclear@0
|
3561 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3562 }
|
nuclear@0
|
3563
|
nuclear@0
|
3564 #undef glTexGend
|
nuclear@0
|
3565 extern "C" { GLAPI void GLAPIENTRY glTexGend(GLenum coord, GLenum pname, GLdouble param); }
|
nuclear@0
|
3566 void OVR::GLEContext::glTexGend_Hook(GLenum coord, GLenum pname, GLdouble param)
|
nuclear@0
|
3567 {
|
nuclear@0
|
3568 glTexGend(coord, pname, param);
|
nuclear@0
|
3569 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3570 }
|
nuclear@0
|
3571
|
nuclear@0
|
3572 #undef glTexGendv
|
nuclear@0
|
3573 extern "C" { GLAPI void GLAPIENTRY glTexGendv(GLenum coord, GLenum pname, const GLdouble *params); }
|
nuclear@0
|
3574 void OVR::GLEContext::glTexGendv_Hook(GLenum coord, GLenum pname, const GLdouble *params)
|
nuclear@0
|
3575 {
|
nuclear@0
|
3576 glTexGendv(coord, pname, params);
|
nuclear@0
|
3577 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3578 }
|
nuclear@0
|
3579
|
nuclear@0
|
3580 #undef glTexGenf
|
nuclear@0
|
3581 extern "C" { GLAPI void GLAPIENTRY glTexGenf(GLenum coord, GLenum pname, GLfloat param); }
|
nuclear@0
|
3582 void OVR::GLEContext::glTexGenf_Hook(GLenum coord, GLenum pname, GLfloat param)
|
nuclear@0
|
3583 {
|
nuclear@0
|
3584 glTexGenf(coord, pname, param);
|
nuclear@0
|
3585 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3586 }
|
nuclear@0
|
3587
|
nuclear@0
|
3588 #undef glTexGenfv
|
nuclear@0
|
3589 extern "C" { GLAPI void GLAPIENTRY glTexGenfv(GLenum coord, GLenum pname, const GLfloat *params); }
|
nuclear@0
|
3590 void OVR::GLEContext::glTexGenfv_Hook(GLenum coord, GLenum pname, const GLfloat *params)
|
nuclear@0
|
3591 {
|
nuclear@0
|
3592 glTexGenfv(coord, pname, params);
|
nuclear@0
|
3593 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3594 }
|
nuclear@0
|
3595
|
nuclear@0
|
3596 #undef glTexGeni
|
nuclear@0
|
3597 extern "C" { GLAPI void GLAPIENTRY glTexGeni(GLenum coord, GLenum pname, GLint param); }
|
nuclear@0
|
3598 void OVR::GLEContext::glTexGeni_Hook(GLenum coord, GLenum pname, GLint param)
|
nuclear@0
|
3599 {
|
nuclear@0
|
3600 glTexGeni(coord, pname, param);
|
nuclear@0
|
3601 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3602 }
|
nuclear@0
|
3603
|
nuclear@0
|
3604 #undef glTexGeniv
|
nuclear@0
|
3605 extern "C" { GLAPI void GLAPIENTRY glTexGeniv(GLenum coord, GLenum pname, const GLint *params); }
|
nuclear@0
|
3606 void OVR::GLEContext::glTexGeniv_Hook(GLenum coord, GLenum pname, const GLint *params)
|
nuclear@0
|
3607 {
|
nuclear@0
|
3608 glTexGeniv(coord, pname, params);
|
nuclear@0
|
3609 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3610 }
|
nuclear@0
|
3611
|
nuclear@0
|
3612 #undef glTexImage1D
|
nuclear@0
|
3613 extern "C" { GLAPI void GLAPIENTRY glTexImage1D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const void *pixels); }
|
nuclear@0
|
3614 void OVR::GLEContext::glTexImage1D_Hook(GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const void *pixels)
|
nuclear@0
|
3615 {
|
nuclear@0
|
3616 glTexImage1D(target, level, internalformat, width, border, format, type, pixels);
|
nuclear@0
|
3617 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3618 }
|
nuclear@0
|
3619
|
nuclear@0
|
3620 #undef glTexImage2D
|
nuclear@0
|
3621 extern "C" { GLAPI void GLAPIENTRY glTexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels); }
|
nuclear@0
|
3622 void OVR::GLEContext::glTexImage2D_Hook(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels)
|
nuclear@0
|
3623 {
|
nuclear@0
|
3624 glTexImage2D(target, level, internalformat, width, height, border, format, type, pixels);
|
nuclear@0
|
3625 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3626 }
|
nuclear@0
|
3627
|
nuclear@0
|
3628 #undef glTexParameterf
|
nuclear@0
|
3629 extern "C" { GLAPI void GLAPIENTRY glTexParameterf(GLenum target, GLenum pname, GLfloat param); }
|
nuclear@0
|
3630 void OVR::GLEContext::glTexParameterf_Hook(GLenum target, GLenum pname, GLfloat param)
|
nuclear@0
|
3631 {
|
nuclear@0
|
3632 glTexParameterf(target, pname, param);
|
nuclear@0
|
3633 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3634 }
|
nuclear@0
|
3635
|
nuclear@0
|
3636 #undef glTexParameterfv
|
nuclear@0
|
3637 extern "C" { GLAPI void GLAPIENTRY glTexParameterfv(GLenum target, GLenum pname, const GLfloat *params); }
|
nuclear@0
|
3638 void OVR::GLEContext::glTexParameterfv_Hook(GLenum target, GLenum pname, const GLfloat *params)
|
nuclear@0
|
3639 {
|
nuclear@0
|
3640 glTexParameterfv(target, pname, params);
|
nuclear@0
|
3641 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3642 }
|
nuclear@0
|
3643
|
nuclear@0
|
3644 #undef glTexParameteri
|
nuclear@0
|
3645 extern "C" { GLAPI void GLAPIENTRY glTexParameteri(GLenum target, GLenum pname, GLint param); }
|
nuclear@0
|
3646 void OVR::GLEContext::glTexParameteri_Hook(GLenum target, GLenum pname, GLint param)
|
nuclear@0
|
3647 {
|
nuclear@0
|
3648 glTexParameteri(target, pname, param);
|
nuclear@0
|
3649 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3650 }
|
nuclear@0
|
3651
|
nuclear@0
|
3652 #undef glTexParameteriv
|
nuclear@0
|
3653 extern "C" { GLAPI void GLAPIENTRY glTexParameteriv(GLenum target, GLenum pname, const GLint *params); }
|
nuclear@0
|
3654 void OVR::GLEContext::glTexParameteriv_Hook(GLenum target, GLenum pname, const GLint *params)
|
nuclear@0
|
3655 {
|
nuclear@0
|
3656 glTexParameteriv(target, pname, params);
|
nuclear@0
|
3657 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3658 }
|
nuclear@0
|
3659
|
nuclear@0
|
3660 #undef glTexSubImage1D
|
nuclear@0
|
3661 extern "C" { GLAPI void GLAPIENTRY glTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels); }
|
nuclear@0
|
3662 void OVR::GLEContext::glTexSubImage1D_Hook(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void *pixels)
|
nuclear@0
|
3663 {
|
nuclear@0
|
3664 glTexSubImage1D(target, level, xoffset, width, format, type, pixels);
|
nuclear@0
|
3665 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3666 }
|
nuclear@0
|
3667
|
nuclear@0
|
3668 #undef glTexSubImage2D
|
nuclear@0
|
3669 extern "C" { GLAPI void GLAPIENTRY glTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels); }
|
nuclear@0
|
3670 void OVR::GLEContext::glTexSubImage2D_Hook(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels)
|
nuclear@0
|
3671 {
|
nuclear@0
|
3672 glTexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels);
|
nuclear@0
|
3673 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3674 }
|
nuclear@0
|
3675
|
nuclear@0
|
3676 #undef glTranslated
|
nuclear@0
|
3677 extern "C" { GLAPI void GLAPIENTRY glTranslated(GLdouble x, GLdouble y, GLdouble z); }
|
nuclear@0
|
3678 void OVR::GLEContext::glTranslated_Hook(GLdouble x, GLdouble y, GLdouble z)
|
nuclear@0
|
3679 {
|
nuclear@0
|
3680 glTranslated(x, y, z);
|
nuclear@0
|
3681 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3682 }
|
nuclear@0
|
3683
|
nuclear@0
|
3684 #undef glTranslatef
|
nuclear@0
|
3685 extern "C" { GLAPI void GLAPIENTRY glTranslatef(GLfloat x, GLfloat y, GLfloat z); }
|
nuclear@0
|
3686 void OVR::GLEContext::glTranslatef_Hook(GLfloat x, GLfloat y, GLfloat z)
|
nuclear@0
|
3687 {
|
nuclear@0
|
3688 glTranslatef(x, y, z);
|
nuclear@0
|
3689 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3690 }
|
nuclear@0
|
3691
|
nuclear@0
|
3692 #undef glVertex2d
|
nuclear@0
|
3693 extern "C" { GLAPI void GLAPIENTRY glVertex2d(GLdouble x, GLdouble y); }
|
nuclear@0
|
3694 void OVR::GLEContext::glVertex2d_Hook(GLdouble x, GLdouble y)
|
nuclear@0
|
3695 {
|
nuclear@0
|
3696 glVertex2d(x, y);
|
nuclear@0
|
3697 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3698 }
|
nuclear@0
|
3699
|
nuclear@0
|
3700 #undef glVertex2dv
|
nuclear@0
|
3701 extern "C" { GLAPI void GLAPIENTRY glVertex2dv(const GLdouble *v); }
|
nuclear@0
|
3702 void OVR::GLEContext::glVertex2dv_Hook(const GLdouble *v)
|
nuclear@0
|
3703 {
|
nuclear@0
|
3704 glVertex2dv(v);
|
nuclear@0
|
3705 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3706 }
|
nuclear@0
|
3707
|
nuclear@0
|
3708 #undef glVertex2f
|
nuclear@0
|
3709 extern "C" { GLAPI void GLAPIENTRY glVertex2f(GLfloat x, GLfloat y); }
|
nuclear@0
|
3710 void OVR::GLEContext::glVertex2f_Hook(GLfloat x, GLfloat y)
|
nuclear@0
|
3711 {
|
nuclear@0
|
3712 glVertex2f(x, y);
|
nuclear@0
|
3713 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3714 }
|
nuclear@0
|
3715
|
nuclear@0
|
3716 #undef glVertex2fv
|
nuclear@0
|
3717 extern "C" { GLAPI void GLAPIENTRY glVertex2fv(const GLfloat *v); }
|
nuclear@0
|
3718 void OVR::GLEContext::glVertex2fv_Hook(const GLfloat *v)
|
nuclear@0
|
3719 {
|
nuclear@0
|
3720 glVertex2fv(v);
|
nuclear@0
|
3721 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3722 }
|
nuclear@0
|
3723
|
nuclear@0
|
3724 #undef glVertex2i
|
nuclear@0
|
3725 extern "C" { GLAPI void GLAPIENTRY glVertex2i(GLint x, GLint y); }
|
nuclear@0
|
3726 void OVR::GLEContext::glVertex2i_Hook(GLint x, GLint y)
|
nuclear@0
|
3727 {
|
nuclear@0
|
3728 glVertex2i(x, y);
|
nuclear@0
|
3729 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3730 }
|
nuclear@0
|
3731
|
nuclear@0
|
3732 #undef glVertex2iv
|
nuclear@0
|
3733 extern "C" { GLAPI void GLAPIENTRY glVertex2iv(const GLint *v); }
|
nuclear@0
|
3734 void OVR::GLEContext::glVertex2iv_Hook(const GLint *v)
|
nuclear@0
|
3735 {
|
nuclear@0
|
3736 glVertex2iv(v);
|
nuclear@0
|
3737 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3738 }
|
nuclear@0
|
3739
|
nuclear@0
|
3740 #undef glVertex2s
|
nuclear@0
|
3741 extern "C" { GLAPI void GLAPIENTRY glVertex2s(GLshort x, GLshort y); }
|
nuclear@0
|
3742 void OVR::GLEContext::glVertex2s_Hook(GLshort x, GLshort y)
|
nuclear@0
|
3743 {
|
nuclear@0
|
3744 glVertex2s(x, y);
|
nuclear@0
|
3745 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3746 }
|
nuclear@0
|
3747
|
nuclear@0
|
3748 #undef glVertex2sv
|
nuclear@0
|
3749 extern "C" { GLAPI void GLAPIENTRY glVertex2sv(const GLshort *v); }
|
nuclear@0
|
3750 void OVR::GLEContext::glVertex2sv_Hook(const GLshort *v)
|
nuclear@0
|
3751 {
|
nuclear@0
|
3752 glVertex2sv(v);
|
nuclear@0
|
3753 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3754 }
|
nuclear@0
|
3755
|
nuclear@0
|
3756 #undef glVertex3d
|
nuclear@0
|
3757 extern "C" { GLAPI void GLAPIENTRY glVertex3d(GLdouble x, GLdouble y, GLdouble z); }
|
nuclear@0
|
3758 void OVR::GLEContext::glVertex3d_Hook(GLdouble x, GLdouble y, GLdouble z)
|
nuclear@0
|
3759 {
|
nuclear@0
|
3760 glVertex3d(x, y, z);
|
nuclear@0
|
3761 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3762 }
|
nuclear@0
|
3763
|
nuclear@0
|
3764 #undef glVertex3dv
|
nuclear@0
|
3765 extern "C" { GLAPI void GLAPIENTRY glVertex3dv(const GLdouble *v); }
|
nuclear@0
|
3766 void OVR::GLEContext::glVertex3dv_Hook(const GLdouble *v)
|
nuclear@0
|
3767 {
|
nuclear@0
|
3768 glVertex3dv(v);
|
nuclear@0
|
3769 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3770 }
|
nuclear@0
|
3771
|
nuclear@0
|
3772 #undef glVertex3f
|
nuclear@0
|
3773 extern "C" { GLAPI void GLAPIENTRY glVertex3f(GLfloat x, GLfloat y, GLfloat z); }
|
nuclear@0
|
3774 void OVR::GLEContext::glVertex3f_Hook(GLfloat x, GLfloat y, GLfloat z)
|
nuclear@0
|
3775 {
|
nuclear@0
|
3776 glVertex3f(x, y, z);
|
nuclear@0
|
3777 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3778 }
|
nuclear@0
|
3779
|
nuclear@0
|
3780 #undef glVertex3fv
|
nuclear@0
|
3781 extern "C" { GLAPI void GLAPIENTRY glVertex3fv(const GLfloat *v); }
|
nuclear@0
|
3782 void OVR::GLEContext::glVertex3fv_Hook(const GLfloat *v)
|
nuclear@0
|
3783 {
|
nuclear@0
|
3784 glVertex3fv(v);
|
nuclear@0
|
3785 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3786 }
|
nuclear@0
|
3787
|
nuclear@0
|
3788 #undef glVertex3i
|
nuclear@0
|
3789 extern "C" { GLAPI void GLAPIENTRY glVertex3i(GLint x, GLint y, GLint z); }
|
nuclear@0
|
3790 void OVR::GLEContext::glVertex3i_Hook(GLint x, GLint y, GLint z)
|
nuclear@0
|
3791 {
|
nuclear@0
|
3792 glVertex3i(x, y, z);
|
nuclear@0
|
3793 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3794 }
|
nuclear@0
|
3795
|
nuclear@0
|
3796 #undef glVertex3iv
|
nuclear@0
|
3797 extern "C" { GLAPI void GLAPIENTRY glVertex3iv(const GLint *v); }
|
nuclear@0
|
3798 void OVR::GLEContext::glVertex3iv_Hook(const GLint *v)
|
nuclear@0
|
3799 {
|
nuclear@0
|
3800 glVertex3iv(v);
|
nuclear@0
|
3801 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3802 }
|
nuclear@0
|
3803
|
nuclear@0
|
3804 #undef glVertex3s
|
nuclear@0
|
3805 extern "C" { GLAPI void GLAPIENTRY glVertex3s(GLshort x, GLshort y, GLshort z); }
|
nuclear@0
|
3806 void OVR::GLEContext::glVertex3s_Hook(GLshort x, GLshort y, GLshort z)
|
nuclear@0
|
3807 {
|
nuclear@0
|
3808 glVertex3s(x, y, z);
|
nuclear@0
|
3809 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3810 }
|
nuclear@0
|
3811
|
nuclear@0
|
3812 #undef glVertex3sv
|
nuclear@0
|
3813 extern "C" { GLAPI void GLAPIENTRY glVertex3sv(const GLshort *v); }
|
nuclear@0
|
3814 void OVR::GLEContext::glVertex3sv_Hook(const GLshort *v)
|
nuclear@0
|
3815 {
|
nuclear@0
|
3816 glVertex3sv(v);
|
nuclear@0
|
3817 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3818 }
|
nuclear@0
|
3819
|
nuclear@0
|
3820 #undef glVertex4d
|
nuclear@0
|
3821 extern "C" { GLAPI void GLAPIENTRY glVertex4d(GLdouble x, GLdouble y, GLdouble z, GLdouble w); }
|
nuclear@0
|
3822 void OVR::GLEContext::glVertex4d_Hook(GLdouble x, GLdouble y, GLdouble z, GLdouble w)
|
nuclear@0
|
3823 {
|
nuclear@0
|
3824 glVertex4d(x, y, z, w);
|
nuclear@0
|
3825 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3826 }
|
nuclear@0
|
3827
|
nuclear@0
|
3828 #undef glVertex4dv
|
nuclear@0
|
3829 extern "C" { GLAPI void GLAPIENTRY glVertex4dv(const GLdouble *v); }
|
nuclear@0
|
3830 void OVR::GLEContext::glVertex4dv_Hook(const GLdouble *v)
|
nuclear@0
|
3831 {
|
nuclear@0
|
3832 glVertex4dv(v);
|
nuclear@0
|
3833 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3834 }
|
nuclear@0
|
3835
|
nuclear@0
|
3836 #undef glVertex4f
|
nuclear@0
|
3837 extern "C" { GLAPI void GLAPIENTRY glVertex4f(GLfloat x, GLfloat y, GLfloat z, GLfloat w); }
|
nuclear@0
|
3838 void OVR::GLEContext::glVertex4f_Hook(GLfloat x, GLfloat y, GLfloat z, GLfloat w)
|
nuclear@0
|
3839 {
|
nuclear@0
|
3840 glVertex4f(x, y, z, w);
|
nuclear@0
|
3841 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3842 }
|
nuclear@0
|
3843
|
nuclear@0
|
3844 #undef glVertex4fv
|
nuclear@0
|
3845 extern "C" { GLAPI void GLAPIENTRY glVertex4fv(const GLfloat *v); }
|
nuclear@0
|
3846 void OVR::GLEContext::glVertex4fv_Hook(const GLfloat *v)
|
nuclear@0
|
3847 {
|
nuclear@0
|
3848 glVertex4fv(v);
|
nuclear@0
|
3849 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3850 }
|
nuclear@0
|
3851
|
nuclear@0
|
3852 #undef glVertex4i
|
nuclear@0
|
3853 extern "C" { GLAPI void GLAPIENTRY glVertex4i(GLint x, GLint y, GLint z, GLint w); }
|
nuclear@0
|
3854 void OVR::GLEContext::glVertex4i_Hook(GLint x, GLint y, GLint z, GLint w)
|
nuclear@0
|
3855 {
|
nuclear@0
|
3856 glVertex4i(x, y, z, w);
|
nuclear@0
|
3857 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3858 }
|
nuclear@0
|
3859
|
nuclear@0
|
3860 #undef glVertex4iv
|
nuclear@0
|
3861 extern "C" { GLAPI void GLAPIENTRY glVertex4iv(const GLint *v); }
|
nuclear@0
|
3862 void OVR::GLEContext::glVertex4iv_Hook(const GLint *v)
|
nuclear@0
|
3863 {
|
nuclear@0
|
3864 glVertex4iv(v);
|
nuclear@0
|
3865 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3866 }
|
nuclear@0
|
3867
|
nuclear@0
|
3868 #undef glVertex4s
|
nuclear@0
|
3869 extern "C" { GLAPI void GLAPIENTRY glVertex4s(GLshort x, GLshort y, GLshort z, GLshort w); }
|
nuclear@0
|
3870 void OVR::GLEContext::glVertex4s_Hook(GLshort x, GLshort y, GLshort z, GLshort w)
|
nuclear@0
|
3871 {
|
nuclear@0
|
3872 glVertex4s(x, y, z, w);
|
nuclear@0
|
3873 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3874 }
|
nuclear@0
|
3875
|
nuclear@0
|
3876 #undef glVertex4sv
|
nuclear@0
|
3877 extern "C" { GLAPI void GLAPIENTRY glVertex4sv(const GLshort *v); }
|
nuclear@0
|
3878 void OVR::GLEContext::glVertex4sv_Hook(const GLshort *v)
|
nuclear@0
|
3879 {
|
nuclear@0
|
3880 glVertex4sv(v);
|
nuclear@0
|
3881 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3882 }
|
nuclear@0
|
3883
|
nuclear@0
|
3884 #undef glVertexPointer
|
nuclear@0
|
3885 extern "C" { GLAPI void GLAPIENTRY glVertexPointer(GLint size, GLenum type, GLsizei stride, const void *pointer); }
|
nuclear@0
|
3886 void OVR::GLEContext::glVertexPointer_Hook(GLint size, GLenum type, GLsizei stride, const void *pointer)
|
nuclear@0
|
3887 {
|
nuclear@0
|
3888 glVertexPointer(size, type, stride, pointer);
|
nuclear@0
|
3889 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3890 }
|
nuclear@0
|
3891
|
nuclear@0
|
3892 #undef glViewport
|
nuclear@0
|
3893 extern "C" { GLAPI void GLAPIENTRY glViewport(GLint x, GLint y, GLsizei width, GLsizei height); }
|
nuclear@0
|
3894 void OVR::GLEContext::glViewport_Hook(GLint x, GLint y, GLsizei width, GLsizei height)
|
nuclear@0
|
3895 {
|
nuclear@0
|
3896 glViewport(x, y, width, height);
|
nuclear@0
|
3897 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3898 }
|
nuclear@0
|
3899
|
nuclear@0
|
3900
|
nuclear@0
|
3901
|
nuclear@0
|
3902 // Pointer-based functions
|
nuclear@0
|
3903 void OVR::GLEContext::glBlendColor_Hook(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
|
nuclear@0
|
3904 {
|
nuclear@0
|
3905 if(glBlendColor_Impl)
|
nuclear@0
|
3906 glBlendColor_Impl(red, green, blue, alpha);
|
nuclear@0
|
3907 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3908 }
|
nuclear@0
|
3909
|
nuclear@0
|
3910 void OVR::GLEContext::glBlendEquation_Hook(GLenum mode)
|
nuclear@0
|
3911 {
|
nuclear@0
|
3912 if(glBlendEquation_Impl)
|
nuclear@0
|
3913 glBlendEquation_Impl(mode);
|
nuclear@0
|
3914 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3915 }
|
nuclear@0
|
3916
|
nuclear@0
|
3917 void OVR::GLEContext::glDrawRangeElements_Hook(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices)
|
nuclear@0
|
3918 {
|
nuclear@0
|
3919 if(glDrawRangeElements_Impl)
|
nuclear@0
|
3920 glDrawRangeElements_Impl(mode, start, end, count, type, indices);
|
nuclear@0
|
3921 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3922 }
|
nuclear@0
|
3923
|
nuclear@0
|
3924 void OVR::GLEContext::glTexImage3D_Hook(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels)
|
nuclear@0
|
3925 {
|
nuclear@0
|
3926 if(glTexImage3D_Impl)
|
nuclear@0
|
3927 glTexImage3D_Impl(target, level, internalformat, width, height, depth, border, format, type, pixels);
|
nuclear@0
|
3928 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3929 }
|
nuclear@0
|
3930
|
nuclear@0
|
3931 void OVR::GLEContext::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)
|
nuclear@0
|
3932 {
|
nuclear@0
|
3933 if(glTexSubImage3D_Impl)
|
nuclear@0
|
3934 glTexSubImage3D_Impl(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels);
|
nuclear@0
|
3935 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3936 }
|
nuclear@0
|
3937
|
nuclear@0
|
3938
|
nuclear@0
|
3939 void OVR::GLEContext::glCopyTexSubImage3D_Hook(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height)
|
nuclear@0
|
3940 {
|
nuclear@0
|
3941 if(glCopyTexSubImage3D_Impl)
|
nuclear@0
|
3942 glCopyTexSubImage3D_Impl(target, level, xoffset, yoffset, zoffset, x, y, width, height);
|
nuclear@0
|
3943 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3944 }
|
nuclear@0
|
3945
|
nuclear@0
|
3946 // GL_VERSION_1_2 deprecated functions
|
nuclear@0
|
3947 /* Not currently supported
|
nuclear@0
|
3948 void OVR::GLEContext::glColorTable_Hook(GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *table)
|
nuclear@0
|
3949 {
|
nuclear@0
|
3950 if(glColorTable_Impl)
|
nuclear@0
|
3951 glColorTable_Impl(target, internalformat, width, format, type, table);
|
nuclear@0
|
3952 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3953 }
|
nuclear@0
|
3954
|
nuclear@0
|
3955 void OVR::GLEContext::glColorTableParameterfv_Hook(GLenum target, GLenum pname, const GLfloat *params)
|
nuclear@0
|
3956 {
|
nuclear@0
|
3957 if(glColorTableParameterfv_Impl)
|
nuclear@0
|
3958 glColorTableParameterfv_Impl(target, pname, params);
|
nuclear@0
|
3959 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3960 }
|
nuclear@0
|
3961
|
nuclear@0
|
3962 void OVR::GLEContext::glColorTableParameteriv_Hook(GLenum target, GLenum pname, const GLint *params)
|
nuclear@0
|
3963 {
|
nuclear@0
|
3964 if(glColorTableParameteriv_Impl)
|
nuclear@0
|
3965 glColorTableParameteriv_Impl(target, pname, params);
|
nuclear@0
|
3966 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3967 }
|
nuclear@0
|
3968
|
nuclear@0
|
3969 void OVR::GLEContext::glCopyColorTable_Hook(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width)
|
nuclear@0
|
3970 {
|
nuclear@0
|
3971 if(glCopyColorTable_Impl)
|
nuclear@0
|
3972 glCopyColorTable_Impl(target, internalformat, x, y, width);
|
nuclear@0
|
3973 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3974 }
|
nuclear@0
|
3975
|
nuclear@0
|
3976 void OVR::GLEContext::glGetColorTable_Hook(GLenum target, GLenum format, GLenum type, GLvoid *table)
|
nuclear@0
|
3977 {
|
nuclear@0
|
3978 if(glGetColorTable_Impl)
|
nuclear@0
|
3979 glGetColorTable_Impl(target, format, type, table);
|
nuclear@0
|
3980 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3981 }
|
nuclear@0
|
3982
|
nuclear@0
|
3983 void OVR::GLEContext::glGetColorTableParameterfv_Hook(GLenum target, GLenum pname, GLfloat *params)
|
nuclear@0
|
3984 {
|
nuclear@0
|
3985 if(glGetColorTableParameterfv_Impl)
|
nuclear@0
|
3986 glGetColorTableParameterfv_Impl(target, pname, params);
|
nuclear@0
|
3987 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3988 }
|
nuclear@0
|
3989
|
nuclear@0
|
3990 void OVR::GLEContext::glGetColorTableParameteriv_Hook(GLenum target, GLenum pname, GLint *params)
|
nuclear@0
|
3991 {
|
nuclear@0
|
3992 if(glGetColorTableParameteriv_Impl)
|
nuclear@0
|
3993 glGetColorTableParameteriv_Impl(target, pname, params);
|
nuclear@0
|
3994 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
3995 }
|
nuclear@0
|
3996
|
nuclear@0
|
3997 void OVR::GLEContext::glColorSubTable_Hook(GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid *data)
|
nuclear@0
|
3998 {
|
nuclear@0
|
3999 if(glColorSubTable_Impl)
|
nuclear@0
|
4000 glColorSubTable_Impl(target, start, count, format, type, data);
|
nuclear@0
|
4001 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4002 }
|
nuclear@0
|
4003
|
nuclear@0
|
4004 void OVR::GLEContext::glCopyColorSubTable_Hook(GLenum target, GLsizei start, GLint x, GLint y, GLsizei width)
|
nuclear@0
|
4005 {
|
nuclear@0
|
4006 if(glCopyColorSubTable_Impl)
|
nuclear@0
|
4007 glCopyColorSubTable_Impl(target, start, x, y, width);
|
nuclear@0
|
4008 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4009 }
|
nuclear@0
|
4010
|
nuclear@0
|
4011 void OVR::GLEContext::glConvolutionFilter1D_Hook(GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *image)
|
nuclear@0
|
4012 {
|
nuclear@0
|
4013 if(glConvolutionFilter1D_Impl)
|
nuclear@0
|
4014 glConvolutionFilter1D_Impl(target, internalformat, width, format, type, image);
|
nuclear@0
|
4015 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4016 }
|
nuclear@0
|
4017
|
nuclear@0
|
4018 void OVR::GLEContext::glConvolutionFilter2D_Hook(GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *image)
|
nuclear@0
|
4019 {
|
nuclear@0
|
4020 if(glConvolutionFilter2D_Impl)
|
nuclear@0
|
4021 glConvolutionFilter2D_Impl(target, internalformat, width, height, format, type, image);
|
nuclear@0
|
4022 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4023 }
|
nuclear@0
|
4024
|
nuclear@0
|
4025 void OVR::GLEContext::glConvolutionParameterf_Hook(GLenum target, GLenum pname, GLfloat params)
|
nuclear@0
|
4026 {
|
nuclear@0
|
4027 if(glConvolutionParameterf_Impl)
|
nuclear@0
|
4028 glConvolutionParameterf_Impl(target, pname, params);
|
nuclear@0
|
4029 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4030 }
|
nuclear@0
|
4031
|
nuclear@0
|
4032 void OVR::GLEContext::glConvolutionParameterfv_Hook(GLenum target, GLenum pname, const GLfloat *params)
|
nuclear@0
|
4033 {
|
nuclear@0
|
4034 if(glConvolutionParameterfv_Impl)
|
nuclear@0
|
4035 glConvolutionParameterfv_Impl(target, pname, params);
|
nuclear@0
|
4036 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4037 }
|
nuclear@0
|
4038
|
nuclear@0
|
4039 void OVR::GLEContext::glConvolutionParameteri_Hook(GLenum target, GLenum pname, GLint params)
|
nuclear@0
|
4040 {
|
nuclear@0
|
4041 if(glConvolutionParameteri_Impl)
|
nuclear@0
|
4042 glConvolutionParameteri_Impl(target, pname, params);
|
nuclear@0
|
4043 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4044 }
|
nuclear@0
|
4045
|
nuclear@0
|
4046 void OVR::GLEContext::glConvolutionParameteriv_Hook(GLenum target, GLenum pname, const GLint *params)
|
nuclear@0
|
4047 {
|
nuclear@0
|
4048 if(glConvolutionParameteriv_Impl)
|
nuclear@0
|
4049 glConvolutionParameteriv_Impl(target, pname, params);
|
nuclear@0
|
4050 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4051 }
|
nuclear@0
|
4052
|
nuclear@0
|
4053 void OVR::GLEContext::glCopyConvolutionFilter1D_Hook(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width)
|
nuclear@0
|
4054 {
|
nuclear@0
|
4055 if(glCopyConvolutionFilter1D_Impl)
|
nuclear@0
|
4056 glCopyConvolutionFilter1D_Impl(target, internalformat, x, y, width);
|
nuclear@0
|
4057 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4058 }
|
nuclear@0
|
4059
|
nuclear@0
|
4060 void OVR::GLEContext::glCopyConvolutionFilter2D_Hook(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height)
|
nuclear@0
|
4061 {
|
nuclear@0
|
4062 if(glCopyConvolutionFilter2D_Impl)
|
nuclear@0
|
4063 glCopyConvolutionFilter2D_Impl(target, internalformat, x, y, width, height);
|
nuclear@0
|
4064 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4065 }
|
nuclear@0
|
4066
|
nuclear@0
|
4067 void OVR::GLEContext::glGetConvolutionFilter_Hook(GLenum target, GLenum format, GLenum type, GLvoid *image)
|
nuclear@0
|
4068 {
|
nuclear@0
|
4069 if(glGetConvolutionFilter_Impl)
|
nuclear@0
|
4070 glGetConvolutionFilter_Impl(target, format, type, image);
|
nuclear@0
|
4071 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4072 }
|
nuclear@0
|
4073
|
nuclear@0
|
4074 void OVR::GLEContext::glGetConvolutionParameterfv_Hook(GLenum target, GLenum pname, GLfloat *params)
|
nuclear@0
|
4075 {
|
nuclear@0
|
4076 if(glGetConvolutionParameterfv_Impl)
|
nuclear@0
|
4077 glGetConvolutionParameterfv_Impl(target, pname, params);
|
nuclear@0
|
4078 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4079 }
|
nuclear@0
|
4080
|
nuclear@0
|
4081 void OVR::GLEContext::glGetConvolutionParameteriv_Hook(GLenum target, GLenum pname, GLint *params)
|
nuclear@0
|
4082 {
|
nuclear@0
|
4083 if(glGetConvolutionParameteriv_Impl)
|
nuclear@0
|
4084 glGetConvolutionParameteriv_Impl(target, pname, params);
|
nuclear@0
|
4085 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4086 }
|
nuclear@0
|
4087
|
nuclear@0
|
4088 void OVR::GLEContext::glGetSeparableFilter_Hook(GLenum target, GLenum format, GLenum type, GLvoid *row, GLvoid *column, GLvoid *span)
|
nuclear@0
|
4089 {
|
nuclear@0
|
4090 if(glGetSeparableFilter_Impl)
|
nuclear@0
|
4091 glGetSeparableFilter_Impl(target, format, type, row, column, span);
|
nuclear@0
|
4092 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4093 }
|
nuclear@0
|
4094
|
nuclear@0
|
4095 void OVR::GLEContext::glSeparableFilter2D_Hook(GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *row, const GLvoid *column)
|
nuclear@0
|
4096 {
|
nuclear@0
|
4097 if(glSeparableFilter2D_Impl)
|
nuclear@0
|
4098 glSeparableFilter2D_Impl(target, internalformat, width, height, format, type, row, column);
|
nuclear@0
|
4099 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4100 }
|
nuclear@0
|
4101
|
nuclear@0
|
4102 void OVR::GLEContext::glGetHistogram_Hook(GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values)
|
nuclear@0
|
4103 {
|
nuclear@0
|
4104 if(glGetHistogram_Impl)
|
nuclear@0
|
4105 glGetHistogram_Impl(target, reset, format, type, values);
|
nuclear@0
|
4106 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4107 }
|
nuclear@0
|
4108
|
nuclear@0
|
4109 void OVR::GLEContext::glGetHistogramParameterfv_Hook(GLenum target, GLenum pname, GLfloat *params)
|
nuclear@0
|
4110 {
|
nuclear@0
|
4111 if(glGetHistogramParameterfv_Impl)
|
nuclear@0
|
4112 glGetHistogramParameterfv_Impl(target, pname, params);
|
nuclear@0
|
4113 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4114 }
|
nuclear@0
|
4115
|
nuclear@0
|
4116 void OVR::GLEContext::glGetHistogramParameteriv_Hook(GLenum target, GLenum pname, GLint *params)
|
nuclear@0
|
4117 {
|
nuclear@0
|
4118 if(glGetHistogramParameteriv_Impl)
|
nuclear@0
|
4119 glGetHistogramParameteriv_Impl(target, pname, params);
|
nuclear@0
|
4120 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4121 }
|
nuclear@0
|
4122
|
nuclear@0
|
4123 void OVR::GLEContext::glGetMinmax_Hook(GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values)
|
nuclear@0
|
4124 {
|
nuclear@0
|
4125 if(glGetMinmax_Impl)
|
nuclear@0
|
4126 glGetMinmax_Impl(target, reset, format, type, values);
|
nuclear@0
|
4127 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4128 }
|
nuclear@0
|
4129
|
nuclear@0
|
4130 void OVR::GLEContext::glGetMinmaxParameterfv_Hook(GLenum target, GLenum pname, GLfloat *params)
|
nuclear@0
|
4131 {
|
nuclear@0
|
4132 if(glGetMinmaxParameterfv_Impl)
|
nuclear@0
|
4133 glGetMinmaxParameterfv_Impl(target, pname, params);
|
nuclear@0
|
4134 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4135 }
|
nuclear@0
|
4136
|
nuclear@0
|
4137 void OVR::GLEContext::glGetMinmaxParameteriv_Hook(GLenum target, GLenum pname, GLint *params)
|
nuclear@0
|
4138 {
|
nuclear@0
|
4139 if(glGetMinmaxParameteriv_Impl)
|
nuclear@0
|
4140 glGetMinmaxParameteriv_Impl(target, pname, params);
|
nuclear@0
|
4141 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4142 }
|
nuclear@0
|
4143
|
nuclear@0
|
4144 void OVR::GLEContext::glHistogram_Hook(GLenum target, GLsizei width, GLenum internalformat, GLboolean sink)
|
nuclear@0
|
4145 {
|
nuclear@0
|
4146 if(glHistogram_Impl)
|
nuclear@0
|
4147 glHistogram_Impl(target, width, internalformat, sink);
|
nuclear@0
|
4148 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4149 }
|
nuclear@0
|
4150
|
nuclear@0
|
4151 void OVR::GLEContext::glMinmax_Hook(GLenum target, GLenum internalformat, GLboolean sink)
|
nuclear@0
|
4152 {
|
nuclear@0
|
4153 if(glMinmax_Impl)
|
nuclear@0
|
4154 glMinmax_Impl(target, internalformat, sink);
|
nuclear@0
|
4155 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4156 }
|
nuclear@0
|
4157
|
nuclear@0
|
4158 void OVR::GLEContext::glResetHistogram_Hook(GLenum target)
|
nuclear@0
|
4159 {
|
nuclear@0
|
4160 if(glResetHistogram_Impl)
|
nuclear@0
|
4161 glResetHistogram_Impl(target);
|
nuclear@0
|
4162 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4163 }
|
nuclear@0
|
4164
|
nuclear@0
|
4165 void OVR::GLEContext::glResetMinmax_Hook(GLenum target)
|
nuclear@0
|
4166 {
|
nuclear@0
|
4167 if(glResetMinmax_Impl)
|
nuclear@0
|
4168 glResetMinmax_Impl(target);
|
nuclear@0
|
4169 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4170 }
|
nuclear@0
|
4171 */
|
nuclear@0
|
4172
|
nuclear@0
|
4173 // GL_VERSION_1_3
|
nuclear@0
|
4174 void OVR::GLEContext::glActiveTexture_Hook(GLenum texture)
|
nuclear@0
|
4175 {
|
nuclear@0
|
4176 if(glActiveTexture_Impl)
|
nuclear@0
|
4177 glActiveTexture_Impl(texture);
|
nuclear@0
|
4178 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4179 }
|
nuclear@0
|
4180
|
nuclear@0
|
4181 void OVR::GLEContext::glSampleCoverage_Hook(GLclampf value, GLboolean invert)
|
nuclear@0
|
4182 {
|
nuclear@0
|
4183 if(glSampleCoverage_Impl)
|
nuclear@0
|
4184 glSampleCoverage_Impl(value, invert);
|
nuclear@0
|
4185 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4186 }
|
nuclear@0
|
4187
|
nuclear@0
|
4188 void OVR::GLEContext::glCompressedTexImage3D_Hook(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data)
|
nuclear@0
|
4189 {
|
nuclear@0
|
4190 if(glCompressedTexImage3D_Impl)
|
nuclear@0
|
4191 glCompressedTexImage3D_Impl(target, level, internalformat, width, height, depth, border, imageSize, data);
|
nuclear@0
|
4192 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4193 }
|
nuclear@0
|
4194
|
nuclear@0
|
4195 void OVR::GLEContext::glCompressedTexImage2D_Hook(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data)
|
nuclear@0
|
4196 {
|
nuclear@0
|
4197 if(glCompressedTexImage2D_Impl)
|
nuclear@0
|
4198 glCompressedTexImage2D_Impl(target, level, internalformat, width, height, border, imageSize, data);
|
nuclear@0
|
4199 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4200 }
|
nuclear@0
|
4201
|
nuclear@0
|
4202 void OVR::GLEContext::glCompressedTexImage1D_Hook(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data)
|
nuclear@0
|
4203 {
|
nuclear@0
|
4204 if(glCompressedTexImage1D_Impl)
|
nuclear@0
|
4205 glCompressedTexImage1D_Impl(target, level, internalformat, width, border, imageSize, data);
|
nuclear@0
|
4206 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4207 }
|
nuclear@0
|
4208
|
nuclear@0
|
4209 void OVR::GLEContext::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)
|
nuclear@0
|
4210 {
|
nuclear@0
|
4211 if(glCompressedTexSubImage3D_Impl)
|
nuclear@0
|
4212 glCompressedTexSubImage3D_Impl(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data);
|
nuclear@0
|
4213 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4214 }
|
nuclear@0
|
4215
|
nuclear@0
|
4216 void OVR::GLEContext::glCompressedTexSubImage2D_Hook(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data)
|
nuclear@0
|
4217 {
|
nuclear@0
|
4218 if(glCompressedTexSubImage2D_Impl)
|
nuclear@0
|
4219 glCompressedTexSubImage2D_Impl(target, level, xoffset, yoffset, width, height, format, imageSize, data);
|
nuclear@0
|
4220 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4221 }
|
nuclear@0
|
4222
|
nuclear@0
|
4223 void OVR::GLEContext::glCompressedTexSubImage1D_Hook(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data)
|
nuclear@0
|
4224 {
|
nuclear@0
|
4225 if(glCompressedTexSubImage1D_Impl)
|
nuclear@0
|
4226 glCompressedTexSubImage1D_Impl(target, level, xoffset, width, format, imageSize, data);
|
nuclear@0
|
4227 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4228 }
|
nuclear@0
|
4229
|
nuclear@0
|
4230 void OVR::GLEContext::glGetCompressedTexImage_Hook(GLenum target, GLint level, GLvoid *img)
|
nuclear@0
|
4231 {
|
nuclear@0
|
4232 if(glGetCompressedTexImage_Impl)
|
nuclear@0
|
4233 glGetCompressedTexImage_Impl(target, level, img);
|
nuclear@0
|
4234 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4235 }
|
nuclear@0
|
4236
|
nuclear@0
|
4237
|
nuclear@0
|
4238 // GL_VERSION_1_3 deprecated functions
|
nuclear@0
|
4239 void OVR::GLEContext::glClientActiveTexture_Hook(GLenum texture)
|
nuclear@0
|
4240 {
|
nuclear@0
|
4241 if(glClientActiveTexture_Impl)
|
nuclear@0
|
4242 glClientActiveTexture_Impl(texture);
|
nuclear@0
|
4243 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4244 }
|
nuclear@0
|
4245
|
nuclear@0
|
4246 void OVR::GLEContext::glMultiTexCoord1d_Hook(GLenum target, GLdouble s)
|
nuclear@0
|
4247 {
|
nuclear@0
|
4248 if(glMultiTexCoord1d_Impl)
|
nuclear@0
|
4249 glMultiTexCoord1d_Impl(target, s);
|
nuclear@0
|
4250 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4251 }
|
nuclear@0
|
4252
|
nuclear@0
|
4253 void OVR::GLEContext::glMultiTexCoord1dv_Hook(GLenum target, const GLdouble *v)
|
nuclear@0
|
4254 {
|
nuclear@0
|
4255 if(glMultiTexCoord1dv_Impl)
|
nuclear@0
|
4256 glMultiTexCoord1dv_Impl(target, v);
|
nuclear@0
|
4257 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4258 }
|
nuclear@0
|
4259
|
nuclear@0
|
4260 void OVR::GLEContext::glMultiTexCoord1f_Hook(GLenum target, GLfloat s)
|
nuclear@0
|
4261 {
|
nuclear@0
|
4262 if(glMultiTexCoord1f_Impl)
|
nuclear@0
|
4263 glMultiTexCoord1f_Impl(target, s);
|
nuclear@0
|
4264 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4265 }
|
nuclear@0
|
4266
|
nuclear@0
|
4267 void OVR::GLEContext::glMultiTexCoord1fv_Hook(GLenum target, const GLfloat *v)
|
nuclear@0
|
4268 {
|
nuclear@0
|
4269 if(glMultiTexCoord1fv_Impl)
|
nuclear@0
|
4270 glMultiTexCoord1fv_Impl(target, v);
|
nuclear@0
|
4271 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4272 }
|
nuclear@0
|
4273
|
nuclear@0
|
4274 void OVR::GLEContext::glMultiTexCoord1i_Hook(GLenum target, GLint s)
|
nuclear@0
|
4275 {
|
nuclear@0
|
4276 if(glMultiTexCoord1i_Impl)
|
nuclear@0
|
4277 glMultiTexCoord1i_Impl(target, s);
|
nuclear@0
|
4278 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4279 }
|
nuclear@0
|
4280
|
nuclear@0
|
4281 void OVR::GLEContext::glMultiTexCoord1iv_Hook(GLenum target, const GLint *v)
|
nuclear@0
|
4282 {
|
nuclear@0
|
4283 if(glMultiTexCoord1iv_Impl)
|
nuclear@0
|
4284 glMultiTexCoord1iv_Impl(target, v);
|
nuclear@0
|
4285 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4286 }
|
nuclear@0
|
4287
|
nuclear@0
|
4288 void OVR::GLEContext::glMultiTexCoord1s_Hook(GLenum target, GLshort s)
|
nuclear@0
|
4289 {
|
nuclear@0
|
4290 if(glMultiTexCoord1s_Impl)
|
nuclear@0
|
4291 glMultiTexCoord1s_Impl(target, s);
|
nuclear@0
|
4292 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4293 }
|
nuclear@0
|
4294
|
nuclear@0
|
4295 void OVR::GLEContext::glMultiTexCoord1sv_Hook(GLenum target, const GLshort *v)
|
nuclear@0
|
4296 {
|
nuclear@0
|
4297 if(glMultiTexCoord1sv_Impl)
|
nuclear@0
|
4298 glMultiTexCoord1sv_Impl(target, v);
|
nuclear@0
|
4299 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4300 }
|
nuclear@0
|
4301
|
nuclear@0
|
4302 void OVR::GLEContext::glMultiTexCoord2d_Hook(GLenum target, GLdouble s, GLdouble t)
|
nuclear@0
|
4303 {
|
nuclear@0
|
4304 if(glMultiTexCoord2d_Impl)
|
nuclear@0
|
4305 glMultiTexCoord2d_Impl(target, s, t);
|
nuclear@0
|
4306 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4307 }
|
nuclear@0
|
4308
|
nuclear@0
|
4309 void OVR::GLEContext::glMultiTexCoord2dv_Hook(GLenum target, const GLdouble *v)
|
nuclear@0
|
4310 {
|
nuclear@0
|
4311 if(glMultiTexCoord2dv_Impl)
|
nuclear@0
|
4312 glMultiTexCoord2dv_Impl(target, v);
|
nuclear@0
|
4313 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4314 }
|
nuclear@0
|
4315
|
nuclear@0
|
4316 void OVR::GLEContext::glMultiTexCoord2f_Hook(GLenum target, GLfloat s, GLfloat t)
|
nuclear@0
|
4317 {
|
nuclear@0
|
4318 if(glMultiTexCoord2f_Impl)
|
nuclear@0
|
4319 glMultiTexCoord2f_Impl(target, s, t);
|
nuclear@0
|
4320 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4321 }
|
nuclear@0
|
4322
|
nuclear@0
|
4323 void OVR::GLEContext::glMultiTexCoord2fv_Hook(GLenum target, const GLfloat *v)
|
nuclear@0
|
4324 {
|
nuclear@0
|
4325 if(glMultiTexCoord2fv_Impl)
|
nuclear@0
|
4326 glMultiTexCoord2fv_Impl(target, v);
|
nuclear@0
|
4327 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4328 }
|
nuclear@0
|
4329
|
nuclear@0
|
4330 void OVR::GLEContext::glMultiTexCoord2i_Hook(GLenum target, GLint s, GLint t)
|
nuclear@0
|
4331 {
|
nuclear@0
|
4332 if(glMultiTexCoord2i_Impl)
|
nuclear@0
|
4333 glMultiTexCoord2i_Impl(target, s, t);
|
nuclear@0
|
4334 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4335 }
|
nuclear@0
|
4336
|
nuclear@0
|
4337 void OVR::GLEContext::glMultiTexCoord2iv_Hook(GLenum target, const GLint *v)
|
nuclear@0
|
4338 {
|
nuclear@0
|
4339 if(glMultiTexCoord2iv_Impl)
|
nuclear@0
|
4340 glMultiTexCoord2iv_Impl(target, v);
|
nuclear@0
|
4341 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4342 }
|
nuclear@0
|
4343
|
nuclear@0
|
4344 void OVR::GLEContext::glMultiTexCoord2s_Hook(GLenum target, GLshort s, GLshort t)
|
nuclear@0
|
4345 {
|
nuclear@0
|
4346 if(glMultiTexCoord2s_Impl)
|
nuclear@0
|
4347 glMultiTexCoord2s_Impl(target, s, t);
|
nuclear@0
|
4348 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4349 }
|
nuclear@0
|
4350
|
nuclear@0
|
4351 void OVR::GLEContext::glMultiTexCoord2sv_Hook(GLenum target, const GLshort *v)
|
nuclear@0
|
4352 {
|
nuclear@0
|
4353 if(glMultiTexCoord2sv_Impl)
|
nuclear@0
|
4354 glMultiTexCoord2sv_Impl(target, v);
|
nuclear@0
|
4355 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4356 }
|
nuclear@0
|
4357
|
nuclear@0
|
4358 void OVR::GLEContext::glMultiTexCoord3d_Hook(GLenum target, GLdouble s, GLdouble t, GLdouble r)
|
nuclear@0
|
4359 {
|
nuclear@0
|
4360 if(glMultiTexCoord3d_Impl)
|
nuclear@0
|
4361 glMultiTexCoord3d_Impl(target, s, t, r);
|
nuclear@0
|
4362 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4363 }
|
nuclear@0
|
4364
|
nuclear@0
|
4365 void OVR::GLEContext::glMultiTexCoord3dv_Hook(GLenum target, const GLdouble *v)
|
nuclear@0
|
4366 {
|
nuclear@0
|
4367 if(glMultiTexCoord3dv_Impl)
|
nuclear@0
|
4368 glMultiTexCoord3dv_Impl(target, v);
|
nuclear@0
|
4369 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4370 }
|
nuclear@0
|
4371
|
nuclear@0
|
4372 void OVR::GLEContext::glMultiTexCoord3f_Hook(GLenum target, GLfloat s, GLfloat t, GLfloat r)
|
nuclear@0
|
4373 {
|
nuclear@0
|
4374 if(glMultiTexCoord3f_Impl)
|
nuclear@0
|
4375 glMultiTexCoord3f_Impl(target, s, t, r);
|
nuclear@0
|
4376 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4377 }
|
nuclear@0
|
4378
|
nuclear@0
|
4379 void OVR::GLEContext::glMultiTexCoord3fv_Hook(GLenum target, const GLfloat *v)
|
nuclear@0
|
4380 {
|
nuclear@0
|
4381 if(glMultiTexCoord3fv_Impl)
|
nuclear@0
|
4382 glMultiTexCoord3fv_Impl(target, v);
|
nuclear@0
|
4383 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4384 }
|
nuclear@0
|
4385
|
nuclear@0
|
4386 void OVR::GLEContext::glMultiTexCoord3i_Hook(GLenum target, GLint s, GLint t, GLint r)
|
nuclear@0
|
4387 {
|
nuclear@0
|
4388 if(glMultiTexCoord3i_Impl)
|
nuclear@0
|
4389 glMultiTexCoord3i_Impl(target, s, t, r);
|
nuclear@0
|
4390 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4391 }
|
nuclear@0
|
4392
|
nuclear@0
|
4393 void OVR::GLEContext::glMultiTexCoord3iv_Hook(GLenum target, const GLint *v)
|
nuclear@0
|
4394 {
|
nuclear@0
|
4395 if(glMultiTexCoord3iv_Impl)
|
nuclear@0
|
4396 glMultiTexCoord3iv_Impl(target, v);
|
nuclear@0
|
4397 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4398 }
|
nuclear@0
|
4399
|
nuclear@0
|
4400 void OVR::GLEContext::glMultiTexCoord3s_Hook(GLenum target, GLshort s, GLshort t, GLshort r)
|
nuclear@0
|
4401 {
|
nuclear@0
|
4402 if(glMultiTexCoord3s_Impl)
|
nuclear@0
|
4403 glMultiTexCoord3s_Impl(target, s, t, r);
|
nuclear@0
|
4404 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4405 }
|
nuclear@0
|
4406
|
nuclear@0
|
4407 void OVR::GLEContext::glMultiTexCoord3sv_Hook(GLenum target, const GLshort *v)
|
nuclear@0
|
4408 {
|
nuclear@0
|
4409 if(glMultiTexCoord3sv_Impl)
|
nuclear@0
|
4410 glMultiTexCoord3sv_Impl(target, v);
|
nuclear@0
|
4411 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4412 }
|
nuclear@0
|
4413
|
nuclear@0
|
4414 void OVR::GLEContext::glMultiTexCoord4d_Hook(GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q)
|
nuclear@0
|
4415 {
|
nuclear@0
|
4416 if(glMultiTexCoord4d_Impl)
|
nuclear@0
|
4417 glMultiTexCoord4d_Impl(target, s, t, r, q);
|
nuclear@0
|
4418 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4419 }
|
nuclear@0
|
4420
|
nuclear@0
|
4421 void OVR::GLEContext::glMultiTexCoord4dv_Hook(GLenum target, const GLdouble *v)
|
nuclear@0
|
4422 {
|
nuclear@0
|
4423 if(glMultiTexCoord4dv_Impl)
|
nuclear@0
|
4424 glMultiTexCoord4dv_Impl(target, v);
|
nuclear@0
|
4425 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4426 }
|
nuclear@0
|
4427
|
nuclear@0
|
4428 void OVR::GLEContext::glMultiTexCoord4f_Hook(GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q)
|
nuclear@0
|
4429 {
|
nuclear@0
|
4430 if(glMultiTexCoord4f_Impl)
|
nuclear@0
|
4431 glMultiTexCoord4f_Impl(target, s, t, r, q);
|
nuclear@0
|
4432 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4433 }
|
nuclear@0
|
4434
|
nuclear@0
|
4435 void OVR::GLEContext::glMultiTexCoord4fv_Hook(GLenum target, const GLfloat *v)
|
nuclear@0
|
4436 {
|
nuclear@0
|
4437 if(glMultiTexCoord4fv_Impl)
|
nuclear@0
|
4438 glMultiTexCoord4fv_Impl(target, v);
|
nuclear@0
|
4439 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4440 }
|
nuclear@0
|
4441
|
nuclear@0
|
4442 void OVR::GLEContext::glMultiTexCoord4i_Hook(GLenum target, GLint s, GLint t, GLint r, GLint q)
|
nuclear@0
|
4443 {
|
nuclear@0
|
4444 if(glMultiTexCoord4i_Impl)
|
nuclear@0
|
4445 glMultiTexCoord4i_Impl(target, s, t, r, q);
|
nuclear@0
|
4446 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4447 }
|
nuclear@0
|
4448
|
nuclear@0
|
4449 void OVR::GLEContext::glMultiTexCoord4iv_Hook(GLenum target, const GLint *v)
|
nuclear@0
|
4450 {
|
nuclear@0
|
4451 if(glMultiTexCoord4iv_Impl)
|
nuclear@0
|
4452 glMultiTexCoord4iv_Impl(target, v);
|
nuclear@0
|
4453 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4454 }
|
nuclear@0
|
4455
|
nuclear@0
|
4456 void OVR::GLEContext::glMultiTexCoord4s_Hook(GLenum target, GLshort s, GLshort t, GLshort r, GLshort q)
|
nuclear@0
|
4457 {
|
nuclear@0
|
4458 if(glMultiTexCoord4s_Impl)
|
nuclear@0
|
4459 glMultiTexCoord4s_Impl(target, s, t, r, q);
|
nuclear@0
|
4460 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4461 }
|
nuclear@0
|
4462
|
nuclear@0
|
4463 void OVR::GLEContext::glMultiTexCoord4sv_Hook(GLenum target, const GLshort *v)
|
nuclear@0
|
4464 {
|
nuclear@0
|
4465 if(glMultiTexCoord4sv_Impl)
|
nuclear@0
|
4466 glMultiTexCoord4sv_Impl(target, v);
|
nuclear@0
|
4467 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4468 }
|
nuclear@0
|
4469
|
nuclear@0
|
4470 void OVR::GLEContext::glLoadTransposeMatrixf_Hook(const GLfloat *m)
|
nuclear@0
|
4471 {
|
nuclear@0
|
4472 if(glLoadTransposeMatrixf_Impl)
|
nuclear@0
|
4473 glLoadTransposeMatrixf_Impl(m);
|
nuclear@0
|
4474 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4475 }
|
nuclear@0
|
4476
|
nuclear@0
|
4477 void OVR::GLEContext::glLoadTransposeMatrixd_Hook(const GLdouble *m)
|
nuclear@0
|
4478 {
|
nuclear@0
|
4479 if(glLoadTransposeMatrixd_Impl)
|
nuclear@0
|
4480 glLoadTransposeMatrixd_Impl(m);
|
nuclear@0
|
4481 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4482 }
|
nuclear@0
|
4483
|
nuclear@0
|
4484 void OVR::GLEContext::glMultTransposeMatrixf_Hook(const GLfloat *m)
|
nuclear@0
|
4485 {
|
nuclear@0
|
4486 if(glMultTransposeMatrixf_Impl)
|
nuclear@0
|
4487 glMultTransposeMatrixf_Impl(m);
|
nuclear@0
|
4488 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4489 }
|
nuclear@0
|
4490
|
nuclear@0
|
4491 void OVR::GLEContext::glMultTransposeMatrixd_Hook(const GLdouble *m)
|
nuclear@0
|
4492 {
|
nuclear@0
|
4493 if(glMultTransposeMatrixd_Impl)
|
nuclear@0
|
4494 glMultTransposeMatrixd_Impl(m);
|
nuclear@0
|
4495 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4496 }
|
nuclear@0
|
4497
|
nuclear@0
|
4498
|
nuclear@0
|
4499 // GL_VERSION_1_4
|
nuclear@0
|
4500 void OVR::GLEContext::glBlendFuncSeparate_Hook(GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha)
|
nuclear@0
|
4501 {
|
nuclear@0
|
4502 if(glBlendFuncSeparate_Impl)
|
nuclear@0
|
4503 glBlendFuncSeparate_Impl(sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha);
|
nuclear@0
|
4504 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4505 }
|
nuclear@0
|
4506
|
nuclear@0
|
4507 void OVR::GLEContext::glMultiDrawArrays_Hook(GLenum mode, const GLint *first, const GLsizei *count, GLsizei primcount)
|
nuclear@0
|
4508 {
|
nuclear@0
|
4509 if(glMultiDrawArrays_Impl)
|
nuclear@0
|
4510 glMultiDrawArrays_Impl(mode, first, count, primcount);
|
nuclear@0
|
4511 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4512 }
|
nuclear@0
|
4513
|
nuclear@0
|
4514 void OVR::GLEContext::glMultiDrawElements_Hook(GLenum mode, const GLsizei *count, GLenum type, const GLvoid* *indices, GLsizei primcount)
|
nuclear@0
|
4515 {
|
nuclear@0
|
4516 if(glMultiDrawElements_Impl)
|
nuclear@0
|
4517 glMultiDrawElements_Impl(mode, count, type, indices, primcount);
|
nuclear@0
|
4518 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4519 }
|
nuclear@0
|
4520
|
nuclear@0
|
4521 void OVR::GLEContext::glPointParameterf_Hook(GLenum pname, GLfloat param)
|
nuclear@0
|
4522 {
|
nuclear@0
|
4523 if(glPointParameterf_Impl)
|
nuclear@0
|
4524 glPointParameterf_Impl(pname, param);
|
nuclear@0
|
4525 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4526 }
|
nuclear@0
|
4527
|
nuclear@0
|
4528 void OVR::GLEContext::glPointParameterfv_Hook(GLenum pname, const GLfloat *params)
|
nuclear@0
|
4529 {
|
nuclear@0
|
4530 if(glPointParameterfv_Impl)
|
nuclear@0
|
4531 glPointParameterfv_Impl(pname, params);
|
nuclear@0
|
4532 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4533 }
|
nuclear@0
|
4534
|
nuclear@0
|
4535 void OVR::GLEContext::glPointParameteri_Hook(GLenum pname, GLint param)
|
nuclear@0
|
4536 {
|
nuclear@0
|
4537 if(glPointParameteri_Impl)
|
nuclear@0
|
4538 glPointParameteri_Impl(pname, param);
|
nuclear@0
|
4539 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4540 }
|
nuclear@0
|
4541
|
nuclear@0
|
4542 void OVR::GLEContext::glPointParameteriv_Hook(GLenum pname, const GLint *params)
|
nuclear@0
|
4543 {
|
nuclear@0
|
4544 if(glPointParameteriv_Impl)
|
nuclear@0
|
4545 glPointParameteriv_Impl(pname, params);
|
nuclear@0
|
4546 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4547 }
|
nuclear@0
|
4548
|
nuclear@0
|
4549
|
nuclear@0
|
4550 // GL_VERSION_1_4 deprecated functions
|
nuclear@0
|
4551 void OVR::GLEContext::glFogCoordf_Hook(GLfloat coord)
|
nuclear@0
|
4552 {
|
nuclear@0
|
4553 if(glFogCoordf_Impl)
|
nuclear@0
|
4554 glFogCoordf_Impl(coord);
|
nuclear@0
|
4555 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4556 }
|
nuclear@0
|
4557
|
nuclear@0
|
4558 void OVR::GLEContext::glFogCoordfv_Hook(const GLfloat *coord)
|
nuclear@0
|
4559 {
|
nuclear@0
|
4560 if(glFogCoordfv_Impl)
|
nuclear@0
|
4561 glFogCoordfv_Impl(coord);
|
nuclear@0
|
4562 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4563 }
|
nuclear@0
|
4564
|
nuclear@0
|
4565 void OVR::GLEContext::glFogCoordd_Hook(GLdouble coord)
|
nuclear@0
|
4566 {
|
nuclear@0
|
4567 if(glFogCoordd_Impl)
|
nuclear@0
|
4568 glFogCoordd_Impl(coord);
|
nuclear@0
|
4569 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4570 }
|
nuclear@0
|
4571
|
nuclear@0
|
4572 void OVR::GLEContext::glFogCoorddv_Hook(const GLdouble *coord)
|
nuclear@0
|
4573 {
|
nuclear@0
|
4574 if(glFogCoorddv_Impl)
|
nuclear@0
|
4575 glFogCoorddv_Impl(coord);
|
nuclear@0
|
4576 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4577 }
|
nuclear@0
|
4578
|
nuclear@0
|
4579 void OVR::GLEContext::glFogCoordPointer_Hook(GLenum type, GLsizei stride, const GLvoid *pointer)
|
nuclear@0
|
4580 {
|
nuclear@0
|
4581 if(glFogCoordPointer_Impl)
|
nuclear@0
|
4582 glFogCoordPointer_Impl(type, stride, pointer);
|
nuclear@0
|
4583 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4584 }
|
nuclear@0
|
4585
|
nuclear@0
|
4586 void OVR::GLEContext::glSecondaryColor3b_Hook(GLbyte red, GLbyte green, GLbyte blue)
|
nuclear@0
|
4587 {
|
nuclear@0
|
4588 if(glSecondaryColor3b_Impl)
|
nuclear@0
|
4589 glSecondaryColor3b_Impl(red, green, blue);
|
nuclear@0
|
4590 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4591 }
|
nuclear@0
|
4592
|
nuclear@0
|
4593 void OVR::GLEContext::glSecondaryColor3bv_Hook(const GLbyte *v)
|
nuclear@0
|
4594 {
|
nuclear@0
|
4595 if(glSecondaryColor3bv_Impl)
|
nuclear@0
|
4596 glSecondaryColor3bv_Impl(v);
|
nuclear@0
|
4597 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4598 }
|
nuclear@0
|
4599
|
nuclear@0
|
4600 void OVR::GLEContext::glSecondaryColor3d_Hook(GLdouble red, GLdouble green, GLdouble blue)
|
nuclear@0
|
4601 {
|
nuclear@0
|
4602 if(glSecondaryColor3d_Impl)
|
nuclear@0
|
4603 glSecondaryColor3d_Impl(red, green, blue);
|
nuclear@0
|
4604 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4605 }
|
nuclear@0
|
4606
|
nuclear@0
|
4607 void OVR::GLEContext::glSecondaryColor3dv_Hook(const GLdouble *v)
|
nuclear@0
|
4608 {
|
nuclear@0
|
4609 if(glSecondaryColor3dv_Impl)
|
nuclear@0
|
4610 glSecondaryColor3dv_Impl(v);
|
nuclear@0
|
4611 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4612 }
|
nuclear@0
|
4613
|
nuclear@0
|
4614 void OVR::GLEContext::glSecondaryColor3f_Hook(GLfloat red, GLfloat green, GLfloat blue)
|
nuclear@0
|
4615 {
|
nuclear@0
|
4616 if(glSecondaryColor3f_Impl)
|
nuclear@0
|
4617 glSecondaryColor3f_Impl(red, green, blue);
|
nuclear@0
|
4618 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4619 }
|
nuclear@0
|
4620
|
nuclear@0
|
4621 void OVR::GLEContext::glSecondaryColor3fv_Hook(const GLfloat *v)
|
nuclear@0
|
4622 {
|
nuclear@0
|
4623 if(glSecondaryColor3fv_Impl)
|
nuclear@0
|
4624 glSecondaryColor3fv_Impl(v);
|
nuclear@0
|
4625 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4626 }
|
nuclear@0
|
4627
|
nuclear@0
|
4628 void OVR::GLEContext::glSecondaryColor3i_Hook(GLint red, GLint green, GLint blue)
|
nuclear@0
|
4629 {
|
nuclear@0
|
4630 if(glSecondaryColor3i_Impl)
|
nuclear@0
|
4631 glSecondaryColor3i_Impl(red, green, blue);
|
nuclear@0
|
4632 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4633 }
|
nuclear@0
|
4634
|
nuclear@0
|
4635 void OVR::GLEContext::glSecondaryColor3iv_Hook(const GLint *v)
|
nuclear@0
|
4636 {
|
nuclear@0
|
4637 if(glSecondaryColor3iv_Impl)
|
nuclear@0
|
4638 glSecondaryColor3iv_Impl(v);
|
nuclear@0
|
4639 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4640 }
|
nuclear@0
|
4641
|
nuclear@0
|
4642 void OVR::GLEContext::glSecondaryColor3s_Hook(GLshort red, GLshort green, GLshort blue)
|
nuclear@0
|
4643 {
|
nuclear@0
|
4644 if(glSecondaryColor3s_Impl)
|
nuclear@0
|
4645 glSecondaryColor3s_Impl(red, green, blue);
|
nuclear@0
|
4646 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4647 }
|
nuclear@0
|
4648
|
nuclear@0
|
4649 void OVR::GLEContext::glSecondaryColor3sv_Hook(const GLshort *v)
|
nuclear@0
|
4650 {
|
nuclear@0
|
4651 if(glSecondaryColor3sv_Impl)
|
nuclear@0
|
4652 glSecondaryColor3sv_Impl(v);
|
nuclear@0
|
4653 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4654 }
|
nuclear@0
|
4655
|
nuclear@0
|
4656 void OVR::GLEContext::glSecondaryColor3ub_Hook(GLubyte red, GLubyte green, GLubyte blue)
|
nuclear@0
|
4657 {
|
nuclear@0
|
4658 if(glSecondaryColor3ub_Impl)
|
nuclear@0
|
4659 glSecondaryColor3ub_Impl(red, green, blue);
|
nuclear@0
|
4660 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4661 }
|
nuclear@0
|
4662
|
nuclear@0
|
4663 void OVR::GLEContext::glSecondaryColor3ubv_Hook(const GLubyte *v)
|
nuclear@0
|
4664 {
|
nuclear@0
|
4665 if(glSecondaryColor3ubv_Impl)
|
nuclear@0
|
4666 glSecondaryColor3ubv_Impl(v);
|
nuclear@0
|
4667 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4668 }
|
nuclear@0
|
4669
|
nuclear@0
|
4670 void OVR::GLEContext::glSecondaryColor3ui_Hook(GLuint red, GLuint green, GLuint blue)
|
nuclear@0
|
4671 {
|
nuclear@0
|
4672 if(glSecondaryColor3ui_Impl)
|
nuclear@0
|
4673 glSecondaryColor3ui_Impl(red, green, blue);
|
nuclear@0
|
4674 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4675 }
|
nuclear@0
|
4676
|
nuclear@0
|
4677 void OVR::GLEContext::glSecondaryColor3uiv_Hook(const GLuint *v)
|
nuclear@0
|
4678 {
|
nuclear@0
|
4679 if(glSecondaryColor3uiv_Impl)
|
nuclear@0
|
4680 glSecondaryColor3uiv_Impl(v);
|
nuclear@0
|
4681 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4682 }
|
nuclear@0
|
4683
|
nuclear@0
|
4684 void OVR::GLEContext::glSecondaryColor3us_Hook(GLushort red, GLushort green, GLushort blue)
|
nuclear@0
|
4685 {
|
nuclear@0
|
4686 if(glSecondaryColor3us_Impl)
|
nuclear@0
|
4687 glSecondaryColor3us_Impl(red, green, blue);
|
nuclear@0
|
4688 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4689 }
|
nuclear@0
|
4690
|
nuclear@0
|
4691 void OVR::GLEContext::glSecondaryColor3usv_Hook(const GLushort *v)
|
nuclear@0
|
4692 {
|
nuclear@0
|
4693 if(glSecondaryColor3usv_Impl)
|
nuclear@0
|
4694 glSecondaryColor3usv_Impl(v);
|
nuclear@0
|
4695 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4696 }
|
nuclear@0
|
4697
|
nuclear@0
|
4698 void OVR::GLEContext::glSecondaryColorPointer_Hook(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)
|
nuclear@0
|
4699 {
|
nuclear@0
|
4700 if(glSecondaryColorPointer_Impl)
|
nuclear@0
|
4701 glSecondaryColorPointer_Impl(size, type, stride, pointer);
|
nuclear@0
|
4702 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4703 }
|
nuclear@0
|
4704
|
nuclear@0
|
4705 void OVR::GLEContext::glWindowPos2d_Hook(GLdouble x, GLdouble y)
|
nuclear@0
|
4706 {
|
nuclear@0
|
4707 if(glWindowPos2d_Impl)
|
nuclear@0
|
4708 glWindowPos2d_Impl(x, y);
|
nuclear@0
|
4709 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4710 }
|
nuclear@0
|
4711
|
nuclear@0
|
4712 void OVR::GLEContext::glWindowPos2dv_Hook(const GLdouble *v)
|
nuclear@0
|
4713 {
|
nuclear@0
|
4714 if(glWindowPos2dv_Impl)
|
nuclear@0
|
4715 glWindowPos2dv_Impl(v);
|
nuclear@0
|
4716 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4717 }
|
nuclear@0
|
4718
|
nuclear@0
|
4719 void OVR::GLEContext::glWindowPos2f_Hook(GLfloat x, GLfloat y)
|
nuclear@0
|
4720 {
|
nuclear@0
|
4721 if(glWindowPos2f_Impl)
|
nuclear@0
|
4722 glWindowPos2f_Impl(x, y);
|
nuclear@0
|
4723 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4724 }
|
nuclear@0
|
4725
|
nuclear@0
|
4726 void OVR::GLEContext::glWindowPos2fv_Hook(const GLfloat *v)
|
nuclear@0
|
4727 {
|
nuclear@0
|
4728 if(glWindowPos2fv_Impl)
|
nuclear@0
|
4729 glWindowPos2fv_Impl(v);
|
nuclear@0
|
4730 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4731 }
|
nuclear@0
|
4732
|
nuclear@0
|
4733 void OVR::GLEContext::glWindowPos2i_Hook(GLint x, GLint y)
|
nuclear@0
|
4734 {
|
nuclear@0
|
4735 if(glWindowPos2i_Impl)
|
nuclear@0
|
4736 glWindowPos2i_Impl(x, y);
|
nuclear@0
|
4737 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4738 }
|
nuclear@0
|
4739
|
nuclear@0
|
4740 void OVR::GLEContext::glWindowPos2iv_Hook(const GLint *v)
|
nuclear@0
|
4741 {
|
nuclear@0
|
4742 if(glWindowPos2iv_Impl)
|
nuclear@0
|
4743 glWindowPos2iv_Impl(v);
|
nuclear@0
|
4744 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4745 }
|
nuclear@0
|
4746
|
nuclear@0
|
4747 void OVR::GLEContext::glWindowPos2s_Hook(GLshort x, GLshort y)
|
nuclear@0
|
4748 {
|
nuclear@0
|
4749 if(glWindowPos2s_Impl)
|
nuclear@0
|
4750 glWindowPos2s_Impl(x, y);
|
nuclear@0
|
4751 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4752 }
|
nuclear@0
|
4753
|
nuclear@0
|
4754 void OVR::GLEContext::glWindowPos2sv_Hook(const GLshort *v)
|
nuclear@0
|
4755 {
|
nuclear@0
|
4756 if(glWindowPos2sv_Impl)
|
nuclear@0
|
4757 glWindowPos2sv_Impl(v);
|
nuclear@0
|
4758 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4759 }
|
nuclear@0
|
4760
|
nuclear@0
|
4761 void OVR::GLEContext::glWindowPos3d_Hook(GLdouble x, GLdouble y, GLdouble z)
|
nuclear@0
|
4762 {
|
nuclear@0
|
4763 if(glWindowPos3d_Impl)
|
nuclear@0
|
4764 glWindowPos3d_Impl(x, y, z);
|
nuclear@0
|
4765 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4766 }
|
nuclear@0
|
4767
|
nuclear@0
|
4768 void OVR::GLEContext::glWindowPos3dv_Hook(const GLdouble *v)
|
nuclear@0
|
4769 {
|
nuclear@0
|
4770 if(glWindowPos3dv_Impl)
|
nuclear@0
|
4771 glWindowPos3dv_Impl(v);
|
nuclear@0
|
4772 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4773 }
|
nuclear@0
|
4774
|
nuclear@0
|
4775 void OVR::GLEContext::glWindowPos3f_Hook(GLfloat x, GLfloat y, GLfloat z)
|
nuclear@0
|
4776 {
|
nuclear@0
|
4777 if(glWindowPos3f_Impl)
|
nuclear@0
|
4778 glWindowPos3f_Impl(x, y, z);
|
nuclear@0
|
4779 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4780 }
|
nuclear@0
|
4781
|
nuclear@0
|
4782 void OVR::GLEContext::glWindowPos3fv_Hook(const GLfloat *v)
|
nuclear@0
|
4783 {
|
nuclear@0
|
4784 if(glWindowPos3fv_Impl)
|
nuclear@0
|
4785 glWindowPos3fv_Impl(v);
|
nuclear@0
|
4786 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4787 }
|
nuclear@0
|
4788
|
nuclear@0
|
4789 void OVR::GLEContext::glWindowPos3i_Hook(GLint x, GLint y, GLint z)
|
nuclear@0
|
4790 {
|
nuclear@0
|
4791 if(glWindowPos3i_Impl)
|
nuclear@0
|
4792 glWindowPos3i_Impl(x, y, z);
|
nuclear@0
|
4793 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4794 }
|
nuclear@0
|
4795
|
nuclear@0
|
4796 void OVR::GLEContext::glWindowPos3iv_Hook(const GLint *v)
|
nuclear@0
|
4797 {
|
nuclear@0
|
4798 if(glWindowPos3iv_Impl)
|
nuclear@0
|
4799 glWindowPos3iv_Impl(v);
|
nuclear@0
|
4800 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4801 }
|
nuclear@0
|
4802
|
nuclear@0
|
4803 void OVR::GLEContext::glWindowPos3s_Hook(GLshort x, GLshort y, GLshort z)
|
nuclear@0
|
4804 {
|
nuclear@0
|
4805 if(glWindowPos3s_Impl)
|
nuclear@0
|
4806 glWindowPos3s_Impl(x, y, z);
|
nuclear@0
|
4807 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4808 }
|
nuclear@0
|
4809
|
nuclear@0
|
4810 void OVR::GLEContext::glWindowPos3sv_Hook(const GLshort *v)
|
nuclear@0
|
4811 {
|
nuclear@0
|
4812 if(glWindowPos3sv_Impl)
|
nuclear@0
|
4813 glWindowPos3sv_Impl(v);
|
nuclear@0
|
4814 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4815 }
|
nuclear@0
|
4816
|
nuclear@0
|
4817
|
nuclear@0
|
4818 // GL_VERSION_1_5
|
nuclear@0
|
4819 void OVR::GLEContext::glGenQueries_Hook(GLsizei n, GLuint *ids)
|
nuclear@0
|
4820 {
|
nuclear@0
|
4821 if(glGenQueries_Impl)
|
nuclear@0
|
4822 glGenQueries_Impl(n, ids);
|
nuclear@0
|
4823 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4824 }
|
nuclear@0
|
4825
|
nuclear@0
|
4826 void OVR::GLEContext::glDeleteQueries_Hook(GLsizei n, const GLuint *ids)
|
nuclear@0
|
4827 {
|
nuclear@0
|
4828 if(glDeleteQueries_Impl)
|
nuclear@0
|
4829 glDeleteQueries_Impl(n, ids);
|
nuclear@0
|
4830 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4831 }
|
nuclear@0
|
4832
|
nuclear@0
|
4833 GLboolean OVR::GLEContext::glIsQuery_Hook(GLuint id)
|
nuclear@0
|
4834 {
|
nuclear@0
|
4835 GLboolean b = GL_FALSE;
|
nuclear@0
|
4836 if(glIsQuery_Impl)
|
nuclear@0
|
4837 b = glIsQuery_Impl(id);
|
nuclear@0
|
4838 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4839 return b;
|
nuclear@0
|
4840 }
|
nuclear@0
|
4841
|
nuclear@0
|
4842 void OVR::GLEContext::glBeginQuery_Hook(GLenum target, GLuint id)
|
nuclear@0
|
4843 {
|
nuclear@0
|
4844 if(glBeginQuery_Impl)
|
nuclear@0
|
4845 glBeginQuery_Impl(target, id);
|
nuclear@0
|
4846 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4847 }
|
nuclear@0
|
4848
|
nuclear@0
|
4849 void OVR::GLEContext::glEndQuery_Hook(GLenum target)
|
nuclear@0
|
4850 {
|
nuclear@0
|
4851 if(glEndQuery_Impl)
|
nuclear@0
|
4852 glEndQuery_Impl(target);
|
nuclear@0
|
4853 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4854 }
|
nuclear@0
|
4855
|
nuclear@0
|
4856 void OVR::GLEContext::glGetQueryiv_Hook(GLenum target, GLenum pname, GLint *params)
|
nuclear@0
|
4857 {
|
nuclear@0
|
4858 if(glGetQueryiv_Impl)
|
nuclear@0
|
4859 glGetQueryiv_Impl(target, pname, params);
|
nuclear@0
|
4860 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4861 }
|
nuclear@0
|
4862
|
nuclear@0
|
4863 void OVR::GLEContext::glGetQueryObjectiv_Hook(GLuint id, GLenum pname, GLint *params)
|
nuclear@0
|
4864 {
|
nuclear@0
|
4865 if(glGetQueryObjectiv_Impl)
|
nuclear@0
|
4866 glGetQueryObjectiv_Impl(id, pname, params);
|
nuclear@0
|
4867 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4868 }
|
nuclear@0
|
4869
|
nuclear@0
|
4870 void OVR::GLEContext::glGetQueryObjectuiv_Hook(GLuint id, GLenum pname, GLuint *params)
|
nuclear@0
|
4871 {
|
nuclear@0
|
4872 if(glGetQueryObjectuiv_Impl)
|
nuclear@0
|
4873 glGetQueryObjectuiv_Impl(id, pname, params);
|
nuclear@0
|
4874 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4875 }
|
nuclear@0
|
4876
|
nuclear@0
|
4877 void OVR::GLEContext::glBindBuffer_Hook(GLenum target, GLuint buffer)
|
nuclear@0
|
4878 {
|
nuclear@0
|
4879 if(glBindBuffer_Impl)
|
nuclear@0
|
4880 glBindBuffer_Impl(target, buffer);
|
nuclear@0
|
4881 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4882 }
|
nuclear@0
|
4883
|
nuclear@0
|
4884 void OVR::GLEContext::glDeleteBuffers_Hook(GLsizei n, const GLuint *buffers)
|
nuclear@0
|
4885 {
|
nuclear@0
|
4886 if(glDeleteBuffers_Impl)
|
nuclear@0
|
4887 glDeleteBuffers_Impl(n, buffers);
|
nuclear@0
|
4888 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4889 }
|
nuclear@0
|
4890
|
nuclear@0
|
4891 void OVR::GLEContext::glGenBuffers_Hook(GLsizei n, GLuint *buffers)
|
nuclear@0
|
4892 {
|
nuclear@0
|
4893 if(glGenBuffers_Impl)
|
nuclear@0
|
4894 glGenBuffers_Impl(n, buffers);
|
nuclear@0
|
4895 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4896 }
|
nuclear@0
|
4897
|
nuclear@0
|
4898 GLboolean OVR::GLEContext::glIsBuffer_Hook(GLuint buffer)
|
nuclear@0
|
4899 {
|
nuclear@0
|
4900 GLboolean b = GL_FALSE;
|
nuclear@0
|
4901 if(glIsBuffer_Impl)
|
nuclear@0
|
4902 b = glIsBuffer_Impl(buffer);
|
nuclear@0
|
4903 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4904 return b;
|
nuclear@0
|
4905 }
|
nuclear@0
|
4906
|
nuclear@0
|
4907 void OVR::GLEContext::glBufferData_Hook(GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage)
|
nuclear@0
|
4908 {
|
nuclear@0
|
4909 if(glBufferData_Impl)
|
nuclear@0
|
4910 glBufferData_Impl(target, size, data, usage);
|
nuclear@0
|
4911 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4912 }
|
nuclear@0
|
4913
|
nuclear@0
|
4914 void OVR::GLEContext::glBufferSubData_Hook(GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid *data)
|
nuclear@0
|
4915 {
|
nuclear@0
|
4916 if(glBufferSubData_Impl)
|
nuclear@0
|
4917 glBufferSubData_Impl(target, offset, size, data);
|
nuclear@0
|
4918 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4919 }
|
nuclear@0
|
4920
|
nuclear@0
|
4921 void OVR::GLEContext::glGetBufferSubData_Hook(GLenum target, GLintptr offset, GLsizeiptr size, GLvoid *data)
|
nuclear@0
|
4922 {
|
nuclear@0
|
4923 if(glGetBufferSubData_Impl)
|
nuclear@0
|
4924 glGetBufferSubData_Impl(target, offset, size, data);
|
nuclear@0
|
4925 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4926 }
|
nuclear@0
|
4927
|
nuclear@0
|
4928 GLvoid* OVR::GLEContext::glMapBuffer_Hook(GLenum target, GLenum access)
|
nuclear@0
|
4929 {
|
nuclear@0
|
4930 GLvoid* p = NULL;
|
nuclear@0
|
4931 if(glMapBuffer_Impl)
|
nuclear@0
|
4932 p = glMapBuffer_Impl(target, access);
|
nuclear@0
|
4933 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4934 return p;
|
nuclear@0
|
4935 }
|
nuclear@0
|
4936
|
nuclear@0
|
4937 GLboolean OVR::GLEContext::glUnmapBuffer_Hook(GLenum target)
|
nuclear@0
|
4938 {
|
nuclear@0
|
4939 GLboolean b = GL_FALSE;
|
nuclear@0
|
4940 if(glUnmapBuffer_Impl)
|
nuclear@0
|
4941 b = glUnmapBuffer_Impl(target);
|
nuclear@0
|
4942 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4943 return b;
|
nuclear@0
|
4944 }
|
nuclear@0
|
4945
|
nuclear@0
|
4946 void OVR::GLEContext::glGetBufferParameteriv_Hook(GLenum target, GLenum pname, GLint *params)
|
nuclear@0
|
4947 {
|
nuclear@0
|
4948 if(glGetBufferParameteriv_Impl)
|
nuclear@0
|
4949 glGetBufferParameteriv_Impl(target, pname, params);
|
nuclear@0
|
4950 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4951 }
|
nuclear@0
|
4952
|
nuclear@0
|
4953 void OVR::GLEContext::glGetBufferPointerv_Hook(GLenum target, GLenum pname, GLvoid* *params)
|
nuclear@0
|
4954 {
|
nuclear@0
|
4955 if(glGetBufferPointerv_Impl)
|
nuclear@0
|
4956 glGetBufferPointerv_Impl(target, pname, params);
|
nuclear@0
|
4957 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4958 }
|
nuclear@0
|
4959
|
nuclear@0
|
4960
|
nuclear@0
|
4961 // GL_VERSION_2_0
|
nuclear@0
|
4962 void OVR::GLEContext::glBlendEquationSeparate_Hook(GLenum modeRGB, GLenum modeAlpha)
|
nuclear@0
|
4963 {
|
nuclear@0
|
4964 if(glBlendEquationSeparate_Impl)
|
nuclear@0
|
4965 glBlendEquationSeparate_Impl(modeRGB, modeAlpha);
|
nuclear@0
|
4966 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4967 }
|
nuclear@0
|
4968
|
nuclear@0
|
4969 void OVR::GLEContext::glDrawBuffers_Hook(GLsizei n, const GLenum *bufs)
|
nuclear@0
|
4970 {
|
nuclear@0
|
4971 if(glDrawBuffers_Impl)
|
nuclear@0
|
4972 glDrawBuffers_Impl(n, bufs);
|
nuclear@0
|
4973 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4974 }
|
nuclear@0
|
4975
|
nuclear@0
|
4976 void OVR::GLEContext::glStencilOpSeparate_Hook(GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass)
|
nuclear@0
|
4977 {
|
nuclear@0
|
4978 if(glStencilOpSeparate_Impl)
|
nuclear@0
|
4979 glStencilOpSeparate_Impl(face, sfail, dpfail, dppass);
|
nuclear@0
|
4980 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4981 }
|
nuclear@0
|
4982
|
nuclear@0
|
4983 void OVR::GLEContext::glStencilFuncSeparate_Hook(GLenum face, GLenum func, GLint ref, GLuint mask)
|
nuclear@0
|
4984 {
|
nuclear@0
|
4985 if(glStencilFuncSeparate_Impl)
|
nuclear@0
|
4986 glStencilFuncSeparate_Impl(face, func, ref, mask);
|
nuclear@0
|
4987 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4988 }
|
nuclear@0
|
4989
|
nuclear@0
|
4990 void OVR::GLEContext::glStencilMaskSeparate_Hook(GLenum face, GLuint mask)
|
nuclear@0
|
4991 {
|
nuclear@0
|
4992 if(glStencilMaskSeparate_Impl)
|
nuclear@0
|
4993 glStencilMaskSeparate_Impl(face, mask);
|
nuclear@0
|
4994 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
4995 }
|
nuclear@0
|
4996
|
nuclear@0
|
4997 void OVR::GLEContext::glAttachShader_Hook(GLuint program, GLuint shader)
|
nuclear@0
|
4998 {
|
nuclear@0
|
4999 if(glAttachShader_Impl)
|
nuclear@0
|
5000 glAttachShader_Impl(program, shader);
|
nuclear@0
|
5001 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5002 }
|
nuclear@0
|
5003
|
nuclear@0
|
5004 void OVR::GLEContext::glBindAttribLocation_Hook(GLuint program, GLuint index, const GLchar *name)
|
nuclear@0
|
5005 {
|
nuclear@0
|
5006 if(glBindAttribLocation_Impl)
|
nuclear@0
|
5007 glBindAttribLocation_Impl(program, index, name);
|
nuclear@0
|
5008 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5009 }
|
nuclear@0
|
5010
|
nuclear@0
|
5011 void OVR::GLEContext::glCompileShader_Hook(GLuint shader)
|
nuclear@0
|
5012 {
|
nuclear@0
|
5013 if(glCompileShader_Impl)
|
nuclear@0
|
5014 glCompileShader_Impl(shader);
|
nuclear@0
|
5015 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5016 }
|
nuclear@0
|
5017
|
nuclear@0
|
5018 GLuint OVR::GLEContext::glCreateProgram_Hook()
|
nuclear@0
|
5019 {
|
nuclear@0
|
5020 GLuint u = 0;
|
nuclear@0
|
5021 if(glCreateProgram_Impl)
|
nuclear@0
|
5022 u = glCreateProgram_Impl();
|
nuclear@0
|
5023 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5024 return u;
|
nuclear@0
|
5025 }
|
nuclear@0
|
5026
|
nuclear@0
|
5027 GLuint OVR::GLEContext::glCreateShader_Hook(GLenum type)
|
nuclear@0
|
5028 {
|
nuclear@0
|
5029 GLuint u = 0;
|
nuclear@0
|
5030 if(glCreateShader_Impl)
|
nuclear@0
|
5031 u = glCreateShader_Impl(type);
|
nuclear@0
|
5032 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5033 return u;
|
nuclear@0
|
5034 }
|
nuclear@0
|
5035
|
nuclear@0
|
5036 void OVR::GLEContext::glDeleteProgram_Hook(GLuint program)
|
nuclear@0
|
5037 {
|
nuclear@0
|
5038 if(glDeleteProgram_Impl)
|
nuclear@0
|
5039 glDeleteProgram_Impl(program);
|
nuclear@0
|
5040 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5041 }
|
nuclear@0
|
5042
|
nuclear@0
|
5043 void OVR::GLEContext::glDeleteShader_Hook(GLuint shader)
|
nuclear@0
|
5044 {
|
nuclear@0
|
5045 if(glDeleteShader_Impl)
|
nuclear@0
|
5046 glDeleteShader_Impl(shader);
|
nuclear@0
|
5047 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5048 }
|
nuclear@0
|
5049
|
nuclear@0
|
5050 void OVR::GLEContext::glDetachShader_Hook(GLuint program, GLuint shader)
|
nuclear@0
|
5051 {
|
nuclear@0
|
5052 if(glDetachShader_Impl)
|
nuclear@0
|
5053 glDetachShader_Impl(program, shader);
|
nuclear@0
|
5054 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5055 }
|
nuclear@0
|
5056
|
nuclear@0
|
5057 void OVR::GLEContext::glDisableVertexAttribArray_Hook(GLuint index)
|
nuclear@0
|
5058 {
|
nuclear@0
|
5059 if(glDisableVertexAttribArray_Impl)
|
nuclear@0
|
5060 glDisableVertexAttribArray_Impl(index);
|
nuclear@0
|
5061 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5062 }
|
nuclear@0
|
5063
|
nuclear@0
|
5064 void OVR::GLEContext::glEnableVertexAttribArray_Hook(GLuint index)
|
nuclear@0
|
5065 {
|
nuclear@0
|
5066 if(glEnableVertexAttribArray_Impl)
|
nuclear@0
|
5067 glEnableVertexAttribArray_Impl(index);
|
nuclear@0
|
5068 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5069 }
|
nuclear@0
|
5070
|
nuclear@0
|
5071 void OVR::GLEContext::glGetActiveAttrib_Hook(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name)
|
nuclear@0
|
5072 {
|
nuclear@0
|
5073 if(glGetActiveAttrib_Impl)
|
nuclear@0
|
5074 glGetActiveAttrib_Impl(program, index, bufSize, length, size, type, name);
|
nuclear@0
|
5075 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5076 }
|
nuclear@0
|
5077
|
nuclear@0
|
5078 void OVR::GLEContext::glGetActiveUniform_Hook(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name)
|
nuclear@0
|
5079 {
|
nuclear@0
|
5080 if(glGetActiveUniform_Impl)
|
nuclear@0
|
5081 glGetActiveUniform_Impl(program, index, bufSize, length, size, type, name);
|
nuclear@0
|
5082 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5083 }
|
nuclear@0
|
5084
|
nuclear@0
|
5085 void OVR::GLEContext::glGetAttachedShaders_Hook(GLuint program, GLsizei maxCount, GLsizei *count, GLuint *obj)
|
nuclear@0
|
5086 {
|
nuclear@0
|
5087 if(glGetAttachedShaders_Impl)
|
nuclear@0
|
5088 glGetAttachedShaders_Impl(program, maxCount, count, obj);
|
nuclear@0
|
5089 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5090 }
|
nuclear@0
|
5091
|
nuclear@0
|
5092 GLint OVR::GLEContext::glGetAttribLocation_Hook(GLuint program, const GLchar *name)
|
nuclear@0
|
5093 {
|
nuclear@0
|
5094 GLint i = 0;
|
nuclear@0
|
5095 if(glGetAttribLocation_Impl)
|
nuclear@0
|
5096 i = glGetAttribLocation_Impl(program, name);
|
nuclear@0
|
5097 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5098 return i;
|
nuclear@0
|
5099 }
|
nuclear@0
|
5100
|
nuclear@0
|
5101 void OVR::GLEContext::glGetProgramiv_Hook(GLuint program, GLenum pname, GLint *params)
|
nuclear@0
|
5102 {
|
nuclear@0
|
5103 if(glGetProgramiv_Impl)
|
nuclear@0
|
5104 glGetProgramiv_Impl(program, pname, params);
|
nuclear@0
|
5105 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5106 }
|
nuclear@0
|
5107
|
nuclear@0
|
5108 void OVR::GLEContext::glGetProgramInfoLog_Hook(GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog)
|
nuclear@0
|
5109 {
|
nuclear@0
|
5110 if(glGetProgramInfoLog_Impl)
|
nuclear@0
|
5111 glGetProgramInfoLog_Impl(program, bufSize, length, infoLog);
|
nuclear@0
|
5112 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5113 }
|
nuclear@0
|
5114
|
nuclear@0
|
5115 void OVR::GLEContext::glGetShaderiv_Hook(GLuint shader, GLenum pname, GLint *params)
|
nuclear@0
|
5116 {
|
nuclear@0
|
5117 if(glGetShaderiv_Impl)
|
nuclear@0
|
5118 glGetShaderiv_Impl(shader, pname, params);
|
nuclear@0
|
5119 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5120 }
|
nuclear@0
|
5121
|
nuclear@0
|
5122 void OVR::GLEContext::glGetShaderInfoLog_Hook(GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog)
|
nuclear@0
|
5123 {
|
nuclear@0
|
5124 if(glGetShaderInfoLog_Impl)
|
nuclear@0
|
5125 glGetShaderInfoLog_Impl(shader, bufSize, length, infoLog);
|
nuclear@0
|
5126 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5127 }
|
nuclear@0
|
5128
|
nuclear@0
|
5129 void OVR::GLEContext::glGetShaderSource_Hook(GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source)
|
nuclear@0
|
5130 {
|
nuclear@0
|
5131 if(glGetShaderSource_Impl)
|
nuclear@0
|
5132 glGetShaderSource_Impl(shader, bufSize, length, source);
|
nuclear@0
|
5133 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5134 }
|
nuclear@0
|
5135
|
nuclear@0
|
5136 GLint OVR::GLEContext::glGetUniformLocation_Hook(GLuint program, const GLchar *name)
|
nuclear@0
|
5137 {
|
nuclear@0
|
5138 GLint i = 0;
|
nuclear@0
|
5139 if(glGetUniformLocation_Impl)
|
nuclear@0
|
5140 i = glGetUniformLocation_Impl(program, name);
|
nuclear@0
|
5141 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5142 return i;
|
nuclear@0
|
5143 }
|
nuclear@0
|
5144
|
nuclear@0
|
5145 void OVR::GLEContext::glGetUniformfv_Hook(GLuint program, GLint location, GLfloat *params)
|
nuclear@0
|
5146 {
|
nuclear@0
|
5147 if(glGetUniformfv_Impl)
|
nuclear@0
|
5148 glGetUniformfv_Impl(program, location, params);
|
nuclear@0
|
5149 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5150 }
|
nuclear@0
|
5151
|
nuclear@0
|
5152 void OVR::GLEContext::glGetUniformiv_Hook(GLuint program, GLint location, GLint *params)
|
nuclear@0
|
5153 {
|
nuclear@0
|
5154 if(glGetUniformiv_Impl)
|
nuclear@0
|
5155 glGetUniformiv_Impl(program, location, params);
|
nuclear@0
|
5156 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5157 }
|
nuclear@0
|
5158
|
nuclear@0
|
5159 void OVR::GLEContext::glGetVertexAttribdv_Hook(GLuint index, GLenum pname, GLdouble *params)
|
nuclear@0
|
5160 {
|
nuclear@0
|
5161 if(glGetVertexAttribdv_Impl)
|
nuclear@0
|
5162 glGetVertexAttribdv_Impl(index, pname, params);
|
nuclear@0
|
5163 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5164 }
|
nuclear@0
|
5165
|
nuclear@0
|
5166 void OVR::GLEContext::glGetVertexAttribfv_Hook(GLuint index, GLenum pname, GLfloat *params)
|
nuclear@0
|
5167 {
|
nuclear@0
|
5168 if(glGetVertexAttribfv_Impl)
|
nuclear@0
|
5169 glGetVertexAttribfv_Impl(index, pname, params);
|
nuclear@0
|
5170 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5171 }
|
nuclear@0
|
5172
|
nuclear@0
|
5173 void OVR::GLEContext::glGetVertexAttribiv_Hook(GLuint index, GLenum pname, GLint *params)
|
nuclear@0
|
5174 {
|
nuclear@0
|
5175 if(glGetVertexAttribiv_Impl)
|
nuclear@0
|
5176 glGetVertexAttribiv_Impl(index, pname, params);
|
nuclear@0
|
5177 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5178 }
|
nuclear@0
|
5179
|
nuclear@0
|
5180 void OVR::GLEContext::glGetVertexAttribPointerv_Hook(GLuint index, GLenum pname, GLvoid* *pointer)
|
nuclear@0
|
5181 {
|
nuclear@0
|
5182 if(glGetVertexAttribPointerv_Impl)
|
nuclear@0
|
5183 glGetVertexAttribPointerv_Impl(index, pname, pointer);
|
nuclear@0
|
5184 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5185 }
|
nuclear@0
|
5186
|
nuclear@0
|
5187 GLboolean OVR::GLEContext::glIsProgram_Hook(GLuint program)
|
nuclear@0
|
5188 {
|
nuclear@0
|
5189 GLboolean b = GL_FALSE;
|
nuclear@0
|
5190 if(glIsProgram_Impl)
|
nuclear@0
|
5191 b = glIsProgram_Impl(program);
|
nuclear@0
|
5192 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5193 return b;
|
nuclear@0
|
5194 }
|
nuclear@0
|
5195
|
nuclear@0
|
5196 GLboolean OVR::GLEContext::glIsShader_Hook(GLuint shader)
|
nuclear@0
|
5197 {
|
nuclear@0
|
5198 GLboolean b = GL_FALSE;
|
nuclear@0
|
5199 if(glIsShader_Impl)
|
nuclear@0
|
5200 b = glIsShader_Impl(shader);
|
nuclear@0
|
5201 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5202 return b;
|
nuclear@0
|
5203 }
|
nuclear@0
|
5204
|
nuclear@0
|
5205 void OVR::GLEContext::glLinkProgram_Hook(GLuint program)
|
nuclear@0
|
5206 {
|
nuclear@0
|
5207 if(glLinkProgram_Impl)
|
nuclear@0
|
5208 glLinkProgram_Impl(program);
|
nuclear@0
|
5209 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5210 }
|
nuclear@0
|
5211
|
nuclear@0
|
5212 void OVR::GLEContext::glShaderSource_Hook(GLuint shader, GLsizei count, const GLchar* *string, const GLint *length)
|
nuclear@0
|
5213 {
|
nuclear@0
|
5214 if(glShaderSource_Impl)
|
nuclear@0
|
5215 glShaderSource_Impl(shader, count, string, length);
|
nuclear@0
|
5216 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5217 }
|
nuclear@0
|
5218
|
nuclear@0
|
5219 void OVR::GLEContext::glUseProgram_Hook(GLuint program)
|
nuclear@0
|
5220 {
|
nuclear@0
|
5221 if(glUseProgram_Impl)
|
nuclear@0
|
5222 glUseProgram_Impl(program);
|
nuclear@0
|
5223 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5224 }
|
nuclear@0
|
5225
|
nuclear@0
|
5226 void OVR::GLEContext::glUniform1f_Hook(GLint location, GLfloat v0)
|
nuclear@0
|
5227 {
|
nuclear@0
|
5228 if(glUniform1f_Impl)
|
nuclear@0
|
5229 glUniform1f_Impl(location, v0);
|
nuclear@0
|
5230 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5231 }
|
nuclear@0
|
5232
|
nuclear@0
|
5233 void OVR::GLEContext::glUniform2f_Hook(GLint location, GLfloat v0, GLfloat v1)
|
nuclear@0
|
5234 {
|
nuclear@0
|
5235 if(glUniform2f_Impl)
|
nuclear@0
|
5236 glUniform2f_Impl(location, v0, v1);
|
nuclear@0
|
5237 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5238 }
|
nuclear@0
|
5239
|
nuclear@0
|
5240 void OVR::GLEContext::glUniform3f_Hook(GLint location, GLfloat v0, GLfloat v1, GLfloat v2)
|
nuclear@0
|
5241 {
|
nuclear@0
|
5242 if(glUniform3f_Impl)
|
nuclear@0
|
5243 glUniform3f_Impl(location, v0, v1, v2);
|
nuclear@0
|
5244 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5245 }
|
nuclear@0
|
5246
|
nuclear@0
|
5247 void OVR::GLEContext::glUniform4f_Hook(GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3)
|
nuclear@0
|
5248 {
|
nuclear@0
|
5249 if(glUniform4f_Impl)
|
nuclear@0
|
5250 glUniform4f_Impl(location, v0, v1, v2, v3);
|
nuclear@0
|
5251 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5252 }
|
nuclear@0
|
5253
|
nuclear@0
|
5254 void OVR::GLEContext::glUniform1i_Hook(GLint location, GLint v0)
|
nuclear@0
|
5255 {
|
nuclear@0
|
5256 if(glUniform1i_Impl)
|
nuclear@0
|
5257 glUniform1i_Impl(location, v0);
|
nuclear@0
|
5258 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5259 }
|
nuclear@0
|
5260
|
nuclear@0
|
5261 void OVR::GLEContext::glUniform2i_Hook(GLint location, GLint v0, GLint v1)
|
nuclear@0
|
5262 {
|
nuclear@0
|
5263 if(glUniform2i_Impl)
|
nuclear@0
|
5264 glUniform2i_Impl(location, v0, v1);
|
nuclear@0
|
5265 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5266 }
|
nuclear@0
|
5267
|
nuclear@0
|
5268 void OVR::GLEContext::glUniform3i_Hook(GLint location, GLint v0, GLint v1, GLint v2)
|
nuclear@0
|
5269 {
|
nuclear@0
|
5270 if(glUniform3i_Impl)
|
nuclear@0
|
5271 glUniform3i_Impl(location, v0, v1, v2);
|
nuclear@0
|
5272 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5273 }
|
nuclear@0
|
5274
|
nuclear@0
|
5275 void OVR::GLEContext::glUniform4i_Hook(GLint location, GLint v0, GLint v1, GLint v2, GLint v3)
|
nuclear@0
|
5276 {
|
nuclear@0
|
5277 if(glUniform4i_Impl)
|
nuclear@0
|
5278 glUniform4i_Impl(location, v0, v1, v2, v3);
|
nuclear@0
|
5279 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5280 }
|
nuclear@0
|
5281
|
nuclear@0
|
5282 void OVR::GLEContext::glUniform1fv_Hook(GLint location, GLsizei count, const GLfloat *value)
|
nuclear@0
|
5283 {
|
nuclear@0
|
5284 if(glUniform1fv_Impl)
|
nuclear@0
|
5285 glUniform1fv_Impl(location, count, value);
|
nuclear@0
|
5286 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5287 }
|
nuclear@0
|
5288
|
nuclear@0
|
5289 void OVR::GLEContext::glUniform2fv_Hook(GLint location, GLsizei count, const GLfloat *value)
|
nuclear@0
|
5290 {
|
nuclear@0
|
5291 if(glUniform2fv_Impl)
|
nuclear@0
|
5292 glUniform2fv_Impl(location, count, value);
|
nuclear@0
|
5293 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5294 }
|
nuclear@0
|
5295
|
nuclear@0
|
5296 void OVR::GLEContext::glUniform3fv_Hook(GLint location, GLsizei count, const GLfloat *value)
|
nuclear@0
|
5297 {
|
nuclear@0
|
5298 if(glUniform3fv_Impl)
|
nuclear@0
|
5299 glUniform3fv_Impl(location, count, value);
|
nuclear@0
|
5300 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5301 }
|
nuclear@0
|
5302
|
nuclear@0
|
5303 void OVR::GLEContext::glUniform4fv_Hook(GLint location, GLsizei count, const GLfloat *value)
|
nuclear@0
|
5304 {
|
nuclear@0
|
5305 if(glUniform4fv_Impl)
|
nuclear@0
|
5306 glUniform4fv_Impl(location, count, value);
|
nuclear@0
|
5307 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5308 }
|
nuclear@0
|
5309
|
nuclear@0
|
5310 void OVR::GLEContext::glUniform1iv_Hook(GLint location, GLsizei count, const GLint *value)
|
nuclear@0
|
5311 {
|
nuclear@0
|
5312 if(glUniform1iv_Impl)
|
nuclear@0
|
5313 glUniform1iv_Impl(location, count, value);
|
nuclear@0
|
5314 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5315 }
|
nuclear@0
|
5316
|
nuclear@0
|
5317 void OVR::GLEContext::glUniform2iv_Hook(GLint location, GLsizei count, const GLint *value)
|
nuclear@0
|
5318 {
|
nuclear@0
|
5319 if(glUniform2iv_Impl)
|
nuclear@0
|
5320 glUniform2iv_Impl(location, count, value);
|
nuclear@0
|
5321 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5322 }
|
nuclear@0
|
5323
|
nuclear@0
|
5324 void OVR::GLEContext::glUniform3iv_Hook(GLint location, GLsizei count, const GLint *value)
|
nuclear@0
|
5325 {
|
nuclear@0
|
5326 if(glUniform3iv_Impl)
|
nuclear@0
|
5327 glUniform3iv_Impl(location, count, value);
|
nuclear@0
|
5328 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5329 }
|
nuclear@0
|
5330
|
nuclear@0
|
5331 void OVR::GLEContext::glUniform4iv_Hook(GLint location, GLsizei count, const GLint *value)
|
nuclear@0
|
5332 {
|
nuclear@0
|
5333 if(glUniform4iv_Impl)
|
nuclear@0
|
5334 glUniform4iv_Impl(location, count, value);
|
nuclear@0
|
5335 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5336 }
|
nuclear@0
|
5337
|
nuclear@0
|
5338 void OVR::GLEContext::glUniformMatrix2fv_Hook(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
|
nuclear@0
|
5339 {
|
nuclear@0
|
5340 if(glUniformMatrix2fv_Impl)
|
nuclear@0
|
5341 glUniformMatrix2fv_Impl(location, count, transpose, value);
|
nuclear@0
|
5342 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5343 }
|
nuclear@0
|
5344
|
nuclear@0
|
5345 void OVR::GLEContext::glUniformMatrix3fv_Hook(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
|
nuclear@0
|
5346 {
|
nuclear@0
|
5347 if(glUniformMatrix3fv_Impl)
|
nuclear@0
|
5348 glUniformMatrix3fv_Impl(location, count, transpose, value);
|
nuclear@0
|
5349 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5350 }
|
nuclear@0
|
5351
|
nuclear@0
|
5352 void OVR::GLEContext::glUniformMatrix4fv_Hook(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
|
nuclear@0
|
5353 {
|
nuclear@0
|
5354 if(glUniformMatrix4fv_Impl)
|
nuclear@0
|
5355 glUniformMatrix4fv_Impl(location, count, transpose, value);
|
nuclear@0
|
5356 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5357 }
|
nuclear@0
|
5358
|
nuclear@0
|
5359 void OVR::GLEContext::glValidateProgram_Hook(GLuint program)
|
nuclear@0
|
5360 {
|
nuclear@0
|
5361 if(glValidateProgram_Impl)
|
nuclear@0
|
5362 glValidateProgram_Impl(program);
|
nuclear@0
|
5363 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5364 }
|
nuclear@0
|
5365
|
nuclear@0
|
5366 void OVR::GLEContext::glVertexAttrib1d_Hook(GLuint index, GLdouble x)
|
nuclear@0
|
5367 {
|
nuclear@0
|
5368 if(glVertexAttrib1d_Impl)
|
nuclear@0
|
5369 glVertexAttrib1d_Impl(index, x);
|
nuclear@0
|
5370 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5371 }
|
nuclear@0
|
5372
|
nuclear@0
|
5373 void OVR::GLEContext::glVertexAttrib1dv_Hook(GLuint index, const GLdouble *v)
|
nuclear@0
|
5374 {
|
nuclear@0
|
5375 if(glVertexAttrib1dv_Impl)
|
nuclear@0
|
5376 glVertexAttrib1dv_Impl(index, v);
|
nuclear@0
|
5377 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5378 }
|
nuclear@0
|
5379
|
nuclear@0
|
5380 void OVR::GLEContext::glVertexAttrib1f_Hook(GLuint index, GLfloat x)
|
nuclear@0
|
5381 {
|
nuclear@0
|
5382 if(glVertexAttrib1f_Impl)
|
nuclear@0
|
5383 glVertexAttrib1f_Impl(index, x);
|
nuclear@0
|
5384 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5385 }
|
nuclear@0
|
5386
|
nuclear@0
|
5387 void OVR::GLEContext::glVertexAttrib1fv_Hook(GLuint index, const GLfloat *v)
|
nuclear@0
|
5388 {
|
nuclear@0
|
5389 if(glVertexAttrib1fv_Impl)
|
nuclear@0
|
5390 glVertexAttrib1fv_Impl(index, v);
|
nuclear@0
|
5391 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5392 }
|
nuclear@0
|
5393
|
nuclear@0
|
5394 void OVR::GLEContext::glVertexAttrib1s_Hook(GLuint index, GLshort x)
|
nuclear@0
|
5395 {
|
nuclear@0
|
5396 if(glVertexAttrib1s_Impl)
|
nuclear@0
|
5397 glVertexAttrib1s_Impl(index, x);
|
nuclear@0
|
5398 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5399 }
|
nuclear@0
|
5400
|
nuclear@0
|
5401 void OVR::GLEContext::glVertexAttrib1sv_Hook(GLuint index, const GLshort *v)
|
nuclear@0
|
5402 {
|
nuclear@0
|
5403 if(glVertexAttrib1sv_Impl)
|
nuclear@0
|
5404 glVertexAttrib1sv_Impl(index, v);
|
nuclear@0
|
5405 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5406 }
|
nuclear@0
|
5407
|
nuclear@0
|
5408 void OVR::GLEContext::glVertexAttrib2d_Hook(GLuint index, GLdouble x, GLdouble y)
|
nuclear@0
|
5409 {
|
nuclear@0
|
5410 if(glVertexAttrib2d_Impl)
|
nuclear@0
|
5411 glVertexAttrib2d_Impl(index, x, y);
|
nuclear@0
|
5412 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5413 }
|
nuclear@0
|
5414
|
nuclear@0
|
5415 void OVR::GLEContext::glVertexAttrib2dv_Hook(GLuint index, const GLdouble *v)
|
nuclear@0
|
5416 {
|
nuclear@0
|
5417 if(glVertexAttrib2dv_Impl)
|
nuclear@0
|
5418 glVertexAttrib2dv_Impl(index, v);
|
nuclear@0
|
5419 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5420 }
|
nuclear@0
|
5421
|
nuclear@0
|
5422 void OVR::GLEContext::glVertexAttrib2f_Hook(GLuint index, GLfloat x, GLfloat y)
|
nuclear@0
|
5423 {
|
nuclear@0
|
5424 if(glVertexAttrib2f_Impl)
|
nuclear@0
|
5425 glVertexAttrib2f_Impl(index, x, y);
|
nuclear@0
|
5426 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5427 }
|
nuclear@0
|
5428
|
nuclear@0
|
5429 void OVR::GLEContext::glVertexAttrib2fv_Hook(GLuint index, const GLfloat *v)
|
nuclear@0
|
5430 {
|
nuclear@0
|
5431 if(glVertexAttrib2fv_Impl)
|
nuclear@0
|
5432 glVertexAttrib2fv_Impl(index, v);
|
nuclear@0
|
5433 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5434 }
|
nuclear@0
|
5435
|
nuclear@0
|
5436 void OVR::GLEContext::glVertexAttrib2s_Hook(GLuint index, GLshort x, GLshort y)
|
nuclear@0
|
5437 {
|
nuclear@0
|
5438 if(glVertexAttrib2s_Impl)
|
nuclear@0
|
5439 glVertexAttrib2s_Impl(index, x, y);
|
nuclear@0
|
5440 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5441 }
|
nuclear@0
|
5442
|
nuclear@0
|
5443 void OVR::GLEContext::glVertexAttrib2sv_Hook(GLuint index, const GLshort *v)
|
nuclear@0
|
5444 {
|
nuclear@0
|
5445 if(glVertexAttrib2sv_Impl)
|
nuclear@0
|
5446 glVertexAttrib2sv_Impl(index, v);
|
nuclear@0
|
5447 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5448 }
|
nuclear@0
|
5449
|
nuclear@0
|
5450 void OVR::GLEContext::glVertexAttrib3d_Hook(GLuint index, GLdouble x, GLdouble y, GLdouble z)
|
nuclear@0
|
5451 {
|
nuclear@0
|
5452 if(glVertexAttrib3d_Impl)
|
nuclear@0
|
5453 glVertexAttrib3d_Impl(index, x, y, z);
|
nuclear@0
|
5454 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5455 }
|
nuclear@0
|
5456
|
nuclear@0
|
5457 void OVR::GLEContext::glVertexAttrib3dv_Hook(GLuint index, const GLdouble *v)
|
nuclear@0
|
5458 {
|
nuclear@0
|
5459 if(glVertexAttrib3dv_Impl)
|
nuclear@0
|
5460 glVertexAttrib3dv_Impl(index, v);
|
nuclear@0
|
5461 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5462 }
|
nuclear@0
|
5463
|
nuclear@0
|
5464 void OVR::GLEContext::glVertexAttrib3f_Hook(GLuint index, GLfloat x, GLfloat y, GLfloat z)
|
nuclear@0
|
5465 {
|
nuclear@0
|
5466 if(glVertexAttrib3f_Impl)
|
nuclear@0
|
5467 glVertexAttrib3f_Impl(index, x, y, z);
|
nuclear@0
|
5468 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5469 }
|
nuclear@0
|
5470
|
nuclear@0
|
5471 void OVR::GLEContext::glVertexAttrib3fv_Hook(GLuint index, const GLfloat *v)
|
nuclear@0
|
5472 {
|
nuclear@0
|
5473 if(glVertexAttrib3fv_Impl)
|
nuclear@0
|
5474 glVertexAttrib3fv_Impl(index, v);
|
nuclear@0
|
5475 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5476 }
|
nuclear@0
|
5477
|
nuclear@0
|
5478 void OVR::GLEContext::glVertexAttrib3s_Hook(GLuint index, GLshort x, GLshort y, GLshort z)
|
nuclear@0
|
5479 {
|
nuclear@0
|
5480 if(glVertexAttrib3s_Impl)
|
nuclear@0
|
5481 glVertexAttrib3s_Impl(index, x, y, z);
|
nuclear@0
|
5482 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5483 }
|
nuclear@0
|
5484
|
nuclear@0
|
5485 void OVR::GLEContext::glVertexAttrib3sv_Hook(GLuint index, const GLshort *v)
|
nuclear@0
|
5486 {
|
nuclear@0
|
5487 if(glVertexAttrib3sv_Impl)
|
nuclear@0
|
5488 glVertexAttrib3sv_Impl(index, v);
|
nuclear@0
|
5489 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5490 }
|
nuclear@0
|
5491
|
nuclear@0
|
5492 void OVR::GLEContext::glVertexAttrib4Nbv_Hook(GLuint index, const GLbyte *v)
|
nuclear@0
|
5493 {
|
nuclear@0
|
5494 if(glVertexAttrib4Nbv_Impl)
|
nuclear@0
|
5495 glVertexAttrib4Nbv_Impl(index, v);
|
nuclear@0
|
5496 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5497 }
|
nuclear@0
|
5498
|
nuclear@0
|
5499 void OVR::GLEContext::glVertexAttrib4Niv_Hook(GLuint index, const GLint *v)
|
nuclear@0
|
5500 {
|
nuclear@0
|
5501 if(glVertexAttrib4Niv_Impl)
|
nuclear@0
|
5502 glVertexAttrib4Niv_Impl(index, v);
|
nuclear@0
|
5503 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5504 }
|
nuclear@0
|
5505
|
nuclear@0
|
5506 void OVR::GLEContext::glVertexAttrib4Nsv_Hook(GLuint index, const GLshort *v)
|
nuclear@0
|
5507 {
|
nuclear@0
|
5508 if(glVertexAttrib4Nsv_Impl)
|
nuclear@0
|
5509 glVertexAttrib4Nsv_Impl(index, v);
|
nuclear@0
|
5510 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5511 }
|
nuclear@0
|
5512
|
nuclear@0
|
5513 void OVR::GLEContext::glVertexAttrib4Nub_Hook(GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w)
|
nuclear@0
|
5514 {
|
nuclear@0
|
5515 if(glVertexAttrib4Nub_Impl)
|
nuclear@0
|
5516 glVertexAttrib4Nub_Impl(index, x, y, z, w);
|
nuclear@0
|
5517 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5518 }
|
nuclear@0
|
5519
|
nuclear@0
|
5520 void OVR::GLEContext::glVertexAttrib4Nubv_Hook(GLuint index, const GLubyte *v)
|
nuclear@0
|
5521 {
|
nuclear@0
|
5522 if(glVertexAttrib4Nubv_Impl)
|
nuclear@0
|
5523 glVertexAttrib4Nubv_Impl(index, v);
|
nuclear@0
|
5524 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5525 }
|
nuclear@0
|
5526
|
nuclear@0
|
5527 void OVR::GLEContext::glVertexAttrib4Nuiv_Hook(GLuint index, const GLuint *v)
|
nuclear@0
|
5528 {
|
nuclear@0
|
5529 if(glVertexAttrib4Nuiv_Impl)
|
nuclear@0
|
5530 glVertexAttrib4Nuiv_Impl(index, v);
|
nuclear@0
|
5531 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5532 }
|
nuclear@0
|
5533
|
nuclear@0
|
5534 void OVR::GLEContext::glVertexAttrib4Nusv_Hook(GLuint index, const GLushort *v)
|
nuclear@0
|
5535 {
|
nuclear@0
|
5536 if(glVertexAttrib4Nusv_Impl)
|
nuclear@0
|
5537 glVertexAttrib4Nusv_Impl(index, v);
|
nuclear@0
|
5538 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5539 }
|
nuclear@0
|
5540
|
nuclear@0
|
5541 void OVR::GLEContext::glVertexAttrib4bv_Hook(GLuint index, const GLbyte *v)
|
nuclear@0
|
5542 {
|
nuclear@0
|
5543 if(glVertexAttrib4bv_Impl)
|
nuclear@0
|
5544 glVertexAttrib4bv_Impl(index, v);
|
nuclear@0
|
5545 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5546 }
|
nuclear@0
|
5547
|
nuclear@0
|
5548 void OVR::GLEContext::glVertexAttrib4d_Hook(GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w)
|
nuclear@0
|
5549 {
|
nuclear@0
|
5550 if(glVertexAttrib4d_Impl)
|
nuclear@0
|
5551 glVertexAttrib4d_Impl(index, x, y, z, w);
|
nuclear@0
|
5552 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5553 }
|
nuclear@0
|
5554
|
nuclear@0
|
5555 void OVR::GLEContext::glVertexAttrib4dv_Hook(GLuint index, const GLdouble *v)
|
nuclear@0
|
5556 {
|
nuclear@0
|
5557 if(glVertexAttrib4dv_Impl)
|
nuclear@0
|
5558 glVertexAttrib4dv_Impl(index, v);
|
nuclear@0
|
5559 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5560 }
|
nuclear@0
|
5561
|
nuclear@0
|
5562 void OVR::GLEContext::glVertexAttrib4f_Hook(GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
|
nuclear@0
|
5563 {
|
nuclear@0
|
5564 if(glVertexAttrib4f_Impl)
|
nuclear@0
|
5565 glVertexAttrib4f_Impl(index, x, y, z, w);
|
nuclear@0
|
5566 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5567 }
|
nuclear@0
|
5568
|
nuclear@0
|
5569 void OVR::GLEContext::glVertexAttrib4fv_Hook(GLuint index, const GLfloat *v)
|
nuclear@0
|
5570 {
|
nuclear@0
|
5571 if(glVertexAttrib4fv_Impl)
|
nuclear@0
|
5572 glVertexAttrib4fv_Impl(index, v);
|
nuclear@0
|
5573 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5574 }
|
nuclear@0
|
5575
|
nuclear@0
|
5576 void OVR::GLEContext::glVertexAttrib4iv_Hook(GLuint index, const GLint *v)
|
nuclear@0
|
5577 {
|
nuclear@0
|
5578 if(glVertexAttrib4iv_Impl)
|
nuclear@0
|
5579 glVertexAttrib4iv_Impl(index, v);
|
nuclear@0
|
5580 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5581 }
|
nuclear@0
|
5582
|
nuclear@0
|
5583 void OVR::GLEContext::glVertexAttrib4s_Hook(GLuint index, GLshort x, GLshort y, GLshort z, GLshort w)
|
nuclear@0
|
5584 {
|
nuclear@0
|
5585 if(glVertexAttrib4s_Impl)
|
nuclear@0
|
5586 glVertexAttrib4s_Impl(index, x, y, z, w);
|
nuclear@0
|
5587 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5588 }
|
nuclear@0
|
5589
|
nuclear@0
|
5590 void OVR::GLEContext::glVertexAttrib4sv_Hook(GLuint index, const GLshort *v)
|
nuclear@0
|
5591 {
|
nuclear@0
|
5592 if(glVertexAttrib4sv_Impl)
|
nuclear@0
|
5593 glVertexAttrib4sv_Impl(index, v);
|
nuclear@0
|
5594 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5595 }
|
nuclear@0
|
5596
|
nuclear@0
|
5597 void OVR::GLEContext::glVertexAttrib4ubv_Hook(GLuint index, const GLubyte *v)
|
nuclear@0
|
5598 {
|
nuclear@0
|
5599 if(glVertexAttrib4ubv_Impl)
|
nuclear@0
|
5600 glVertexAttrib4ubv_Impl(index, v);
|
nuclear@0
|
5601 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5602 }
|
nuclear@0
|
5603
|
nuclear@0
|
5604 void OVR::GLEContext::glVertexAttrib4uiv_Hook(GLuint index, const GLuint *v)
|
nuclear@0
|
5605 {
|
nuclear@0
|
5606 if(glVertexAttrib4uiv_Impl)
|
nuclear@0
|
5607 glVertexAttrib4uiv_Impl(index, v);
|
nuclear@0
|
5608 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5609 }
|
nuclear@0
|
5610
|
nuclear@0
|
5611 void OVR::GLEContext::glVertexAttrib4usv_Hook(GLuint index, const GLushort *v)
|
nuclear@0
|
5612 {
|
nuclear@0
|
5613 if(glVertexAttrib4usv_Impl)
|
nuclear@0
|
5614 glVertexAttrib4usv_Impl(index, v);
|
nuclear@0
|
5615 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5616 }
|
nuclear@0
|
5617
|
nuclear@0
|
5618 void OVR::GLEContext::glVertexAttribPointer_Hook(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer)
|
nuclear@0
|
5619 {
|
nuclear@0
|
5620 if(glVertexAttribPointer_Impl)
|
nuclear@0
|
5621 glVertexAttribPointer_Impl(index, size, type, normalized, stride, pointer);
|
nuclear@0
|
5622 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5623 }
|
nuclear@0
|
5624
|
nuclear@0
|
5625
|
nuclear@0
|
5626 // GL_VERSION_2_1
|
nuclear@0
|
5627 void OVR::GLEContext::glUniformMatrix2x3fv_Hook(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
|
nuclear@0
|
5628 {
|
nuclear@0
|
5629 if(glUniformMatrix2x3fv_Impl)
|
nuclear@0
|
5630 glUniformMatrix2x3fv_Impl(location, count, transpose, value);
|
nuclear@0
|
5631 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5632 }
|
nuclear@0
|
5633
|
nuclear@0
|
5634 void OVR::GLEContext::glUniformMatrix3x2fv_Hook(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
|
nuclear@0
|
5635 {
|
nuclear@0
|
5636 if(glUniformMatrix3x2fv_Impl)
|
nuclear@0
|
5637 glUniformMatrix3x2fv_Impl(location, count, transpose, value);
|
nuclear@0
|
5638 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5639 }
|
nuclear@0
|
5640
|
nuclear@0
|
5641 void OVR::GLEContext::glUniformMatrix2x4fv_Hook(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
|
nuclear@0
|
5642 {
|
nuclear@0
|
5643 if(glUniformMatrix2x4fv_Impl)
|
nuclear@0
|
5644 glUniformMatrix2x4fv_Impl(location, count, transpose, value);
|
nuclear@0
|
5645 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5646 }
|
nuclear@0
|
5647
|
nuclear@0
|
5648 void OVR::GLEContext::glUniformMatrix4x2fv_Hook(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
|
nuclear@0
|
5649 {
|
nuclear@0
|
5650 if(glUniformMatrix4x2fv_Impl)
|
nuclear@0
|
5651 glUniformMatrix4x2fv_Impl(location, count, transpose, value);
|
nuclear@0
|
5652 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5653 }
|
nuclear@0
|
5654
|
nuclear@0
|
5655 void OVR::GLEContext::glUniformMatrix3x4fv_Hook(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
|
nuclear@0
|
5656 {
|
nuclear@0
|
5657 if(glUniformMatrix3x4fv_Impl)
|
nuclear@0
|
5658 glUniformMatrix3x4fv_Impl(location, count, transpose, value);
|
nuclear@0
|
5659 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5660 }
|
nuclear@0
|
5661
|
nuclear@0
|
5662 void OVR::GLEContext::glUniformMatrix4x3fv_Hook(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
|
nuclear@0
|
5663 {
|
nuclear@0
|
5664 if(glUniformMatrix4x3fv_Impl)
|
nuclear@0
|
5665 glUniformMatrix4x3fv_Impl(location, count, transpose, value);
|
nuclear@0
|
5666 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5667 }
|
nuclear@0
|
5668
|
nuclear@0
|
5669
|
nuclear@0
|
5670 // GL_VERSION_3_0
|
nuclear@0
|
5671 void OVR::GLEContext::glColorMaski_Hook(GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a)
|
nuclear@0
|
5672 {
|
nuclear@0
|
5673 if(glColorMaski_Impl)
|
nuclear@0
|
5674 glColorMaski_Impl(index, r, g, b, a);
|
nuclear@0
|
5675 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5676 }
|
nuclear@0
|
5677
|
nuclear@0
|
5678 void OVR::GLEContext::glGetBooleani_v_Hook(GLenum target, GLuint index, GLboolean *data)
|
nuclear@0
|
5679 {
|
nuclear@0
|
5680 if(glGetBooleani_v_Impl)
|
nuclear@0
|
5681 glGetBooleani_v_Impl(target, index, data);
|
nuclear@0
|
5682 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5683 }
|
nuclear@0
|
5684
|
nuclear@0
|
5685 void OVR::GLEContext::glGetIntegeri_v_Hook(GLenum target, GLuint index, GLint *data)
|
nuclear@0
|
5686 {
|
nuclear@0
|
5687 if(glGetIntegeri_v_Impl)
|
nuclear@0
|
5688 glGetIntegeri_v_Impl(target, index, data);
|
nuclear@0
|
5689 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5690 }
|
nuclear@0
|
5691
|
nuclear@0
|
5692 void OVR::GLEContext::glEnablei_Hook(GLenum target, GLuint index)
|
nuclear@0
|
5693 {
|
nuclear@0
|
5694 if(glEnablei_Impl)
|
nuclear@0
|
5695 glEnablei_Impl(target, index);
|
nuclear@0
|
5696 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5697 }
|
nuclear@0
|
5698
|
nuclear@0
|
5699 void OVR::GLEContext::glDisablei_Hook(GLenum target, GLuint index)
|
nuclear@0
|
5700 {
|
nuclear@0
|
5701 if(glDisablei_Impl)
|
nuclear@0
|
5702 glDisablei_Impl(target, index);
|
nuclear@0
|
5703 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5704 }
|
nuclear@0
|
5705
|
nuclear@0
|
5706 GLboolean OVR::GLEContext::glIsEnabledi_Hook(GLenum target, GLuint index)
|
nuclear@0
|
5707 {
|
nuclear@0
|
5708 GLboolean b = GL_FALSE;
|
nuclear@0
|
5709 if(glIsEnabledi_Impl)
|
nuclear@0
|
5710 b = glIsEnabledi_Impl(target, index);
|
nuclear@0
|
5711 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5712 return b;
|
nuclear@0
|
5713 }
|
nuclear@0
|
5714
|
nuclear@0
|
5715 void OVR::GLEContext::glBeginTransformFeedback_Hook(GLenum primitiveMode)
|
nuclear@0
|
5716 {
|
nuclear@0
|
5717 if(glBeginTransformFeedback_Impl)
|
nuclear@0
|
5718 glBeginTransformFeedback_Impl(primitiveMode);
|
nuclear@0
|
5719 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5720 }
|
nuclear@0
|
5721
|
nuclear@0
|
5722 void OVR::GLEContext::glEndTransformFeedback_Hook()
|
nuclear@0
|
5723 {
|
nuclear@0
|
5724 if(glEndTransformFeedback_Impl)
|
nuclear@0
|
5725 glEndTransformFeedback_Impl();
|
nuclear@0
|
5726 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5727 }
|
nuclear@0
|
5728
|
nuclear@0
|
5729 void OVR::GLEContext::glBindBufferRange_Hook(GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size)
|
nuclear@0
|
5730 {
|
nuclear@0
|
5731 if(glBindBufferRange_Impl)
|
nuclear@0
|
5732 glBindBufferRange_Impl(target, index, buffer, offset, size);
|
nuclear@0
|
5733 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5734 }
|
nuclear@0
|
5735
|
nuclear@0
|
5736 void OVR::GLEContext::glBindBufferBase_Hook(GLenum target, GLuint index, GLuint buffer)
|
nuclear@0
|
5737 {
|
nuclear@0
|
5738 if(glBindBufferBase_Impl)
|
nuclear@0
|
5739 glBindBufferBase_Impl(target, index, buffer);
|
nuclear@0
|
5740 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5741 }
|
nuclear@0
|
5742
|
nuclear@0
|
5743 void OVR::GLEContext::glTransformFeedbackVaryings_Hook(GLuint program, GLsizei count, const GLchar* *varyings, GLenum bufferMode)
|
nuclear@0
|
5744 {
|
nuclear@0
|
5745 if(glTransformFeedbackVaryings_Impl)
|
nuclear@0
|
5746 glTransformFeedbackVaryings_Impl(program, count, varyings, bufferMode);
|
nuclear@0
|
5747 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5748 }
|
nuclear@0
|
5749
|
nuclear@0
|
5750 void OVR::GLEContext::glGetTransformFeedbackVarying_Hook(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name)
|
nuclear@0
|
5751 {
|
nuclear@0
|
5752 if(glGetTransformFeedbackVarying_Impl)
|
nuclear@0
|
5753 glGetTransformFeedbackVarying_Impl(program, index, bufSize, length, size, type, name);
|
nuclear@0
|
5754 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5755 }
|
nuclear@0
|
5756
|
nuclear@0
|
5757 void OVR::GLEContext::glClampColor_Hook(GLenum target, GLenum clamp)
|
nuclear@0
|
5758 {
|
nuclear@0
|
5759 if(glClampColor_Impl)
|
nuclear@0
|
5760 glClampColor_Impl(target, clamp);
|
nuclear@0
|
5761 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5762 }
|
nuclear@0
|
5763
|
nuclear@0
|
5764 void OVR::GLEContext::glBeginConditionalRender_Hook(GLuint id, GLenum mode)
|
nuclear@0
|
5765 {
|
nuclear@0
|
5766 if(glBeginConditionalRender_Impl)
|
nuclear@0
|
5767 glBeginConditionalRender_Impl(id, mode);
|
nuclear@0
|
5768 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5769 }
|
nuclear@0
|
5770
|
nuclear@0
|
5771 void OVR::GLEContext::glEndConditionalRender_Hook()
|
nuclear@0
|
5772 {
|
nuclear@0
|
5773 if(glEndConditionalRender_Impl)
|
nuclear@0
|
5774 glEndConditionalRender_Impl();
|
nuclear@0
|
5775 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5776 }
|
nuclear@0
|
5777
|
nuclear@0
|
5778 void OVR::GLEContext::glVertexAttribIPointer_Hook(GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)
|
nuclear@0
|
5779 {
|
nuclear@0
|
5780 if(glVertexAttribIPointer_Impl)
|
nuclear@0
|
5781 glVertexAttribIPointer_Impl(index, size, type, stride, pointer);
|
nuclear@0
|
5782 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5783 }
|
nuclear@0
|
5784
|
nuclear@0
|
5785 void OVR::GLEContext::glGetVertexAttribIiv_Hook(GLuint index, GLenum pname, GLint *params)
|
nuclear@0
|
5786 {
|
nuclear@0
|
5787 if(glGetVertexAttribIiv_Impl)
|
nuclear@0
|
5788 glGetVertexAttribIiv_Impl(index, pname, params);
|
nuclear@0
|
5789 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5790 }
|
nuclear@0
|
5791
|
nuclear@0
|
5792 void OVR::GLEContext::glGetVertexAttribIuiv_Hook(GLuint index, GLenum pname, GLuint *params)
|
nuclear@0
|
5793 {
|
nuclear@0
|
5794 if(glGetVertexAttribIuiv_Impl)
|
nuclear@0
|
5795 glGetVertexAttribIuiv_Impl(index, pname, params);
|
nuclear@0
|
5796 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5797 }
|
nuclear@0
|
5798
|
nuclear@0
|
5799 void OVR::GLEContext::glVertexAttribI1i_Hook(GLuint index, GLint x)
|
nuclear@0
|
5800 {
|
nuclear@0
|
5801 if(glVertexAttribI1i_Impl)
|
nuclear@0
|
5802 glVertexAttribI1i_Impl(index, x);
|
nuclear@0
|
5803 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5804 }
|
nuclear@0
|
5805
|
nuclear@0
|
5806 void OVR::GLEContext::glVertexAttribI2i_Hook(GLuint index, GLint x, GLint y)
|
nuclear@0
|
5807 {
|
nuclear@0
|
5808 if(glVertexAttribI2i_Impl)
|
nuclear@0
|
5809 glVertexAttribI2i_Impl(index, x, y);
|
nuclear@0
|
5810 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5811 }
|
nuclear@0
|
5812
|
nuclear@0
|
5813 void OVR::GLEContext::glVertexAttribI3i_Hook(GLuint index, GLint x, GLint y, GLint z)
|
nuclear@0
|
5814 {
|
nuclear@0
|
5815 if(glVertexAttribI3i_Impl)
|
nuclear@0
|
5816 glVertexAttribI3i_Impl(index, x, y, z);
|
nuclear@0
|
5817 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5818 }
|
nuclear@0
|
5819
|
nuclear@0
|
5820 void OVR::GLEContext::glVertexAttribI4i_Hook(GLuint index, GLint x, GLint y, GLint z, GLint w)
|
nuclear@0
|
5821 {
|
nuclear@0
|
5822 if(glVertexAttribI4i_Impl)
|
nuclear@0
|
5823 glVertexAttribI4i_Impl(index, x, y, z, w);
|
nuclear@0
|
5824 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5825 }
|
nuclear@0
|
5826
|
nuclear@0
|
5827 void OVR::GLEContext::glVertexAttribI1ui_Hook(GLuint index, GLuint x)
|
nuclear@0
|
5828 {
|
nuclear@0
|
5829 if(glVertexAttribI1ui_Impl)
|
nuclear@0
|
5830 glVertexAttribI1ui_Impl(index, x);
|
nuclear@0
|
5831 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5832 }
|
nuclear@0
|
5833
|
nuclear@0
|
5834 void OVR::GLEContext::glVertexAttribI2ui_Hook(GLuint index, GLuint x, GLuint y)
|
nuclear@0
|
5835 {
|
nuclear@0
|
5836 if(glVertexAttribI2ui_Impl)
|
nuclear@0
|
5837 glVertexAttribI2ui_Impl(index, x, y);
|
nuclear@0
|
5838 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5839 }
|
nuclear@0
|
5840
|
nuclear@0
|
5841 void OVR::GLEContext::glVertexAttribI3ui_Hook(GLuint index, GLuint x, GLuint y, GLuint z)
|
nuclear@0
|
5842 {
|
nuclear@0
|
5843 if(glVertexAttribI3ui_Impl)
|
nuclear@0
|
5844 glVertexAttribI3ui_Impl(index, x, y, z);
|
nuclear@0
|
5845 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5846 }
|
nuclear@0
|
5847
|
nuclear@0
|
5848 void OVR::GLEContext::glVertexAttribI4ui_Hook(GLuint index, GLuint x, GLuint y, GLuint z, GLuint w)
|
nuclear@0
|
5849 {
|
nuclear@0
|
5850 if(glVertexAttribI4ui_Impl)
|
nuclear@0
|
5851 glVertexAttribI4ui_Impl(index, x, y, z, w);
|
nuclear@0
|
5852 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5853 }
|
nuclear@0
|
5854
|
nuclear@0
|
5855 void OVR::GLEContext::glVertexAttribI1iv_Hook(GLuint index, const GLint *v)
|
nuclear@0
|
5856 {
|
nuclear@0
|
5857 if(glVertexAttribI1iv_Impl)
|
nuclear@0
|
5858 glVertexAttribI1iv_Impl(index, v);
|
nuclear@0
|
5859 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5860 }
|
nuclear@0
|
5861
|
nuclear@0
|
5862 void OVR::GLEContext::glVertexAttribI2iv_Hook(GLuint index, const GLint *v)
|
nuclear@0
|
5863 {
|
nuclear@0
|
5864 if(glVertexAttribI2iv_Impl)
|
nuclear@0
|
5865 glVertexAttribI2iv_Impl(index, v);
|
nuclear@0
|
5866 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5867 }
|
nuclear@0
|
5868
|
nuclear@0
|
5869 void OVR::GLEContext::glVertexAttribI3iv_Hook(GLuint index, const GLint *v)
|
nuclear@0
|
5870 {
|
nuclear@0
|
5871 if(glVertexAttribI3iv_Impl)
|
nuclear@0
|
5872 glVertexAttribI3iv_Impl(index, v);
|
nuclear@0
|
5873 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5874 }
|
nuclear@0
|
5875
|
nuclear@0
|
5876 void OVR::GLEContext::glVertexAttribI4iv_Hook(GLuint index, const GLint *v)
|
nuclear@0
|
5877 {
|
nuclear@0
|
5878 if(glVertexAttribI4iv_Impl)
|
nuclear@0
|
5879 glVertexAttribI4iv_Impl(index, v);
|
nuclear@0
|
5880 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5881 }
|
nuclear@0
|
5882
|
nuclear@0
|
5883 void OVR::GLEContext::glVertexAttribI1uiv_Hook(GLuint index, const GLuint *v)
|
nuclear@0
|
5884 {
|
nuclear@0
|
5885 if(glVertexAttribI1uiv_Impl)
|
nuclear@0
|
5886 glVertexAttribI1uiv_Impl(index, v);
|
nuclear@0
|
5887 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5888 }
|
nuclear@0
|
5889
|
nuclear@0
|
5890 void OVR::GLEContext::glVertexAttribI2uiv_Hook(GLuint index, const GLuint *v)
|
nuclear@0
|
5891 {
|
nuclear@0
|
5892 if(glVertexAttribI2uiv_Impl)
|
nuclear@0
|
5893 glVertexAttribI2uiv_Impl(index, v);
|
nuclear@0
|
5894 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5895 }
|
nuclear@0
|
5896
|
nuclear@0
|
5897 void OVR::GLEContext::glVertexAttribI3uiv_Hook(GLuint index, const GLuint *v)
|
nuclear@0
|
5898 {
|
nuclear@0
|
5899 if(glVertexAttribI3uiv_Impl)
|
nuclear@0
|
5900 glVertexAttribI3uiv_Impl(index, v);
|
nuclear@0
|
5901 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5902 }
|
nuclear@0
|
5903
|
nuclear@0
|
5904 void OVR::GLEContext::glVertexAttribI4uiv_Hook(GLuint index, const GLuint *v)
|
nuclear@0
|
5905 {
|
nuclear@0
|
5906 if(glVertexAttribI4uiv_Impl)
|
nuclear@0
|
5907 glVertexAttribI4uiv_Impl(index, v);
|
nuclear@0
|
5908 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5909 }
|
nuclear@0
|
5910
|
nuclear@0
|
5911 void OVR::GLEContext::glVertexAttribI4bv_Hook(GLuint index, const GLbyte *v)
|
nuclear@0
|
5912 {
|
nuclear@0
|
5913 if(glVertexAttribI4bv_Impl)
|
nuclear@0
|
5914 glVertexAttribI4bv_Impl(index, v);
|
nuclear@0
|
5915 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5916 }
|
nuclear@0
|
5917
|
nuclear@0
|
5918 void OVR::GLEContext::glVertexAttribI4sv_Hook(GLuint index, const GLshort *v)
|
nuclear@0
|
5919 {
|
nuclear@0
|
5920 if(glVertexAttribI4sv_Impl)
|
nuclear@0
|
5921 glVertexAttribI4sv_Impl(index, v);
|
nuclear@0
|
5922 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5923 }
|
nuclear@0
|
5924
|
nuclear@0
|
5925 void OVR::GLEContext::glVertexAttribI4ubv_Hook(GLuint index, const GLubyte *v)
|
nuclear@0
|
5926 {
|
nuclear@0
|
5927 if(glVertexAttribI4ubv_Impl)
|
nuclear@0
|
5928 glVertexAttribI4ubv_Impl(index, v);
|
nuclear@0
|
5929 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5930 }
|
nuclear@0
|
5931
|
nuclear@0
|
5932 void OVR::GLEContext::glVertexAttribI4usv_Hook(GLuint index, const GLushort *v)
|
nuclear@0
|
5933 {
|
nuclear@0
|
5934 if(glVertexAttribI4usv_Impl)
|
nuclear@0
|
5935 glVertexAttribI4usv_Impl(index, v);
|
nuclear@0
|
5936 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5937 }
|
nuclear@0
|
5938
|
nuclear@0
|
5939 void OVR::GLEContext::glGetUniformuiv_Hook(GLuint program, GLint location, GLuint *params)
|
nuclear@0
|
5940 {
|
nuclear@0
|
5941 if(glGetUniformuiv_Impl)
|
nuclear@0
|
5942 glGetUniformuiv_Impl(program, location, params);
|
nuclear@0
|
5943 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5944 }
|
nuclear@0
|
5945
|
nuclear@0
|
5946 void OVR::GLEContext::glBindFragDataLocation_Hook(GLuint program, GLuint color, const GLchar *name)
|
nuclear@0
|
5947 {
|
nuclear@0
|
5948 if(glBindFragDataLocation_Impl)
|
nuclear@0
|
5949 glBindFragDataLocation_Impl(program, color, name);
|
nuclear@0
|
5950 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5951 }
|
nuclear@0
|
5952
|
nuclear@0
|
5953 GLint OVR::GLEContext::glGetFragDataLocation_Hook(GLuint program, const GLchar *name)
|
nuclear@0
|
5954 {
|
nuclear@0
|
5955 GLint i = 0;
|
nuclear@0
|
5956 if(glGetFragDataLocation_Impl)
|
nuclear@0
|
5957 i = glGetFragDataLocation_Impl(program, name);
|
nuclear@0
|
5958 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5959 return i;
|
nuclear@0
|
5960 }
|
nuclear@0
|
5961
|
nuclear@0
|
5962 void OVR::GLEContext::glUniform1ui_Hook(GLint location, GLuint v0)
|
nuclear@0
|
5963 {
|
nuclear@0
|
5964 if(glUniform1ui_Impl)
|
nuclear@0
|
5965 glUniform1ui_Impl(location, v0);
|
nuclear@0
|
5966 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5967 }
|
nuclear@0
|
5968
|
nuclear@0
|
5969 void OVR::GLEContext::glUniform2ui_Hook(GLint location, GLuint v0, GLuint v1)
|
nuclear@0
|
5970 {
|
nuclear@0
|
5971 if(glUniform2ui_Impl)
|
nuclear@0
|
5972 glUniform2ui_Impl(location, v0, v1);
|
nuclear@0
|
5973 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5974 }
|
nuclear@0
|
5975
|
nuclear@0
|
5976 void OVR::GLEContext::glUniform3ui_Hook(GLint location, GLuint v0, GLuint v1, GLuint v2)
|
nuclear@0
|
5977 {
|
nuclear@0
|
5978 if(glUniform3ui_Impl)
|
nuclear@0
|
5979 glUniform3ui_Impl(location, v0, v1, v2);
|
nuclear@0
|
5980 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5981 }
|
nuclear@0
|
5982
|
nuclear@0
|
5983 void OVR::GLEContext::glUniform4ui_Hook(GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3)
|
nuclear@0
|
5984 {
|
nuclear@0
|
5985 if(glUniform4ui_Impl)
|
nuclear@0
|
5986 glUniform4ui_Impl(location, v0, v1, v2, v3);
|
nuclear@0
|
5987 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5988 }
|
nuclear@0
|
5989
|
nuclear@0
|
5990 void OVR::GLEContext::glUniform1uiv_Hook(GLint location, GLsizei count, const GLuint *value)
|
nuclear@0
|
5991 {
|
nuclear@0
|
5992 if(glUniform1uiv_Impl)
|
nuclear@0
|
5993 glUniform1uiv_Impl(location, count, value);
|
nuclear@0
|
5994 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
5995 }
|
nuclear@0
|
5996
|
nuclear@0
|
5997 void OVR::GLEContext::glUniform2uiv_Hook(GLint location, GLsizei count, const GLuint *value)
|
nuclear@0
|
5998 {
|
nuclear@0
|
5999 if(glUniform2uiv_Impl)
|
nuclear@0
|
6000 glUniform2uiv_Impl(location, count, value);
|
nuclear@0
|
6001 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6002 }
|
nuclear@0
|
6003
|
nuclear@0
|
6004 void OVR::GLEContext::glUniform3uiv_Hook(GLint location, GLsizei count, const GLuint *value)
|
nuclear@0
|
6005 {
|
nuclear@0
|
6006 if(glUniform3uiv_Impl)
|
nuclear@0
|
6007 glUniform3uiv_Impl(location, count, value);
|
nuclear@0
|
6008 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6009 }
|
nuclear@0
|
6010
|
nuclear@0
|
6011 void OVR::GLEContext::glUniform4uiv_Hook(GLint location, GLsizei count, const GLuint *value)
|
nuclear@0
|
6012 {
|
nuclear@0
|
6013 if(glUniform4uiv_Impl)
|
nuclear@0
|
6014 glUniform4uiv_Impl(location, count, value);
|
nuclear@0
|
6015 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6016 }
|
nuclear@0
|
6017
|
nuclear@0
|
6018 void OVR::GLEContext::glTexParameterIiv_Hook(GLenum target, GLenum pname, const GLint *params)
|
nuclear@0
|
6019 {
|
nuclear@0
|
6020 if(glTexParameterIiv_Impl)
|
nuclear@0
|
6021 glTexParameterIiv_Impl(target, pname, params);
|
nuclear@0
|
6022 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6023 }
|
nuclear@0
|
6024
|
nuclear@0
|
6025 void OVR::GLEContext::glTexParameterIuiv_Hook(GLenum target, GLenum pname, const GLuint *params)
|
nuclear@0
|
6026 {
|
nuclear@0
|
6027 if(glTexParameterIuiv_Impl)
|
nuclear@0
|
6028 glTexParameterIuiv_Impl(target, pname, params);
|
nuclear@0
|
6029 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6030 }
|
nuclear@0
|
6031
|
nuclear@0
|
6032 void OVR::GLEContext::glGetTexParameterIiv_Hook(GLenum target, GLenum pname, GLint *params)
|
nuclear@0
|
6033 {
|
nuclear@0
|
6034 if(glGetTexParameterIiv_Impl)
|
nuclear@0
|
6035 glGetTexParameterIiv_Impl(target, pname, params);
|
nuclear@0
|
6036 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6037 }
|
nuclear@0
|
6038
|
nuclear@0
|
6039 void OVR::GLEContext::glGetTexParameterIuiv_Hook(GLenum target, GLenum pname, GLuint *params)
|
nuclear@0
|
6040 {
|
nuclear@0
|
6041 if(glGetTexParameterIuiv_Impl)
|
nuclear@0
|
6042 glGetTexParameterIuiv_Impl(target, pname, params);
|
nuclear@0
|
6043 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6044 }
|
nuclear@0
|
6045
|
nuclear@0
|
6046 void OVR::GLEContext::glClearBufferiv_Hook(GLenum buffer, GLint drawbuffer, const GLint *value)
|
nuclear@0
|
6047 {
|
nuclear@0
|
6048 if(glClearBufferiv_Impl)
|
nuclear@0
|
6049 glClearBufferiv_Impl(buffer, drawbuffer, value);
|
nuclear@0
|
6050 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6051 }
|
nuclear@0
|
6052
|
nuclear@0
|
6053 void OVR::GLEContext::glClearBufferuiv_Hook(GLenum buffer, GLint drawbuffer, const GLuint *value)
|
nuclear@0
|
6054 {
|
nuclear@0
|
6055 if(glClearBufferuiv_Impl)
|
nuclear@0
|
6056 glClearBufferuiv_Impl(buffer, drawbuffer, value);
|
nuclear@0
|
6057 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6058 }
|
nuclear@0
|
6059
|
nuclear@0
|
6060 void OVR::GLEContext::glClearBufferfv_Hook(GLenum buffer, GLint drawbuffer, const GLfloat *value)
|
nuclear@0
|
6061 {
|
nuclear@0
|
6062 if(glClearBufferfv_Impl)
|
nuclear@0
|
6063 glClearBufferfv_Impl(buffer, drawbuffer, value);
|
nuclear@0
|
6064 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6065 }
|
nuclear@0
|
6066
|
nuclear@0
|
6067 void OVR::GLEContext::glClearBufferfi_Hook(GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil)
|
nuclear@0
|
6068 {
|
nuclear@0
|
6069 if(glClearBufferfi_Impl)
|
nuclear@0
|
6070 glClearBufferfi_Impl(buffer, drawbuffer, depth, stencil);
|
nuclear@0
|
6071 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6072 }
|
nuclear@0
|
6073
|
nuclear@0
|
6074 const GLubyte* OVR::GLEContext::glGetStringi_Hook(GLenum name, GLuint index)
|
nuclear@0
|
6075 {
|
nuclear@0
|
6076 const GLubyte* p = NULL;
|
nuclear@0
|
6077 if(glGetStringi_Impl)
|
nuclear@0
|
6078 p = glGetStringi_Impl(name, index);
|
nuclear@0
|
6079 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6080 return p;
|
nuclear@0
|
6081 }
|
nuclear@0
|
6082
|
nuclear@0
|
6083
|
nuclear@0
|
6084 // GL_VERSION_3_1
|
nuclear@0
|
6085 void OVR::GLEContext::glDrawArraysInstanced_Hook(GLenum mode, GLint first, GLsizei count, GLsizei primcount)
|
nuclear@0
|
6086 {
|
nuclear@0
|
6087 if(glDrawArraysInstanced_Impl)
|
nuclear@0
|
6088 glDrawArraysInstanced_Impl(mode, first, count, primcount);
|
nuclear@0
|
6089 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6090 }
|
nuclear@0
|
6091
|
nuclear@0
|
6092 void OVR::GLEContext::glDrawElementsInstanced_Hook(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei primcount)
|
nuclear@0
|
6093 {
|
nuclear@0
|
6094 if(glDrawElementsInstanced_Impl)
|
nuclear@0
|
6095 glDrawElementsInstanced_Impl(mode, count, type, indices, primcount);
|
nuclear@0
|
6096 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6097 }
|
nuclear@0
|
6098
|
nuclear@0
|
6099 void OVR::GLEContext::glTexBuffer_Hook(GLenum target, GLenum internalformat, GLuint buffer)
|
nuclear@0
|
6100 {
|
nuclear@0
|
6101 if(glTexBuffer_Impl)
|
nuclear@0
|
6102 glTexBuffer_Impl(target, internalformat, buffer);
|
nuclear@0
|
6103 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6104 }
|
nuclear@0
|
6105
|
nuclear@0
|
6106 void OVR::GLEContext::glPrimitiveRestartIndex_Hook(GLuint index)
|
nuclear@0
|
6107 {
|
nuclear@0
|
6108 if(glPrimitiveRestartIndex_Impl)
|
nuclear@0
|
6109 glPrimitiveRestartIndex_Impl(index);
|
nuclear@0
|
6110 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6111 }
|
nuclear@0
|
6112
|
nuclear@0
|
6113
|
nuclear@0
|
6114 // GL_VERSION_3_2
|
nuclear@0
|
6115 void OVR::GLEContext::glGetInteger64i_v_Hook(GLenum target, GLuint index, GLint64 *data)
|
nuclear@0
|
6116 {
|
nuclear@0
|
6117 if(glGetInteger64i_v_Impl)
|
nuclear@0
|
6118 glGetInteger64i_v_Impl(target, index, data);
|
nuclear@0
|
6119 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6120 }
|
nuclear@0
|
6121
|
nuclear@0
|
6122 void OVR::GLEContext::glGetBufferParameteri64v_Hook(GLenum target, GLenum pname, GLint64 *params)
|
nuclear@0
|
6123 {
|
nuclear@0
|
6124 if(glGetBufferParameteri64v_Impl)
|
nuclear@0
|
6125 glGetBufferParameteri64v_Impl(target, pname, params);
|
nuclear@0
|
6126 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6127 }
|
nuclear@0
|
6128
|
nuclear@0
|
6129 void OVR::GLEContext::glFramebufferTexture_Hook(GLenum target, GLenum attachment, GLuint texture, GLint level)
|
nuclear@0
|
6130 {
|
nuclear@0
|
6131 if(glFramebufferTexture_Impl)
|
nuclear@0
|
6132 glFramebufferTexture_Impl(target, attachment, texture, level);
|
nuclear@0
|
6133 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6134 }
|
nuclear@0
|
6135
|
nuclear@0
|
6136
|
nuclear@0
|
6137 // GL_VERSION_3_3
|
nuclear@0
|
6138 void OVR::GLEContext::glVertexAttribDivisor_Hook(GLuint index, GLuint divisor)
|
nuclear@0
|
6139 {
|
nuclear@0
|
6140 if(glVertexAttribDivisor_Impl)
|
nuclear@0
|
6141 glVertexAttribDivisor_Impl(index, divisor);
|
nuclear@0
|
6142 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6143 }
|
nuclear@0
|
6144
|
nuclear@0
|
6145
|
nuclear@0
|
6146 // GL_VERSION_4_0
|
nuclear@0
|
6147 void OVR::GLEContext::glMinSampleShading_Hook(GLclampf value)
|
nuclear@0
|
6148 {
|
nuclear@0
|
6149 if(glMinSampleShading_Impl)
|
nuclear@0
|
6150 glMinSampleShading_Impl(value);
|
nuclear@0
|
6151 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6152 }
|
nuclear@0
|
6153
|
nuclear@0
|
6154 void OVR::GLEContext::glBlendEquationi_Hook(GLuint buf, GLenum mode)
|
nuclear@0
|
6155 {
|
nuclear@0
|
6156 if(glBlendEquationi_Impl)
|
nuclear@0
|
6157 glBlendEquationi_Impl(buf, mode);
|
nuclear@0
|
6158 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6159 }
|
nuclear@0
|
6160
|
nuclear@0
|
6161 void OVR::GLEContext::glBlendEquationSeparatei_Hook(GLuint buf, GLenum modeRGB, GLenum modeAlpha)
|
nuclear@0
|
6162 {
|
nuclear@0
|
6163 if(glBlendEquationSeparatei_Impl)
|
nuclear@0
|
6164 glBlendEquationSeparatei_Impl(buf, modeRGB, modeAlpha);
|
nuclear@0
|
6165 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6166 }
|
nuclear@0
|
6167
|
nuclear@0
|
6168 void OVR::GLEContext::glBlendFunci_Hook(GLuint buf, GLenum src, GLenum dst)
|
nuclear@0
|
6169 {
|
nuclear@0
|
6170 if(glBlendFunci_Impl)
|
nuclear@0
|
6171 glBlendFunci_Impl(buf, src, dst);
|
nuclear@0
|
6172 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6173 }
|
nuclear@0
|
6174
|
nuclear@0
|
6175 void OVR::GLEContext::glBlendFuncSeparatei_Hook(GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha)
|
nuclear@0
|
6176 {
|
nuclear@0
|
6177 if(glBlendFuncSeparatei_Impl)
|
nuclear@0
|
6178 glBlendFuncSeparatei_Impl(buf, srcRGB, dstRGB, srcAlpha, dstAlpha);
|
nuclear@0
|
6179 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6180 }
|
nuclear@0
|
6181
|
nuclear@0
|
6182
|
nuclear@0
|
6183 // GL_AMD_debug_output
|
nuclear@0
|
6184 void OVR::GLEContext::glDebugMessageEnableAMD_Hook(GLenum category, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled)
|
nuclear@0
|
6185 {
|
nuclear@0
|
6186 if(glDebugMessageEnableAMD_Impl)
|
nuclear@0
|
6187 glDebugMessageEnableAMD_Impl(category, severity, count, ids, enabled);
|
nuclear@0
|
6188 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6189 }
|
nuclear@0
|
6190
|
nuclear@0
|
6191 void OVR::GLEContext::glDebugMessageInsertAMD_Hook(GLenum category, GLenum severity, GLuint id, GLsizei length, const GLchar *buf)
|
nuclear@0
|
6192 {
|
nuclear@0
|
6193 if(glDebugMessageInsertAMD_Impl)
|
nuclear@0
|
6194 glDebugMessageInsertAMD_Impl(category, severity, id, length, buf);
|
nuclear@0
|
6195 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6196 }
|
nuclear@0
|
6197
|
nuclear@0
|
6198 void OVR::GLEContext::glDebugMessageCallbackAMD_Hook(GLDEBUGPROCAMD callback, GLvoid *userParam)
|
nuclear@0
|
6199 {
|
nuclear@0
|
6200 if(glDebugMessageCallbackAMD_Impl)
|
nuclear@0
|
6201 glDebugMessageCallbackAMD_Impl(callback, userParam);
|
nuclear@0
|
6202 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6203 }
|
nuclear@0
|
6204
|
nuclear@0
|
6205 GLuint OVR::GLEContext::glGetDebugMessageLogAMD_Hook(GLuint count, GLsizei bufsize, GLenum *categories, GLuint *severities, GLuint *ids, GLsizei *lengths, GLchar *message)
|
nuclear@0
|
6206 {
|
nuclear@0
|
6207 GLuint u = 0;
|
nuclear@0
|
6208 if(glGetDebugMessageLogAMD_Impl)
|
nuclear@0
|
6209 u = glGetDebugMessageLogAMD_Impl(count, bufsize, categories, severities, ids, lengths, message);
|
nuclear@0
|
6210 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6211 return u;
|
nuclear@0
|
6212 }
|
nuclear@0
|
6213
|
nuclear@0
|
6214
|
nuclear@0
|
6215 #if defined(GLE_CGL_ENABLED)
|
nuclear@0
|
6216 // GL_APPLE_element_array
|
nuclear@0
|
6217 void OVR::GLEContext::glElementPointerAPPLE_Hook(GLenum type, const GLvoid *pointer)
|
nuclear@0
|
6218 {
|
nuclear@0
|
6219 if(glElementPointerAPPLE_Impl)
|
nuclear@0
|
6220 glElementPointerAPPLE_Impl(type, pointer);
|
nuclear@0
|
6221 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6222 }
|
nuclear@0
|
6223
|
nuclear@0
|
6224 void OVR::GLEContext::glDrawElementArrayAPPLE_Hook(GLenum mode, GLint first, GLsizei count)
|
nuclear@0
|
6225 {
|
nuclear@0
|
6226 if(glDrawElementArrayAPPLE_Impl)
|
nuclear@0
|
6227 glDrawElementArrayAPPLE_Impl(mode, first, count);
|
nuclear@0
|
6228 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6229 }
|
nuclear@0
|
6230
|
nuclear@0
|
6231 void OVR::GLEContext::glDrawRangeElementArrayAPPLE_Hook(GLenum mode, GLuint start, GLuint end, GLint first, GLsizei count)
|
nuclear@0
|
6232 {
|
nuclear@0
|
6233 if(glDrawRangeElementArrayAPPLE_Impl)
|
nuclear@0
|
6234 glDrawRangeElementArrayAPPLE_Impl(mode, start, end, first, count);
|
nuclear@0
|
6235 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6236 }
|
nuclear@0
|
6237
|
nuclear@0
|
6238 void OVR::GLEContext::glMultiDrawElementArrayAPPLE_Hook(GLenum mode, const GLint *first, const GLsizei *count, GLsizei primcount)
|
nuclear@0
|
6239 {
|
nuclear@0
|
6240 if(glMultiDrawElementArrayAPPLE_Impl)
|
nuclear@0
|
6241 glMultiDrawElementArrayAPPLE_Impl(mode, first, count, primcount);
|
nuclear@0
|
6242 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6243 }
|
nuclear@0
|
6244
|
nuclear@0
|
6245 void OVR::GLEContext::glMultiDrawRangeElementArrayAPPLE_Hook(GLenum mode, GLuint start, GLuint end, const GLint *first, const GLsizei *count, GLsizei primcount)
|
nuclear@0
|
6246 {
|
nuclear@0
|
6247 if(glMultiDrawRangeElementArrayAPPLE_Impl)
|
nuclear@0
|
6248 glMultiDrawRangeElementArrayAPPLE_Impl(mode, start, end, first, count, primcount);
|
nuclear@0
|
6249 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6250 }
|
nuclear@0
|
6251
|
nuclear@0
|
6252
|
nuclear@0
|
6253 // GL_APPLE_fence
|
nuclear@0
|
6254 void OVR::GLEContext::glGenFencesAPPLE_Hook(GLsizei n, GLuint *fences)
|
nuclear@0
|
6255 {
|
nuclear@0
|
6256 if(glGenFencesAPPLE_Impl)
|
nuclear@0
|
6257 glGenFencesAPPLE_Impl(n, fences);
|
nuclear@0
|
6258 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6259 }
|
nuclear@0
|
6260
|
nuclear@0
|
6261 void OVR::GLEContext::glDeleteFencesAPPLE_Hook(GLsizei n, const GLuint *fences)
|
nuclear@0
|
6262 {
|
nuclear@0
|
6263 if(glDeleteFencesAPPLE_Impl)
|
nuclear@0
|
6264 glDeleteFencesAPPLE_Impl(n, fences);
|
nuclear@0
|
6265 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6266 }
|
nuclear@0
|
6267
|
nuclear@0
|
6268 void OVR::GLEContext::glSetFenceAPPLE_Hook(GLuint fence)
|
nuclear@0
|
6269 {
|
nuclear@0
|
6270 if(glSetFenceAPPLE_Impl)
|
nuclear@0
|
6271 glSetFenceAPPLE_Impl(fence);
|
nuclear@0
|
6272 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6273 }
|
nuclear@0
|
6274
|
nuclear@0
|
6275 GLboolean OVR::GLEContext::glIsFenceAPPLE_Hook(GLuint fence)
|
nuclear@0
|
6276 {
|
nuclear@0
|
6277 GLboolean b = GL_FALSE;
|
nuclear@0
|
6278 if(glIsFenceAPPLE_Impl)
|
nuclear@0
|
6279 b = glIsFenceAPPLE_Impl(fence);
|
nuclear@0
|
6280 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6281 return b;
|
nuclear@0
|
6282 }
|
nuclear@0
|
6283
|
nuclear@0
|
6284 GLboolean OVR::GLEContext::glTestFenceAPPLE_Hook(GLuint fence)
|
nuclear@0
|
6285 {
|
nuclear@0
|
6286 GLboolean b = GL_FALSE;
|
nuclear@0
|
6287 if(glTestFenceAPPLE_Impl)
|
nuclear@0
|
6288 b = glTestFenceAPPLE_Impl(fence);
|
nuclear@0
|
6289 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6290 return b;
|
nuclear@0
|
6291 }
|
nuclear@0
|
6292
|
nuclear@0
|
6293 void OVR::GLEContext::glFinishFenceAPPLE_Hook(GLuint fence)
|
nuclear@0
|
6294 {
|
nuclear@0
|
6295 if(glFinishFenceAPPLE_Impl)
|
nuclear@0
|
6296 glFinishFenceAPPLE_Impl(fence);
|
nuclear@0
|
6297 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6298 }
|
nuclear@0
|
6299
|
nuclear@0
|
6300 GLboolean OVR::GLEContext::glTestObjectAPPLE_Hook(GLenum object, GLuint name)
|
nuclear@0
|
6301 {
|
nuclear@0
|
6302 GLboolean b = GL_FALSE;
|
nuclear@0
|
6303 if(glTestObjectAPPLE_Impl)
|
nuclear@0
|
6304 b = glTestObjectAPPLE_Impl(object, name);
|
nuclear@0
|
6305 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6306 return b;
|
nuclear@0
|
6307 }
|
nuclear@0
|
6308
|
nuclear@0
|
6309 void OVR::GLEContext::glFinishObjectAPPLE_Hook(GLenum object, GLint name)
|
nuclear@0
|
6310 {
|
nuclear@0
|
6311 if(glFinishObjectAPPLE_Impl)
|
nuclear@0
|
6312 glFinishObjectAPPLE_Impl(object, name);
|
nuclear@0
|
6313 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6314 }
|
nuclear@0
|
6315
|
nuclear@0
|
6316
|
nuclear@0
|
6317 // GL_APPLE_flush_buffer_range
|
nuclear@0
|
6318 void OVR::GLEContext::glBufferParameteriAPPLE_Hook(GLenum target, GLenum pname, GLint param)
|
nuclear@0
|
6319 {
|
nuclear@0
|
6320 if(glBufferParameteriAPPLE_Impl)
|
nuclear@0
|
6321 glBufferParameteriAPPLE_Impl(target, pname, param);
|
nuclear@0
|
6322 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6323 }
|
nuclear@0
|
6324
|
nuclear@0
|
6325 void OVR::GLEContext::glFlushMappedBufferRangeAPPLE_Hook(GLenum target, GLintptr offset, GLsizeiptr size)
|
nuclear@0
|
6326 {
|
nuclear@0
|
6327 if(glFlushMappedBufferRangeAPPLE_Impl)
|
nuclear@0
|
6328 glFlushMappedBufferRangeAPPLE_Impl(target, offset, size);
|
nuclear@0
|
6329 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6330 }
|
nuclear@0
|
6331
|
nuclear@0
|
6332
|
nuclear@0
|
6333 // GL_APPLE_object_purgeable
|
nuclear@0
|
6334 GLenum OVR::GLEContext::glObjectPurgeableAPPLE_Hook(GLenum objectType, GLuint name, GLenum option)
|
nuclear@0
|
6335 {
|
nuclear@0
|
6336 GLenum e = 0;
|
nuclear@0
|
6337 if(glObjectPurgeableAPPLE_Impl)
|
nuclear@0
|
6338 e = glObjectPurgeableAPPLE_Impl(objectType, name, option);
|
nuclear@0
|
6339 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6340 return e;
|
nuclear@0
|
6341 }
|
nuclear@0
|
6342
|
nuclear@0
|
6343 GLenum OVR::GLEContext::glObjectUnpurgeableAPPLE_Hook(GLenum objectType, GLuint name, GLenum option)
|
nuclear@0
|
6344 {
|
nuclear@0
|
6345 GLenum e = 0;
|
nuclear@0
|
6346 if(glObjectUnpurgeableAPPLE_Impl)
|
nuclear@0
|
6347 e =glObjectUnpurgeableAPPLE_Impl(objectType, name, option);
|
nuclear@0
|
6348 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6349 return e;
|
nuclear@0
|
6350 }
|
nuclear@0
|
6351
|
nuclear@0
|
6352 void OVR::GLEContext::glGetObjectParameterivAPPLE_Hook(GLenum objectType, GLuint name, GLenum pname, GLint *params)
|
nuclear@0
|
6353 {
|
nuclear@0
|
6354 if(glGetObjectParameterivAPPLE_Impl)
|
nuclear@0
|
6355 glGetObjectParameterivAPPLE_Impl(objectType, name, pname, params);
|
nuclear@0
|
6356 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6357 }
|
nuclear@0
|
6358
|
nuclear@0
|
6359
|
nuclear@0
|
6360 // GL_APPLE_texture_range
|
nuclear@0
|
6361 void OVR::GLEContext::glTextureRangeAPPLE_Hook(GLenum target, GLsizei length, const GLvoid *pointer)
|
nuclear@0
|
6362 {
|
nuclear@0
|
6363 if(glTextureRangeAPPLE_Impl)
|
nuclear@0
|
6364 glTextureRangeAPPLE_Impl(target, length, pointer);
|
nuclear@0
|
6365 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6366 }
|
nuclear@0
|
6367
|
nuclear@0
|
6368 void OVR::GLEContext::glGetTexParameterPointervAPPLE_Hook(GLenum target, GLenum pname, GLvoid **params)
|
nuclear@0
|
6369 {
|
nuclear@0
|
6370 if(glGetTexParameterPointervAPPLE_Impl)
|
nuclear@0
|
6371 glGetTexParameterPointervAPPLE_Impl(target, pname, params);
|
nuclear@0
|
6372 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6373 }
|
nuclear@0
|
6374
|
nuclear@0
|
6375
|
nuclear@0
|
6376 // GL_APPLE_vertex_array_object
|
nuclear@0
|
6377 void OVR::GLEContext::glBindVertexArrayAPPLE_Hook(GLuint array)
|
nuclear@0
|
6378 {
|
nuclear@0
|
6379 if(glBindVertexArrayAPPLE_Impl)
|
nuclear@0
|
6380 glBindVertexArrayAPPLE_Impl(array);
|
nuclear@0
|
6381 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6382 }
|
nuclear@0
|
6383
|
nuclear@0
|
6384 void OVR::GLEContext::glDeleteVertexArraysAPPLE_Hook(GLsizei n, const GLuint *arrays)
|
nuclear@0
|
6385 {
|
nuclear@0
|
6386 if(glDeleteVertexArraysAPPLE_Impl)
|
nuclear@0
|
6387 glDeleteVertexArraysAPPLE_Impl(n, arrays);
|
nuclear@0
|
6388 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6389 }
|
nuclear@0
|
6390
|
nuclear@0
|
6391 void OVR::GLEContext::glGenVertexArraysAPPLE_Hook(GLsizei n, GLuint *arrays)
|
nuclear@0
|
6392 {
|
nuclear@0
|
6393 if(glGenVertexArraysAPPLE_Impl)
|
nuclear@0
|
6394 glGenVertexArraysAPPLE_Impl(n, arrays);
|
nuclear@0
|
6395 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6396 }
|
nuclear@0
|
6397
|
nuclear@0
|
6398 GLboolean OVR::GLEContext::glIsVertexArrayAPPLE_Hook(GLuint array)
|
nuclear@0
|
6399 {
|
nuclear@0
|
6400 GLboolean b = GL_FALSE;
|
nuclear@0
|
6401 if(glIsVertexArrayAPPLE_Impl)
|
nuclear@0
|
6402 b = glIsVertexArrayAPPLE_Impl(array);
|
nuclear@0
|
6403 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6404 return b;
|
nuclear@0
|
6405 }
|
nuclear@0
|
6406
|
nuclear@0
|
6407
|
nuclear@0
|
6408 // GL_APPLE_vertex_array_range
|
nuclear@0
|
6409 void OVR::GLEContext::glVertexArrayRangeAPPLE_Hook(GLsizei length, GLvoid *pointer)
|
nuclear@0
|
6410 {
|
nuclear@0
|
6411 if(glVertexArrayRangeAPPLE_Impl)
|
nuclear@0
|
6412 glVertexArrayRangeAPPLE_Impl(length, pointer);
|
nuclear@0
|
6413 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6414 }
|
nuclear@0
|
6415
|
nuclear@0
|
6416 void OVR::GLEContext::glFlushVertexArrayRangeAPPLE_Hook(GLsizei length, GLvoid *pointer)
|
nuclear@0
|
6417 {
|
nuclear@0
|
6418 if(glFlushVertexArrayRangeAPPLE_Impl)
|
nuclear@0
|
6419 glFlushVertexArrayRangeAPPLE_Impl(length, pointer);
|
nuclear@0
|
6420 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6421 }
|
nuclear@0
|
6422
|
nuclear@0
|
6423 void OVR::GLEContext::glVertexArrayParameteriAPPLE_Hook(GLenum pname, GLint param)
|
nuclear@0
|
6424 {
|
nuclear@0
|
6425 if(glVertexArrayParameteriAPPLE_Impl)
|
nuclear@0
|
6426 glVertexArrayParameteriAPPLE_Impl(pname, param);
|
nuclear@0
|
6427 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6428 }
|
nuclear@0
|
6429
|
nuclear@0
|
6430
|
nuclear@0
|
6431 // GL_APPLE_vertex_program_evaluators
|
nuclear@0
|
6432 void OVR::GLEContext::glEnableVertexAttribAPPLE_Hook(GLuint index, GLenum pname)
|
nuclear@0
|
6433 {
|
nuclear@0
|
6434 if(glEnableVertexAttribAPPLE_Impl)
|
nuclear@0
|
6435 glEnableVertexAttribAPPLE_Impl(index, pname);
|
nuclear@0
|
6436 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6437 }
|
nuclear@0
|
6438
|
nuclear@0
|
6439 void OVR::GLEContext::glDisableVertexAttribAPPLE_Hook(GLuint index, GLenum pname)
|
nuclear@0
|
6440 {
|
nuclear@0
|
6441 if(glDisableVertexAttribAPPLE_Impl)
|
nuclear@0
|
6442 glDisableVertexAttribAPPLE_Impl(index, pname);
|
nuclear@0
|
6443 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6444 }
|
nuclear@0
|
6445
|
nuclear@0
|
6446 GLboolean OVR::GLEContext::glIsVertexAttribEnabledAPPLE_Hook(GLuint index, GLenum pname)
|
nuclear@0
|
6447 {
|
nuclear@0
|
6448 GLboolean b = GL_FALSE;
|
nuclear@0
|
6449 if(glIsVertexAttribEnabledAPPLE_Impl)
|
nuclear@0
|
6450 b = glIsVertexAttribEnabledAPPLE_Impl(index, pname);
|
nuclear@0
|
6451 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6452 return b;
|
nuclear@0
|
6453 }
|
nuclear@0
|
6454
|
nuclear@0
|
6455 void OVR::GLEContext::glMapVertexAttrib1dAPPLE_Hook(GLuint index, GLuint size, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points)
|
nuclear@0
|
6456 {
|
nuclear@0
|
6457 if(glMapVertexAttrib1dAPPLE_Impl)
|
nuclear@0
|
6458 glMapVertexAttrib1dAPPLE_Impl(index, size, u1, u2, stride, order, points);
|
nuclear@0
|
6459 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6460 }
|
nuclear@0
|
6461
|
nuclear@0
|
6462 void OVR::GLEContext::glMapVertexAttrib1fAPPLE_Hook(GLuint index, GLuint size, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points)
|
nuclear@0
|
6463 {
|
nuclear@0
|
6464 if(glMapVertexAttrib1fAPPLE_Impl)
|
nuclear@0
|
6465 glMapVertexAttrib1fAPPLE_Impl(index, size, u1, u2, stride, order, points);
|
nuclear@0
|
6466 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6467 }
|
nuclear@0
|
6468
|
nuclear@0
|
6469 void OVR::GLEContext::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)
|
nuclear@0
|
6470 {
|
nuclear@0
|
6471 if(glMapVertexAttrib2dAPPLE_Impl)
|
nuclear@0
|
6472 glMapVertexAttrib2dAPPLE_Impl(index, size, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points);
|
nuclear@0
|
6473 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6474 }
|
nuclear@0
|
6475
|
nuclear@0
|
6476 void OVR::GLEContext::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)
|
nuclear@0
|
6477 {
|
nuclear@0
|
6478 if(glMapVertexAttrib2fAPPLE_Impl)
|
nuclear@0
|
6479 glMapVertexAttrib2fAPPLE_Impl(index, size, u1, u2, ustride, uorder, v1, v2, vstride, vorder, points);
|
nuclear@0
|
6480 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6481 }
|
nuclear@0
|
6482 #endif // GLE_CGL_ENABLED
|
nuclear@0
|
6483
|
nuclear@0
|
6484
|
nuclear@0
|
6485 // GL_ARB_debug_output
|
nuclear@0
|
6486 void OVR::GLEContext::glDebugMessageControlARB_Hook(GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled)
|
nuclear@0
|
6487 {
|
nuclear@0
|
6488 if(glDebugMessageControlARB_Impl)
|
nuclear@0
|
6489 glDebugMessageControlARB_Impl(source, type, severity, count, ids, enabled);
|
nuclear@0
|
6490 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6491 }
|
nuclear@0
|
6492
|
nuclear@0
|
6493 void OVR::GLEContext::glDebugMessageInsertARB_Hook(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf)
|
nuclear@0
|
6494 {
|
nuclear@0
|
6495 if(glDebugMessageInsertARB_Impl)
|
nuclear@0
|
6496 glDebugMessageInsertARB_Impl(source, type, id, severity, length, buf);
|
nuclear@0
|
6497 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6498 }
|
nuclear@0
|
6499
|
nuclear@0
|
6500 void OVR::GLEContext::glDebugMessageCallbackARB_Hook(GLDEBUGPROCARB callback, const GLvoid *userParam)
|
nuclear@0
|
6501 {
|
nuclear@0
|
6502 if(glDebugMessageCallbackARB_Impl)
|
nuclear@0
|
6503 glDebugMessageCallbackARB_Impl(callback, userParam);
|
nuclear@0
|
6504 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6505 }
|
nuclear@0
|
6506
|
nuclear@0
|
6507 GLuint OVR::GLEContext::glGetDebugMessageLogARB_Hook(GLuint count, GLsizei bufsize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog)
|
nuclear@0
|
6508 {
|
nuclear@0
|
6509 GLuint u = 0;
|
nuclear@0
|
6510 if(glGetDebugMessageLogARB_Impl)
|
nuclear@0
|
6511 u = glGetDebugMessageLogARB_Impl(count, bufsize, sources, types, ids, severities, lengths, messageLog);
|
nuclear@0
|
6512 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6513 return u;
|
nuclear@0
|
6514 }
|
nuclear@0
|
6515
|
nuclear@0
|
6516
|
nuclear@0
|
6517 // GL_ARB_ES2_compatibility
|
nuclear@0
|
6518 void OVR::GLEContext::glReleaseShaderCompiler_Hook()
|
nuclear@0
|
6519 {
|
nuclear@0
|
6520 if(glReleaseShaderCompiler_Impl)
|
nuclear@0
|
6521 glReleaseShaderCompiler_Impl();
|
nuclear@0
|
6522 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6523 }
|
nuclear@0
|
6524
|
nuclear@0
|
6525 void OVR::GLEContext::glShaderBinary_Hook(GLsizei count, const GLuint *shaders, GLenum binaryformat, const GLvoid *binary, GLsizei length)
|
nuclear@0
|
6526 {
|
nuclear@0
|
6527 if(glShaderBinary_Impl)
|
nuclear@0
|
6528 glShaderBinary_Impl(count, shaders, binaryformat, binary, length);
|
nuclear@0
|
6529 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6530 }
|
nuclear@0
|
6531
|
nuclear@0
|
6532 void OVR::GLEContext::glGetShaderPrecisionFormat_Hook(GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision)
|
nuclear@0
|
6533 {
|
nuclear@0
|
6534 if(glGetShaderPrecisionFormat_Impl)
|
nuclear@0
|
6535 glGetShaderPrecisionFormat_Impl(shadertype, precisiontype, range, precision);
|
nuclear@0
|
6536 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6537 }
|
nuclear@0
|
6538
|
nuclear@0
|
6539 void OVR::GLEContext::glDepthRangef_Hook(GLclampf n, GLclampf f)
|
nuclear@0
|
6540 {
|
nuclear@0
|
6541 if(glDepthRangef_Impl)
|
nuclear@0
|
6542 glDepthRangef_Impl(n, f);
|
nuclear@0
|
6543 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6544 }
|
nuclear@0
|
6545
|
nuclear@0
|
6546 void OVR::GLEContext::glClearDepthf_Hook(GLclampf d)
|
nuclear@0
|
6547 {
|
nuclear@0
|
6548 if(glClearDepthf_Impl)
|
nuclear@0
|
6549 glClearDepthf_Impl(d);
|
nuclear@0
|
6550 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6551 }
|
nuclear@0
|
6552
|
nuclear@0
|
6553
|
nuclear@0
|
6554 // GL_ARB_framebuffer_object
|
nuclear@0
|
6555 GLboolean OVR::GLEContext::glIsRenderbuffer_Hook(GLuint renderbuffer)
|
nuclear@0
|
6556 {
|
nuclear@0
|
6557 GLboolean b = GL_FALSE;
|
nuclear@0
|
6558 if(glIsRenderbuffer_Impl)
|
nuclear@0
|
6559 b = glIsRenderbuffer_Impl(renderbuffer);
|
nuclear@0
|
6560 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6561 return b;
|
nuclear@0
|
6562 }
|
nuclear@0
|
6563
|
nuclear@0
|
6564 void OVR::GLEContext::glBindRenderbuffer_Hook(GLenum target, GLuint renderbuffer)
|
nuclear@0
|
6565 {
|
nuclear@0
|
6566 if(glBindRenderbuffer_Impl)
|
nuclear@0
|
6567 glBindRenderbuffer_Impl(target, renderbuffer);
|
nuclear@0
|
6568 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6569 }
|
nuclear@0
|
6570
|
nuclear@0
|
6571 void OVR::GLEContext::glDeleteRenderbuffers_Hook(GLsizei n, const GLuint *renderbuffers)
|
nuclear@0
|
6572 {
|
nuclear@0
|
6573 if(glDeleteRenderbuffers_Impl)
|
nuclear@0
|
6574 glDeleteRenderbuffers_Impl(n, renderbuffers);
|
nuclear@0
|
6575 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6576 }
|
nuclear@0
|
6577
|
nuclear@0
|
6578 void OVR::GLEContext::glGenRenderbuffers_Hook(GLsizei n, GLuint *renderbuffers)
|
nuclear@0
|
6579 {
|
nuclear@0
|
6580 if(glGenRenderbuffers_Impl)
|
nuclear@0
|
6581 glGenRenderbuffers_Impl(n, renderbuffers);
|
nuclear@0
|
6582 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6583 }
|
nuclear@0
|
6584
|
nuclear@0
|
6585 void OVR::GLEContext::glRenderbufferStorage_Hook(GLenum target, GLenum internalformat, GLsizei width, GLsizei height)
|
nuclear@0
|
6586 {
|
nuclear@0
|
6587 if(glRenderbufferStorage_Impl)
|
nuclear@0
|
6588 glRenderbufferStorage_Impl(target, internalformat, width, height);
|
nuclear@0
|
6589 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6590 }
|
nuclear@0
|
6591
|
nuclear@0
|
6592 void OVR::GLEContext::glGetRenderbufferParameteriv_Hook(GLenum target, GLenum pname, GLint *params)
|
nuclear@0
|
6593 {
|
nuclear@0
|
6594 if(glGetRenderbufferParameteriv_Impl)
|
nuclear@0
|
6595 glGetRenderbufferParameteriv_Impl(target, pname, params);
|
nuclear@0
|
6596 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6597 }
|
nuclear@0
|
6598
|
nuclear@0
|
6599 GLboolean OVR::GLEContext::glIsFramebuffer_Hook(GLuint framebuffer)
|
nuclear@0
|
6600 {
|
nuclear@0
|
6601 GLboolean b = GL_FALSE;
|
nuclear@0
|
6602 if(glIsFramebuffer_Impl)
|
nuclear@0
|
6603 b = glIsFramebuffer_Impl(framebuffer);
|
nuclear@0
|
6604 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6605 return b;
|
nuclear@0
|
6606 }
|
nuclear@0
|
6607
|
nuclear@0
|
6608 void OVR::GLEContext::glBindFramebuffer_Hook(GLenum target, GLuint framebuffer)
|
nuclear@0
|
6609 {
|
nuclear@0
|
6610 if(glBindFramebuffer_Impl)
|
nuclear@0
|
6611 glBindFramebuffer_Impl(target, framebuffer);
|
nuclear@0
|
6612 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6613 }
|
nuclear@0
|
6614
|
nuclear@0
|
6615 void OVR::GLEContext::glDeleteFramebuffers_Hook(GLsizei n, const GLuint *framebuffers)
|
nuclear@0
|
6616 {
|
nuclear@0
|
6617 if(glDeleteFramebuffers_Impl)
|
nuclear@0
|
6618 glDeleteFramebuffers_Impl(n, framebuffers);
|
nuclear@0
|
6619 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6620 }
|
nuclear@0
|
6621
|
nuclear@0
|
6622 void OVR::GLEContext::glGenFramebuffers_Hook(GLsizei n, GLuint *framebuffers)
|
nuclear@0
|
6623 {
|
nuclear@0
|
6624 if(glGenFramebuffers_Impl)
|
nuclear@0
|
6625 glGenFramebuffers_Impl(n, framebuffers);
|
nuclear@0
|
6626 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6627 }
|
nuclear@0
|
6628
|
nuclear@0
|
6629 GLenum OVR::GLEContext::glCheckFramebufferStatus_Hook(GLenum target)
|
nuclear@0
|
6630 {
|
nuclear@0
|
6631 GLenum e = 0;
|
nuclear@0
|
6632 if(glCheckFramebufferStatus_Impl)
|
nuclear@0
|
6633 e = glCheckFramebufferStatus_Impl(target);
|
nuclear@0
|
6634 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6635 return e;
|
nuclear@0
|
6636 }
|
nuclear@0
|
6637
|
nuclear@0
|
6638 void OVR::GLEContext::glFramebufferTexture1D_Hook(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level)
|
nuclear@0
|
6639 {
|
nuclear@0
|
6640 if(glFramebufferTexture1D_Impl)
|
nuclear@0
|
6641 glFramebufferTexture1D_Impl(target, attachment, textarget, texture, level);
|
nuclear@0
|
6642 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6643 }
|
nuclear@0
|
6644
|
nuclear@0
|
6645 void OVR::GLEContext::glFramebufferTexture2D_Hook(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level)
|
nuclear@0
|
6646 {
|
nuclear@0
|
6647 if(glFramebufferTexture2D_Impl)
|
nuclear@0
|
6648 glFramebufferTexture2D_Impl(target, attachment, textarget, texture, level);
|
nuclear@0
|
6649 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6650 }
|
nuclear@0
|
6651
|
nuclear@0
|
6652 void OVR::GLEContext::glFramebufferTexture3D_Hook(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset)
|
nuclear@0
|
6653 {
|
nuclear@0
|
6654 if(glFramebufferTexture3D_Impl)
|
nuclear@0
|
6655 glFramebufferTexture3D_Impl(target, attachment, textarget, texture, level, zoffset);
|
nuclear@0
|
6656 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6657 }
|
nuclear@0
|
6658
|
nuclear@0
|
6659 void OVR::GLEContext::glFramebufferRenderbuffer_Hook(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer)
|
nuclear@0
|
6660 {
|
nuclear@0
|
6661 if(glFramebufferRenderbuffer_Impl)
|
nuclear@0
|
6662 glFramebufferRenderbuffer_Impl(target, attachment, renderbuffertarget, renderbuffer);
|
nuclear@0
|
6663 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6664 }
|
nuclear@0
|
6665
|
nuclear@0
|
6666 void OVR::GLEContext::glGetFramebufferAttachmentParameteriv_Hook(GLenum target, GLenum attachment, GLenum pname, GLint *params)
|
nuclear@0
|
6667 {
|
nuclear@0
|
6668 if(glGetFramebufferAttachmentParameteriv_Impl)
|
nuclear@0
|
6669 glGetFramebufferAttachmentParameteriv_Impl(target, attachment, pname, params);
|
nuclear@0
|
6670 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6671 }
|
nuclear@0
|
6672
|
nuclear@0
|
6673 void OVR::GLEContext::glGenerateMipmap_Hook(GLenum target)
|
nuclear@0
|
6674 {
|
nuclear@0
|
6675 if(glGenerateMipmap_Impl)
|
nuclear@0
|
6676 glGenerateMipmap_Impl(target);
|
nuclear@0
|
6677 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6678 }
|
nuclear@0
|
6679
|
nuclear@0
|
6680 void OVR::GLEContext::glBlitFramebuffer_Hook(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter)
|
nuclear@0
|
6681 {
|
nuclear@0
|
6682 if(glBlitFramebuffer_Impl)
|
nuclear@0
|
6683 glBlitFramebuffer_Impl(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter);
|
nuclear@0
|
6684 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6685 }
|
nuclear@0
|
6686
|
nuclear@0
|
6687 void OVR::GLEContext::glRenderbufferStorageMultisample_Hook(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height)
|
nuclear@0
|
6688 {
|
nuclear@0
|
6689 if(glRenderbufferStorageMultisample_Impl)
|
nuclear@0
|
6690 glRenderbufferStorageMultisample_Impl(target, samples, internalformat, width, height);
|
nuclear@0
|
6691 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6692 }
|
nuclear@0
|
6693
|
nuclear@0
|
6694 void OVR::GLEContext::glFramebufferTextureLayer_Hook(GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer)
|
nuclear@0
|
6695 {
|
nuclear@0
|
6696 if(glFramebufferTextureLayer_Impl)
|
nuclear@0
|
6697 glFramebufferTextureLayer_Impl(target, attachment, texture, level, layer);
|
nuclear@0
|
6698 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6699 }
|
nuclear@0
|
6700
|
nuclear@0
|
6701
|
nuclear@0
|
6702 // GL_ARB_texture_multisample
|
nuclear@0
|
6703 void OVR::GLEContext::glTexImage2DMultisample_Hook(GLenum target, GLsizei samples, GLint internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations)
|
nuclear@0
|
6704 {
|
nuclear@0
|
6705 if(glTexImage2DMultisample_Impl)
|
nuclear@0
|
6706 glTexImage2DMultisample_Impl(target, samples, internalformat, width, height, fixedsamplelocations);
|
nuclear@0
|
6707 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6708 }
|
nuclear@0
|
6709
|
nuclear@0
|
6710 void OVR::GLEContext::glTexImage3DMultisample_Hook(GLenum target, GLsizei samples, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations)
|
nuclear@0
|
6711 {
|
nuclear@0
|
6712 if(glTexImage3DMultisample_Impl)
|
nuclear@0
|
6713 glTexImage3DMultisample_Impl(target, samples, internalformat, width, height, depth, fixedsamplelocations);
|
nuclear@0
|
6714 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6715 }
|
nuclear@0
|
6716
|
nuclear@0
|
6717 void OVR::GLEContext::glGetMultisamplefv_Hook(GLenum pname, GLuint index, GLfloat *val)
|
nuclear@0
|
6718 {
|
nuclear@0
|
6719 if(glGetMultisamplefv_Impl)
|
nuclear@0
|
6720 glGetMultisamplefv_Impl(pname, index, val);
|
nuclear@0
|
6721 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6722 }
|
nuclear@0
|
6723
|
nuclear@0
|
6724 void OVR::GLEContext::glSampleMaski_Hook(GLuint index, GLbitfield mask)
|
nuclear@0
|
6725 {
|
nuclear@0
|
6726 if(glSampleMaski_Impl)
|
nuclear@0
|
6727 glSampleMaski_Impl(index, mask);
|
nuclear@0
|
6728 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6729 }
|
nuclear@0
|
6730
|
nuclear@0
|
6731
|
nuclear@0
|
6732 // GL_ARB_timer_query
|
nuclear@0
|
6733 void OVR::GLEContext::glQueryCounter_Hook(GLuint id, GLenum target)
|
nuclear@0
|
6734 {
|
nuclear@0
|
6735 if(glQueryCounter_Impl)
|
nuclear@0
|
6736 glQueryCounter_Impl(id, target);
|
nuclear@0
|
6737 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6738 }
|
nuclear@0
|
6739
|
nuclear@0
|
6740 void OVR::GLEContext::glGetQueryObjecti64v_Hook(GLuint id, GLenum pname, GLint64 *params)
|
nuclear@0
|
6741 {
|
nuclear@0
|
6742 if(glGetQueryObjecti64v_Impl)
|
nuclear@0
|
6743 glGetQueryObjecti64v_Impl(id, pname, params);
|
nuclear@0
|
6744 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6745 }
|
nuclear@0
|
6746
|
nuclear@0
|
6747 void OVR::GLEContext::glGetQueryObjectui64v_Hook(GLuint id, GLenum pname, GLuint64 *params)
|
nuclear@0
|
6748 {
|
nuclear@0
|
6749 if(glGetQueryObjectui64v_Impl)
|
nuclear@0
|
6750 glGetQueryObjectui64v_Impl(id, pname, params);
|
nuclear@0
|
6751 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6752 }
|
nuclear@0
|
6753
|
nuclear@0
|
6754
|
nuclear@0
|
6755 // GL_ARB_vertex_array_object
|
nuclear@0
|
6756 void OVR::GLEContext::glBindVertexArray_Hook(GLuint array)
|
nuclear@0
|
6757 {
|
nuclear@0
|
6758 if(glBindVertexArray_Impl)
|
nuclear@0
|
6759 glBindVertexArray_Impl(array);
|
nuclear@0
|
6760 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6761 }
|
nuclear@0
|
6762
|
nuclear@0
|
6763 void OVR::GLEContext::glDeleteVertexArrays_Hook(GLsizei n, const GLuint *arrays)
|
nuclear@0
|
6764 {
|
nuclear@0
|
6765 if(glDeleteVertexArrays_Impl)
|
nuclear@0
|
6766 glDeleteVertexArrays_Impl(n, arrays);
|
nuclear@0
|
6767 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6768 }
|
nuclear@0
|
6769
|
nuclear@0
|
6770 void OVR::GLEContext::glGenVertexArrays_Hook(GLsizei n, GLuint *arrays)
|
nuclear@0
|
6771 {
|
nuclear@0
|
6772 if(glGenVertexArrays_Impl)
|
nuclear@0
|
6773 glGenVertexArrays_Impl(n, arrays);
|
nuclear@0
|
6774 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6775 }
|
nuclear@0
|
6776
|
nuclear@0
|
6777 GLboolean OVR::GLEContext::glIsVertexArray_Hook(GLuint array)
|
nuclear@0
|
6778 {
|
nuclear@0
|
6779 GLboolean b = GL_FALSE;
|
nuclear@0
|
6780 if(glIsVertexArray_Impl)
|
nuclear@0
|
6781 b = glIsVertexArray_Impl(array);
|
nuclear@0
|
6782 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6783 return b;
|
nuclear@0
|
6784 }
|
nuclear@0
|
6785
|
nuclear@0
|
6786
|
nuclear@0
|
6787 // GL_EXT_draw_buffers2
|
nuclear@0
|
6788 void OVR::GLEContext::glColorMaskIndexedEXT_Hook(GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a)
|
nuclear@0
|
6789 {
|
nuclear@0
|
6790 if(glColorMaskIndexedEXT_Impl)
|
nuclear@0
|
6791 glColorMaskIndexedEXT_Impl(index, r, g, b, a);
|
nuclear@0
|
6792 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6793 }
|
nuclear@0
|
6794
|
nuclear@0
|
6795 void OVR::GLEContext::glGetBooleanIndexedvEXT_Hook(GLenum target, GLuint index, GLboolean *data)
|
nuclear@0
|
6796 {
|
nuclear@0
|
6797 if(glGetBooleanIndexedvEXT_Impl)
|
nuclear@0
|
6798 glGetBooleanIndexedvEXT_Impl(target, index, data);
|
nuclear@0
|
6799 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6800 }
|
nuclear@0
|
6801
|
nuclear@0
|
6802 void OVR::GLEContext::glGetIntegerIndexedvEXT_Hook(GLenum target, GLuint index, GLint *data)
|
nuclear@0
|
6803 {
|
nuclear@0
|
6804 if(glGetIntegerIndexedvEXT_Impl)
|
nuclear@0
|
6805 glGetIntegerIndexedvEXT_Impl(target, index, data);
|
nuclear@0
|
6806 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6807 }
|
nuclear@0
|
6808
|
nuclear@0
|
6809 void OVR::GLEContext::glEnableIndexedEXT_Hook(GLenum target, GLuint index)
|
nuclear@0
|
6810 {
|
nuclear@0
|
6811 if(glEnableIndexedEXT_Impl)
|
nuclear@0
|
6812 glEnableIndexedEXT_Impl(target, index);
|
nuclear@0
|
6813 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6814 }
|
nuclear@0
|
6815
|
nuclear@0
|
6816 void OVR::GLEContext::glDisableIndexedEXT_Hook(GLenum target, GLuint index)
|
nuclear@0
|
6817 {
|
nuclear@0
|
6818 if(glDisableIndexedEXT_Impl)
|
nuclear@0
|
6819 glDisableIndexedEXT_Impl(target, index);
|
nuclear@0
|
6820 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6821 }
|
nuclear@0
|
6822
|
nuclear@0
|
6823 GLboolean OVR::GLEContext::glIsEnabledIndexedEXT_Hook(GLenum target, GLuint index)
|
nuclear@0
|
6824 {
|
nuclear@0
|
6825 GLboolean b = GL_FALSE;
|
nuclear@0
|
6826 if(glIsEnabledIndexedEXT_Impl)
|
nuclear@0
|
6827 b = glIsEnabledIndexedEXT_Impl(target, index);
|
nuclear@0
|
6828 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6829 return b;
|
nuclear@0
|
6830 }
|
nuclear@0
|
6831
|
nuclear@0
|
6832
|
nuclear@0
|
6833 // GL_KHR_debug
|
nuclear@0
|
6834 void OVR::GLEContext::glDebugMessageControl_Hook(GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint* ids, GLboolean enabled)
|
nuclear@0
|
6835 {
|
nuclear@0
|
6836 if(glDebugMessageControl_Impl)
|
nuclear@0
|
6837 glDebugMessageControl_Impl(source, type, severity, count, ids, enabled);
|
nuclear@0
|
6838 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6839 }
|
nuclear@0
|
6840
|
nuclear@0
|
6841 void OVR::GLEContext::glDebugMessageInsert_Hook(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const char* buf)
|
nuclear@0
|
6842 {
|
nuclear@0
|
6843 if(glDebugMessageInsert_Impl)
|
nuclear@0
|
6844 glDebugMessageInsert_Impl(source, type, id, severity, length, buf);
|
nuclear@0
|
6845 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6846 }
|
nuclear@0
|
6847
|
nuclear@0
|
6848 void OVR::GLEContext::glDebugMessageCallback_Hook(GLDEBUGPROC callback, const void* userParam)
|
nuclear@0
|
6849 {
|
nuclear@0
|
6850 if(glDebugMessageCallback_Impl)
|
nuclear@0
|
6851 glDebugMessageCallback_Impl(callback, userParam);
|
nuclear@0
|
6852 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6853 }
|
nuclear@0
|
6854
|
nuclear@0
|
6855 GLuint OVR::GLEContext::glGetDebugMessageLog_Hook(GLuint count, GLsizei bufSize, GLenum* sources, GLenum* types, GLuint* ids, GLenum* severities, GLsizei* lengths, char* messageLog)
|
nuclear@0
|
6856 {
|
nuclear@0
|
6857 GLuint u = 0;
|
nuclear@0
|
6858 if(glGetDebugMessageLog_Impl)
|
nuclear@0
|
6859 u = glGetDebugMessageLog_Impl(count, bufSize, sources, types, ids, severities, lengths, messageLog);
|
nuclear@0
|
6860 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6861 return u;
|
nuclear@0
|
6862 }
|
nuclear@0
|
6863
|
nuclear@0
|
6864 void OVR::GLEContext::glPushDebugGroup_Hook(GLenum source, GLuint id, GLsizei length, const char * message)
|
nuclear@0
|
6865 {
|
nuclear@0
|
6866 if(glPushDebugGroup_Impl)
|
nuclear@0
|
6867 glPushDebugGroup_Impl(source, id, length, message);
|
nuclear@0
|
6868 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6869 }
|
nuclear@0
|
6870
|
nuclear@0
|
6871 void OVR::GLEContext::glPopDebugGroup_Hook()
|
nuclear@0
|
6872 {
|
nuclear@0
|
6873 if(glPopDebugGroup_Impl)
|
nuclear@0
|
6874 glPopDebugGroup_Impl();
|
nuclear@0
|
6875 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6876 }
|
nuclear@0
|
6877
|
nuclear@0
|
6878 void OVR::GLEContext::glObjectLabel_Hook(GLenum identifier, GLuint name, GLsizei length, const char *label)
|
nuclear@0
|
6879 {
|
nuclear@0
|
6880 if(glObjectLabel_Impl)
|
nuclear@0
|
6881 glObjectLabel_Impl(identifier, name, length, label);
|
nuclear@0
|
6882 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6883 }
|
nuclear@0
|
6884
|
nuclear@0
|
6885 void OVR::GLEContext::glGetObjectLabel_Hook(GLenum identifier, GLuint name, GLsizei bufSize, GLsizei *length, char *label)
|
nuclear@0
|
6886 {
|
nuclear@0
|
6887 if(glGetObjectLabel_Impl)
|
nuclear@0
|
6888 glGetObjectLabel_Impl(identifier, name, bufSize, length, label);
|
nuclear@0
|
6889 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6890 }
|
nuclear@0
|
6891
|
nuclear@0
|
6892 void OVR::GLEContext::glObjectPtrLabel_Hook(void* ptr, GLsizei length, const char *label)
|
nuclear@0
|
6893 {
|
nuclear@0
|
6894 if(glObjectPtrLabel_Impl)
|
nuclear@0
|
6895 glObjectPtrLabel_Impl(ptr, length, label);
|
nuclear@0
|
6896 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6897 }
|
nuclear@0
|
6898
|
nuclear@0
|
6899 void OVR::GLEContext::glGetObjectPtrLabel_Hook(void* ptr, GLsizei bufSize, GLsizei *length, char *label)
|
nuclear@0
|
6900 {
|
nuclear@0
|
6901 if(glGetObjectPtrLabel_Impl)
|
nuclear@0
|
6902 glGetObjectPtrLabel_Impl(ptr, bufSize, length, label);
|
nuclear@0
|
6903 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6904 }
|
nuclear@0
|
6905
|
nuclear@0
|
6906
|
nuclear@0
|
6907 // GL_WIN_swap_hint
|
nuclear@0
|
6908 void OVR::GLEContext::glAddSwapHintRectWIN_Hook(GLint x, GLint y, GLsizei width, GLsizei height)
|
nuclear@0
|
6909 {
|
nuclear@0
|
6910 if(glAddSwapHintRectWIN_Impl)
|
nuclear@0
|
6911 glAddSwapHintRectWIN_Impl(x, y, width, height);
|
nuclear@0
|
6912 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6913 }
|
nuclear@0
|
6914
|
nuclear@0
|
6915
|
nuclear@0
|
6916 #if defined(GLE_WGL_ENABLED)
|
nuclear@0
|
6917 // WGL
|
nuclear@0
|
6918 void OVR::GLEContext::PostWGLHook(const char* /*function*/)
|
nuclear@0
|
6919 {
|
nuclear@0
|
6920 // Empty for now. WGL functions don't have a function like glGetError().
|
nuclear@0
|
6921 }
|
nuclear@0
|
6922
|
nuclear@0
|
6923 /* We currently don't hook these
|
nuclear@0
|
6924 #undef wglCopyContext
|
nuclear@0
|
6925 extern "C" { GLAPI BOOL GLAPIENTRY wglCopyContext(HGLRC hglrcSrc, HGLRC hglrcDst, UINT mask); }
|
nuclear@0
|
6926 BOOL OVR::GLEContext::wglCopyContext_Hook(HGLRC hglrcSrc, HGLRC hglrcDst, UINT mask)
|
nuclear@0
|
6927 {
|
nuclear@0
|
6928 BOOL b = wglCopyContext(hglrcSrc, hglrcDst, mask);
|
nuclear@0
|
6929 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6930 return b;
|
nuclear@0
|
6931 }
|
nuclear@0
|
6932
|
nuclear@0
|
6933 #undef wglCreateContext
|
nuclear@0
|
6934 extern "C" { GLAPI HGLRC GLAPIENTRY wglCreateContext(HDC hdc); }
|
nuclear@0
|
6935 HGLRC OVR::GLEContext::wglCreateContext_Hook(HDC hdc)
|
nuclear@0
|
6936 {
|
nuclear@0
|
6937 HGLRC h = wglCreateContext(hdc);
|
nuclear@0
|
6938 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6939 return h;
|
nuclear@0
|
6940 }
|
nuclear@0
|
6941
|
nuclear@0
|
6942 #undef wglCreateLayerContext
|
nuclear@0
|
6943 extern "C" { GLAPI HGLRC GLAPIENTRY wglCreateLayerContext(HDC hdc, int iLayerPlane); }
|
nuclear@0
|
6944 HGLRC OVR::GLEContext::wglCreateLayerContext_Hook(HDC hdc, int iLayerPlane)
|
nuclear@0
|
6945 {
|
nuclear@0
|
6946 HGLRC h = wglCreateLayerContext(hdc, iLayerPlane);
|
nuclear@0
|
6947 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6948 return h;
|
nuclear@0
|
6949 }
|
nuclear@0
|
6950
|
nuclear@0
|
6951 #undef wglDeleteContext
|
nuclear@0
|
6952 extern "C" { GLAPI BOOL GLAPIENTRY wglDeleteContext(HGLRC hglrc); }
|
nuclear@0
|
6953 BOOL OVR::GLEContext::wglDeleteContext_Hook(HGLRC hglrc)
|
nuclear@0
|
6954 {
|
nuclear@0
|
6955 BOOL b = wglDeleteContext(hglrc);
|
nuclear@0
|
6956 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6957 return b;
|
nuclear@0
|
6958 }
|
nuclear@0
|
6959
|
nuclear@0
|
6960 #undef wglGetCurrentContext
|
nuclear@0
|
6961 extern "C" { GLAPI HGLRC GLAPIENTRY wglGetCurrentContext(); }
|
nuclear@0
|
6962 HGLRC OVR::GLEContext::wglGetCurrentContext_Hook()
|
nuclear@0
|
6963 {
|
nuclear@0
|
6964 HGLRC h = wglGetCurrentContext();
|
nuclear@0
|
6965 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6966 return h;
|
nuclear@0
|
6967 }
|
nuclear@0
|
6968
|
nuclear@0
|
6969 #undef wglGetCurrentDC
|
nuclear@0
|
6970 extern "C" { GLAPI HDC GLAPIENTRY wglGetCurrentDC(); }
|
nuclear@0
|
6971 HDC OVR::GLEContext::wglGetCurrentDC_Hook()
|
nuclear@0
|
6972 {
|
nuclear@0
|
6973 HDC h = wglGetCurrentDC();
|
nuclear@0
|
6974 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6975 return h;
|
nuclear@0
|
6976 }
|
nuclear@0
|
6977
|
nuclear@0
|
6978 //#undef wglGetProcAddress Not needed because we happen to do it above already.
|
nuclear@0
|
6979 //extern "C" { GLAPI PROC GLAPIENTRY wglGetProcAddress(LPCSTR lpszProc); }
|
nuclear@0
|
6980 PROC OVR::GLEContext::wglGetProcAddress_Hook(LPCSTR lpszProc)
|
nuclear@0
|
6981 {
|
nuclear@0
|
6982 PROC p = wglGetProcAddress(lpszProc);
|
nuclear@0
|
6983 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6984 return p;
|
nuclear@0
|
6985 }
|
nuclear@0
|
6986
|
nuclear@0
|
6987 #undef wglMakeCurrent
|
nuclear@0
|
6988 extern "C" { GLAPI BOOL GLAPIENTRY wglMakeCurrent(HDC hdc, HGLRC hglrc); }
|
nuclear@0
|
6989 BOOL OVR::GLEContext::wglMakeCurrent_Hook(HDC hdc, HGLRC hglrc)
|
nuclear@0
|
6990 {
|
nuclear@0
|
6991 BOOL b = wglMakeCurrent(hdc, hglrc);
|
nuclear@0
|
6992 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
6993 return b;
|
nuclear@0
|
6994 }
|
nuclear@0
|
6995
|
nuclear@0
|
6996 #undef wglShareLists
|
nuclear@0
|
6997 extern "C" { GLAPI BOOL GLAPIENTRY wglShareLists(HGLRC hglrc1, HGLRC hglrc2); }
|
nuclear@0
|
6998 BOOL OVR::GLEContext::wglShareLists_Hook(HGLRC hglrc1, HGLRC hglrc2)
|
nuclear@0
|
6999 {
|
nuclear@0
|
7000 BOOL b = wglShareLists(hglrc1, hglrc2);
|
nuclear@0
|
7001 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7002 return b;
|
nuclear@0
|
7003 }
|
nuclear@0
|
7004
|
nuclear@0
|
7005 #undef wglUseFontBitmapsA
|
nuclear@0
|
7006 extern "C" { GLAPI BOOL GLAPIENTRY wglUseFontBitmapsA(HDC hdc, DWORD first, DWORD count, DWORD listBase); }
|
nuclear@0
|
7007 BOOL OVR::GLEContext::wglUseFontBitmapsA_Hook(HDC hdc, DWORD first, DWORD count, DWORD listBase)
|
nuclear@0
|
7008 {
|
nuclear@0
|
7009 BOOL b = wglUseFontBitmapsA(hdc, first, count, listBase);
|
nuclear@0
|
7010 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7011 return b;
|
nuclear@0
|
7012 }
|
nuclear@0
|
7013
|
nuclear@0
|
7014 #undef wglUseFontBitmapsW
|
nuclear@0
|
7015 extern "C" { GLAPI BOOL GLAPIENTRY wglUseFontBitmapsW(HDC hdc, DWORD first, DWORD count, DWORD listBase); }
|
nuclear@0
|
7016 BOOL OVR::GLEContext::wglUseFontBitmapsW_Hook(HDC hdc, DWORD first, DWORD count, DWORD listBase)
|
nuclear@0
|
7017 {
|
nuclear@0
|
7018 BOOL b = wglUseFontBitmapsW(hdc, first, count, listBase);
|
nuclear@0
|
7019 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7020 return b;
|
nuclear@0
|
7021 }
|
nuclear@0
|
7022
|
nuclear@0
|
7023 #undef wglUseFontOutlinesA
|
nuclear@0
|
7024 extern "C" { GLAPI BOOL GLAPIENTRY wglUseFontOutlinesA(HDC hdc, DWORD first, DWORD count, DWORD listBase, FLOAT deviation, FLOAT extrusion, int format, LPGLYPHMETRICSFLOAT lpgmf); }
|
nuclear@0
|
7025 BOOL OVR::GLEContext::wglUseFontOutlinesA_Hook(HDC hdc, DWORD first, DWORD count, DWORD listBase, FLOAT deviation, FLOAT extrusion, int format, LPGLYPHMETRICSFLOAT lpgmf)
|
nuclear@0
|
7026 {
|
nuclear@0
|
7027 BOOL b = wglUseFontOutlinesA(hdc, first, count, listBase, deviation, extrusion, format, lpgmf);
|
nuclear@0
|
7028 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7029 return b;
|
nuclear@0
|
7030 }
|
nuclear@0
|
7031
|
nuclear@0
|
7032 #undef wglUseFontOutlinesW
|
nuclear@0
|
7033 extern "C" { GLAPI BOOL GLAPIENTRY wglUseFontOutlinesW(HDC hdc, DWORD first, DWORD count, DWORD listBase, FLOAT deviation, FLOAT extrusion, int format, LPGLYPHMETRICSFLOAT lpgmf); }
|
nuclear@0
|
7034 BOOL OVR::GLEContext::wglUseFontOutlinesW_Hook(HDC hdc, DWORD first, DWORD count, DWORD listBase, FLOAT deviation, FLOAT extrusion, int format, LPGLYPHMETRICSFLOAT lpgmf)
|
nuclear@0
|
7035 {
|
nuclear@0
|
7036 BOOL b = wglUseFontOutlinesW(hdc, first, count, listBase, deviation, extrusion, format, lpgmf);
|
nuclear@0
|
7037 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7038 return b;
|
nuclear@0
|
7039 }
|
nuclear@0
|
7040
|
nuclear@0
|
7041 #undef wglDescribeLayerPlane
|
nuclear@0
|
7042 extern "C" { GLAPI BOOL GLAPIENTRY wglDescribeLayerPlane(HDC hdc, int iPixelFormat, int iLayerPlane, UINT nBytes, LPLAYERPLANEDESCRIPTOR plpd); }
|
nuclear@0
|
7043 BOOL OVR::GLEContext::wglDescribeLayerPlane_Hook(HDC hdc, int iPixelFormat, int iLayerPlane, UINT nBytes, LPLAYERPLANEDESCRIPTOR plpd)
|
nuclear@0
|
7044 {
|
nuclear@0
|
7045 BOOL b = wglDescribeLayerPlane(hdc, iPixelFormat, iLayerPlane, nBytes, plpd);
|
nuclear@0
|
7046 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7047 return b;
|
nuclear@0
|
7048 }
|
nuclear@0
|
7049
|
nuclear@0
|
7050 #undef wglSetLayerPaletteEntries
|
nuclear@0
|
7051 extern "C" { GLAPI int GLAPIENTRY wglSetLayerPaletteEntries(HDC hdc, int iLayerPlane, int iStart, int cEntries, const COLORREF *pcr); }
|
nuclear@0
|
7052 int OVR::GLEContext::wglSetLayerPaletteEntries_Hook(HDC hdc, int iLayerPlane, int iStart, int cEntries, const COLORREF *pcr)
|
nuclear@0
|
7053 {
|
nuclear@0
|
7054 int i = wglSetLayerPaletteEntries(hdc, iLayerPlane, iStart, cEntries, pcr);
|
nuclear@0
|
7055 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7056 return i;
|
nuclear@0
|
7057 }
|
nuclear@0
|
7058
|
nuclear@0
|
7059 #undef wglGetLayerPaletteEntries
|
nuclear@0
|
7060 extern "C" { GLAPI int GLAPIENTRY wglGetLayerPaletteEntries(HDC hdc, int iLayerPlane, int iStart, int cEntries, COLORREF *pcr); }
|
nuclear@0
|
7061 int OVR::GLEContext::wglGetLayerPaletteEntries_Hook(HDC hdc, int iLayerPlane, int iStart, int cEntries, COLORREF *pcr)
|
nuclear@0
|
7062 {
|
nuclear@0
|
7063 int i = wglGetLayerPaletteEntries(hdc, iLayerPlane, iStart, cEntries, pcr);
|
nuclear@0
|
7064 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7065 return i;
|
nuclear@0
|
7066 }
|
nuclear@0
|
7067
|
nuclear@0
|
7068 #undef wglRealizeLayerPalette
|
nuclear@0
|
7069 extern "C" { GLAPI BOOL GLAPIENTRY wglRealizeLayerPalette(HDC hdc, int iLayerPlane, BOOL bRealize); }
|
nuclear@0
|
7070 BOOL OVR::GLEContext::wglRealizeLayerPalette_Hook(HDC hdc, int iLayerPlane, BOOL bRealize)
|
nuclear@0
|
7071 {
|
nuclear@0
|
7072 BOOL b = wglRealizeLayerPalette(hdc, iLayerPlane, bRealize);
|
nuclear@0
|
7073 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7074 return b;
|
nuclear@0
|
7075 }
|
nuclear@0
|
7076
|
nuclear@0
|
7077 #undef wglSwapLayerBuffers
|
nuclear@0
|
7078 extern "C" { GLAPI BOOL GLAPIENTRY wglSwapLayerBuffers(HDC hdc, UINT fuPlanes); }
|
nuclear@0
|
7079 BOOL OVR::GLEContext::wglSwapLayerBuffers_Hook(HDC hdc, UINT fuPlanes)
|
nuclear@0
|
7080 {
|
nuclear@0
|
7081 BOOL b = wglSwapLayerBuffers(hdc, fuPlanes);
|
nuclear@0
|
7082 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7083 return b;
|
nuclear@0
|
7084 }
|
nuclear@0
|
7085
|
nuclear@0
|
7086 #undef wglSwapMultipleBuffers
|
nuclear@0
|
7087 extern "C" { GLAPI DWORD GLAPIENTRY wglSwapMultipleBuffers(UINT i, CONST WGLSWAP* p); }
|
nuclear@0
|
7088 DWORD OVR::GLEContext::wglSwapMultipleBuffers_Hook(UINT i, CONST WGLSWAP* p)
|
nuclear@0
|
7089 {
|
nuclear@0
|
7090 DWORD dw = wglSwapMultipleBuffers(i, p);
|
nuclear@0
|
7091 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7092 return dw;
|
nuclear@0
|
7093 }
|
nuclear@0
|
7094 */
|
nuclear@0
|
7095
|
nuclear@0
|
7096 // The rest of the functions are pointer-based.
|
nuclear@0
|
7097
|
nuclear@0
|
7098 // WGL_ARB_buffer_region
|
nuclear@0
|
7099 HANDLE OVR::GLEContext::wglCreateBufferRegionARB_Hook(HDC hDC, int iLayerPlane, UINT uType)
|
nuclear@0
|
7100 {
|
nuclear@0
|
7101 HANDLE h = NULL;
|
nuclear@0
|
7102 if(wglCreateBufferRegionARB_Impl)
|
nuclear@0
|
7103 h = wglCreateBufferRegionARB_Impl(hDC, iLayerPlane, uType);
|
nuclear@0
|
7104 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7105 return h;
|
nuclear@0
|
7106 }
|
nuclear@0
|
7107
|
nuclear@0
|
7108 VOID OVR::GLEContext::wglDeleteBufferRegionARB_Hook(HANDLE hRegion)
|
nuclear@0
|
7109 {
|
nuclear@0
|
7110 if(wglDeleteBufferRegionARB_Impl)
|
nuclear@0
|
7111 wglDeleteBufferRegionARB_Impl(hRegion);
|
nuclear@0
|
7112 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7113 }
|
nuclear@0
|
7114
|
nuclear@0
|
7115 BOOL OVR::GLEContext::wglSaveBufferRegionARB_Hook(HANDLE hRegion, int x, int y, int width, int height)
|
nuclear@0
|
7116 {
|
nuclear@0
|
7117 BOOL b = FALSE;
|
nuclear@0
|
7118 if(wglSaveBufferRegionARB_Impl)
|
nuclear@0
|
7119 b = wglSaveBufferRegionARB_Impl(hRegion, x, y, width, height);
|
nuclear@0
|
7120 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7121 return b;
|
nuclear@0
|
7122 }
|
nuclear@0
|
7123
|
nuclear@0
|
7124 BOOL OVR::GLEContext::wglRestoreBufferRegionARB_Hook(HANDLE hRegion, int x, int y, int width, int height, int xSrc, int ySrc)
|
nuclear@0
|
7125 {
|
nuclear@0
|
7126 BOOL b = FALSE;
|
nuclear@0
|
7127 if(wglRestoreBufferRegionARB_Impl)
|
nuclear@0
|
7128 b = wglRestoreBufferRegionARB_Impl(hRegion, x, y, width, height, xSrc, ySrc);
|
nuclear@0
|
7129 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7130 return b;
|
nuclear@0
|
7131 }
|
nuclear@0
|
7132
|
nuclear@0
|
7133 // WGL_ARB_extensions_string
|
nuclear@0
|
7134 const char * OVR::GLEContext::wglGetExtensionsStringARB_Hook(HDC hdc)
|
nuclear@0
|
7135 {
|
nuclear@0
|
7136 const char * p = NULL;
|
nuclear@0
|
7137 if(wglGetExtensionsStringARB_Impl)
|
nuclear@0
|
7138 p = wglGetExtensionsStringARB_Impl(hdc);
|
nuclear@0
|
7139 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7140 return p;
|
nuclear@0
|
7141 }
|
nuclear@0
|
7142
|
nuclear@0
|
7143 // WGL_ARB_pixel_format
|
nuclear@0
|
7144 BOOL OVR::GLEContext::wglGetPixelFormatAttribivARB_Hook(HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, int *piValues)
|
nuclear@0
|
7145 {
|
nuclear@0
|
7146 BOOL b = FALSE;
|
nuclear@0
|
7147 if(wglGetPixelFormatAttribivARB_Impl)
|
nuclear@0
|
7148 b = wglGetPixelFormatAttribivARB_Impl(hdc, iPixelFormat, iLayerPlane, nAttributes, piAttributes, piValues);
|
nuclear@0
|
7149 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7150 return b;
|
nuclear@0
|
7151 }
|
nuclear@0
|
7152
|
nuclear@0
|
7153 BOOL OVR::GLEContext::wglGetPixelFormatAttribfvARB_Hook(HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, FLOAT *pfValues)
|
nuclear@0
|
7154 {
|
nuclear@0
|
7155 BOOL b = FALSE;
|
nuclear@0
|
7156 if(wglGetPixelFormatAttribfvARB_Impl)
|
nuclear@0
|
7157 b = wglGetPixelFormatAttribfvARB_Impl(hdc, iPixelFormat, iLayerPlane, nAttributes, piAttributes, pfValues);
|
nuclear@0
|
7158 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7159 return b;
|
nuclear@0
|
7160 }
|
nuclear@0
|
7161
|
nuclear@0
|
7162 BOOL OVR::GLEContext::wglChoosePixelFormatARB_Hook(HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats)
|
nuclear@0
|
7163 {
|
nuclear@0
|
7164 BOOL b = FALSE;
|
nuclear@0
|
7165 if(wglChoosePixelFormatARB_Impl)
|
nuclear@0
|
7166 b = wglChoosePixelFormatARB_Impl(hdc, piAttribIList, pfAttribFList, nMaxFormats, piFormats, nNumFormats);
|
nuclear@0
|
7167 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7168 return b;
|
nuclear@0
|
7169 }
|
nuclear@0
|
7170
|
nuclear@0
|
7171 // WGL_ARB_make_current_read
|
nuclear@0
|
7172 BOOL OVR::GLEContext::wglMakeContextCurrentARB_Hook(HDC hDrawDC, HDC hReadDC, HGLRC hglrc)
|
nuclear@0
|
7173 {
|
nuclear@0
|
7174 BOOL b = FALSE;
|
nuclear@0
|
7175 if(wglMakeContextCurrentARB_Impl)
|
nuclear@0
|
7176 b = wglMakeContextCurrentARB_Impl(hDrawDC, hReadDC, hglrc);
|
nuclear@0
|
7177 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7178 return b;
|
nuclear@0
|
7179 }
|
nuclear@0
|
7180
|
nuclear@0
|
7181 HDC OVR::GLEContext::wglGetCurrentReadDCARB_Hook()
|
nuclear@0
|
7182 {
|
nuclear@0
|
7183 HDC h = NULL;
|
nuclear@0
|
7184 if(wglGetCurrentReadDCARB_Impl)
|
nuclear@0
|
7185 h = wglGetCurrentReadDCARB_Impl();
|
nuclear@0
|
7186 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7187 return h;
|
nuclear@0
|
7188 }
|
nuclear@0
|
7189
|
nuclear@0
|
7190 // WGL_ARB_pbuffer
|
nuclear@0
|
7191 HPBUFFERARB OVR::GLEContext::wglCreatePbufferARB_Hook(HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int *piAttribList)
|
nuclear@0
|
7192 {
|
nuclear@0
|
7193 HPBUFFERARB h = NULL;
|
nuclear@0
|
7194 if(wglCreatePbufferARB_Impl)
|
nuclear@0
|
7195 h = wglCreatePbufferARB_Impl(hDC, iPixelFormat, iWidth, iHeight, piAttribList);
|
nuclear@0
|
7196 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7197 return h;
|
nuclear@0
|
7198 }
|
nuclear@0
|
7199
|
nuclear@0
|
7200 HDC OVR::GLEContext::wglGetPbufferDCARB_Hook(HPBUFFERARB hPbuffer)
|
nuclear@0
|
7201 {
|
nuclear@0
|
7202 HDC h = NULL;
|
nuclear@0
|
7203 if(wglGetPbufferDCARB_Impl)
|
nuclear@0
|
7204 h = wglGetPbufferDCARB_Impl(hPbuffer);
|
nuclear@0
|
7205 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7206 return h;
|
nuclear@0
|
7207 }
|
nuclear@0
|
7208
|
nuclear@0
|
7209 int OVR::GLEContext::wglReleasePbufferDCARB_Hook(HPBUFFERARB hPbuffer, HDC hDC)
|
nuclear@0
|
7210 {
|
nuclear@0
|
7211 int i = 0;
|
nuclear@0
|
7212 if(wglReleasePbufferDCARB_Impl)
|
nuclear@0
|
7213 i = wglReleasePbufferDCARB_Impl(hPbuffer, hDC);
|
nuclear@0
|
7214 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7215 return i;
|
nuclear@0
|
7216 }
|
nuclear@0
|
7217
|
nuclear@0
|
7218 BOOL OVR::GLEContext::wglDestroyPbufferARB_Hook(HPBUFFERARB hPbuffer)
|
nuclear@0
|
7219 {
|
nuclear@0
|
7220 BOOL b = FALSE;
|
nuclear@0
|
7221 if(wglDestroyPbufferARB_Impl)
|
nuclear@0
|
7222 b = wglDestroyPbufferARB_Impl(hPbuffer);
|
nuclear@0
|
7223 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7224 return b;
|
nuclear@0
|
7225 }
|
nuclear@0
|
7226
|
nuclear@0
|
7227 BOOL OVR::GLEContext::wglQueryPbufferARB_Hook(HPBUFFERARB hPbuffer, int iAttribute, int *piValue)
|
nuclear@0
|
7228 {
|
nuclear@0
|
7229 BOOL b = FALSE;
|
nuclear@0
|
7230 if(wglQueryPbufferARB_Impl)
|
nuclear@0
|
7231 b = wglQueryPbufferARB_Impl(hPbuffer, iAttribute, piValue);
|
nuclear@0
|
7232 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7233 return b;
|
nuclear@0
|
7234 }
|
nuclear@0
|
7235
|
nuclear@0
|
7236 // WGL_ARB_render_texture
|
nuclear@0
|
7237 BOOL OVR::GLEContext::wglBindTexImageARB_Hook(HPBUFFERARB hPbuffer, int iBuffer)
|
nuclear@0
|
7238 {
|
nuclear@0
|
7239 BOOL b = FALSE;
|
nuclear@0
|
7240 if(wglBindTexImageARB_Impl)
|
nuclear@0
|
7241 b = wglBindTexImageARB_Impl(hPbuffer, iBuffer);
|
nuclear@0
|
7242 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7243 return b;
|
nuclear@0
|
7244 }
|
nuclear@0
|
7245
|
nuclear@0
|
7246 BOOL OVR::GLEContext::wglReleaseTexImageARB_Hook(HPBUFFERARB hPbuffer, int iBuffer)
|
nuclear@0
|
7247 {
|
nuclear@0
|
7248 BOOL b = FALSE;
|
nuclear@0
|
7249 if(wglReleaseTexImageARB_Impl)
|
nuclear@0
|
7250 b = wglReleaseTexImageARB_Impl(hPbuffer, iBuffer);
|
nuclear@0
|
7251 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7252 return b;
|
nuclear@0
|
7253 }
|
nuclear@0
|
7254
|
nuclear@0
|
7255 BOOL OVR::GLEContext::wglSetPbufferAttribARB_Hook(HPBUFFERARB hPbuffer, const int *piAttribList)
|
nuclear@0
|
7256 {
|
nuclear@0
|
7257 BOOL b = FALSE;
|
nuclear@0
|
7258 if(wglSetPbufferAttribARB_Impl)
|
nuclear@0
|
7259 b = wglSetPbufferAttribARB_Impl(hPbuffer, piAttribList);
|
nuclear@0
|
7260 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7261 return b;
|
nuclear@0
|
7262 }
|
nuclear@0
|
7263
|
nuclear@0
|
7264 // WGL_NV_present_video
|
nuclear@0
|
7265 int OVR::GLEContext::wglEnumerateVideoDevicesNV_Hook(HDC hDC, HVIDEOOUTPUTDEVICENV *phDeviceList)
|
nuclear@0
|
7266 {
|
nuclear@0
|
7267 int i = 0;
|
nuclear@0
|
7268 if(wglEnumerateVideoDevicesNV_Impl)
|
nuclear@0
|
7269 i = wglEnumerateVideoDevicesNV_Impl(hDC, phDeviceList);
|
nuclear@0
|
7270 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7271 return i;
|
nuclear@0
|
7272 }
|
nuclear@0
|
7273
|
nuclear@0
|
7274 BOOL OVR::GLEContext::wglBindVideoDeviceNV_Hook(HDC hDC, unsigned int uVideoSlot, HVIDEOOUTPUTDEVICENV hVideoDevice, const int *piAttribList)
|
nuclear@0
|
7275 {
|
nuclear@0
|
7276 BOOL b = FALSE;
|
nuclear@0
|
7277 if(wglBindVideoDeviceNV_Impl)
|
nuclear@0
|
7278 b = wglBindVideoDeviceNV_Impl(hDC, uVideoSlot, hVideoDevice, piAttribList);
|
nuclear@0
|
7279 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7280 return b;
|
nuclear@0
|
7281 }
|
nuclear@0
|
7282
|
nuclear@0
|
7283 BOOL OVR::GLEContext::wglQueryCurrentContextNV_Hook(int iAttribute, int *piValue)
|
nuclear@0
|
7284 {
|
nuclear@0
|
7285 BOOL b = FALSE;
|
nuclear@0
|
7286 if(wglQueryCurrentContextNV_Impl)
|
nuclear@0
|
7287 b = wglQueryCurrentContextNV_Impl(iAttribute, piValue);
|
nuclear@0
|
7288 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7289 return b;
|
nuclear@0
|
7290 }
|
nuclear@0
|
7291
|
nuclear@0
|
7292 // WGL_ARB_create_context
|
nuclear@0
|
7293 HGLRC OVR::GLEContext::wglCreateContextAttribsARB_Hook(HDC hDC, HGLRC hShareContext, const int *attribList)
|
nuclear@0
|
7294 {
|
nuclear@0
|
7295 HGLRC h = NULL;
|
nuclear@0
|
7296 if(wglCreateContextAttribsARB_Impl)
|
nuclear@0
|
7297 h = wglCreateContextAttribsARB_Impl(hDC, hShareContext, attribList);
|
nuclear@0
|
7298 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7299 return h;
|
nuclear@0
|
7300 }
|
nuclear@0
|
7301
|
nuclear@0
|
7302 // WGL_EXT_extensions_string
|
nuclear@0
|
7303 const char * OVR::GLEContext::wglGetExtensionsStringEXT_Hook()
|
nuclear@0
|
7304 {
|
nuclear@0
|
7305 const char * p = NULL;
|
nuclear@0
|
7306 if(wglGetExtensionsStringEXT_Impl)
|
nuclear@0
|
7307 p = wglGetExtensionsStringEXT_Impl();
|
nuclear@0
|
7308 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7309 return p;
|
nuclear@0
|
7310 }
|
nuclear@0
|
7311
|
nuclear@0
|
7312 // WGL_EXT_swap_control
|
nuclear@0
|
7313 BOOL OVR::GLEContext::wglSwapIntervalEXT_Hook(int interval)
|
nuclear@0
|
7314 {
|
nuclear@0
|
7315 BOOL b = FALSE;
|
nuclear@0
|
7316 if(wglSwapIntervalEXT_Impl)
|
nuclear@0
|
7317 b = wglSwapIntervalEXT_Impl(interval);
|
nuclear@0
|
7318 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7319 return b;
|
nuclear@0
|
7320 }
|
nuclear@0
|
7321
|
nuclear@0
|
7322 int OVR::GLEContext::wglGetSwapIntervalEXT_Hook()
|
nuclear@0
|
7323 {
|
nuclear@0
|
7324 int i = 0;
|
nuclear@0
|
7325 if(wglGetSwapIntervalEXT_Impl)
|
nuclear@0
|
7326 i = wglGetSwapIntervalEXT_Impl();
|
nuclear@0
|
7327 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7328 return i;
|
nuclear@0
|
7329 }
|
nuclear@0
|
7330
|
nuclear@0
|
7331 // WGL_OML_sync_control
|
nuclear@0
|
7332 BOOL OVR::GLEContext::wglGetSyncValuesOML_Hook(HDC hdc, INT64 *ust, INT64 *msc, INT64 *sbc)
|
nuclear@0
|
7333 {
|
nuclear@0
|
7334 BOOL b = FALSE;
|
nuclear@0
|
7335 if(wglGetSyncValuesOML_Impl)
|
nuclear@0
|
7336 b = wglGetSyncValuesOML_Impl(hdc, ust, msc, sbc);
|
nuclear@0
|
7337 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7338 return b;
|
nuclear@0
|
7339 }
|
nuclear@0
|
7340
|
nuclear@0
|
7341 BOOL OVR::GLEContext::wglGetMscRateOML_Hook(HDC hdc, INT32 *numerator, INT32 *denominator)
|
nuclear@0
|
7342 {
|
nuclear@0
|
7343 BOOL b = FALSE;
|
nuclear@0
|
7344 if(wglGetMscRateOML_Impl)
|
nuclear@0
|
7345 b = wglGetMscRateOML_Impl(hdc, numerator, denominator);
|
nuclear@0
|
7346 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7347 return b;
|
nuclear@0
|
7348 }
|
nuclear@0
|
7349
|
nuclear@0
|
7350 INT64 OVR::GLEContext::wglSwapBuffersMscOML_Hook(HDC hdc, INT64 target_msc, INT64 divisor, INT64 remainder)
|
nuclear@0
|
7351 {
|
nuclear@0
|
7352 INT64 i = 0;
|
nuclear@0
|
7353 if(wglSwapBuffersMscOML_Impl)
|
nuclear@0
|
7354 i = wglSwapBuffersMscOML_Impl(hdc, target_msc, divisor, remainder);
|
nuclear@0
|
7355 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7356 return i;
|
nuclear@0
|
7357 }
|
nuclear@0
|
7358
|
nuclear@0
|
7359 INT64 OVR::GLEContext::wglSwapLayerBuffersMscOML_Hook(HDC hdc, int fuPlanes, INT64 target_msc, INT64 divisor, INT64 remainder)
|
nuclear@0
|
7360 {
|
nuclear@0
|
7361 INT64 i = 0;
|
nuclear@0
|
7362 if(wglSwapLayerBuffersMscOML_Impl)
|
nuclear@0
|
7363 i = wglSwapLayerBuffersMscOML_Impl(hdc, fuPlanes, target_msc, divisor, remainder);
|
nuclear@0
|
7364 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7365 return i;
|
nuclear@0
|
7366 }
|
nuclear@0
|
7367
|
nuclear@0
|
7368 BOOL OVR::GLEContext::wglWaitForMscOML_Hook(HDC hdc, INT64 target_msc, INT64 divisor, INT64 remainder, INT64 *ust, INT64 *msc, INT64 *sbc)
|
nuclear@0
|
7369 {
|
nuclear@0
|
7370 BOOL b = FALSE;
|
nuclear@0
|
7371 if(wglWaitForMscOML_Impl)
|
nuclear@0
|
7372 b = wglWaitForMscOML_Impl(hdc, target_msc, divisor, remainder, ust, msc, sbc);
|
nuclear@0
|
7373 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7374 return b;
|
nuclear@0
|
7375 }
|
nuclear@0
|
7376
|
nuclear@0
|
7377 BOOL OVR::GLEContext::wglWaitForSbcOML_Hook(HDC hdc, INT64 target_sbc, INT64 *ust, INT64 *msc, INT64 *sbc)
|
nuclear@0
|
7378 {
|
nuclear@0
|
7379 BOOL b = FALSE;
|
nuclear@0
|
7380 if(wglWaitForSbcOML_Impl)
|
nuclear@0
|
7381 b = wglWaitForSbcOML_Impl(hdc, target_sbc, ust, msc, sbc);
|
nuclear@0
|
7382 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7383 return b;
|
nuclear@0
|
7384 }
|
nuclear@0
|
7385
|
nuclear@0
|
7386 // WGL_NV_video_output
|
nuclear@0
|
7387 BOOL OVR::GLEContext::wglGetVideoDeviceNV_Hook(HDC hDC, int numDevices, HPVIDEODEV *hVideoDevice)
|
nuclear@0
|
7388 {
|
nuclear@0
|
7389 BOOL b = FALSE;
|
nuclear@0
|
7390 if(wglGetVideoDeviceNV_Impl)
|
nuclear@0
|
7391 b = wglGetVideoDeviceNV_Impl(hDC, numDevices, hVideoDevice);
|
nuclear@0
|
7392 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7393 return b;
|
nuclear@0
|
7394 }
|
nuclear@0
|
7395
|
nuclear@0
|
7396 BOOL OVR::GLEContext::wglReleaseVideoDeviceNV_Hook(HPVIDEODEV hVideoDevice)
|
nuclear@0
|
7397 {
|
nuclear@0
|
7398 BOOL b = FALSE;
|
nuclear@0
|
7399 if(wglReleaseVideoDeviceNV_Impl)
|
nuclear@0
|
7400 b = wglReleaseVideoDeviceNV_Impl(hVideoDevice);
|
nuclear@0
|
7401 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7402 return b;
|
nuclear@0
|
7403 }
|
nuclear@0
|
7404
|
nuclear@0
|
7405 BOOL OVR::GLEContext::wglBindVideoImageNV_Hook(HPVIDEODEV hVideoDevice, HPBUFFERARB hPbuffer, int iVideoBuffer)
|
nuclear@0
|
7406 {
|
nuclear@0
|
7407 BOOL b = FALSE;
|
nuclear@0
|
7408 if(wglBindVideoImageNV_Impl)
|
nuclear@0
|
7409 b = wglBindVideoImageNV_Impl(hVideoDevice, hPbuffer, iVideoBuffer);
|
nuclear@0
|
7410 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7411 return b;
|
nuclear@0
|
7412 }
|
nuclear@0
|
7413
|
nuclear@0
|
7414 BOOL OVR::GLEContext::wglReleaseVideoImageNV_Hook(HPBUFFERARB hPbuffer, int iVideoBuffer)
|
nuclear@0
|
7415 {
|
nuclear@0
|
7416 BOOL b = FALSE;
|
nuclear@0
|
7417 if(wglReleaseVideoImageNV_Impl)
|
nuclear@0
|
7418 b = wglReleaseVideoImageNV_Impl(hPbuffer, iVideoBuffer);
|
nuclear@0
|
7419 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7420 return b;
|
nuclear@0
|
7421 }
|
nuclear@0
|
7422
|
nuclear@0
|
7423 BOOL OVR::GLEContext::wglSendPbufferToVideoNV_Hook(HPBUFFERARB hPbuffer, int iBufferType, unsigned long *pulCounterPbuffer, BOOL bBlock)
|
nuclear@0
|
7424 {
|
nuclear@0
|
7425 BOOL b = FALSE;
|
nuclear@0
|
7426 if(wglSendPbufferToVideoNV_Impl)
|
nuclear@0
|
7427 b = wglSendPbufferToVideoNV_Impl(hPbuffer, iBufferType, pulCounterPbuffer, bBlock);
|
nuclear@0
|
7428 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7429 return b;
|
nuclear@0
|
7430 }
|
nuclear@0
|
7431
|
nuclear@0
|
7432 BOOL OVR::GLEContext::wglGetVideoInfoNV_Hook(HPVIDEODEV hpVideoDevice, unsigned long *pulCounterOutputPbuffer, unsigned long *pulCounterOutputVideo)
|
nuclear@0
|
7433 {
|
nuclear@0
|
7434 BOOL b = FALSE;
|
nuclear@0
|
7435 if(wglGetVideoInfoNV_Impl)
|
nuclear@0
|
7436 b = wglGetVideoInfoNV_Impl(hpVideoDevice, pulCounterOutputPbuffer, pulCounterOutputVideo);
|
nuclear@0
|
7437 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7438 return b;
|
nuclear@0
|
7439 }
|
nuclear@0
|
7440
|
nuclear@0
|
7441 // WGL_NV_swap_group
|
nuclear@0
|
7442 BOOL OVR::GLEContext::wglJoinSwapGroupNV_Hook(HDC hDC, GLuint group)
|
nuclear@0
|
7443 {
|
nuclear@0
|
7444 BOOL b = FALSE;
|
nuclear@0
|
7445 if(wglJoinSwapGroupNV_Impl)
|
nuclear@0
|
7446 b = wglJoinSwapGroupNV_Impl(hDC, group);
|
nuclear@0
|
7447 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7448 return b;
|
nuclear@0
|
7449 }
|
nuclear@0
|
7450
|
nuclear@0
|
7451 BOOL OVR::GLEContext::wglBindSwapBarrierNV_Hook(GLuint group, GLuint barrier)
|
nuclear@0
|
7452 {
|
nuclear@0
|
7453 BOOL b = FALSE;
|
nuclear@0
|
7454 if(wglBindSwapBarrierNV_Impl)
|
nuclear@0
|
7455 b = wglBindSwapBarrierNV_Impl(group, barrier);
|
nuclear@0
|
7456 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7457 return b;
|
nuclear@0
|
7458 }
|
nuclear@0
|
7459
|
nuclear@0
|
7460 BOOL OVR::GLEContext::wglQuerySwapGroupNV_Hook(HDC hDC, GLuint *group, GLuint *barrier)
|
nuclear@0
|
7461 {
|
nuclear@0
|
7462 BOOL b = FALSE;
|
nuclear@0
|
7463 if(wglQuerySwapGroupNV_Impl)
|
nuclear@0
|
7464 b = wglQuerySwapGroupNV_Impl(hDC, group, barrier);
|
nuclear@0
|
7465 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7466 return b;
|
nuclear@0
|
7467 }
|
nuclear@0
|
7468
|
nuclear@0
|
7469 BOOL OVR::GLEContext::wglQueryMaxSwapGroupsNV_Hook(HDC hDC, GLuint *maxGroups, GLuint *maxBarriers)
|
nuclear@0
|
7470 {
|
nuclear@0
|
7471 BOOL b = FALSE;
|
nuclear@0
|
7472 if(wglQueryMaxSwapGroupsNV_Impl)
|
nuclear@0
|
7473 b = wglQueryMaxSwapGroupsNV_Impl(hDC, maxGroups, maxBarriers);
|
nuclear@0
|
7474 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7475 return b;
|
nuclear@0
|
7476 }
|
nuclear@0
|
7477
|
nuclear@0
|
7478 BOOL OVR::GLEContext::wglQueryFrameCountNV_Hook(HDC hDC, GLuint *count)
|
nuclear@0
|
7479 {
|
nuclear@0
|
7480 BOOL b = FALSE;
|
nuclear@0
|
7481 if(wglQueryFrameCountNV_Impl)
|
nuclear@0
|
7482 b = wglQueryFrameCountNV_Impl(hDC, count);
|
nuclear@0
|
7483 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7484 return b;
|
nuclear@0
|
7485 }
|
nuclear@0
|
7486
|
nuclear@0
|
7487 BOOL OVR::GLEContext::wglResetFrameCountNV_Hook(HDC hDC)
|
nuclear@0
|
7488 {
|
nuclear@0
|
7489 BOOL b = FALSE;
|
nuclear@0
|
7490 if(wglResetFrameCountNV_Impl)
|
nuclear@0
|
7491 b = wglResetFrameCountNV_Impl(hDC);
|
nuclear@0
|
7492 PostHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7493 return b;
|
nuclear@0
|
7494 }
|
nuclear@0
|
7495
|
nuclear@0
|
7496 // WGL_NV_video_capture
|
nuclear@0
|
7497 BOOL OVR::GLEContext::wglBindVideoCaptureDeviceNV_Hook(UINT uVideoSlot, HVIDEOINPUTDEVICENV hDevice)
|
nuclear@0
|
7498 {
|
nuclear@0
|
7499 BOOL b = FALSE;
|
nuclear@0
|
7500 if(wglBindVideoCaptureDeviceNV_Impl)
|
nuclear@0
|
7501 b = wglBindVideoCaptureDeviceNV_Impl(uVideoSlot, hDevice);
|
nuclear@0
|
7502 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7503 return b;
|
nuclear@0
|
7504 }
|
nuclear@0
|
7505
|
nuclear@0
|
7506 UINT OVR::GLEContext::wglEnumerateVideoCaptureDevicesNV_Hook(HDC hDc, HVIDEOINPUTDEVICENV *phDeviceList)
|
nuclear@0
|
7507 {
|
nuclear@0
|
7508 UINT u = 0;
|
nuclear@0
|
7509 if(wglEnumerateVideoCaptureDevicesNV_Impl)
|
nuclear@0
|
7510 u = wglEnumerateVideoCaptureDevicesNV_Impl(hDc, phDeviceList);
|
nuclear@0
|
7511 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7512 return u;
|
nuclear@0
|
7513 }
|
nuclear@0
|
7514
|
nuclear@0
|
7515 BOOL OVR::GLEContext::wglLockVideoCaptureDeviceNV_Hook(HDC hDc, HVIDEOINPUTDEVICENV hDevice)
|
nuclear@0
|
7516 {
|
nuclear@0
|
7517 BOOL b = FALSE;
|
nuclear@0
|
7518 if(wglLockVideoCaptureDeviceNV_Impl)
|
nuclear@0
|
7519 b = wglLockVideoCaptureDeviceNV_Impl(hDc, hDevice);
|
nuclear@0
|
7520 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7521 return b;
|
nuclear@0
|
7522 }
|
nuclear@0
|
7523
|
nuclear@0
|
7524 BOOL OVR::GLEContext::wglQueryVideoCaptureDeviceNV_Hook(HDC hDc, HVIDEOINPUTDEVICENV hDevice, int iAttribute, int *piValue)
|
nuclear@0
|
7525 {
|
nuclear@0
|
7526 BOOL b = FALSE;
|
nuclear@0
|
7527 if(wglQueryVideoCaptureDeviceNV_Impl)
|
nuclear@0
|
7528 b = wglQueryVideoCaptureDeviceNV_Impl(hDc, hDevice, iAttribute, piValue);
|
nuclear@0
|
7529 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7530 return b;
|
nuclear@0
|
7531 }
|
nuclear@0
|
7532
|
nuclear@0
|
7533 BOOL OVR::GLEContext::wglReleaseVideoCaptureDeviceNV_Hook(HDC hDc, HVIDEOINPUTDEVICENV hDevice)
|
nuclear@0
|
7534 {
|
nuclear@0
|
7535 BOOL b = FALSE;
|
nuclear@0
|
7536 if(wglReleaseVideoCaptureDeviceNV_Impl)
|
nuclear@0
|
7537 b = wglReleaseVideoCaptureDeviceNV_Impl(hDc, hDevice);
|
nuclear@0
|
7538 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7539 return b;
|
nuclear@0
|
7540 }
|
nuclear@0
|
7541
|
nuclear@0
|
7542 // WGL_NV_copy_image
|
nuclear@0
|
7543 BOOL OVR::GLEContext::wglCopyImageSubDataNV_Hook(HGLRC hSrcRC, GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, HGLRC hDstRC,
|
nuclear@0
|
7544 GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei width, GLsizei height, GLsizei depth)
|
nuclear@0
|
7545 {
|
nuclear@0
|
7546 BOOL b = FALSE;
|
nuclear@0
|
7547 if(wglCopyImageSubDataNV_Impl)
|
nuclear@0
|
7548 b = wglCopyImageSubDataNV_Impl(hSrcRC, srcName, srcTarget, srcLevel, srcX, srcY, srcZ, hDstRC, dstName, dstTarget, dstLevel, dstX, dstY, dstZ, width, height, depth);
|
nuclear@0
|
7549 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7550 return b;
|
nuclear@0
|
7551 }
|
nuclear@0
|
7552
|
nuclear@0
|
7553 // WGL_NV_DX_interop
|
nuclear@0
|
7554 BOOL OVR::GLEContext::wglDXSetResourceShareHandleNV_Hook(void *dxObject, HANDLE shareHandle)
|
nuclear@0
|
7555 {
|
nuclear@0
|
7556 BOOL b = FALSE;
|
nuclear@0
|
7557 if(wglDXSetResourceShareHandleNV_Impl)
|
nuclear@0
|
7558 b = wglDXSetResourceShareHandleNV_Impl(dxObject, shareHandle);
|
nuclear@0
|
7559 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7560 return b;
|
nuclear@0
|
7561 }
|
nuclear@0
|
7562
|
nuclear@0
|
7563 HANDLE OVR::GLEContext::wglDXOpenDeviceNV_Hook(void *dxDevice)
|
nuclear@0
|
7564 {
|
nuclear@0
|
7565 HANDLE h = NULL;
|
nuclear@0
|
7566 if(wglDXOpenDeviceNV_Impl)
|
nuclear@0
|
7567 h = wglDXOpenDeviceNV_Impl(dxDevice);
|
nuclear@0
|
7568 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7569 return h;
|
nuclear@0
|
7570 }
|
nuclear@0
|
7571
|
nuclear@0
|
7572 BOOL OVR::GLEContext::wglDXCloseDeviceNV_Hook(HANDLE hDevice)
|
nuclear@0
|
7573 {
|
nuclear@0
|
7574 BOOL b = FALSE;
|
nuclear@0
|
7575 if(wglDXCloseDeviceNV_Impl)
|
nuclear@0
|
7576 b = wglDXCloseDeviceNV_Impl(hDevice);
|
nuclear@0
|
7577 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7578 return b;
|
nuclear@0
|
7579 }
|
nuclear@0
|
7580
|
nuclear@0
|
7581 HANDLE OVR::GLEContext::wglDXRegisterObjectNV_Hook(HANDLE hDevice, void *dxObject, GLuint name, GLenum type, GLenum access)
|
nuclear@0
|
7582 {
|
nuclear@0
|
7583 HANDLE h = NULL;
|
nuclear@0
|
7584 if(wglDXRegisterObjectNV_Impl)
|
nuclear@0
|
7585 h = wglDXRegisterObjectNV_Impl(hDevice, dxObject, name, type, access);
|
nuclear@0
|
7586 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7587 return h;
|
nuclear@0
|
7588 }
|
nuclear@0
|
7589
|
nuclear@0
|
7590 BOOL OVR::GLEContext::wglDXUnregisterObjectNV_Hook(HANDLE hDevice, HANDLE hObject)
|
nuclear@0
|
7591 {
|
nuclear@0
|
7592 BOOL b = FALSE;
|
nuclear@0
|
7593 if(wglDXUnregisterObjectNV_Impl)
|
nuclear@0
|
7594 b = wglDXUnregisterObjectNV_Impl(hDevice, hObject);
|
nuclear@0
|
7595 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7596 return b;
|
nuclear@0
|
7597 }
|
nuclear@0
|
7598
|
nuclear@0
|
7599 BOOL OVR::GLEContext::wglDXObjectAccessNV_Hook(HANDLE hObject, GLenum access)
|
nuclear@0
|
7600 {
|
nuclear@0
|
7601 BOOL b = FALSE;
|
nuclear@0
|
7602 if(wglDXObjectAccessNV_Impl)
|
nuclear@0
|
7603 b = wglDXObjectAccessNV_Impl(hObject, access);
|
nuclear@0
|
7604 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7605 return b;
|
nuclear@0
|
7606 }
|
nuclear@0
|
7607
|
nuclear@0
|
7608 BOOL OVR::GLEContext::wglDXLockObjectsNV_Hook(HANDLE hDevice, GLint count, HANDLE *hObjects)
|
nuclear@0
|
7609 {
|
nuclear@0
|
7610 BOOL b = FALSE;
|
nuclear@0
|
7611 if(wglDXLockObjectsNV_Impl)
|
nuclear@0
|
7612 b = wglDXLockObjectsNV_Impl(hDevice, count, hObjects);
|
nuclear@0
|
7613 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7614 return b;
|
nuclear@0
|
7615 }
|
nuclear@0
|
7616
|
nuclear@0
|
7617 BOOL OVR::GLEContext::wglDXUnlockObjectsNV_Hook(HANDLE hDevice, GLint count, HANDLE *hObjects)
|
nuclear@0
|
7618 {
|
nuclear@0
|
7619 BOOL b = FALSE;
|
nuclear@0
|
7620 if(wglDXUnlockObjectsNV_Impl)
|
nuclear@0
|
7621 b = wglDXUnlockObjectsNV_Impl(hDevice, count, hObjects);
|
nuclear@0
|
7622 PostWGLHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7623 return b;
|
nuclear@0
|
7624 }
|
nuclear@0
|
7625
|
nuclear@0
|
7626 #endif // defined(GLE_WGL_ENABLED)
|
nuclear@0
|
7627
|
nuclear@0
|
7628 #if defined(GLE_GLX_ENABLED)
|
nuclear@0
|
7629 void OVR::GLEContext::PostGLXHook(const char* /*function*/)
|
nuclear@0
|
7630 {
|
nuclear@0
|
7631 // Empty for now. GLX functions don't have a function like glGetError().
|
nuclear@0
|
7632 }
|
nuclear@0
|
7633
|
nuclear@0
|
7634 // GLX_VERSION_1_0
|
nuclear@0
|
7635 // GLX_VERSION_1_1
|
nuclear@0
|
7636 // We don't currently implement hooking of these.
|
nuclear@0
|
7637
|
nuclear@0
|
7638 // GLX_VERSION_1_2
|
nuclear@0
|
7639 ::Display* OVR::GLEContext::glXGetCurrentDisplay_Hook(void)
|
nuclear@0
|
7640 {
|
nuclear@0
|
7641 ::Display* p = NULL;
|
nuclear@0
|
7642 if(glXGetCurrentDisplay_Impl)
|
nuclear@0
|
7643 p = glXGetCurrentDisplay_Impl();
|
nuclear@0
|
7644 PostGLXHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7645 return p;
|
nuclear@0
|
7646 }
|
nuclear@0
|
7647
|
nuclear@0
|
7648 // GLX_VERSION_1_3
|
nuclear@0
|
7649 GLXFBConfig* OVR::GLEContext::glXChooseFBConfig_Hook(Display *dpy, int screen, const int *attrib_list, int *nelements)
|
nuclear@0
|
7650 {
|
nuclear@0
|
7651 GLXFBConfig* p = NULL;
|
nuclear@0
|
7652 if(glXChooseFBConfig_Impl)
|
nuclear@0
|
7653 p = glXChooseFBConfig_Impl(dpy, screen, attrib_list, nelements);
|
nuclear@0
|
7654 PostGLXHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7655 return p;
|
nuclear@0
|
7656 }
|
nuclear@0
|
7657
|
nuclear@0
|
7658 GLXContext OVR::GLEContext::glXCreateNewContext_Hook(Display *dpy, GLXFBConfig config, int render_type, GLXContext share_list, Bool direct)
|
nuclear@0
|
7659 {
|
nuclear@0
|
7660 GLXContext c = 0;
|
nuclear@0
|
7661 if(glXCreateNewContext_Impl)
|
nuclear@0
|
7662 c = glXCreateNewContext_Impl(dpy, config, render_type, share_list, direct);
|
nuclear@0
|
7663 PostGLXHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7664 return c;
|
nuclear@0
|
7665 }
|
nuclear@0
|
7666
|
nuclear@0
|
7667 GLXPbuffer OVR::GLEContext::glXCreatePbuffer_Hook(Display *dpy, GLXFBConfig config, const int *attrib_list)
|
nuclear@0
|
7668 {
|
nuclear@0
|
7669 GLXPbuffer b = 0;
|
nuclear@0
|
7670 if(glXCreatePbuffer_Impl)
|
nuclear@0
|
7671 b = glXCreatePbuffer_Impl(dpy, config, attrib_list);
|
nuclear@0
|
7672 PostGLXHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7673 return b;
|
nuclear@0
|
7674 }
|
nuclear@0
|
7675
|
nuclear@0
|
7676 GLXPixmap OVR::GLEContext::glXCreatePixmap_Hook(Display *dpy, GLXFBConfig config, Pixmap pixmap, const int *attrib_list)
|
nuclear@0
|
7677 {
|
nuclear@0
|
7678 GLXPixmap m = 0;
|
nuclear@0
|
7679 if(glXCreatePixmap_Impl)
|
nuclear@0
|
7680 m = glXCreatePixmap_Impl(dpy, config, pixmap, attrib_list);
|
nuclear@0
|
7681 PostGLXHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7682 return m;
|
nuclear@0
|
7683 }
|
nuclear@0
|
7684
|
nuclear@0
|
7685 GLXWindow OVR::GLEContext::glXCreateWindow_Hook(Display *dpy, GLXFBConfig config, Window win, const int *attrib_list)
|
nuclear@0
|
7686 {
|
nuclear@0
|
7687 GLXWindow w = 0;
|
nuclear@0
|
7688 if(glXCreateWindow_Impl)
|
nuclear@0
|
7689 w = glXCreateWindow_Impl(dpy, config, win, attrib_list);
|
nuclear@0
|
7690 PostGLXHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7691 return w;
|
nuclear@0
|
7692 }
|
nuclear@0
|
7693
|
nuclear@0
|
7694 void OVR::GLEContext::glXDestroyPbuffer_Hook(Display *dpy, GLXPbuffer pbuf)
|
nuclear@0
|
7695 {
|
nuclear@0
|
7696 if(glXDestroyPbuffer_Impl)
|
nuclear@0
|
7697 glXDestroyPbuffer_Impl(dpy, pbuf);
|
nuclear@0
|
7698 PostGLXHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7699 }
|
nuclear@0
|
7700
|
nuclear@0
|
7701 void OVR::GLEContext::glXDestroyPixmap_Hook(Display *dpy, GLXPixmap pixmap)
|
nuclear@0
|
7702 {
|
nuclear@0
|
7703 if(glXDestroyPixmap_Impl)
|
nuclear@0
|
7704 glXDestroyPixmap_Impl(dpy, pixmap);
|
nuclear@0
|
7705 PostGLXHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7706 }
|
nuclear@0
|
7707
|
nuclear@0
|
7708 void OVR::GLEContext::glXDestroyWindow_Hook(Display *dpy, GLXWindow win)
|
nuclear@0
|
7709 {
|
nuclear@0
|
7710 if(glXDestroyWindow_Impl)
|
nuclear@0
|
7711 glXDestroyWindow_Impl(dpy, win);
|
nuclear@0
|
7712 PostGLXHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7713 }
|
nuclear@0
|
7714
|
nuclear@0
|
7715 GLXDrawable OVR::GLEContext::glXGetCurrentReadDrawable_Hook(void)
|
nuclear@0
|
7716 {
|
nuclear@0
|
7717 GLXDrawable d;
|
nuclear@0
|
7718 if(glXGetCurrentReadDrawable_Impl)
|
nuclear@0
|
7719 d = glXGetCurrentReadDrawable_Impl();
|
nuclear@0
|
7720 PostGLXHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7721 return d;
|
nuclear@0
|
7722 }
|
nuclear@0
|
7723
|
nuclear@0
|
7724 int OVR::GLEContext::glXGetFBConfigAttrib_Hook(Display *dpy, GLXFBConfig config, int attribute, int *value)
|
nuclear@0
|
7725 {
|
nuclear@0
|
7726 int i = -1;
|
nuclear@0
|
7727 if(glXGetFBConfigAttrib_Impl)
|
nuclear@0
|
7728 i = glXGetFBConfigAttrib_Impl(dpy, config, attribute, value);
|
nuclear@0
|
7729 PostGLXHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7730 return i;
|
nuclear@0
|
7731 }
|
nuclear@0
|
7732
|
nuclear@0
|
7733 GLXFBConfig* OVR::GLEContext::glXGetFBConfigs_Hook(Display *dpy, int screen, int *nelements)
|
nuclear@0
|
7734 {
|
nuclear@0
|
7735 GLXFBConfig* p = NULL;
|
nuclear@0
|
7736 if(glXGetFBConfigs_Impl)
|
nuclear@0
|
7737 p = glXGetFBConfigs_Impl(dpy, screen, nelements);
|
nuclear@0
|
7738 PostGLXHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7739 return p;
|
nuclear@0
|
7740 }
|
nuclear@0
|
7741
|
nuclear@0
|
7742 void OVR::GLEContext::glXGetSelectedEvent_Hook(Display *dpy, GLXDrawable draw, unsigned long *event_mask)
|
nuclear@0
|
7743 {
|
nuclear@0
|
7744 if(glXGetSelectedEvent_Impl)
|
nuclear@0
|
7745 glXGetSelectedEvent_Impl(dpy, draw, event_mask);
|
nuclear@0
|
7746 PostGLXHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7747 }
|
nuclear@0
|
7748
|
nuclear@0
|
7749 XVisualInfo* OVR::GLEContext::glXGetVisualFromFBConfig_Hook(Display *dpy, GLXFBConfig config)
|
nuclear@0
|
7750 {
|
nuclear@0
|
7751 XVisualInfo* p = NULL;
|
nuclear@0
|
7752 if(glXGetVisualFromFBConfig_Impl)
|
nuclear@0
|
7753 p = glXGetVisualFromFBConfig_Impl(dpy, config);
|
nuclear@0
|
7754 PostGLXHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7755 return p;
|
nuclear@0
|
7756 }
|
nuclear@0
|
7757
|
nuclear@0
|
7758 Bool OVR::GLEContext::glXMakeContextCurrent_Hook(Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx)
|
nuclear@0
|
7759 {
|
nuclear@0
|
7760 Bool b = False;
|
nuclear@0
|
7761 if(glXMakeContextCurrent_Impl)
|
nuclear@0
|
7762 b = glXMakeContextCurrent_Impl(dpy, draw, read, ctx);
|
nuclear@0
|
7763 PostGLXHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7764 return b;
|
nuclear@0
|
7765 }
|
nuclear@0
|
7766
|
nuclear@0
|
7767 int OVR::GLEContext::glXQueryContext_Hook(Display *dpy, GLXContext ctx, int attribute, int *value)
|
nuclear@0
|
7768 {
|
nuclear@0
|
7769 int i = GLX_BAD_ATTRIBUTE;
|
nuclear@0
|
7770 if(glXQueryContext_Impl)
|
nuclear@0
|
7771 i = glXQueryContext_Impl(dpy, ctx, attribute, value);
|
nuclear@0
|
7772 PostGLXHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7773 return i;
|
nuclear@0
|
7774 }
|
nuclear@0
|
7775
|
nuclear@0
|
7776 void OVR::GLEContext::glXQueryDrawable_Hook(Display *dpy, GLXDrawable draw, int attribute, unsigned int *value)
|
nuclear@0
|
7777 {
|
nuclear@0
|
7778 if(glXQueryDrawable_Impl)
|
nuclear@0
|
7779 glXQueryDrawable_Impl(dpy, draw, attribute, value);
|
nuclear@0
|
7780 PostGLXHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7781 }
|
nuclear@0
|
7782
|
nuclear@0
|
7783 void OVR::GLEContext::glXSelectEvent_Hook(Display *dpy, GLXDrawable draw, unsigned long event_mask)
|
nuclear@0
|
7784 {
|
nuclear@0
|
7785 if(glXSelectEvent_Impl)
|
nuclear@0
|
7786 glXSelectEvent_Impl(dpy, draw, event_mask);
|
nuclear@0
|
7787 PostGLXHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7788 }
|
nuclear@0
|
7789
|
nuclear@0
|
7790 // GLX_VERSION_1_4
|
nuclear@0
|
7791 // We don't do hooking of this.
|
nuclear@0
|
7792
|
nuclear@0
|
7793 // GLX_ARB_create_context
|
nuclear@0
|
7794 GLXContext OVR::GLEContext::glXCreateContextAttribsARB_Hook(Display* dpy, GLXFBConfig config, GLXContext share_context, Bool direct, const int *attrib_list)
|
nuclear@0
|
7795 {
|
nuclear@0
|
7796 GLXContext c = 0;
|
nuclear@0
|
7797 if(glXCreateContextAttribsARB_Impl)
|
nuclear@0
|
7798 c = glXCreateContextAttribsARB_Impl(dpy, config, share_context, direct, attrib_list);
|
nuclear@0
|
7799 PostGLXHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7800 return c;
|
nuclear@0
|
7801 }
|
nuclear@0
|
7802
|
nuclear@0
|
7803 // GLX_EXT_swap_control
|
nuclear@0
|
7804 void OVR::GLEContext::glXSwapIntervalEXT_Hook(Display* dpy, GLXDrawable drawable, int interval)
|
nuclear@0
|
7805 {
|
nuclear@0
|
7806 if(glXSwapIntervalEXT_Impl)
|
nuclear@0
|
7807 glXSwapIntervalEXT_Impl(dpy, drawable, interval);
|
nuclear@0
|
7808 PostGLXHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7809 }
|
nuclear@0
|
7810
|
nuclear@0
|
7811 // GLX_OML_sync_control
|
nuclear@0
|
7812 Bool OVR::GLEContext::glXGetMscRateOML_Hook(Display* dpy, GLXDrawable drawable, int32_t* numerator, int32_t* denominator)
|
nuclear@0
|
7813 {
|
nuclear@0
|
7814 Bool b = False;
|
nuclear@0
|
7815 if(glXGetMscRateOML_Impl)
|
nuclear@0
|
7816 b = glXGetMscRateOML_Impl(dpy, drawable, numerator, denominator);
|
nuclear@0
|
7817 PostGLXHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7818 return b;
|
nuclear@0
|
7819 }
|
nuclear@0
|
7820
|
nuclear@0
|
7821 Bool OVR::GLEContext::glXGetSyncValuesOML_Hook(Display* dpy, GLXDrawable drawable, int64_t* ust, int64_t* msc, int64_t* sbc)
|
nuclear@0
|
7822 {
|
nuclear@0
|
7823 Bool b = False;
|
nuclear@0
|
7824 if(glXGetSyncValuesOML_Impl)
|
nuclear@0
|
7825 b = glXGetSyncValuesOML_Impl(dpy, drawable, ust, msc, sbc);
|
nuclear@0
|
7826 PostGLXHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7827 return b;
|
nuclear@0
|
7828 }
|
nuclear@0
|
7829
|
nuclear@0
|
7830 int64_t OVR::GLEContext::glXSwapBuffersMscOML_Hook(Display* dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder)
|
nuclear@0
|
7831 {
|
nuclear@0
|
7832 int64_t i = 0;
|
nuclear@0
|
7833 if(glXSwapBuffersMscOML_Impl)
|
nuclear@0
|
7834 i = glXSwapBuffersMscOML_Impl(dpy, drawable, target_msc, divisor, remainder);
|
nuclear@0
|
7835 PostGLXHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7836 return i;
|
nuclear@0
|
7837 }
|
nuclear@0
|
7838
|
nuclear@0
|
7839 Bool OVR::GLEContext::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)
|
nuclear@0
|
7840 {
|
nuclear@0
|
7841 Bool b = False;
|
nuclear@0
|
7842 if(glXWaitForMscOML_Impl)
|
nuclear@0
|
7843 b = glXWaitForMscOML_Impl(dpy, drawable, target_msc, divisor, remainder, ust, msc, sbc);
|
nuclear@0
|
7844 PostGLXHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7845 return b;
|
nuclear@0
|
7846 }
|
nuclear@0
|
7847
|
nuclear@0
|
7848 Bool OVR::GLEContext::glXWaitForSbcOML_Hook(Display* dpy, GLXDrawable drawable, int64_t target_sbc, int64_t* ust, int64_t* msc, int64_t* sbc)
|
nuclear@0
|
7849 {
|
nuclear@0
|
7850 Bool b = False;
|
nuclear@0
|
7851 if(glXWaitForSbcOML_Impl)
|
nuclear@0
|
7852 b = glXWaitForSbcOML_Impl(dpy, drawable, target_sbc, ust, msc, sbc);
|
nuclear@0
|
7853 PostGLXHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7854 return b;
|
nuclear@0
|
7855 }
|
nuclear@0
|
7856
|
nuclear@0
|
7857 // GLX_MESA_swap_control
|
nuclear@0
|
7858 int OVR::GLEContext::glXGetSwapIntervalMESA_Hook()
|
nuclear@0
|
7859 {
|
nuclear@0
|
7860 int i = 0;
|
nuclear@0
|
7861 if(glXGetSwapIntervalMESA_Impl)
|
nuclear@0
|
7862 i = glXGetSwapIntervalMESA_Impl();
|
nuclear@0
|
7863 PostGLXHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7864 return i;
|
nuclear@0
|
7865 }
|
nuclear@0
|
7866
|
nuclear@0
|
7867
|
nuclear@0
|
7868 int OVR::GLEContext::glXSwapIntervalMESA_Hook(unsigned int interval)
|
nuclear@0
|
7869 {
|
nuclear@0
|
7870 int i = 0;
|
nuclear@0
|
7871 if(glXSwapIntervalMESA_Impl)
|
nuclear@0
|
7872 i = glXSwapIntervalMESA_Impl(interval);
|
nuclear@0
|
7873 PostGLXHook(GLE_CURRENT_FUNCTION);
|
nuclear@0
|
7874 return i;
|
nuclear@0
|
7875 }
|
nuclear@0
|
7876
|
nuclear@0
|
7877 #endif // defined(GLE_GLX_ENABLED)
|
nuclear@0
|
7878
|
nuclear@0
|
7879 #endif // GLE_HOOKING_ENABLED
|
nuclear@0
|
7880
|
nuclear@0
|
7881 //} // namespace OVR
|
nuclear@0
|
7882
|
nuclear@0
|
7883
|
nuclear@0
|
7884
|