0027354: Visualization: TKOpenGl - OpenGl_TextureBufferArb API should be extended
[occt.git] / src / OpenGl / OpenGl_GlFunctions.hxx
CommitLineData
01ca42b2 1// Created on: 2014-03-17
2// Created by: Kirill GAVRILOV
3// Copyright (c) 2014 OPEN CASCADE SAS
4//
5// This file is part of Open CASCADE Technology software library.
6//
7// This library is free software; you can redistribute it and/or modify it under
8// the terms of the GNU Lesser General Public License version 2.1 as published
9// by the Free Software Foundation, with special exception defined in the file
10// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11// distribution for complete text of the license and disclaimer of any warranty.
12//
13// Alternatively, this file may be used under the terms of Open CASCADE
14// commercial license or contractual agreement.
15
16#ifndef _OpenGl_GlFunctions_Header
17#define _OpenGl_GlFunctions_Header
18
19// required for correct APIENTRY definition
20#if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__)
21 #define WIN32_LEAN_AND_MEAN
22 #include <windows.h>
23#endif
24
25#ifndef APIENTRY
26 #define APIENTRY
27#endif
28#ifndef APIENTRYP
29 #define APIENTRYP APIENTRY *
30#endif
31#ifndef GLAPI
32 #define GLAPI extern
33#endif
34
35// exclude modern definitions and system-provided glext.h, should be defined before gl.h inclusion
36#define GL_GLEXT_LEGACY
00ea319b 37#define GLX_GLXEXT_LEGACY
01ca42b2 38
39// include main OpenGL header provided with system
40#if defined(__APPLE__)
a2e4f780 41 #import <TargetConditionals.h>
42 #if defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE
43 #include <OpenGLES/ES2/gl.h>
44 #else
45 #include <OpenGL/gl.h>
a2e4f780 46 #endif
01ca42b2 47 #define __X_GL_H // prevent chaotic gl.h inclusions to avoid compile errors
d8d01f6e 48#elif defined(HAVE_GLES2) || defined(__ANDROID__) || defined(__QNX__)
ca3c13d1 49 #include <GLES2/gl2.h>
50 //#include <GLES3/gl3.h>
a2e4f780 51#else
52 #include <GL/gl.h>
a2e4f780 53#endif
ca3c13d1 54
a2e4f780 55#if defined(GL_ES_VERSION_2_0)
56 // define items to unify code paths with desktop OpenGL
ca3c13d1 57 typedef double GLdouble;
58 typedef double GLclampd;
25ef750e 59 typedef uint64_t GLuint64;
ca3c13d1 60 #define GL_NONE 0
61
62 // OpenGL ES 3.0+ or GL_OES_element_index_uint extension
63 #define GL_UNSIGNED_INT 0x1405
64
3c4b62a4 65 // OpenGL ES 3.1+
66 #define GL_TEXTURE_2D_MULTISAMPLE 0x9100
67 #define GL_MAX_SAMPLES 0x8D57
68
20aeeb7b 69 // OpenGL ES 3.2+ or GL_EXT_texture_buffer for OpenGL ES 3.1+
70 #define GL_TEXTURE_BUFFER 0x8C2A
71
ca3c13d1 72 // in core since OpenGL ES 3.0, extension GL_EXT_texture_rg
73 #define GL_RED 0x1903
74 #define GL_R8 0x8229
75 // in core since OpenGL ES 3.0, extension GL_OES_rgb8_rgba8
76 #define GL_RGB8 0x8051
77 #define GL_RGBA8 0x8058
bbe97edd 78 #define GL_LUMINANCE8 0x8040
ca3c13d1 79 // GL_EXT_texture_format_BGRA8888
80 #define GL_BGRA_EXT 0x80E1 // same as GL_BGRA on desktop
81
82 #define GL_R16 0x822A
83 #define GL_R16F 0x822D
84 #define GL_R32F 0x822E
85 #define GL_RGB16F 0x881B
86 #define GL_RGBA32F 0x8814
87 #define GL_RGB32F 0x8815
88 #define GL_RGBA16F 0x881A
89 #define GL_RGB16F 0x881B
90 #define GL_RGB4 0x804F
91 #define GL_RGB5 0x8050
92 #define GL_RGB8 0x8051
93 #define GL_RGB10 0x8052
94 #define GL_RGB12 0x8053
95 #define GL_RGB16 0x8054
96 #define GL_RGBA8 0x8058
97 #define GL_RGB10_A2 0x8059
98 #define GL_RGBA12 0x805A
99 #define GL_RGBA16 0x805B
100 #define GL_ALPHA8 0x803C
101 #define GL_ALPHA16 0x803E
102
103 #define GL_RG 0x8227
104 #define GL_RG8 0x822B
105 #define GL_RG16 0x822C
106 #define GL_RG16F 0x822F
107 #define GL_RG32F 0x8230
108
df45f8db 109 #define GL_R8I 0x8231
110 #define GL_R8UI 0x8232
111 #define GL_R16I 0x8233
112 #define GL_R16UI 0x8234
20aeeb7b 113 #define GL_R32I 0x8235
df45f8db 114 #define GL_R32UI 0x8236
115 #define GL_RG8I 0x8237
116 #define GL_RG8UI 0x8238
117 #define GL_RG16I 0x8239
118 #define GL_RG16UI 0x823A
20aeeb7b 119 #define GL_RG32I 0x823B
df45f8db 120 #define GL_RG32UI 0x823C
121 #define GL_RGBA32UI 0x8D70
122 #define GL_RGB32UI 0x8D71
123 #define GL_RGBA16UI 0x8D76
124 #define GL_RGB16UI 0x8D77
125 #define GL_RGBA8UI 0x8D7C
126 #define GL_RGB8UI 0x8D7D
20aeeb7b 127 #define GL_RGBA32I 0x8D82
df45f8db 128 #define GL_RGB32I 0x8D83
129 #define GL_RGBA16I 0x8D88
130 #define GL_RGB16I 0x8D89
131 #define GL_RGBA8I 0x8D8E
132 #define GL_RGB8I 0x8D8F
20aeeb7b 133
ca3c13d1 134 // GL_OES_packed_depth_stencil
135 #define GL_DEPTH_STENCIL 0x84F9
136 #define GL_UNSIGNED_INT_24_8 0x84FA
137 #define GL_DEPTH24_STENCIL8 0x88F0
138
3c4b62a4 139 // OpenGL ES 3.0+
2e26cf76 140 #define GL_DEPTH_COMPONENT24 0x81A6
3c4b62a4 141 #define GL_DEPTH_COMPONENT32F 0x8CAC
142 #define GL_DEPTH32F_STENCIL8 0x8CAD
143 #define GL_FLOAT_32_UNSIGNED_INT_24_8_REV 0x8DAD
144
b86bb3df 145 #define GL_READ_FRAMEBUFFER 0x8CA8
146 #define GL_DRAW_FRAMEBUFFER 0x8CA9
147
74fb257d 148 #define GL_TEXTURE_3D 0x806F
149 #define GL_TEXTURE_WRAP_R 0x8072
150
ca3c13d1 151 // GL_EXT_texture_filter_anisotropic
152 #define GL_TEXTURE_MAX_ANISOTROPY_EXT 0x84FE
153 #define GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT 0x84FF
154
155 // debug ARB extension
3b523c4c 156 #define GL_DEBUG_OUTPUT_SYNCHRONOUS 0x8242
157 #define GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH 0x8243
158 #define GL_DEBUG_CALLBACK_FUNCTION 0x8244
159 #define GL_DEBUG_CALLBACK_USER_PARAM 0x8245
160 #define GL_DEBUG_SOURCE_API 0x8246
161 #define GL_DEBUG_SOURCE_WINDOW_SYSTEM 0x8247
162 #define GL_DEBUG_SOURCE_SHADER_COMPILER 0x8248
163 #define GL_DEBUG_SOURCE_THIRD_PARTY 0x8249
164 #define GL_DEBUG_SOURCE_APPLICATION 0x824A
165 #define GL_DEBUG_SOURCE_OTHER 0x824B
166 #define GL_DEBUG_TYPE_ERROR 0x824C
167 #define GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR 0x824D
168 #define GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR 0x824E
169 #define GL_DEBUG_TYPE_PORTABILITY 0x824F
170 #define GL_DEBUG_TYPE_PERFORMANCE 0x8250
171 #define GL_DEBUG_TYPE_OTHER 0x8251
172 #define GL_MAX_DEBUG_MESSAGE_LENGTH 0x9143
173 #define GL_MAX_DEBUG_LOGGED_MESSAGES 0x9144
174 #define GL_DEBUG_LOGGED_MESSAGES 0x9145
175 #define GL_DEBUG_SEVERITY_HIGH 0x9146
176 #define GL_DEBUG_SEVERITY_MEDIUM 0x9147
177 #define GL_DEBUG_SEVERITY_LOW 0x9148
01ca42b2 178#endif
179
d8d01f6e 180#if defined(__ANDROID__) || defined(__QNX__)
da8bb41d 181 #define HAVE_EGL
182#endif
183
01ca42b2 184#include <InterfaceGraphic.hxx>
185#include <InterfaceGraphic_tgl_all.hxx>
186#include <InterfaceGraphic_telem.hxx>
187
188// GL version can be defined by system gl.h header
ca3c13d1 189#if !defined(GL_ES_VERSION_2_0)
190 #undef GL_VERSION_1_2
191 #undef GL_VERSION_1_3
192 #undef GL_VERSION_1_4
193 #undef GL_VERSION_1_5
194 #undef GL_VERSION_2_0
195 #undef GL_VERSION_2_1
196 #undef GL_VERSION_3_0
197 #undef GL_VERSION_3_1
198 #undef GL_VERSION_3_2
199 #undef GL_VERSION_3_3
200 #undef GL_VERSION_4_0
201 #undef GL_VERSION_4_1
202 #undef GL_VERSION_4_2
203 #undef GL_VERSION_4_3
204 #undef GL_VERSION_4_4
00ea319b 205 #undef GL_VERSION_4_5
ca3c13d1 206
207 // include glext.h provided by Khronos group
208 #include <glext.h>
209#endif
01ca42b2 210
211//! Mega structure defines the complete list of OpenGL functions.
212struct OpenGl_GlFunctions
213{
214
ca3c13d1 215public: //! @name OpenGL ES 1.1
216
217#if defined(GL_ES_VERSION_2_0)
218
219 inline void glActiveTexture (GLenum texture)
220 {
221 ::glActiveTexture (texture);
222 }
223
224 inline void glCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data)
225 {
226 ::glCompressedTexImage2D (target, level, internalformat, width, height, border, imageSize, data);
227 }
228
229 inline void glCompressedTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data)
230 {
231 ::glCompressedTexSubImage2D (target, level, xoffset, yoffset, width, height, format, imageSize, data);
232 }
233
234 inline void glBindBuffer (GLenum target, GLuint buffer)
235 {
236 ::glBindBuffer (target, buffer);
237 }
238
239 inline void glBufferData (GLenum target, GLsizeiptr size, const void* data, GLenum usage)
240 {
241 ::glBufferData (target, size, data, usage);
242 }
243
244 inline void glBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, const void* data)
245 {
246 ::glBufferSubData (target, offset, size, data);
247 }
248
249 inline void glDeleteBuffers (GLsizei n, const GLuint *buffers)
250 {
251 ::glDeleteBuffers (n, buffers);
252 }
253
254 inline void glDeleteTextures (GLsizei n, const GLuint *textures)
255 {
256 ::glDeleteTextures (n, textures);
257 }
258
259 inline void glDepthFunc (GLenum func)
260 {
261 ::glDepthFunc (func);
262 }
263
264 inline void glDepthMask (GLboolean flag)
265 {
266 ::glDepthMask (flag);
267 }
268
269 inline void glDepthRangef (GLfloat n, GLfloat f)
270 {
271 ::glDepthRangef (n, f);
272 }
273
274 inline void glGenBuffers (GLsizei n, GLuint *buffers)
275 {
276 ::glGenBuffers (n, buffers);
277 }
278
279 inline void glGenTextures (GLsizei n, GLuint *textures)
280 {
281 ::glGenTextures (n, textures);
282 }
283
284 inline void glGetBufferParameteriv (GLenum target, GLenum pname, GLint* params)
285 {
286 ::glGetBufferParameteriv (target, pname, params);
287 }
288
289 inline GLboolean glIsBuffer (GLuint buffer)
290 {
291 return ::glIsBuffer (buffer);
292 }
293
294 inline void glSampleCoverage (GLfloat value, GLboolean invert)
295 {
296 ::glSampleCoverage (value, invert);
297 }
298
299 inline void glMultiDrawElements (GLenum theMode, const GLsizei* theCount, GLenum theType, const void* const* theIndices, GLsizei theDrawCount)
300 {
301 if (theCount == NULL
302 || theIndices == NULL)
303 {
304 return;
305 }
306
307 for (GLsizei aBatchIter = 0; aBatchIter < theDrawCount; ++aBatchIter)
308 {
309 ::glDrawElements (theMode, theCount[aBatchIter], theType, theIndices[aBatchIter]);
310 }
311 }
312
313#endif
314
315public: //! @name OpenGL ES 2.0
316
317#if defined(GL_ES_VERSION_2_0)
318 inline void glBlendColor (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
319 {
320 ::glBlendColor (red, green, blue, alpha);
321 }
322
323 inline void glBlendEquation (GLenum mode)
324 {
325 ::glBlendEquation (mode);
326 }
327
328 inline void glBlendFuncSeparate (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha)
329 {
330 ::glBlendFuncSeparate (sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha);
331 }
332
333 inline void glBlendEquationSeparate (GLenum modeRGB, GLenum modeAlpha)
334 {
335 ::glBlendEquationSeparate (modeRGB, modeAlpha);
336 }
337
338 inline void glStencilOpSeparate (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass)
339 {
340 ::glStencilOpSeparate (face, sfail, dpfail, dppass);
341 }
342
343 inline void glStencilFuncSeparate (GLenum face, GLenum func, GLint ref, GLuint mask)
344 {
345 ::glStencilFuncSeparate (face, func, ref, mask);
346 }
347
348 inline void glStencilMaskSeparate (GLenum face, GLuint mask)
349 {
350 ::glStencilMaskSeparate (face, mask);
351 }
352
353 inline void glAttachShader (GLuint program, GLuint shader)
354 {
355 ::glAttachShader (program, shader);
356 }
357
358 inline void glBindAttribLocation (GLuint program, GLuint index, const GLchar *name)
359 {
360 ::glBindAttribLocation (program, index, name);
361 }
362
363 inline void glBindFramebuffer (GLenum target, GLuint framebuffer)
364 {
365 ::glBindFramebuffer (target, framebuffer);
366 }
367
368 inline void glBindRenderbuffer (GLenum target, GLuint renderbuffer)
369 {
370 ::glBindRenderbuffer (target, renderbuffer);
371 }
372
373 inline GLenum glCheckFramebufferStatus (GLenum target)
374 {
375 return ::glCheckFramebufferStatus (target);
376 }
377
378 inline void glCompileShader (GLuint shader)
379 {
380 ::glCompileShader (shader);
381 }
382
383 inline GLuint glCreateProgram()
384 {
385 return ::glCreateProgram();
386 }
387
388 inline GLuint glCreateShader (GLenum type)
389 {
390 return ::glCreateShader (type);
391 }
392
393 inline void glDeleteFramebuffers (GLsizei n, const GLuint *framebuffers)
394 {
395 ::glDeleteFramebuffers (n, framebuffers);
396 }
397
398 inline void glDeleteProgram (GLuint program)
399 {
400 ::glDeleteProgram (program);
401 }
402
403 inline void glDeleteRenderbuffers (GLsizei n, const GLuint *renderbuffers)
404 {
405 ::glDeleteRenderbuffers (n, renderbuffers);
406 }
407
408 inline void glDeleteShader (GLuint shader)
409 {
410 ::glDeleteShader (shader);
411 }
412
413 inline void glDetachShader (GLuint program, GLuint shader)
414 {
415 ::glDetachShader (program, shader);
416 }
417
418 inline void glDisableVertexAttribArray (GLuint index)
419 {
420 ::glDisableVertexAttribArray (index);
421 }
422
423 inline void glEnableVertexAttribArray (GLuint index)
424 {
425 ::glEnableVertexAttribArray (index);
426 }
427
428 inline void glFramebufferRenderbuffer (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer)
429 {
430 ::glFramebufferRenderbuffer (target, attachment, renderbuffertarget, renderbuffer);
431 }
432
433 inline void glFramebufferTexture2D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level)
434 {
435 ::glFramebufferTexture2D (target, attachment, textarget, texture, level);
436 }
437
438 inline void glGenerateMipmap (GLenum target)
439 {
440 ::glGenerateMipmap (target);
441 }
442
443 inline void glGenFramebuffers (GLsizei n, GLuint *framebuffers)
444 {
445 ::glGenFramebuffers (n, framebuffers);
446 }
447
448 inline void glGenRenderbuffers (GLsizei n, GLuint *renderbuffers)
449 {
450 ::glGenRenderbuffers (n, renderbuffers);
451 }
452
453 inline void glGetActiveAttrib (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint* size, GLenum *type, GLchar *name)
454 {
455 ::glGetActiveAttrib (program, index, bufSize, length, size, type, name);
456 }
457
458 inline void glGetActiveUniform (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint* size, GLenum *type, GLchar *name)
459 {
460 ::glGetActiveUniform (program, index, bufSize, length, size, type, name);
461 }
462
463 inline void glGetAttachedShaders (GLuint program, GLsizei maxCount, GLsizei *count, GLuint *shaders)
464 {
465 ::glGetAttachedShaders (program, maxCount, count, shaders);
466 }
467
468 inline GLint glGetAttribLocation (GLuint program, const GLchar *name)
469 {
470 return ::glGetAttribLocation (program, name);
471 }
472
473 inline void glGetFramebufferAttachmentParameteriv (GLenum target, GLenum attachment, GLenum pname, GLint* params)
474 {
475 ::glGetFramebufferAttachmentParameteriv (target, attachment, pname, params);
476 }
477
478 inline void glGetProgramiv (GLuint program, GLenum pname, GLint* params)
479 {
480 ::glGetProgramiv (program, pname, params);
481 }
482
483 inline void glGetProgramInfoLog (GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog)
484 {
485 ::glGetProgramInfoLog (program, bufSize, length, infoLog);
486 }
487
488 inline void glGetRenderbufferParameteriv (GLenum target, GLenum pname, GLint* params)
489 {
490 ::glGetRenderbufferParameteriv (target, pname, params);
491 }
492
493 inline void glGetShaderiv (GLuint shader, GLenum pname, GLint* params)
494 {
495 ::glGetShaderiv (shader, pname, params);
496 }
497
498 inline void glGetShaderInfoLog (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog)
499 {
500 ::glGetShaderInfoLog (shader, bufSize, length, infoLog);
501 }
502
503 inline void glGetShaderPrecisionFormat (GLenum shadertype, GLenum precisiontype, GLint* range, GLint* precision)
504 {
505 ::glGetShaderPrecisionFormat (shadertype, precisiontype, range, precision);
506 }
507
508 inline void glGetShaderSource (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source)
509 {
510 ::glGetShaderSource (shader, bufSize, length, source);
511 }
512
513 inline void glGetUniformfv (GLuint program, GLint location, GLfloat* params)
514 {
515 ::glGetUniformfv (program, location, params);
516 }
517
518 inline void glGetUniformiv (GLuint program, GLint location, GLint* params)
519 {
520 ::glGetUniformiv (program, location, params);
521 }
522
523 GLint glGetUniformLocation (GLuint program, const GLchar *name)
524 {
525 return ::glGetUniformLocation (program, name);
526 }
527
528 inline void glGetVertexAttribfv (GLuint index, GLenum pname, GLfloat* params)
529 {
530 ::glGetVertexAttribfv (index, pname, params);
531 }
532
533 inline void glGetVertexAttribiv (GLuint index, GLenum pname, GLint* params)
534 {
535 ::glGetVertexAttribiv (index, pname, params);
536 }
537
538 inline void glGetVertexAttribPointerv (GLuint index, GLenum pname, void* *pointer)
539 {
540 ::glGetVertexAttribPointerv (index, pname, pointer);
541 }
542
543 inline GLboolean glIsFramebuffer (GLuint framebuffer)
544 {
545 return ::glIsFramebuffer (framebuffer);
546 }
547
548 inline GLboolean glIsProgram (GLuint program)
549 {
550 return ::glIsProgram (program);
551 }
552
553 inline GLboolean glIsRenderbuffer (GLuint renderbuffer)
554 {
555 return ::glIsRenderbuffer (renderbuffer);
556 }
557
558 inline GLboolean glIsShader (GLuint shader)
559 {
560 return ::glIsShader (shader);
561 }
562
563 inline void glLinkProgram (GLuint program)
564 {
565 ::glLinkProgram (program);
566 }
567
568 inline void glReleaseShaderCompiler()
569 {
570 ::glReleaseShaderCompiler();
571 }
572
573 inline void glRenderbufferStorage (GLenum target, GLenum internalformat, GLsizei width, GLsizei height)
574 {
575 ::glRenderbufferStorage (target, internalformat, width, height);
576 }
577
578 inline void glShaderBinary (GLsizei count, const GLuint *shaders, GLenum binaryformat, const void* binary, GLsizei length)
579 {
580 ::glShaderBinary (count, shaders, binaryformat, binary, length);
581 }
582
583 inline void glShaderSource (GLuint shader, GLsizei count, const GLchar** string, const GLint* length)
584 {
585 ::glShaderSource (shader, count, string, length);
586 }
587
588 inline void glUniform1f (GLint location, GLfloat v0)
589 {
590 ::glUniform1f (location, v0);
591 }
592
593 inline void glUniform1fv (GLint location, GLsizei count, const GLfloat* value)
594 {
595 ::glUniform1fv (location, count, value);
596 }
597
598 inline void glUniform1i (GLint location, GLint v0)
599 {
600 ::glUniform1i (location, v0);
601 }
602
603 inline void glUniform1iv (GLint location, GLsizei count, const GLint* value)
604 {
605 ::glUniform1iv (location, count, value);
606 }
607
608 inline void glUniform2f (GLint location, GLfloat v0, GLfloat v1)
609 {
610 ::glUniform2f (location, v0, v1);
611 }
612
613 inline void glUniform2fv (GLint location, GLsizei count, const GLfloat* value)
614 {
615 ::glUniform2fv (location, count, value);
616 }
617
618 inline void glUniform2i (GLint location, GLint v0, GLint v1)
619 {
620 ::glUniform2i (location, v0, v1);
621 }
622
623 inline void glUniform2iv (GLint location, GLsizei count, const GLint* value)
624 {
625 ::glUniform2iv (location, count, value);
626 }
627
628 inline void glUniform3f (GLint location, GLfloat v0, GLfloat v1, GLfloat v2)
629 {
630 ::glUniform3f (location, v0, v1, v2);
631 }
632
633 inline void glUniform3fv (GLint location, GLsizei count, const GLfloat* value)
634 {
635 ::glUniform3fv (location, count, value);
636 }
637
638 inline void glUniform3i (GLint location, GLint v0, GLint v1, GLint v2)
639 {
640 ::glUniform3i (location, v0, v1, v2);
641 }
642
643 inline void glUniform3iv (GLint location, GLsizei count, const GLint* value)
644 {
645 ::glUniform3iv (location, count, value);
646 }
647
648 inline void glUniform4f (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3)
649 {
650 ::glUniform4f (location, v0, v1, v2, v3);
651 }
652
653 inline void glUniform4fv (GLint location, GLsizei count, const GLfloat* value)
654 {
655 ::glUniform4fv (location, count, value);
656 }
657
658 inline void glUniform4i (GLint location, GLint v0, GLint v1, GLint v2, GLint v3)
659 {
660 ::glUniform4i (location, v0, v1, v2, v3);
661 }
662
663 inline void glUniform4iv (GLint location, GLsizei count, const GLint* value)
664 {
665 ::glUniform4iv (location, count, value);
666 }
667
668 inline void glUniformMatrix2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value)
669 {
670 ::glUniformMatrix2fv (location, count, transpose, value);
671 }
672
673 inline void glUniformMatrix3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value)
674 {
675 ::glUniformMatrix3fv (location, count, transpose, value);
676 }
677
678 inline void glUniformMatrix4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value)
679 {
680 ::glUniformMatrix4fv (location, count, transpose, value);
681 }
682
683 inline void glUseProgram (GLuint program)
684 {
685 ::glUseProgram (program);
686 }
687
688 inline void glValidateProgram (GLuint program)
689 {
690 ::glValidateProgram (program);
691 }
692
693 inline void glVertexAttrib1f (GLuint index, GLfloat x)
694 {
695 ::glVertexAttrib1f (index, x);
696 }
697
698 inline void glVertexAttrib1fv (GLuint index, const GLfloat* v)
699 {
700 ::glVertexAttrib1fv (index, v);
701 }
702
703 inline void glVertexAttrib2f (GLuint index, GLfloat x, GLfloat y)
704 {
705 ::glVertexAttrib2f (index, x, y);
706 }
707
708 inline void glVertexAttrib2fv (GLuint index, const GLfloat* v)
709 {
710 ::glVertexAttrib2fv (index, v);
711 }
712
713 inline void glVertexAttrib3f (GLuint index, GLfloat x, GLfloat y, GLfloat z)
714 {
715 ::glVertexAttrib3f (index, x, y, z);
716 }
717
718 inline void glVertexAttrib3fv (GLuint index, const GLfloat* v)
719 {
720 ::glVertexAttrib3fv (index, v);
721 }
722
723 inline void glVertexAttrib4f (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
724 {
725 ::glVertexAttrib4f (index, x, y, z, w);
726 }
727
728 inline void glVertexAttrib4fv (GLuint index, const GLfloat* v)
729 {
730 ::glVertexAttrib4fv (index, v);
731 }
732
733 inline void glVertexAttribPointer (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void* pointer)
734 {
735 ::glVertexAttribPointer (index, size, type, normalized, stride, pointer);
736 }
737
b86bb3df 738public: //! @name OpenGL ES 3.0
739
740 typedef void (*glBlitFramebuffer_t)(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
741 glBlitFramebuffer_t glBlitFramebuffer;
742
74fb257d 743 typedef void (*glTexImage3D_t)(GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid* data);
744 glTexImage3D_t glTexImage3D;
745
3c4b62a4 746public: //! @name OpenGL ES 3.1
747
748 typedef void (*glTexStorage2DMultisample_t)(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations);
749 glTexStorage2DMultisample_t glTexStorage2DMultisample;
750
20aeeb7b 751public: //! @name OpenGL ES 3.2
752
753 typedef void (*glTexBuffer_t)(GLenum target, GLenum internalFormat, GLuint buffer);
754 glTexBuffer_t glTexBuffer;
755
ca3c13d1 756#else // OpenGL ES vs. desktop
757
01ca42b2 758public: //! @name OpenGL 1.2
759
760 PFNGLBLENDCOLORPROC glBlendColor;
761 PFNGLBLENDEQUATIONPROC glBlendEquation;
762 PFNGLDRAWRANGEELEMENTSPROC glDrawRangeElements;
763 PFNGLTEXIMAGE3DPROC glTexImage3D;
764 PFNGLTEXSUBIMAGE3DPROC glTexSubImage3D;
765 PFNGLCOPYTEXSUBIMAGE3DPROC glCopyTexSubImage3D;
766
767public: //! @name OpenGL 1.3
768
769 PFNGLACTIVETEXTUREPROC glActiveTexture;
770 PFNGLSAMPLECOVERAGEPROC glSampleCoverage;
771 PFNGLCOMPRESSEDTEXIMAGE3DPROC glCompressedTexImage3D;
772 PFNGLCOMPRESSEDTEXIMAGE2DPROC glCompressedTexImage2D;
773 PFNGLCOMPRESSEDTEXIMAGE1DPROC glCompressedTexImage1D;
774 PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC glCompressedTexSubImage3D;
775 PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC glCompressedTexSubImage2D;
776 PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC glCompressedTexSubImage1D;
777 PFNGLGETCOMPRESSEDTEXIMAGEPROC glGetCompressedTexImage;
778
779 PFNGLCLIENTACTIVETEXTUREPROC glClientActiveTexture;
780 PFNGLMULTITEXCOORD1DPROC glMultiTexCoord1d;
781 PFNGLMULTITEXCOORD1DVPROC glMultiTexCoord1dv;
782 PFNGLMULTITEXCOORD1FPROC glMultiTexCoord1f;
783 PFNGLMULTITEXCOORD1FVPROC glMultiTexCoord1fv;
784 PFNGLMULTITEXCOORD1IPROC glMultiTexCoord1i;
785 PFNGLMULTITEXCOORD1IVPROC glMultiTexCoord1iv;
786 PFNGLMULTITEXCOORD1SPROC glMultiTexCoord1s;
787 PFNGLMULTITEXCOORD1SVPROC glMultiTexCoord1sv;
788 PFNGLMULTITEXCOORD2DPROC glMultiTexCoord2d;
789 PFNGLMULTITEXCOORD2DVPROC glMultiTexCoord2dv;
790 PFNGLMULTITEXCOORD2FPROC glMultiTexCoord2f;
791 PFNGLMULTITEXCOORD2FVPROC glMultiTexCoord2fv;
792 PFNGLMULTITEXCOORD2IPROC glMultiTexCoord2i;
793 PFNGLMULTITEXCOORD2IVPROC glMultiTexCoord2iv;
794 PFNGLMULTITEXCOORD2SPROC glMultiTexCoord2s;
795 PFNGLMULTITEXCOORD2SVPROC glMultiTexCoord2sv;
796 PFNGLMULTITEXCOORD3DPROC glMultiTexCoord3d;
797 PFNGLMULTITEXCOORD3DVPROC glMultiTexCoord3dv;
798 PFNGLMULTITEXCOORD3FPROC glMultiTexCoord3f;
799 PFNGLMULTITEXCOORD3FVPROC glMultiTexCoord3fv;
800 PFNGLMULTITEXCOORD3IPROC glMultiTexCoord3i;
801 PFNGLMULTITEXCOORD3IVPROC glMultiTexCoord3iv;
802 PFNGLMULTITEXCOORD3SPROC glMultiTexCoord3s;
803 PFNGLMULTITEXCOORD3SVPROC glMultiTexCoord3sv;
804 PFNGLMULTITEXCOORD4DPROC glMultiTexCoord4d;
805 PFNGLMULTITEXCOORD4DVPROC glMultiTexCoord4dv;
806 PFNGLMULTITEXCOORD4FPROC glMultiTexCoord4f;
807 PFNGLMULTITEXCOORD4FVPROC glMultiTexCoord4fv;
808 PFNGLMULTITEXCOORD4IPROC glMultiTexCoord4i;
809 PFNGLMULTITEXCOORD4IVPROC glMultiTexCoord4iv;
810 PFNGLMULTITEXCOORD4SPROC glMultiTexCoord4s;
811 PFNGLMULTITEXCOORD4SVPROC glMultiTexCoord4sv;
812 PFNGLLOADTRANSPOSEMATRIXFPROC glLoadTransposeMatrixf;
813 PFNGLLOADTRANSPOSEMATRIXDPROC glLoadTransposeMatrixd;
814 PFNGLMULTTRANSPOSEMATRIXFPROC glMultTransposeMatrixf;
815 PFNGLMULTTRANSPOSEMATRIXDPROC glMultTransposeMatrixd;
816
817public: //! @name OpenGL 1.4
818
819 PFNGLBLENDFUNCSEPARATEPROC glBlendFuncSeparate;
820 PFNGLMULTIDRAWARRAYSPROC glMultiDrawArrays;
821 PFNGLMULTIDRAWELEMENTSPROC glMultiDrawElements;
822 PFNGLPOINTPARAMETERFPROC glPointParameterf;
823 PFNGLPOINTPARAMETERFVPROC glPointParameterfv;
824 PFNGLPOINTPARAMETERIPROC glPointParameteri;
825 PFNGLPOINTPARAMETERIVPROC glPointParameteriv;
826
827public: //! @name OpenGL 1.5
828
829 PFNGLGENQUERIESPROC glGenQueries;
830 PFNGLDELETEQUERIESPROC glDeleteQueries;
831 PFNGLISQUERYPROC glIsQuery;
832 PFNGLBEGINQUERYPROC glBeginQuery;
833 PFNGLENDQUERYPROC glEndQuery;
834 PFNGLGETQUERYIVPROC glGetQueryiv;
835 PFNGLGETQUERYOBJECTIVPROC glGetQueryObjectiv;
836 PFNGLGETQUERYOBJECTUIVPROC glGetQueryObjectuiv;
837 PFNGLBINDBUFFERPROC glBindBuffer;
838 PFNGLDELETEBUFFERSPROC glDeleteBuffers;
839 PFNGLGENBUFFERSPROC glGenBuffers;
840 PFNGLISBUFFERPROC glIsBuffer;
841 PFNGLBUFFERDATAPROC glBufferData;
842 PFNGLBUFFERSUBDATAPROC glBufferSubData;
843 PFNGLGETBUFFERSUBDATAPROC glGetBufferSubData;
844 PFNGLMAPBUFFERPROC glMapBuffer;
845 PFNGLUNMAPBUFFERPROC glUnmapBuffer;
846 PFNGLGETBUFFERPARAMETERIVPROC glGetBufferParameteriv;
847 PFNGLGETBUFFERPOINTERVPROC glGetBufferPointerv;
848
849public: //! @name OpenGL 2.0
850
851 PFNGLBLENDEQUATIONSEPARATEPROC glBlendEquationSeparate;
852 PFNGLDRAWBUFFERSPROC glDrawBuffers;
853 PFNGLSTENCILOPSEPARATEPROC glStencilOpSeparate;
854 PFNGLSTENCILFUNCSEPARATEPROC glStencilFuncSeparate;
855 PFNGLSTENCILMASKSEPARATEPROC glStencilMaskSeparate;
856 PFNGLATTACHSHADERPROC glAttachShader;
857 PFNGLBINDATTRIBLOCATIONPROC glBindAttribLocation;
858 PFNGLCOMPILESHADERPROC glCompileShader;
859 PFNGLCREATEPROGRAMPROC glCreateProgram;
860 PFNGLCREATESHADERPROC glCreateShader;
861 PFNGLDELETEPROGRAMPROC glDeleteProgram;
862 PFNGLDELETESHADERPROC glDeleteShader;
863 PFNGLDETACHSHADERPROC glDetachShader;
864 PFNGLDISABLEVERTEXATTRIBARRAYPROC glDisableVertexAttribArray;
865 PFNGLENABLEVERTEXATTRIBARRAYPROC glEnableVertexAttribArray;
866 PFNGLGETACTIVEATTRIBPROC glGetActiveAttrib;
867 PFNGLGETACTIVEUNIFORMPROC glGetActiveUniform;
868 PFNGLGETATTACHEDSHADERSPROC glGetAttachedShaders;
869 PFNGLGETATTRIBLOCATIONPROC glGetAttribLocation;
870 PFNGLGETPROGRAMIVPROC glGetProgramiv;
871 PFNGLGETPROGRAMINFOLOGPROC glGetProgramInfoLog;
872 PFNGLGETSHADERIVPROC glGetShaderiv;
873 PFNGLGETSHADERINFOLOGPROC glGetShaderInfoLog;
874 PFNGLGETSHADERSOURCEPROC glGetShaderSource;
875 PFNGLGETUNIFORMLOCATIONPROC glGetUniformLocation;
876 PFNGLGETUNIFORMFVPROC glGetUniformfv;
877 PFNGLGETUNIFORMIVPROC glGetUniformiv;
878 PFNGLGETVERTEXATTRIBDVPROC glGetVertexAttribdv;
879 PFNGLGETVERTEXATTRIBFVPROC glGetVertexAttribfv;
880 PFNGLGETVERTEXATTRIBIVPROC glGetVertexAttribiv;
881 PFNGLGETVERTEXATTRIBPOINTERVPROC glGetVertexAttribPointerv;
882 PFNGLISPROGRAMPROC glIsProgram;
883 PFNGLISSHADERPROC glIsShader;
884 PFNGLLINKPROGRAMPROC glLinkProgram;
885 PFNGLSHADERSOURCEPROC glShaderSource;
886 PFNGLUSEPROGRAMPROC glUseProgram;
887 PFNGLUNIFORM1FPROC glUniform1f;
888 PFNGLUNIFORM2FPROC glUniform2f;
889 PFNGLUNIFORM3FPROC glUniform3f;
890 PFNGLUNIFORM4FPROC glUniform4f;
891 PFNGLUNIFORM1IPROC glUniform1i;
892 PFNGLUNIFORM2IPROC glUniform2i;
893 PFNGLUNIFORM3IPROC glUniform3i;
894 PFNGLUNIFORM4IPROC glUniform4i;
895 PFNGLUNIFORM1FVPROC glUniform1fv;
896 PFNGLUNIFORM2FVPROC glUniform2fv;
897 PFNGLUNIFORM3FVPROC glUniform3fv;
898 PFNGLUNIFORM4FVPROC glUniform4fv;
899 PFNGLUNIFORM1IVPROC glUniform1iv;
900 PFNGLUNIFORM2IVPROC glUniform2iv;
901 PFNGLUNIFORM3IVPROC glUniform3iv;
902 PFNGLUNIFORM4IVPROC glUniform4iv;
903 PFNGLUNIFORMMATRIX2FVPROC glUniformMatrix2fv;
904 PFNGLUNIFORMMATRIX3FVPROC glUniformMatrix3fv;
905 PFNGLUNIFORMMATRIX4FVPROC glUniformMatrix4fv;
906 PFNGLVALIDATEPROGRAMPROC glValidateProgram;
907 PFNGLVERTEXATTRIB1DPROC glVertexAttrib1d;
908 PFNGLVERTEXATTRIB1DVPROC glVertexAttrib1dv;
909 PFNGLVERTEXATTRIB1FPROC glVertexAttrib1f;
910 PFNGLVERTEXATTRIB1FVPROC glVertexAttrib1fv;
911 PFNGLVERTEXATTRIB1SPROC glVertexAttrib1s;
912 PFNGLVERTEXATTRIB1SVPROC glVertexAttrib1sv;
913 PFNGLVERTEXATTRIB2DPROC glVertexAttrib2d;
914 PFNGLVERTEXATTRIB2DVPROC glVertexAttrib2dv;
915 PFNGLVERTEXATTRIB2FPROC glVertexAttrib2f;
916 PFNGLVERTEXATTRIB2FVPROC glVertexAttrib2fv;
917 PFNGLVERTEXATTRIB2SPROC glVertexAttrib2s;
918 PFNGLVERTEXATTRIB2SVPROC glVertexAttrib2sv;
919 PFNGLVERTEXATTRIB3DPROC glVertexAttrib3d;
920 PFNGLVERTEXATTRIB3DVPROC glVertexAttrib3dv;
921 PFNGLVERTEXATTRIB3FPROC glVertexAttrib3f;
922 PFNGLVERTEXATTRIB3FVPROC glVertexAttrib3fv;
923 PFNGLVERTEXATTRIB3SPROC glVertexAttrib3s;
924 PFNGLVERTEXATTRIB3SVPROC glVertexAttrib3sv;
925 PFNGLVERTEXATTRIB4NBVPROC glVertexAttrib4Nbv;
926 PFNGLVERTEXATTRIB4NIVPROC glVertexAttrib4Niv;
927 PFNGLVERTEXATTRIB4NSVPROC glVertexAttrib4Nsv;
928 PFNGLVERTEXATTRIB4NUBPROC glVertexAttrib4Nub;
929 PFNGLVERTEXATTRIB4NUBVPROC glVertexAttrib4Nubv;
930 PFNGLVERTEXATTRIB4NUIVPROC glVertexAttrib4Nuiv;
931 PFNGLVERTEXATTRIB4NUSVPROC glVertexAttrib4Nusv;
932 PFNGLVERTEXATTRIB4BVPROC glVertexAttrib4bv;
933 PFNGLVERTEXATTRIB4DPROC glVertexAttrib4d;
934 PFNGLVERTEXATTRIB4DVPROC glVertexAttrib4dv;
935 PFNGLVERTEXATTRIB4FPROC glVertexAttrib4f;
936 PFNGLVERTEXATTRIB4FVPROC glVertexAttrib4fv;
937 PFNGLVERTEXATTRIB4IVPROC glVertexAttrib4iv;
938 PFNGLVERTEXATTRIB4SPROC glVertexAttrib4s;
939 PFNGLVERTEXATTRIB4SVPROC glVertexAttrib4sv;
940 PFNGLVERTEXATTRIB4UBVPROC glVertexAttrib4ubv;
941 PFNGLVERTEXATTRIB4UIVPROC glVertexAttrib4uiv;
942 PFNGLVERTEXATTRIB4USVPROC glVertexAttrib4usv;
943 PFNGLVERTEXATTRIBPOINTERPROC glVertexAttribPointer;
944
945public: //! @name OpenGL 2.1
946
947 PFNGLUNIFORMMATRIX2X3FVPROC glUniformMatrix2x3fv;
948 PFNGLUNIFORMMATRIX3X2FVPROC glUniformMatrix3x2fv;
949 PFNGLUNIFORMMATRIX2X4FVPROC glUniformMatrix2x4fv;
950 PFNGLUNIFORMMATRIX4X2FVPROC glUniformMatrix4x2fv;
951 PFNGLUNIFORMMATRIX3X4FVPROC glUniformMatrix3x4fv;
952 PFNGLUNIFORMMATRIX4X3FVPROC glUniformMatrix4x3fv;
953
954public: //! @name GL_ARB_framebuffer_object (added to OpenGL 3.0 core)
955
956 PFNGLISRENDERBUFFERPROC glIsRenderbuffer;
957 PFNGLBINDRENDERBUFFERPROC glBindRenderbuffer;
958 PFNGLDELETERENDERBUFFERSPROC glDeleteRenderbuffers;
959 PFNGLGENRENDERBUFFERSPROC glGenRenderbuffers;
960 PFNGLRENDERBUFFERSTORAGEPROC glRenderbufferStorage;
961 PFNGLGETRENDERBUFFERPARAMETERIVPROC glGetRenderbufferParameteriv;
962 PFNGLISFRAMEBUFFERPROC glIsFramebuffer;
963 PFNGLBINDFRAMEBUFFERPROC glBindFramebuffer;
964 PFNGLDELETEFRAMEBUFFERSPROC glDeleteFramebuffers;
965 PFNGLGENFRAMEBUFFERSPROC glGenFramebuffers;
966 PFNGLCHECKFRAMEBUFFERSTATUSPROC glCheckFramebufferStatus;
967 PFNGLFRAMEBUFFERTEXTURE1DPROC glFramebufferTexture1D;
968 PFNGLFRAMEBUFFERTEXTURE2DPROC glFramebufferTexture2D;
969 PFNGLFRAMEBUFFERTEXTURE3DPROC glFramebufferTexture3D;
970 PFNGLFRAMEBUFFERRENDERBUFFERPROC glFramebufferRenderbuffer;
971 PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC glGetFramebufferAttachmentParameteriv;
972 PFNGLGENERATEMIPMAPPROC glGenerateMipmap;
973 PFNGLBLITFRAMEBUFFERPROC glBlitFramebuffer;
974 PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC glRenderbufferStorageMultisample;
975 PFNGLFRAMEBUFFERTEXTURELAYERPROC glFramebufferTextureLayer;
976
977public: //! @name GL_ARB_vertex_array_object (added to OpenGL 3.0 core)
978
979 PFNGLBINDVERTEXARRAYPROC glBindVertexArray;
980 PFNGLDELETEVERTEXARRAYSPROC glDeleteVertexArrays;
981 PFNGLGENVERTEXARRAYSPROC glGenVertexArrays;
982 PFNGLISVERTEXARRAYPROC glIsVertexArray;
983
984public: //! @name GL_ARB_map_buffer_range (added to OpenGL 3.0 core)
985
986 PFNGLMAPBUFFERRANGEPROC glMapBufferRange;
987 PFNGLFLUSHMAPPEDBUFFERRANGEPROC glFlushMappedBufferRange;
988
989public: //! @name OpenGL 3.0
990
991 PFNGLCOLORMASKIPROC glColorMaski;
992 PFNGLGETBOOLEANI_VPROC glGetBooleani_v;
993 PFNGLGETINTEGERI_VPROC glGetIntegeri_v;
994 PFNGLENABLEIPROC glEnablei;
995 PFNGLDISABLEIPROC glDisablei;
996 PFNGLISENABLEDIPROC glIsEnabledi;
997 PFNGLBEGINTRANSFORMFEEDBACKPROC glBeginTransformFeedback;
998 PFNGLENDTRANSFORMFEEDBACKPROC glEndTransformFeedback;
999 PFNGLBINDBUFFERRANGEPROC glBindBufferRange;
1000 PFNGLBINDBUFFERBASEPROC glBindBufferBase;
1001 PFNGLTRANSFORMFEEDBACKVARYINGSPROC glTransformFeedbackVaryings;
1002 PFNGLGETTRANSFORMFEEDBACKVARYINGPROC glGetTransformFeedbackVarying;
1003 PFNGLCLAMPCOLORPROC glClampColor;
1004 PFNGLBEGINCONDITIONALRENDERPROC glBeginConditionalRender;
1005 PFNGLENDCONDITIONALRENDERPROC glEndConditionalRender;
1006 PFNGLVERTEXATTRIBIPOINTERPROC glVertexAttribIPointer;
1007 PFNGLGETVERTEXATTRIBIIVPROC glGetVertexAttribIiv;
1008 PFNGLGETVERTEXATTRIBIUIVPROC glGetVertexAttribIuiv;
1009 PFNGLVERTEXATTRIBI1IPROC glVertexAttribI1i;
1010 PFNGLVERTEXATTRIBI2IPROC glVertexAttribI2i;
1011 PFNGLVERTEXATTRIBI3IPROC glVertexAttribI3i;
1012 PFNGLVERTEXATTRIBI4IPROC glVertexAttribI4i;
1013 PFNGLVERTEXATTRIBI1UIPROC glVertexAttribI1ui;
1014 PFNGLVERTEXATTRIBI2UIPROC glVertexAttribI2ui;
1015 PFNGLVERTEXATTRIBI3UIPROC glVertexAttribI3ui;
1016 PFNGLVERTEXATTRIBI4UIPROC glVertexAttribI4ui;
1017 PFNGLVERTEXATTRIBI1IVPROC glVertexAttribI1iv;
1018 PFNGLVERTEXATTRIBI2IVPROC glVertexAttribI2iv;
1019 PFNGLVERTEXATTRIBI3IVPROC glVertexAttribI3iv;
1020 PFNGLVERTEXATTRIBI4IVPROC glVertexAttribI4iv;
1021 PFNGLVERTEXATTRIBI1UIVPROC glVertexAttribI1uiv;
1022 PFNGLVERTEXATTRIBI2UIVPROC glVertexAttribI2uiv;
1023 PFNGLVERTEXATTRIBI3UIVPROC glVertexAttribI3uiv;
1024 PFNGLVERTEXATTRIBI4UIVPROC glVertexAttribI4uiv;
1025 PFNGLVERTEXATTRIBI4BVPROC glVertexAttribI4bv;
1026 PFNGLVERTEXATTRIBI4SVPROC glVertexAttribI4sv;
1027 PFNGLVERTEXATTRIBI4UBVPROC glVertexAttribI4ubv;
1028 PFNGLVERTEXATTRIBI4USVPROC glVertexAttribI4usv;
1029 PFNGLGETUNIFORMUIVPROC glGetUniformuiv;
1030 PFNGLBINDFRAGDATALOCATIONPROC glBindFragDataLocation;
1031 PFNGLGETFRAGDATALOCATIONPROC glGetFragDataLocation;
1032 PFNGLUNIFORM1UIPROC glUniform1ui;
1033 PFNGLUNIFORM2UIPROC glUniform2ui;
1034 PFNGLUNIFORM3UIPROC glUniform3ui;
1035 PFNGLUNIFORM4UIPROC glUniform4ui;
1036 PFNGLUNIFORM1UIVPROC glUniform1uiv;
1037 PFNGLUNIFORM2UIVPROC glUniform2uiv;
1038 PFNGLUNIFORM3UIVPROC glUniform3uiv;
1039 PFNGLUNIFORM4UIVPROC glUniform4uiv;
1040 PFNGLTEXPARAMETERIIVPROC glTexParameterIiv;
1041 PFNGLTEXPARAMETERIUIVPROC glTexParameterIuiv;
1042 PFNGLGETTEXPARAMETERIIVPROC glGetTexParameterIiv;
1043 PFNGLGETTEXPARAMETERIUIVPROC glGetTexParameterIuiv;
1044 PFNGLCLEARBUFFERIVPROC glClearBufferiv;
1045 PFNGLCLEARBUFFERUIVPROC glClearBufferuiv;
1046 PFNGLCLEARBUFFERFVPROC glClearBufferfv;
1047 PFNGLCLEARBUFFERFIPROC glClearBufferfi;
1048 PFNGLGETSTRINGIPROC glGetStringi;
1049
1050public: //! @name GL_ARB_uniform_buffer_object (added to OpenGL 3.1 core)
1051
1052 PFNGLGETUNIFORMINDICESPROC glGetUniformIndices;
1053 PFNGLGETACTIVEUNIFORMSIVPROC glGetActiveUniformsiv;
1054 PFNGLGETACTIVEUNIFORMNAMEPROC glGetActiveUniformName;
1055 PFNGLGETUNIFORMBLOCKINDEXPROC glGetUniformBlockIndex;
1056 PFNGLGETACTIVEUNIFORMBLOCKIVPROC glGetActiveUniformBlockiv;
1057 PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC glGetActiveUniformBlockName;
1058 PFNGLUNIFORMBLOCKBINDINGPROC glUniformBlockBinding;
1059
1060public: //! @name GL_ARB_copy_buffer (added to OpenGL 3.1 core)
1061
1062 PFNGLCOPYBUFFERSUBDATAPROC glCopyBufferSubData;
1063
1064public: //! @name OpenGL 3.1
1065
1066 PFNGLDRAWARRAYSINSTANCEDPROC glDrawArraysInstanced;
1067 PFNGLDRAWELEMENTSINSTANCEDPROC glDrawElementsInstanced;
1068 PFNGLTEXBUFFERPROC glTexBuffer;
1069 PFNGLPRIMITIVERESTARTINDEXPROC glPrimitiveRestartIndex;
1070
1071public: //! @name GL_ARB_draw_elements_base_vertex (added to OpenGL 3.2 core)
1072
1073 PFNGLDRAWELEMENTSBASEVERTEXPROC glDrawElementsBaseVertex;
1074 PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC glDrawRangeElementsBaseVertex;
1075 PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC glDrawElementsInstancedBaseVertex;
1076 PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC glMultiDrawElementsBaseVertex;
1077
1078public: //! @name GL_ARB_provoking_vertex (added to OpenGL 3.2 core)
1079
1080 PFNGLPROVOKINGVERTEXPROC glProvokingVertex;
1081
1082public: //! @name GL_ARB_sync (added to OpenGL 3.2 core)
1083
1084 PFNGLFENCESYNCPROC glFenceSync;
1085 PFNGLISSYNCPROC glIsSync;
1086 PFNGLDELETESYNCPROC glDeleteSync;
1087 PFNGLCLIENTWAITSYNCPROC glClientWaitSync;
1088 PFNGLWAITSYNCPROC glWaitSync;
1089 PFNGLGETINTEGER64VPROC glGetInteger64v;
1090 PFNGLGETSYNCIVPROC glGetSynciv;
1091
1092public: //! @name GL_ARB_texture_multisample (added to OpenGL 3.2 core)
1093
1094 PFNGLTEXIMAGE2DMULTISAMPLEPROC glTexImage2DMultisample;
1095 PFNGLTEXIMAGE3DMULTISAMPLEPROC glTexImage3DMultisample;
1096 PFNGLGETMULTISAMPLEFVPROC glGetMultisamplefv;
1097 PFNGLSAMPLEMASKIPROC glSampleMaski;
1098
1099public: //! @name OpenGL 3.2
1100
1101 PFNGLGETINTEGER64I_VPROC glGetInteger64i_v;
1102 PFNGLGETBUFFERPARAMETERI64VPROC glGetBufferParameteri64v;
1103 PFNGLFRAMEBUFFERTEXTUREPROC glFramebufferTexture;
1104
1105public: //! @name GL_ARB_blend_func_extended (added to OpenGL 3.3 core)
1106
1107 PFNGLBINDFRAGDATALOCATIONINDEXEDPROC glBindFragDataLocationIndexed;
1108 PFNGLGETFRAGDATAINDEXPROC glGetFragDataIndex;
1109
1110public: //! @name GL_ARB_sampler_objects (added to OpenGL 3.3 core)
1111
1112 PFNGLGENSAMPLERSPROC glGenSamplers;
1113 PFNGLDELETESAMPLERSPROC glDeleteSamplers;
1114 PFNGLISSAMPLERPROC glIsSampler;
1115 PFNGLBINDSAMPLERPROC glBindSampler;
1116 PFNGLSAMPLERPARAMETERIPROC glSamplerParameteri;
1117 PFNGLSAMPLERPARAMETERIVPROC glSamplerParameteriv;
1118 PFNGLSAMPLERPARAMETERFPROC glSamplerParameterf;
1119 PFNGLSAMPLERPARAMETERFVPROC glSamplerParameterfv;
1120 PFNGLSAMPLERPARAMETERIIVPROC glSamplerParameterIiv;
1121 PFNGLSAMPLERPARAMETERIUIVPROC glSamplerParameterIuiv;
1122 PFNGLGETSAMPLERPARAMETERIVPROC glGetSamplerParameteriv;
1123 PFNGLGETSAMPLERPARAMETERIIVPROC glGetSamplerParameterIiv;
1124 PFNGLGETSAMPLERPARAMETERFVPROC glGetSamplerParameterfv;
1125 PFNGLGETSAMPLERPARAMETERIUIVPROC glGetSamplerParameterIuiv;
1126
1127public: //! @name GL_ARB_timer_query (added to OpenGL 3.3 core)
1128
1129 PFNGLQUERYCOUNTERPROC glQueryCounter;
1130 PFNGLGETQUERYOBJECTI64VPROC glGetQueryObjecti64v;
1131 PFNGLGETQUERYOBJECTUI64VPROC glGetQueryObjectui64v;
1132
1133public: //! @name GL_ARB_vertex_type_2_10_10_10_rev (added to OpenGL 3.3 core)
1134
1135 PFNGLVERTEXP2UIPROC glVertexP2ui;
1136 PFNGLVERTEXP2UIVPROC glVertexP2uiv;
1137 PFNGLVERTEXP3UIPROC glVertexP3ui;
1138 PFNGLVERTEXP3UIVPROC glVertexP3uiv;
1139 PFNGLVERTEXP4UIPROC glVertexP4ui;
1140 PFNGLVERTEXP4UIVPROC glVertexP4uiv;
1141 PFNGLTEXCOORDP1UIPROC glTexCoordP1ui;
1142 PFNGLTEXCOORDP1UIVPROC glTexCoordP1uiv;
1143 PFNGLTEXCOORDP2UIPROC glTexCoordP2ui;
1144 PFNGLTEXCOORDP2UIVPROC glTexCoordP2uiv;
1145 PFNGLTEXCOORDP3UIPROC glTexCoordP3ui;
1146 PFNGLTEXCOORDP3UIVPROC glTexCoordP3uiv;
1147 PFNGLTEXCOORDP4UIPROC glTexCoordP4ui;
1148 PFNGLTEXCOORDP4UIVPROC glTexCoordP4uiv;
1149 PFNGLMULTITEXCOORDP1UIPROC glMultiTexCoordP1ui;
1150 PFNGLMULTITEXCOORDP1UIVPROC glMultiTexCoordP1uiv;
1151 PFNGLMULTITEXCOORDP2UIPROC glMultiTexCoordP2ui;
1152 PFNGLMULTITEXCOORDP2UIVPROC glMultiTexCoordP2uiv;
1153 PFNGLMULTITEXCOORDP3UIPROC glMultiTexCoordP3ui;
1154 PFNGLMULTITEXCOORDP3UIVPROC glMultiTexCoordP3uiv;
1155 PFNGLMULTITEXCOORDP4UIPROC glMultiTexCoordP4ui;
1156 PFNGLMULTITEXCOORDP4UIVPROC glMultiTexCoordP4uiv;
1157 PFNGLNORMALP3UIPROC glNormalP3ui;
1158 PFNGLNORMALP3UIVPROC glNormalP3uiv;
1159 PFNGLCOLORP3UIPROC glColorP3ui;
1160 PFNGLCOLORP3UIVPROC glColorP3uiv;
1161 PFNGLCOLORP4UIPROC glColorP4ui;
1162 PFNGLCOLORP4UIVPROC glColorP4uiv;
1163 PFNGLSECONDARYCOLORP3UIPROC glSecondaryColorP3ui;
1164 PFNGLSECONDARYCOLORP3UIVPROC glSecondaryColorP3uiv;
1165 PFNGLVERTEXATTRIBP1UIPROC glVertexAttribP1ui;
1166 PFNGLVERTEXATTRIBP1UIVPROC glVertexAttribP1uiv;
1167 PFNGLVERTEXATTRIBP2UIPROC glVertexAttribP2ui;
1168 PFNGLVERTEXATTRIBP2UIVPROC glVertexAttribP2uiv;
1169 PFNGLVERTEXATTRIBP3UIPROC glVertexAttribP3ui;
1170 PFNGLVERTEXATTRIBP3UIVPROC glVertexAttribP3uiv;
1171 PFNGLVERTEXATTRIBP4UIPROC glVertexAttribP4ui;
1172 PFNGLVERTEXATTRIBP4UIVPROC glVertexAttribP4uiv;
1173
1174public: //! @name OpenGL 3.3
1175
1176 PFNGLVERTEXATTRIBDIVISORPROC glVertexAttribDivisor;
1177
1178public: //! @name GL_ARB_draw_indirect (added to OpenGL 4.0 core)
1179
1180 PFNGLDRAWARRAYSINDIRECTPROC glDrawArraysIndirect;
1181 PFNGLDRAWELEMENTSINDIRECTPROC glDrawElementsIndirect;
1182
1183public: //! @name GL_ARB_gpu_shader_fp64 (added to OpenGL 4.0 core)
1184
1185 PFNGLUNIFORM1DPROC glUniform1d;
1186 PFNGLUNIFORM2DPROC glUniform2d;
1187 PFNGLUNIFORM3DPROC glUniform3d;
1188 PFNGLUNIFORM4DPROC glUniform4d;
1189 PFNGLUNIFORM1DVPROC glUniform1dv;
1190 PFNGLUNIFORM2DVPROC glUniform2dv;
1191 PFNGLUNIFORM3DVPROC glUniform3dv;
1192 PFNGLUNIFORM4DVPROC glUniform4dv;
1193 PFNGLUNIFORMMATRIX2DVPROC glUniformMatrix2dv;
1194 PFNGLUNIFORMMATRIX3DVPROC glUniformMatrix3dv;
1195 PFNGLUNIFORMMATRIX4DVPROC glUniformMatrix4dv;
1196 PFNGLUNIFORMMATRIX2X3DVPROC glUniformMatrix2x3dv;
1197 PFNGLUNIFORMMATRIX2X4DVPROC glUniformMatrix2x4dv;
1198 PFNGLUNIFORMMATRIX3X2DVPROC glUniformMatrix3x2dv;
1199 PFNGLUNIFORMMATRIX3X4DVPROC glUniformMatrix3x4dv;
1200 PFNGLUNIFORMMATRIX4X2DVPROC glUniformMatrix4x2dv;
1201 PFNGLUNIFORMMATRIX4X3DVPROC glUniformMatrix4x3dv;
1202 PFNGLGETUNIFORMDVPROC glGetUniformdv;
1203
1204public: //! @name GL_ARB_shader_subroutine (added to OpenGL 4.0 core)
1205
1206 PFNGLGETSUBROUTINEUNIFORMLOCATIONPROC glGetSubroutineUniformLocation;
1207 PFNGLGETSUBROUTINEINDEXPROC glGetSubroutineIndex;
1208 PFNGLGETACTIVESUBROUTINEUNIFORMIVPROC glGetActiveSubroutineUniformiv;
1209 PFNGLGETACTIVESUBROUTINEUNIFORMNAMEPROC glGetActiveSubroutineUniformName;
1210 PFNGLGETACTIVESUBROUTINENAMEPROC glGetActiveSubroutineName;
1211 PFNGLUNIFORMSUBROUTINESUIVPROC glUniformSubroutinesuiv;
1212 PFNGLGETUNIFORMSUBROUTINEUIVPROC glGetUniformSubroutineuiv;
1213 PFNGLGETPROGRAMSTAGEIVPROC glGetProgramStageiv;
1214
1215public: //! @name GL_ARB_tessellation_shader (added to OpenGL 4.0 core)
1216
1217 PFNGLPATCHPARAMETERIPROC glPatchParameteri;
1218 PFNGLPATCHPARAMETERFVPROC glPatchParameterfv;
1219
1220public: //! @name GL_ARB_transform_feedback2 (added to OpenGL 4.0 core)
1221
1222 PFNGLBINDTRANSFORMFEEDBACKPROC glBindTransformFeedback;
1223 PFNGLDELETETRANSFORMFEEDBACKSPROC glDeleteTransformFeedbacks;
1224 PFNGLGENTRANSFORMFEEDBACKSPROC glGenTransformFeedbacks;
1225 PFNGLISTRANSFORMFEEDBACKPROC glIsTransformFeedback;
1226 PFNGLPAUSETRANSFORMFEEDBACKPROC glPauseTransformFeedback;
1227 PFNGLRESUMETRANSFORMFEEDBACKPROC glResumeTransformFeedback;
1228 PFNGLDRAWTRANSFORMFEEDBACKPROC glDrawTransformFeedback;
1229
1230public: //! @name GL_ARB_transform_feedback3 (added to OpenGL 4.0 core)
1231
1232 PFNGLDRAWTRANSFORMFEEDBACKSTREAMPROC glDrawTransformFeedbackStream;
1233 PFNGLBEGINQUERYINDEXEDPROC glBeginQueryIndexed;
1234 PFNGLENDQUERYINDEXEDPROC glEndQueryIndexed;
1235 PFNGLGETQUERYINDEXEDIVPROC glGetQueryIndexediv;
1236
1237public: //! @name OpenGL 4.0
1238
1239 PFNGLMINSAMPLESHADINGPROC glMinSampleShading;
1240 PFNGLBLENDEQUATIONIPROC glBlendEquationi;
1241 PFNGLBLENDEQUATIONSEPARATEIPROC glBlendEquationSeparatei;
1242 PFNGLBLENDFUNCIPROC glBlendFunci;
1243 PFNGLBLENDFUNCSEPARATEIPROC glBlendFuncSeparatei;
1244
1245public: //! @name GL_ARB_ES2_compatibility (added to OpenGL 4.1 core)
1246
1247 PFNGLRELEASESHADERCOMPILERPROC glReleaseShaderCompiler;
1248 PFNGLSHADERBINARYPROC glShaderBinary;
1249 PFNGLGETSHADERPRECISIONFORMATPROC glGetShaderPrecisionFormat;
1250 PFNGLDEPTHRANGEFPROC glDepthRangef;
1251 PFNGLCLEARDEPTHFPROC glClearDepthf;
1252
1253public: //! @name GL_ARB_get_program_binary (added to OpenGL 4.1 core)
1254
1255 PFNGLGETPROGRAMBINARYPROC glGetProgramBinary;
1256 PFNGLPROGRAMBINARYPROC glProgramBinary;
1257 PFNGLPROGRAMPARAMETERIPROC glProgramParameteri;
1258
1259public: //! @name GL_ARB_separate_shader_objects (added to OpenGL 4.1 core)
1260
1261 PFNGLUSEPROGRAMSTAGESPROC glUseProgramStages;
1262 PFNGLACTIVESHADERPROGRAMPROC glActiveShaderProgram;
1263 PFNGLCREATESHADERPROGRAMVPROC glCreateShaderProgramv;
1264 PFNGLBINDPROGRAMPIPELINEPROC glBindProgramPipeline;
1265 PFNGLDELETEPROGRAMPIPELINESPROC glDeleteProgramPipelines;
1266 PFNGLGENPROGRAMPIPELINESPROC glGenProgramPipelines;
1267 PFNGLISPROGRAMPIPELINEPROC glIsProgramPipeline;
1268 PFNGLGETPROGRAMPIPELINEIVPROC glGetProgramPipelineiv;
1269 PFNGLPROGRAMUNIFORM1IPROC glProgramUniform1i;
1270 PFNGLPROGRAMUNIFORM1IVPROC glProgramUniform1iv;
1271 PFNGLPROGRAMUNIFORM1FPROC glProgramUniform1f;
1272 PFNGLPROGRAMUNIFORM1FVPROC glProgramUniform1fv;
1273 PFNGLPROGRAMUNIFORM1DPROC glProgramUniform1d;
1274 PFNGLPROGRAMUNIFORM1DVPROC glProgramUniform1dv;
1275 PFNGLPROGRAMUNIFORM1UIPROC glProgramUniform1ui;
1276 PFNGLPROGRAMUNIFORM1UIVPROC glProgramUniform1uiv;
1277 PFNGLPROGRAMUNIFORM2IPROC glProgramUniform2i;
1278 PFNGLPROGRAMUNIFORM2IVPROC glProgramUniform2iv;
1279 PFNGLPROGRAMUNIFORM2FPROC glProgramUniform2f;
1280 PFNGLPROGRAMUNIFORM2FVPROC glProgramUniform2fv;
1281 PFNGLPROGRAMUNIFORM2DPROC glProgramUniform2d;
1282 PFNGLPROGRAMUNIFORM2DVPROC glProgramUniform2dv;
1283 PFNGLPROGRAMUNIFORM2UIPROC glProgramUniform2ui;
1284 PFNGLPROGRAMUNIFORM2UIVPROC glProgramUniform2uiv;
1285 PFNGLPROGRAMUNIFORM3IPROC glProgramUniform3i;
1286 PFNGLPROGRAMUNIFORM3IVPROC glProgramUniform3iv;
1287 PFNGLPROGRAMUNIFORM3FPROC glProgramUniform3f;
1288 PFNGLPROGRAMUNIFORM3FVPROC glProgramUniform3fv;
1289 PFNGLPROGRAMUNIFORM3DPROC glProgramUniform3d;
1290 PFNGLPROGRAMUNIFORM3DVPROC glProgramUniform3dv;
1291 PFNGLPROGRAMUNIFORM3UIPROC glProgramUniform3ui;
1292 PFNGLPROGRAMUNIFORM3UIVPROC glProgramUniform3uiv;
1293 PFNGLPROGRAMUNIFORM4IPROC glProgramUniform4i;
1294 PFNGLPROGRAMUNIFORM4IVPROC glProgramUniform4iv;
1295 PFNGLPROGRAMUNIFORM4FPROC glProgramUniform4f;
1296 PFNGLPROGRAMUNIFORM4FVPROC glProgramUniform4fv;
1297 PFNGLPROGRAMUNIFORM4DPROC glProgramUniform4d;
1298 PFNGLPROGRAMUNIFORM4DVPROC glProgramUniform4dv;
1299 PFNGLPROGRAMUNIFORM4UIPROC glProgramUniform4ui;
1300 PFNGLPROGRAMUNIFORM4UIVPROC glProgramUniform4uiv;
1301 PFNGLPROGRAMUNIFORMMATRIX2FVPROC glProgramUniformMatrix2fv;
1302 PFNGLPROGRAMUNIFORMMATRIX3FVPROC glProgramUniformMatrix3fv;
1303 PFNGLPROGRAMUNIFORMMATRIX4FVPROC glProgramUniformMatrix4fv;
1304 PFNGLPROGRAMUNIFORMMATRIX2DVPROC glProgramUniformMatrix2dv;
1305 PFNGLPROGRAMUNIFORMMATRIX3DVPROC glProgramUniformMatrix3dv;
1306 PFNGLPROGRAMUNIFORMMATRIX4DVPROC glProgramUniformMatrix4dv;
1307 PFNGLPROGRAMUNIFORMMATRIX2X3FVPROC glProgramUniformMatrix2x3fv;
1308 PFNGLPROGRAMUNIFORMMATRIX3X2FVPROC glProgramUniformMatrix3x2fv;
1309 PFNGLPROGRAMUNIFORMMATRIX2X4FVPROC glProgramUniformMatrix2x4fv;
1310 PFNGLPROGRAMUNIFORMMATRIX4X2FVPROC glProgramUniformMatrix4x2fv;
1311 PFNGLPROGRAMUNIFORMMATRIX3X4FVPROC glProgramUniformMatrix3x4fv;
1312 PFNGLPROGRAMUNIFORMMATRIX4X3FVPROC glProgramUniformMatrix4x3fv;
1313 PFNGLPROGRAMUNIFORMMATRIX2X3DVPROC glProgramUniformMatrix2x3dv;
1314 PFNGLPROGRAMUNIFORMMATRIX3X2DVPROC glProgramUniformMatrix3x2dv;
1315 PFNGLPROGRAMUNIFORMMATRIX2X4DVPROC glProgramUniformMatrix2x4dv;
1316 PFNGLPROGRAMUNIFORMMATRIX4X2DVPROC glProgramUniformMatrix4x2dv;
1317 PFNGLPROGRAMUNIFORMMATRIX3X4DVPROC glProgramUniformMatrix3x4dv;
1318 PFNGLPROGRAMUNIFORMMATRIX4X3DVPROC glProgramUniformMatrix4x3dv;
1319 PFNGLVALIDATEPROGRAMPIPELINEPROC glValidateProgramPipeline;
1320 PFNGLGETPROGRAMPIPELINEINFOLOGPROC glGetProgramPipelineInfoLog;
1321
1322public: //! @name GL_ARB_vertex_attrib_64bit (added to OpenGL 4.1 core)
1323
1324 PFNGLVERTEXATTRIBL1DPROC glVertexAttribL1d;
1325 PFNGLVERTEXATTRIBL2DPROC glVertexAttribL2d;
1326 PFNGLVERTEXATTRIBL3DPROC glVertexAttribL3d;
1327 PFNGLVERTEXATTRIBL4DPROC glVertexAttribL4d;
1328 PFNGLVERTEXATTRIBL1DVPROC glVertexAttribL1dv;
1329 PFNGLVERTEXATTRIBL2DVPROC glVertexAttribL2dv;
1330 PFNGLVERTEXATTRIBL3DVPROC glVertexAttribL3dv;
1331 PFNGLVERTEXATTRIBL4DVPROC glVertexAttribL4dv;
1332 PFNGLVERTEXATTRIBLPOINTERPROC glVertexAttribLPointer;
1333 PFNGLGETVERTEXATTRIBLDVPROC glGetVertexAttribLdv;
1334
1335public: //! @name GL_ARB_viewport_array (added to OpenGL 4.1 core)
1336
1337 PFNGLVIEWPORTARRAYVPROC glViewportArrayv;
1338 PFNGLVIEWPORTINDEXEDFPROC glViewportIndexedf;
1339 PFNGLVIEWPORTINDEXEDFVPROC glViewportIndexedfv;
1340 PFNGLSCISSORARRAYVPROC glScissorArrayv;
1341 PFNGLSCISSORINDEXEDPROC glScissorIndexed;
1342 PFNGLSCISSORINDEXEDVPROC glScissorIndexedv;
1343 PFNGLDEPTHRANGEARRAYVPROC glDepthRangeArrayv;
1344 PFNGLDEPTHRANGEINDEXEDPROC glDepthRangeIndexed;
1345 PFNGLGETFLOATI_VPROC glGetFloati_v;
1346 PFNGLGETDOUBLEI_VPROC glGetDoublei_v;
1347
1348public: //! @name OpenGL 4.1
1349
1350 //
1351
1352public: //! @name GL_ARB_base_instance (added to OpenGL 4.2 core)
1353
1354 PFNGLDRAWARRAYSINSTANCEDBASEINSTANCEPROC glDrawArraysInstancedBaseInstance;
1355 PFNGLDRAWELEMENTSINSTANCEDBASEINSTANCEPROC glDrawElementsInstancedBaseInstance;
1356 PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXBASEINSTANCEPROC glDrawElementsInstancedBaseVertexBaseInstance;
1357
1358public: //! @name GL_ARB_transform_feedback_instanced (added to OpenGL 4.2 core)
1359
1360 PFNGLDRAWTRANSFORMFEEDBACKINSTANCEDPROC glDrawTransformFeedbackInstanced;
1361 PFNGLDRAWTRANSFORMFEEDBACKSTREAMINSTANCEDPROC glDrawTransformFeedbackStreamInstanced;
1362
1363public: //! @name GL_ARB_internalformat_query (added to OpenGL 4.2 core)
1364
1365 PFNGLGETINTERNALFORMATIVPROC glGetInternalformativ;
1366
1367public: //! @name GL_ARB_shader_atomic_counters (added to OpenGL 4.2 core)
1368
1369 PFNGLGETACTIVEATOMICCOUNTERBUFFERIVPROC glGetActiveAtomicCounterBufferiv;
1370
1371public: //! @name GL_ARB_shader_image_load_store (added to OpenGL 4.2 core)
1372
1373 PFNGLBINDIMAGETEXTUREPROC glBindImageTexture;
1374 PFNGLMEMORYBARRIERPROC glMemoryBarrier;
1375
1376public: //! @name GL_ARB_texture_storage (added to OpenGL 4.2 core)
1377
1378 PFNGLTEXSTORAGE1DPROC glTexStorage1D;
1379 PFNGLTEXSTORAGE2DPROC glTexStorage2D;
1380 PFNGLTEXSTORAGE3DPROC glTexStorage3D;
01ca42b2 1381
1382public: //! @name OpenGL 4.2
1383
1384public: //! @name OpenGL 4.3
1385
1386 PFNGLCLEARBUFFERDATAPROC glClearBufferData;
1387 PFNGLCLEARBUFFERSUBDATAPROC glClearBufferSubData;
1388 PFNGLDISPATCHCOMPUTEPROC glDispatchCompute;
1389 PFNGLDISPATCHCOMPUTEINDIRECTPROC glDispatchComputeIndirect;
1390 PFNGLCOPYIMAGESUBDATAPROC glCopyImageSubData;
1391 PFNGLFRAMEBUFFERPARAMETERIPROC glFramebufferParameteri;
1392 PFNGLGETFRAMEBUFFERPARAMETERIVPROC glGetFramebufferParameteriv;
1393 PFNGLGETINTERNALFORMATI64VPROC glGetInternalformati64v;
1394 PFNGLINVALIDATETEXSUBIMAGEPROC glInvalidateTexSubImage;
1395 PFNGLINVALIDATETEXIMAGEPROC glInvalidateTexImage;
1396 PFNGLINVALIDATEBUFFERSUBDATAPROC glInvalidateBufferSubData;
1397 PFNGLINVALIDATEBUFFERDATAPROC glInvalidateBufferData;
1398 PFNGLINVALIDATEFRAMEBUFFERPROC glInvalidateFramebuffer;
1399 PFNGLINVALIDATESUBFRAMEBUFFERPROC glInvalidateSubFramebuffer;
1400 PFNGLMULTIDRAWARRAYSINDIRECTPROC glMultiDrawArraysIndirect;
1401 PFNGLMULTIDRAWELEMENTSINDIRECTPROC glMultiDrawElementsIndirect;
1402 PFNGLGETPROGRAMINTERFACEIVPROC glGetProgramInterfaceiv;
1403 PFNGLGETPROGRAMRESOURCEINDEXPROC glGetProgramResourceIndex;
1404 PFNGLGETPROGRAMRESOURCENAMEPROC glGetProgramResourceName;
1405 PFNGLGETPROGRAMRESOURCEIVPROC glGetProgramResourceiv;
1406 PFNGLGETPROGRAMRESOURCELOCATIONPROC glGetProgramResourceLocation;
1407 PFNGLGETPROGRAMRESOURCELOCATIONINDEXPROC glGetProgramResourceLocationIndex;
1408 PFNGLSHADERSTORAGEBLOCKBINDINGPROC glShaderStorageBlockBinding;
1409 PFNGLTEXBUFFERRANGEPROC glTexBufferRange;
1410 PFNGLTEXSTORAGE2DMULTISAMPLEPROC glTexStorage2DMultisample;
1411 PFNGLTEXSTORAGE3DMULTISAMPLEPROC glTexStorage3DMultisample;
1412 PFNGLTEXTUREVIEWPROC glTextureView;
1413 PFNGLBINDVERTEXBUFFERPROC glBindVertexBuffer;
1414 PFNGLVERTEXATTRIBFORMATPROC glVertexAttribFormat;
1415 PFNGLVERTEXATTRIBIFORMATPROC glVertexAttribIFormat;
1416 PFNGLVERTEXATTRIBLFORMATPROC glVertexAttribLFormat;
1417 PFNGLVERTEXATTRIBBINDINGPROC glVertexAttribBinding;
1418 PFNGLVERTEXBINDINGDIVISORPROC glVertexBindingDivisor;
1419 PFNGLDEBUGMESSAGECONTROLPROC glDebugMessageControl;
1420 PFNGLDEBUGMESSAGEINSERTPROC glDebugMessageInsert;
1421 PFNGLDEBUGMESSAGECALLBACKPROC glDebugMessageCallback;
1422 PFNGLGETDEBUGMESSAGELOGPROC glGetDebugMessageLog;
1423 PFNGLPUSHDEBUGGROUPPROC glPushDebugGroup;
1424 PFNGLPOPDEBUGGROUPPROC glPopDebugGroup;
1425 PFNGLOBJECTLABELPROC glObjectLabel;
1426 PFNGLGETOBJECTLABELPROC glGetObjectLabel;
1427 PFNGLOBJECTPTRLABELPROC glObjectPtrLabel;
1428 PFNGLGETOBJECTPTRLABELPROC glGetObjectPtrLabel;
1429
1430public: //! @name OpenGL 4.4
1431
1432 PFNGLBUFFERSTORAGEPROC glBufferStorage;
1433 PFNGLCLEARTEXIMAGEPROC glClearTexImage;
1434 PFNGLCLEARTEXSUBIMAGEPROC glClearTexSubImage;
1435 PFNGLBINDBUFFERSBASEPROC glBindBuffersBase;
1436 PFNGLBINDBUFFERSRANGEPROC glBindBuffersRange;
1437 PFNGLBINDTEXTURESPROC glBindTextures;
1438 PFNGLBINDSAMPLERSPROC glBindSamplers;
1439 PFNGLBINDIMAGETEXTURESPROC glBindImageTextures;
1440 PFNGLBINDVERTEXBUFFERSPROC glBindVertexBuffers;
1441
1442public: //! @name GL_ARB_debug_output (optional)
1443
1444 PFNGLDEBUGMESSAGECONTROLARBPROC glDebugMessageControlARB;
1445 PFNGLDEBUGMESSAGEINSERTARBPROC glDebugMessageInsertARB;
1446 PFNGLDEBUGMESSAGECALLBACKARBPROC glDebugMessageCallbackARB;
1447 PFNGLGETDEBUGMESSAGELOGARBPROC glGetDebugMessageLogARB;
1448
1449public: //! @name GL_EXT_geometry_shader4
1450
1451 PFNGLPROGRAMPARAMETERIEXTPROC glProgramParameteriEXT;
1452
25ef750e 1453public: //! @name GL_ARB_bindless_texture
1454
1455 PFNGLGETTEXTUREHANDLEARBPROC glGetTextureHandleARB;
1456 PFNGLGETTEXTURESAMPLERHANDLEARBPROC glGetTextureSamplerHandleARB;
1457 PFNGLMAKETEXTUREHANDLERESIDENTARBPROC glMakeTextureHandleResidentARB;
1458 PFNGLMAKETEXTUREHANDLENONRESIDENTARBPROC glMakeTextureHandleNonResidentARB;
1459 PFNGLGETIMAGEHANDLEARBPROC glGetImageHandleARB;
1460 PFNGLMAKEIMAGEHANDLERESIDENTARBPROC glMakeImageHandleResidentARB;
1461 PFNGLMAKEIMAGEHANDLENONRESIDENTARBPROC glMakeImageHandleNonResidentARB;
1462 PFNGLUNIFORMHANDLEUI64ARBPROC glUniformHandleui64ARB;
1463 PFNGLUNIFORMHANDLEUI64VARBPROC glUniformHandleui64vARB;
1464 PFNGLPROGRAMUNIFORMHANDLEUI64ARBPROC glProgramUniformHandleui64ARB;
1465 PFNGLPROGRAMUNIFORMHANDLEUI64VARBPROC glProgramUniformHandleui64vARB;
1466 PFNGLISTEXTUREHANDLERESIDENTARBPROC glIsTextureHandleResidentARB;
1467 PFNGLISIMAGEHANDLERESIDENTARBPROC glIsImageHandleResidentARB;
1468 PFNGLVERTEXATTRIBL1UI64ARBPROC glVertexAttribL1ui64ARB;
1469 PFNGLVERTEXATTRIBL1UI64VARBPROC glVertexAttribL1ui64vARB;
1470 PFNGLGETVERTEXATTRIBLUI64VARBPROC glGetVertexAttribLui64vARB;
1471
01ca42b2 1472#if defined(_WIN32)
1473public: //! @name wgl extensions
1474
1475 typedef const char* (WINAPI *wglGetExtensionsStringARB_t)(HDC theDeviceContext);
1476 wglGetExtensionsStringARB_t wglGetExtensionsStringARB;
1477
1478 typedef BOOL (WINAPI *wglSwapIntervalEXT_t)(int theInterval);
1479 wglSwapIntervalEXT_t wglSwapIntervalEXT;
1480
1481 // WGL_ARB_pixel_format
1482
1483#ifndef WGL_NUMBER_PIXEL_FORMATS_ARB
1484 #define WGL_NUMBER_PIXEL_FORMATS_ARB 0x2000
1485 #define WGL_DRAW_TO_WINDOW_ARB 0x2001
1486 #define WGL_DRAW_TO_BITMAP_ARB 0x2002
1487 #define WGL_ACCELERATION_ARB 0x2003
1488 #define WGL_NEED_PALETTE_ARB 0x2004
1489 #define WGL_NEED_SYSTEM_PALETTE_ARB 0x2005
1490 #define WGL_SWAP_LAYER_BUFFERS_ARB 0x2006
1491 #define WGL_SWAP_METHOD_ARB 0x2007
1492 #define WGL_NUMBER_OVERLAYS_ARB 0x2008
1493 #define WGL_NUMBER_UNDERLAYS_ARB 0x2009
1494 #define WGL_TRANSPARENT_ARB 0x200A
1495 #define WGL_TRANSPARENT_RED_VALUE_ARB 0x2037
1496 #define WGL_TRANSPARENT_GREEN_VALUE_ARB 0x2038
1497 #define WGL_TRANSPARENT_BLUE_VALUE_ARB 0x2039
1498 #define WGL_TRANSPARENT_ALPHA_VALUE_ARB 0x203A
1499 #define WGL_TRANSPARENT_INDEX_VALUE_ARB 0x203B
1500 #define WGL_SHARE_DEPTH_ARB 0x200C
1501 #define WGL_SHARE_STENCIL_ARB 0x200D
1502 #define WGL_SHARE_ACCUM_ARB 0x200E
1503 #define WGL_SUPPORT_GDI_ARB 0x200F
1504 #define WGL_SUPPORT_OPENGL_ARB 0x2010
1505 #define WGL_DOUBLE_BUFFER_ARB 0x2011
1506 #define WGL_STEREO_ARB 0x2012
1507 #define WGL_PIXEL_TYPE_ARB 0x2013
1508 #define WGL_COLOR_BITS_ARB 0x2014
1509 #define WGL_RED_BITS_ARB 0x2015
1510 #define WGL_RED_SHIFT_ARB 0x2016
1511 #define WGL_GREEN_BITS_ARB 0x2017
1512 #define WGL_GREEN_SHIFT_ARB 0x2018
1513 #define WGL_BLUE_BITS_ARB 0x2019
1514 #define WGL_BLUE_SHIFT_ARB 0x201A
1515 #define WGL_ALPHA_BITS_ARB 0x201B
1516 #define WGL_ALPHA_SHIFT_ARB 0x201C
1517 #define WGL_ACCUM_BITS_ARB 0x201D
1518 #define WGL_ACCUM_RED_BITS_ARB 0x201E
1519 #define WGL_ACCUM_GREEN_BITS_ARB 0x201F
1520 #define WGL_ACCUM_BLUE_BITS_ARB 0x2020
1521 #define WGL_ACCUM_ALPHA_BITS_ARB 0x2021
1522 #define WGL_DEPTH_BITS_ARB 0x2022
1523 #define WGL_STENCIL_BITS_ARB 0x2023
1524 #define WGL_AUX_BUFFERS_ARB 0x2024
1525
1526 #define WGL_NO_ACCELERATION_ARB 0x2025
1527 #define WGL_GENERIC_ACCELERATION_ARB 0x2026
1528 #define WGL_FULL_ACCELERATION_ARB 0x2027
1529
1530 #define WGL_SWAP_EXCHANGE_ARB 0x2028
1531 #define WGL_SWAP_COPY_ARB 0x2029
1532 #define WGL_SWAP_UNDEFINED_ARB 0x202A
1533
1534 #define WGL_TYPE_RGBA_ARB 0x202B
1535 #define WGL_TYPE_COLORINDEX_ARB 0x202C
1536
1537#endif // WGL_NUMBER_PIXEL_FORMATS_ARB
1538
1539 // WGL_ARB_multisample
1540#ifndef WGL_SAMPLE_BUFFERS_ARB
1541 #define WGL_SAMPLE_BUFFERS_ARB 0x2041
1542 #define WGL_SAMPLES_ARB 0x2042
1543#endif
1544
1545 // WGL_ARB_create_context_robustness
1546#ifndef WGL_CONTEXT_ROBUST_ACCESS_BIT_ARB
1547 #define WGL_CONTEXT_ROBUST_ACCESS_BIT_ARB 0x00000004
1548 #define WGL_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB 0x8256
1549 #define WGL_NO_RESET_NOTIFICATION_ARB 0x8261
1550 #define WGL_LOSE_CONTEXT_ON_RESET_ARB 0x8252
1551#endif
1552
1553 typedef BOOL (WINAPI *wglChoosePixelFormatARB_t)
1554 (HDC theDevCtx,
1555 const int* theIntAttribs,
1556 const float* theFloatAttribs,
1557 unsigned int theMaxFormats,
1558 int* theFormatsOut,
1559 unsigned int* theNumFormatsOut);
1560 wglChoosePixelFormatARB_t wglChoosePixelFormatARB;
1561
1562 // WGL_ARB_create_context_profile
1563
1564#ifndef WGL_CONTEXT_MAJOR_VERSION_ARB
1565 #define WGL_CONTEXT_MAJOR_VERSION_ARB 0x2091
1566 #define WGL_CONTEXT_MINOR_VERSION_ARB 0x2092
1567 #define WGL_CONTEXT_LAYER_PLANE_ARB 0x2093
1568 #define WGL_CONTEXT_FLAGS_ARB 0x2094
1569 #define WGL_CONTEXT_PROFILE_MASK_ARB 0x9126
1570
1571 // WGL_CONTEXT_FLAGS bits
1572 #define WGL_CONTEXT_DEBUG_BIT_ARB 0x0001
1573 #define WGL_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x0002
1574
1575 // WGL_CONTEXT_PROFILE_MASK_ARB bits
1576 #define WGL_CONTEXT_CORE_PROFILE_BIT_ARB 0x00000001
1577 #define WGL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB 0x00000002
1578#endif // WGL_CONTEXT_MAJOR_VERSION_ARB
1579
1580 typedef HGLRC (WINAPI *wglCreateContextAttribsARB_t)(HDC theDevCtx,
1581 HGLRC theShareContext,
1582 const int* theAttribs);
1583 wglCreateContextAttribsARB_t wglCreateContextAttribsARB;
1584
1585 // WGL_NV_DX_interop
1586
1587 typedef BOOL (WINAPI *wglDXSetResourceShareHandleNV_t)(void* theObjectD3d, HANDLE theShareHandle);
1588 typedef HANDLE (WINAPI *wglDXOpenDeviceNV_t )(void* theDeviceD3d);
1589 typedef BOOL (WINAPI *wglDXCloseDeviceNV_t )(HANDLE theDeviceIOP);
1590 typedef HANDLE (WINAPI *wglDXRegisterObjectNV_t )(HANDLE theDeviceIOP,
1591 void* theObjectD3d,
1592 GLuint theName,
1593 GLenum theType,
1594 GLenum theAccess);
1595 typedef BOOL (WINAPI *wglDXUnregisterObjectNV_t)(HANDLE theDeviceIOP,
1596 HANDLE theObject);
1597 typedef BOOL (WINAPI *wglDXObjectAccessNV_t )(HANDLE theObject,
1598 GLenum theAccess);
1599 typedef BOOL (WINAPI *wglDXLockObjectsNV_t )(HANDLE theDeviceIOP,
1600 GLint theCount,
1601 HANDLE* theObjects);
1602 typedef BOOL (WINAPI *wglDXUnlockObjectsNV_t )(HANDLE theDeviceIOP,
1603 GLint theCount,
1604 HANDLE* theObjects);
1605
1606 wglDXSetResourceShareHandleNV_t wglDXSetResourceShareHandleNV;
1607 wglDXOpenDeviceNV_t wglDXOpenDeviceNV;
1608 wglDXCloseDeviceNV_t wglDXCloseDeviceNV;
1609 wglDXRegisterObjectNV_t wglDXRegisterObjectNV;
1610 wglDXUnregisterObjectNV_t wglDXUnregisterObjectNV;
1611 wglDXObjectAccessNV_t wglDXObjectAccessNV;
1612 wglDXLockObjectsNV_t wglDXLockObjectsNV;
1613 wglDXUnlockObjectsNV_t wglDXUnlockObjectsNV;
1614
1615#ifndef WGL_ACCESS_READ_WRITE_NV
1616 #define WGL_ACCESS_READ_ONLY_NV 0x0000
1617 #define WGL_ACCESS_READ_WRITE_NV 0x0001
1618 #define WGL_ACCESS_WRITE_DISCARD_NV 0x0002
1619#endif
1620
1621#elif defined(__APPLE__)
1622public: //! @name CGL extensions
1623
1624#else
1625public: //! @name glX extensions
1626
1627 // GLX_EXT_swap_control
1628 //typedef int (*glXSwapIntervalEXT_t)(Display* theDisplay, GLXDrawable theDrawable, int theInterval);
1629 typedef int (*glXSwapIntervalEXT_t)();
1630 glXSwapIntervalEXT_t glXSwapIntervalEXT;
1631
1632 typedef int (*glXSwapIntervalSGI_t)(int theInterval);
1633 glXSwapIntervalSGI_t glXSwapIntervalSGI;
1634#endif
1635
ca3c13d1 1636#endif // OpenGL ES vs. desktop
1637
01ca42b2 1638};
1639
1640#endif // _OpenGl_GlFunctions_Header