42 #ifndef QGLFUNCTIONS_H
43 #define QGLFUNCTIONS_H
46 #warning qglfunctions.h is not compatible with GLEW, GLEW defines will be undefined
47 #warning To use GLEW with Qt, do not include <QtOpenGL> or <QGLFunctions> after glew.h
63 # ifndef QGLF_APIENTRYP
65 # define QGLF_APIENTRYP QGLF_APIENTRY *
67 # define QGLF_APIENTRY
68 # define QGLF_APIENTRYP *
72 # define QGLF_APIENTRY
73 # define QGLF_APIENTRYP *
80 #undef glActiveTexture
82 #undef glBindAttribLocation
84 #undef glBindFramebuffer
85 #undef glBindRenderbuffer
87 #undef glBlendEquation
88 #undef glBlendEquationSeparate
89 #undef glBlendFuncSeparate
91 #undef glBufferSubData
92 #undef glCheckFramebufferStatus
94 #undef glCompileShader
95 #undef glCompressedTexImage2D
96 #undef glCompressedTexSubImage2D
97 #undef glCreateProgram
99 #undef glDeleteBuffers
100 #undef glDeleteFramebuffers
101 #undef glDeleteProgram
102 #undef glDeleteRenderbuffers
103 #undef glDeleteShader
105 #undef glDetachShader
106 #undef glDisableVertexAttribArray
107 #undef glEnableVertexAttribArray
108 #undef glFramebufferRenderbuffer
109 #undef glFramebufferTexture2D
111 #undef glGenerateMipmap
112 #undef glGenFramebuffers
113 #undef glGenRenderbuffers
114 #undef glGetActiveAttrib
115 #undef glGetActiveUniform
116 #undef glGetAttachedShaders
117 #undef glGetAttribLocation
118 #undef glGetBufferParameteriv
119 #undef glGetFramebufferAttachmentParameteriv
120 #undef glGetProgramiv
121 #undef glGetProgramInfoLog
122 #undef glGetRenderbufferParameteriv
124 #undef glGetShaderInfoLog
125 #undef glGetShaderPrecisionFormat
126 #undef glGetShaderSource
127 #undef glGetUniformfv
128 #undef glGetUniformiv
129 #undef glGetUniformLocation
130 #undef glGetVertexAttribfv
131 #undef glGetVertexAttribiv
132 #undef glGetVertexAttribPointerv
134 #undef glIsFramebuffer
136 #undef glIsRenderbuffer
139 #undef glReleaseShaderCompiler
140 #undef glRenderbufferStorage
141 #undef glSampleCoverage
142 #undef glShaderBinary
143 #undef glShaderSource
144 #undef glStencilFuncSeparate
145 #undef glStencilMaskSeparate
146 #undef glStencilOpSeparate
163 #undef glUniformMatrix2fv
164 #undef glUniformMatrix3fv
165 #undef glUniformMatrix4fv
167 #undef glValidateProgram
168 #undef glVertexAttrib1f
169 #undef glVertexAttrib1fv
170 #undef glVertexAttrib2f
171 #undef glVertexAttrib2fv
172 #undef glVertexAttrib3f
173 #undef glVertexAttrib3fv
174 #undef glVertexAttrib4f
175 #undef glVertexAttrib4fv
176 #undef glVertexAttribPointer
187 Multitexture = 0x0001,
190 Framebuffers = 0x0008,
192 BlendEquation = 0x0020,
193 BlendEquationSeparate = 0x0040,
194 BlendFuncSeparate = 0x0080,
195 BlendSubtract = 0x0100,
196 CompressedTextures = 0x0200,
197 Multisample = 0x0400,
198 StencilSeparate = 0x0800,
199 NPOTTextures = 0x1000
201 Q_DECLARE_FLAGS(OpenGLFeatures, OpenGLFeature)
204 bool hasOpenGLFeature(
QGLFunctions::OpenGLFeature feature) const;
206 void initializeGLFunctions(const
QGLContext *context = 0);
221 void glClearDepthf(GLclampf
depth);
232 void glDepthRangef(GLclampf zNear, GLclampf
zFar);
239 void glGenerateMipmap(
GLenum target);
240 void glGenFramebuffers(GLsizei n,
GLuint* framebuffers);
241 void glGenRenderbuffers(GLsizei n,
GLuint* renderbuffers);
267 void glReleaseShaderCompiler();
268 void glRenderbufferStorage(
GLenum target,
GLenum internalformat, GLsizei width, GLsizei height);
270 void glShaderBinary(
GLint n, const
GLuint* shaders,
GLenum binaryformat, const
void* binary,
GLint length);
311 Q_DECLARE_OPERATORS_FOR_FLAGS(QGLFunctions::OpenGLFeatures)
317 #ifndef QT_OPENGL_ES_2
418 #if defined(QT_OPENGL_ES_1) || defined(QT_OPENGL_ES_2)
421 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
422 d_ptr->activeTexture(texture);
428 #if defined(QT_OPENGL_ES_2)
431 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
432 d_ptr->attachShader(program, shader);
438 #if defined(QT_OPENGL_ES_2)
441 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
442 d_ptr->bindAttribLocation(program, index, name);
448 #if defined(QT_OPENGL_ES_1) || defined(QT_OPENGL_ES_2)
451 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
452 d_ptr->bindBuffer(target, buffer);
458 #if defined(QT_OPENGL_ES_2)
461 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
462 d_ptr->bindFramebuffer(target, framebuffer);
468 #if defined(QT_OPENGL_ES_2)
471 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
472 d_ptr->bindRenderbuffer(target, renderbuffer);
478 #if defined(QT_OPENGL_ES_2)
481 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
482 d_ptr->blendColor(red, green, blue, alpha);
488 #if defined(QT_OPENGL_ES_2)
491 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
492 d_ptr->blendEquation(mode);
498 #if defined(QT_OPENGL_ES_2)
501 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
502 d_ptr->blendEquationSeparate(modeRGB, modeAlpha);
508 #if defined(QT_OPENGL_ES_2)
511 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
512 d_ptr->blendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha);
518 #if defined(QT_OPENGL_ES_1) || defined(QT_OPENGL_ES_2)
521 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
522 d_ptr->bufferData(target, size, data, usage);
528 #if defined(QT_OPENGL_ES_1) || defined(QT_OPENGL_ES_2)
531 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
532 d_ptr->bufferSubData(target, offset, size, data);
538 #if defined(QT_OPENGL_ES_2)
539 return ::glCheckFramebufferStatus(target);
541 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
542 return d_ptr->checkFramebufferStatus(target);
549 ::glClearDepth(depth);
557 #if defined(QT_OPENGL_ES_2)
560 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
561 d_ptr->compileShader(shader);
567 #if defined(QT_OPENGL_ES_1) || defined(QT_OPENGL_ES_2)
570 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
571 d_ptr->compressedTexImage2D(target, level, internalformat, width, height, border, imageSize, data);
577 #if defined(QT_OPENGL_ES_1) || defined(QT_OPENGL_ES_2)
580 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
581 d_ptr->compressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data);
587 #if defined(QT_OPENGL_ES_2)
590 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
591 return d_ptr->createProgram();
597 #if defined(QT_OPENGL_ES_2)
600 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
601 return d_ptr->createShader(type);
607 #if defined(QT_OPENGL_ES_1) || defined(QT_OPENGL_ES_2)
610 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
611 d_ptr->deleteBuffers(n, buffers);
617 #if defined(QT_OPENGL_ES_2)
620 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
621 d_ptr->deleteFramebuffers(n, framebuffers);
627 #if defined(QT_OPENGL_ES_2)
630 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
631 d_ptr->deleteProgram(program);
637 #if defined(QT_OPENGL_ES_2)
640 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
641 d_ptr->deleteRenderbuffers(n, renderbuffers);
647 #if defined(QT_OPENGL_ES_2)
650 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
651 d_ptr->deleteShader(shader);
658 ::glDepthRange(zNear, zFar);
666 #if defined(QT_OPENGL_ES_2)
669 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
670 d_ptr->detachShader(program, shader);
676 #if defined(QT_OPENGL_ES_2)
679 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
680 d_ptr->disableVertexAttribArray(index);
686 #if defined(QT_OPENGL_ES_2)
689 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
690 d_ptr->enableVertexAttribArray(index);
696 #if defined(QT_OPENGL_ES_2)
699 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
700 d_ptr->framebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer);
706 #if defined(QT_OPENGL_ES_2)
709 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
710 d_ptr->framebufferTexture2D(target, attachment, textarget, texture, level);
716 #if defined(QT_OPENGL_ES_1) || defined(QT_OPENGL_ES_2)
719 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
720 d_ptr->genBuffers(n, buffers);
726 #if defined(QT_OPENGL_ES_2)
729 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
730 d_ptr->generateMipmap(target);
736 #if defined(QT_OPENGL_ES_2)
739 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
740 d_ptr->genFramebuffers(n, framebuffers);
746 #if defined(QT_OPENGL_ES_2)
749 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
750 d_ptr->genRenderbuffers(n, renderbuffers);
756 #if defined(QT_OPENGL_ES_2)
759 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
760 d_ptr->getActiveAttrib(program, index, bufsize, length, size, type, name);
766 #if defined(QT_OPENGL_ES_2)
769 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
770 d_ptr->getActiveUniform(program, index, bufsize, length, size, type, name);
776 #if defined(QT_OPENGL_ES_2)
779 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
780 d_ptr->getAttachedShaders(program, maxcount, count, shaders);
786 #if defined(QT_OPENGL_ES_2)
789 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
790 return d_ptr->getAttribLocation(program, name);
796 #if defined(QT_OPENGL_ES_2)
799 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
800 d_ptr->getBufferParameteriv(target, pname, params);
806 #if defined(QT_OPENGL_ES_2)
809 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
810 d_ptr->getFramebufferAttachmentParameteriv(target, attachment, pname, params);
816 #if defined(QT_OPENGL_ES_2)
819 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
820 d_ptr->getProgramiv(program, pname, params);
826 #if defined(QT_OPENGL_ES_2)
829 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
830 d_ptr->getProgramInfoLog(program, bufsize, length, infolog);
836 #if defined(QT_OPENGL_ES_2)
839 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
840 d_ptr->getRenderbufferParameteriv(target, pname, params);
846 #if defined(QT_OPENGL_ES_2)
849 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
850 d_ptr->getShaderiv(shader, pname, params);
856 #if defined(QT_OPENGL_ES_2)
859 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
860 d_ptr->getShaderInfoLog(shader, bufsize, length, infolog);
866 #if defined(QT_OPENGL_ES_2)
869 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
870 d_ptr->getShaderPrecisionFormat(shadertype, precisiontype, range, precision);
876 #if defined(QT_OPENGL_ES_2)
879 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
880 d_ptr->getShaderSource(shader, bufsize, length, source);
886 #if defined(QT_OPENGL_ES_2)
889 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
890 d_ptr->getUniformfv(program, location, params);
896 #if defined(QT_OPENGL_ES_2)
899 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
900 d_ptr->getUniformiv(program, location, params);
906 #if defined(QT_OPENGL_ES_2)
909 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
910 return d_ptr->getUniformLocation(program, name);
916 #if defined(QT_OPENGL_ES_2)
919 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
920 d_ptr->getVertexAttribfv(index, pname, params);
926 #if defined(QT_OPENGL_ES_2)
929 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
930 d_ptr->getVertexAttribiv(index, pname, params);
936 #if defined(QT_OPENGL_ES_2)
939 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
940 d_ptr->getVertexAttribPointerv(index, pname, pointer);
946 #if defined(QT_OPENGL_ES_1) || defined(QT_OPENGL_ES_2)
949 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
950 return d_ptr->isBuffer(buffer);
956 #if defined(QT_OPENGL_ES_2)
957 return ::glIsFramebuffer(framebuffer);
959 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
960 return d_ptr->isFramebuffer(framebuffer);
966 #if defined(QT_OPENGL_ES_2)
969 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
970 return d_ptr->isProgram(program);
976 #if defined(QT_OPENGL_ES_2)
977 return ::glIsRenderbuffer(renderbuffer);
979 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
980 return d_ptr->isRenderbuffer(renderbuffer);
986 #if defined(QT_OPENGL_ES_2)
989 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
990 return d_ptr->isShader(shader);
996 #if defined(QT_OPENGL_ES_2)
999 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
1000 d_ptr->linkProgram(program);
1006 #if defined(QT_OPENGL_ES_2)
1009 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
1010 d_ptr->releaseShaderCompiler();
1016 #if defined(QT_OPENGL_ES_2)
1019 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
1020 d_ptr->renderbufferStorage(target, internalformat, width, height);
1026 #if defined(QT_OPENGL_ES_1) || defined(QT_OPENGL_ES_2)
1029 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
1030 d_ptr->sampleCoverage(value, invert);
1036 #if defined(QT_OPENGL_ES_2)
1039 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
1040 d_ptr->shaderBinary(n, shaders, binaryformat, binary, length);
1046 #if defined(QT_OPENGL_ES_2)
1049 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
1050 d_ptr->shaderSource(shader, count,
string, length);
1056 #if defined(QT_OPENGL_ES_2)
1059 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
1060 d_ptr->stencilFuncSeparate(face, func, ref, mask);
1066 #if defined(QT_OPENGL_ES_2)
1069 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
1070 d_ptr->stencilMaskSeparate(face, mask);
1076 #if defined(QT_OPENGL_ES_2)
1079 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
1080 d_ptr->stencilOpSeparate(face, fail, zfail, zpass);
1086 #if defined(QT_OPENGL_ES_2)
1089 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
1090 d_ptr->uniform1f(location, x);
1096 #if defined(QT_OPENGL_ES_2)
1099 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
1100 d_ptr->uniform1fv(location, count, v);
1106 #if defined(QT_OPENGL_ES_2)
1109 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
1110 d_ptr->uniform1i(location, x);
1116 #if defined(QT_OPENGL_ES_2)
1119 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
1120 d_ptr->uniform1iv(location, count, v);
1126 #if defined(QT_OPENGL_ES_2)
1129 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
1130 d_ptr->uniform2f(location, x, y);
1136 #if defined(QT_OPENGL_ES_2)
1139 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
1140 d_ptr->uniform2fv(location, count, v);
1146 #if defined(QT_OPENGL_ES_2)
1149 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
1150 d_ptr->uniform2i(location, x, y);
1156 #if defined(QT_OPENGL_ES_2)
1159 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
1160 d_ptr->uniform2iv(location, count, v);
1166 #if defined(QT_OPENGL_ES_2)
1169 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
1170 d_ptr->uniform3f(location, x, y, z);
1176 #if defined(QT_OPENGL_ES_2)
1179 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
1180 d_ptr->uniform3fv(location, count, v);
1186 #if defined(QT_OPENGL_ES_2)
1189 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
1190 d_ptr->uniform3i(location, x, y, z);
1196 #if defined(QT_OPENGL_ES_2)
1199 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
1200 d_ptr->uniform3iv(location, count, v);
1206 #if defined(QT_OPENGL_ES_2)
1209 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
1210 d_ptr->uniform4f(location, x, y, z, w);
1216 #if defined(QT_OPENGL_ES_2)
1219 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
1220 d_ptr->uniform4fv(location, count, v);
1226 #if defined(QT_OPENGL_ES_2)
1229 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
1230 d_ptr->uniform4i(location, x, y, z, w);
1236 #if defined(QT_OPENGL_ES_2)
1239 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
1240 d_ptr->uniform4iv(location, count, v);
1246 #if defined(QT_OPENGL_ES_2)
1249 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
1250 d_ptr->uniformMatrix2fv(location, count, transpose, value);
1256 #if defined(QT_OPENGL_ES_2)
1259 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
1260 d_ptr->uniformMatrix3fv(location, count, transpose, value);
1266 #if defined(QT_OPENGL_ES_2)
1269 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
1270 d_ptr->uniformMatrix4fv(location, count, transpose, value);
1276 #if defined(QT_OPENGL_ES_2)
1279 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
1280 d_ptr->useProgram(program);
1286 #if defined(QT_OPENGL_ES_2)
1289 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
1290 d_ptr->validateProgram(program);
1296 #if defined(QT_OPENGL_ES_2)
1299 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
1300 d_ptr->vertexAttrib1f(indx, x);
1306 #if defined(QT_OPENGL_ES_2)
1309 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
1310 d_ptr->vertexAttrib1fv(indx, values);
1316 #if defined(QT_OPENGL_ES_2)
1319 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
1320 d_ptr->vertexAttrib2f(indx, x, y);
1326 #if defined(QT_OPENGL_ES_2)
1329 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
1330 d_ptr->vertexAttrib2fv(indx, values);
1336 #if defined(QT_OPENGL_ES_2)
1339 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
1340 d_ptr->vertexAttrib3f(indx, x, y, z);
1346 #if defined(QT_OPENGL_ES_2)
1349 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
1350 d_ptr->vertexAttrib3fv(indx, values);
1356 #if defined(QT_OPENGL_ES_2)
1359 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
1360 d_ptr->vertexAttrib4f(indx, x, y, z, w);
1366 #if defined(QT_OPENGL_ES_2)
1369 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
1370 d_ptr->vertexAttrib4fv(indx, values);
1376 #if defined(QT_OPENGL_ES_2)
1379 Q_ASSERT(QGLFunctions::isInitialized(d_ptr));
1380 d_ptr->vertexAttribPointer(indx, size, type, normalized, stride, ptr);
1384 #ifndef GL_ACTIVE_ATTRIBUTE_MAX_LENGTH
1385 #define GL_ACTIVE_ATTRIBUTE_MAX_LENGTH 0x8B8A
1387 #ifndef GL_ACTIVE_ATTRIBUTES
1388 #define GL_ACTIVE_ATTRIBUTES 0x8B89
1390 #ifndef GL_ACTIVE_TEXTURE
1391 #define GL_ACTIVE_TEXTURE 0x84E0
1393 #ifndef GL_ACTIVE_UNIFORM_MAX_LENGTH
1394 #define GL_ACTIVE_UNIFORM_MAX_LENGTH 0x8B87
1396 #ifndef GL_ACTIVE_UNIFORMS
1397 #define GL_ACTIVE_UNIFORMS 0x8B86
1399 #ifndef GL_ALIASED_LINE_WIDTH_RANGE
1400 #define GL_ALIASED_LINE_WIDTH_RANGE 0x846E
1402 #ifndef GL_ALIASED_POINT_SIZE_RANGE
1403 #define GL_ALIASED_POINT_SIZE_RANGE 0x846D
1406 #define GL_ALPHA 0x1906
1408 #ifndef GL_ALPHA_BITS
1409 #define GL_ALPHA_BITS 0x0D55
1412 #define GL_ALWAYS 0x0207
1414 #ifndef GL_ARRAY_BUFFER
1415 #define GL_ARRAY_BUFFER 0x8892
1417 #ifndef GL_ARRAY_BUFFER_BINDING
1418 #define GL_ARRAY_BUFFER_BINDING 0x8894
1420 #ifndef GL_ATTACHED_SHADERS
1421 #define GL_ATTACHED_SHADERS 0x8B85
1424 #define GL_BACK 0x0405
1427 #define GL_BLEND 0x0BE2
1429 #ifndef GL_BLEND_COLOR
1430 #define GL_BLEND_COLOR 0x8005
1432 #ifndef GL_BLEND_DST_ALPHA
1433 #define GL_BLEND_DST_ALPHA 0x80CA
1435 #ifndef GL_BLEND_DST_RGB
1436 #define GL_BLEND_DST_RGB 0x80C8
1438 #ifndef GL_BLEND_EQUATION
1439 #define GL_BLEND_EQUATION 0x8009
1441 #ifndef GL_BLEND_EQUATION_ALPHA
1442 #define GL_BLEND_EQUATION_ALPHA 0x883D
1444 #ifndef GL_BLEND_EQUATION_RGB
1445 #define GL_BLEND_EQUATION_RGB 0x8009
1447 #ifndef GL_BLEND_SRC_ALPHA
1448 #define GL_BLEND_SRC_ALPHA 0x80CB
1450 #ifndef GL_BLEND_SRC_RGB
1451 #define GL_BLEND_SRC_RGB 0x80C9
1453 #ifndef GL_BLUE_BITS
1454 #define GL_BLUE_BITS 0x0D54
1457 #define GL_BOOL 0x8B56
1459 #ifndef GL_BOOL_VEC2
1460 #define GL_BOOL_VEC2 0x8B57
1462 #ifndef GL_BOOL_VEC3
1463 #define GL_BOOL_VEC3 0x8B58
1465 #ifndef GL_BOOL_VEC4
1466 #define GL_BOOL_VEC4 0x8B59
1468 #ifndef GL_BUFFER_SIZE
1469 #define GL_BUFFER_SIZE 0x8764
1471 #ifndef GL_BUFFER_USAGE
1472 #define GL_BUFFER_USAGE 0x8765
1475 #define GL_BYTE 0x1400
1478 #define GL_CCW 0x0901
1480 #ifndef GL_CLAMP_TO_EDGE
1481 #define GL_CLAMP_TO_EDGE 0x812F
1483 #ifndef GL_COLOR_ATTACHMENT0
1484 #define GL_COLOR_ATTACHMENT0 0x8CE0
1486 #ifndef GL_COLOR_BUFFER_BIT
1487 #define GL_COLOR_BUFFER_BIT 0x00004000
1489 #ifndef GL_COLOR_CLEAR_VALUE
1490 #define GL_COLOR_CLEAR_VALUE 0x0C22
1492 #ifndef GL_COLOR_WRITEMASK
1493 #define GL_COLOR_WRITEMASK 0x0C23
1495 #ifndef GL_COMPILE_STATUS
1496 #define GL_COMPILE_STATUS 0x8B81
1498 #ifndef GL_COMPRESSED_TEXTURE_FORMATS
1499 #define GL_COMPRESSED_TEXTURE_FORMATS 0x86A3
1501 #ifndef GL_CONSTANT_ALPHA
1502 #define GL_CONSTANT_ALPHA 0x8003
1504 #ifndef GL_CONSTANT_COLOR
1505 #define GL_CONSTANT_COLOR 0x8001
1507 #ifndef GL_CULL_FACE
1508 #define GL_CULL_FACE 0x0B44
1510 #ifndef GL_CULL_FACE_MODE
1511 #define GL_CULL_FACE_MODE 0x0B45
1513 #ifndef GL_CURRENT_PROGRAM
1514 #define GL_CURRENT_PROGRAM 0x8B8D
1516 #ifndef GL_CURRENT_VERTEX_ATTRIB
1517 #define GL_CURRENT_VERTEX_ATTRIB 0x8626
1520 #define GL_CW 0x0900
1523 #define GL_DECR 0x1E03
1525 #ifndef GL_DECR_WRAP
1526 #define GL_DECR_WRAP 0x8508
1528 #ifndef GL_DELETE_STATUS
1529 #define GL_DELETE_STATUS 0x8B80
1531 #ifndef GL_DEPTH_ATTACHMENT
1532 #define GL_DEPTH_ATTACHMENT 0x8D00
1534 #ifndef GL_DEPTH_BITS
1535 #define GL_DEPTH_BITS 0x0D56
1537 #ifndef GL_DEPTH_BUFFER_BIT
1538 #define GL_DEPTH_BUFFER_BIT 0x00000100
1540 #ifndef GL_DEPTH_CLEAR_VALUE
1541 #define GL_DEPTH_CLEAR_VALUE 0x0B73
1543 #ifndef GL_DEPTH_COMPONENT
1544 #define GL_DEPTH_COMPONENT 0x1902
1546 #ifndef GL_DEPTH_COMPONENT16
1547 #define GL_DEPTH_COMPONENT16 0x81A5
1549 #ifndef GL_DEPTH_FUNC
1550 #define GL_DEPTH_FUNC 0x0B74
1552 #ifndef GL_DEPTH_RANGE
1553 #define GL_DEPTH_RANGE 0x0B70
1555 #ifndef GL_DEPTH_TEST
1556 #define GL_DEPTH_TEST 0x0B71
1558 #ifndef GL_DEPTH_WRITEMASK
1559 #define GL_DEPTH_WRITEMASK 0x0B72
1562 #define GL_DITHER 0x0BD0
1564 #ifndef GL_DONT_CARE
1565 #define GL_DONT_CARE 0x1100
1567 #ifndef GL_DST_ALPHA
1568 #define GL_DST_ALPHA 0x0304
1570 #ifndef GL_DST_COLOR
1571 #define GL_DST_COLOR 0x0306
1573 #ifndef GL_DYNAMIC_DRAW
1574 #define GL_DYNAMIC_DRAW 0x88E8
1576 #ifndef GL_ELEMENT_ARRAY_BUFFER
1577 #define GL_ELEMENT_ARRAY_BUFFER 0x8893
1579 #ifndef GL_ELEMENT_ARRAY_BUFFER_BINDING
1580 #define GL_ELEMENT_ARRAY_BUFFER_BINDING 0x8895
1583 #define GL_EQUAL 0x0202
1585 #ifndef GL_EXTENSIONS
1586 #define GL_EXTENSIONS 0x1F03
1592 #define GL_FASTEST 0x1101
1595 #define GL_FIXED 0x140C
1598 #define GL_FLOAT 0x1406
1600 #ifndef GL_FLOAT_MAT2
1601 #define GL_FLOAT_MAT2 0x8B5A
1603 #ifndef GL_FLOAT_MAT3
1604 #define GL_FLOAT_MAT3 0x8B5B
1606 #ifndef GL_FLOAT_MAT4
1607 #define GL_FLOAT_MAT4 0x8B5C
1609 #ifndef GL_FLOAT_VEC2
1610 #define GL_FLOAT_VEC2 0x8B50
1612 #ifndef GL_FLOAT_VEC3
1613 #define GL_FLOAT_VEC3 0x8B51
1615 #ifndef GL_FLOAT_VEC4
1616 #define GL_FLOAT_VEC4 0x8B52
1618 #ifndef GL_FRAGMENT_SHADER
1619 #define GL_FRAGMENT_SHADER 0x8B30
1621 #ifndef GL_FRAMEBUFFER
1622 #define GL_FRAMEBUFFER 0x8D40
1624 #ifndef GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME
1625 #define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME 0x8CD1
1627 #ifndef GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE
1628 #define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE 0x8CD0
1630 #ifndef GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE
1631 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE 0x8CD3
1633 #ifndef GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL
1634 #define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL 0x8CD2
1636 #ifndef GL_FRAMEBUFFER_BINDING
1637 #define GL_FRAMEBUFFER_BINDING 0x8CA6
1639 #ifndef GL_FRAMEBUFFER_COMPLETE
1640 #define GL_FRAMEBUFFER_COMPLETE 0x8CD5
1642 #ifndef GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT
1643 #define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT 0x8CD6
1645 #ifndef GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS
1646 #define GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS 0x8CD9
1648 #ifndef GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT
1649 #define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT 0x8CD7
1651 #ifndef GL_FRAMEBUFFER_UNSUPPORTED
1652 #define GL_FRAMEBUFFER_UNSUPPORTED 0x8CDD
1655 #define GL_FRONT 0x0404
1657 #ifndef GL_FRONT_AND_BACK
1658 #define GL_FRONT_AND_BACK 0x0408
1660 #ifndef GL_FRONT_FACE
1661 #define GL_FRONT_FACE 0x0B46
1664 #define GL_FUNC_ADD 0x8006
1666 #ifndef GL_FUNC_REVERSE_SUBTRACT
1667 #define GL_FUNC_REVERSE_SUBTRACT 0x800B
1669 #ifndef GL_FUNC_SUBTRACT
1670 #define GL_FUNC_SUBTRACT 0x800A
1672 #ifndef GL_GENERATE_MIPMAP_HINT
1673 #define GL_GENERATE_MIPMAP_HINT 0x8192
1676 #define GL_GEQUAL 0x0206
1679 #define GL_GREATER 0x0204
1681 #ifndef GL_GREEN_BITS
1682 #define GL_GREEN_BITS 0x0D53
1684 #ifndef GL_HIGH_FLOAT
1685 #define GL_HIGH_FLOAT 0x8DF2
1688 #define GL_HIGH_INT 0x8DF5
1690 #ifndef GL_IMPLEMENTATION_COLOR_READ_FORMAT
1691 #define GL_IMPLEMENTATION_COLOR_READ_FORMAT 0x8B9B
1693 #ifndef GL_IMPLEMENTATION_COLOR_READ_TYPE
1694 #define GL_IMPLEMENTATION_COLOR_READ_TYPE 0x8B9A
1697 #define GL_INCR 0x1E02
1699 #ifndef GL_INCR_WRAP
1700 #define GL_INCR_WRAP 0x8507
1702 #ifndef GL_INFO_LOG_LENGTH
1703 #define GL_INFO_LOG_LENGTH 0x8B84
1706 #define GL_INT 0x1404
1709 #define GL_INT_VEC2 0x8B53
1712 #define GL_INT_VEC3 0x8B54
1715 #define GL_INT_VEC4 0x8B55
1717 #ifndef GL_INVALID_ENUM
1718 #define GL_INVALID_ENUM 0x0500
1720 #ifndef GL_INVALID_FRAMEBUFFER_OPERATION
1721 #define GL_INVALID_FRAMEBUFFER_OPERATION 0x0506
1723 #ifndef GL_INVALID_OPERATION
1724 #define GL_INVALID_OPERATION 0x0502
1726 #ifndef GL_INVALID_VALUE
1727 #define GL_INVALID_VALUE 0x0501
1730 #define GL_INVERT 0x150A
1733 #define GL_KEEP 0x1E00
1736 #define GL_LEQUAL 0x0203
1739 #define GL_LESS 0x0201
1742 #define GL_LINEAR 0x2601
1744 #ifndef GL_LINEAR_MIPMAP_LINEAR
1745 #define GL_LINEAR_MIPMAP_LINEAR 0x2703
1747 #ifndef GL_LINEAR_MIPMAP_NEAREST
1748 #define GL_LINEAR_MIPMAP_NEAREST 0x2701
1750 #ifndef GL_LINE_LOOP
1751 #define GL_LINE_LOOP 0x0002
1754 #define GL_LINES 0x0001
1756 #ifndef GL_LINE_STRIP
1757 #define GL_LINE_STRIP 0x0003
1759 #ifndef GL_LINE_WIDTH
1760 #define GL_LINE_WIDTH 0x0B21
1762 #ifndef GL_LINK_STATUS
1763 #define GL_LINK_STATUS 0x8B82
1765 #ifndef GL_LOW_FLOAT
1766 #define GL_LOW_FLOAT 0x8DF0
1769 #define GL_LOW_INT 0x8DF3
1771 #ifndef GL_LUMINANCE
1772 #define GL_LUMINANCE 0x1909
1774 #ifndef GL_LUMINANCE_ALPHA
1775 #define GL_LUMINANCE_ALPHA 0x190A
1777 #ifndef GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS
1778 #define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS 0x8B4D
1780 #ifndef GL_MAX_CUBE_MAP_TEXTURE_SIZE
1781 #define GL_MAX_CUBE_MAP_TEXTURE_SIZE 0x851C
1783 #ifndef GL_MAX_FRAGMENT_UNIFORM_VECTORS
1784 #define GL_MAX_FRAGMENT_UNIFORM_VECTORS 0x8DFD
1786 #ifndef GL_MAX_RENDERBUFFER_SIZE
1787 #define GL_MAX_RENDERBUFFER_SIZE 0x84E8
1789 #ifndef GL_MAX_TEXTURE_IMAGE_UNITS
1790 #define GL_MAX_TEXTURE_IMAGE_UNITS 0x8872
1792 #ifndef GL_MAX_TEXTURE_SIZE
1793 #define GL_MAX_TEXTURE_SIZE 0x0D33
1795 #ifndef GL_MAX_VARYING_VECTORS
1796 #define GL_MAX_VARYING_VECTORS 0x8DFC
1798 #ifndef GL_MAX_VERTEX_ATTRIBS
1799 #define GL_MAX_VERTEX_ATTRIBS 0x8869
1801 #ifndef GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS
1802 #define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS 0x8B4C
1804 #ifndef GL_MAX_VERTEX_UNIFORM_VECTORS
1805 #define GL_MAX_VERTEX_UNIFORM_VECTORS 0x8DFB
1807 #ifndef GL_MAX_VIEWPORT_DIMS
1808 #define GL_MAX_VIEWPORT_DIMS 0x0D3A
1810 #ifndef GL_MEDIUM_FLOAT
1811 #define GL_MEDIUM_FLOAT 0x8DF1
1813 #ifndef GL_MEDIUM_INT
1814 #define GL_MEDIUM_INT 0x8DF4
1816 #ifndef GL_MIRRORED_REPEAT
1817 #define GL_MIRRORED_REPEAT 0x8370
1820 #define GL_NEAREST 0x2600
1822 #ifndef GL_NEAREST_MIPMAP_LINEAR
1823 #define GL_NEAREST_MIPMAP_LINEAR 0x2702
1825 #ifndef GL_NEAREST_MIPMAP_NEAREST
1826 #define GL_NEAREST_MIPMAP_NEAREST 0x2700
1829 #define GL_NEVER 0x0200
1832 #define GL_NICEST 0x1102
1835 #define GL_NO_ERROR 0
1841 #define GL_NOTEQUAL 0x0205
1843 #ifndef GL_NUM_COMPRESSED_TEXTURE_FORMATS
1844 #define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2
1846 #ifndef GL_NUM_SHADER_BINARY_FORMATS
1847 #define GL_NUM_SHADER_BINARY_FORMATS 0x8DF9
1852 #ifndef GL_ONE_MINUS_CONSTANT_ALPHA
1853 #define GL_ONE_MINUS_CONSTANT_ALPHA 0x8004
1855 #ifndef GL_ONE_MINUS_CONSTANT_COLOR
1856 #define GL_ONE_MINUS_CONSTANT_COLOR 0x8002
1858 #ifndef GL_ONE_MINUS_DST_ALPHA
1859 #define GL_ONE_MINUS_DST_ALPHA 0x0305
1861 #ifndef GL_ONE_MINUS_DST_COLOR
1862 #define GL_ONE_MINUS_DST_COLOR 0x0307
1864 #ifndef GL_ONE_MINUS_SRC_ALPHA
1865 #define GL_ONE_MINUS_SRC_ALPHA 0x0303
1867 #ifndef GL_ONE_MINUS_SRC_COLOR
1868 #define GL_ONE_MINUS_SRC_COLOR 0x0301
1870 #ifndef GL_OUT_OF_MEMORY
1871 #define GL_OUT_OF_MEMORY 0x0505
1873 #ifndef GL_PACK_ALIGNMENT
1874 #define GL_PACK_ALIGNMENT 0x0D05
1877 #define GL_POINTS 0x0000
1879 #ifndef GL_POLYGON_OFFSET_FACTOR
1880 #define GL_POLYGON_OFFSET_FACTOR 0x8038
1882 #ifndef GL_POLYGON_OFFSET_FILL
1883 #define GL_POLYGON_OFFSET_FILL 0x8037
1885 #ifndef GL_POLYGON_OFFSET_UNITS
1886 #define GL_POLYGON_OFFSET_UNITS 0x2A00
1889 #define GL_RED_BITS 0x0D52
1891 #ifndef GL_RENDERBUFFER
1892 #define GL_RENDERBUFFER 0x8D41
1894 #ifndef GL_RENDERBUFFER_ALPHA_SIZE
1895 #define GL_RENDERBUFFER_ALPHA_SIZE 0x8D53
1897 #ifndef GL_RENDERBUFFER_BINDING
1898 #define GL_RENDERBUFFER_BINDING 0x8CA7
1900 #ifndef GL_RENDERBUFFER_BLUE_SIZE
1901 #define GL_RENDERBUFFER_BLUE_SIZE 0x8D52
1903 #ifndef GL_RENDERBUFFER_DEPTH_SIZE
1904 #define GL_RENDERBUFFER_DEPTH_SIZE 0x8D54
1906 #ifndef GL_RENDERBUFFER_GREEN_SIZE
1907 #define GL_RENDERBUFFER_GREEN_SIZE 0x8D51
1909 #ifndef GL_RENDERBUFFER_HEIGHT
1910 #define GL_RENDERBUFFER_HEIGHT 0x8D43
1912 #ifndef GL_RENDERBUFFER_INTERNAL_FORMAT
1913 #define GL_RENDERBUFFER_INTERNAL_FORMAT 0x8D44
1915 #ifndef GL_RENDERBUFFER_RED_SIZE
1916 #define GL_RENDERBUFFER_RED_SIZE 0x8D50
1918 #ifndef GL_RENDERBUFFER_STENCIL_SIZE
1919 #define GL_RENDERBUFFER_STENCIL_SIZE 0x8D55
1921 #ifndef GL_RENDERBUFFER_WIDTH
1922 #define GL_RENDERBUFFER_WIDTH 0x8D42
1925 #define GL_RENDERER 0x1F01
1928 #define GL_REPEAT 0x2901
1931 #define GL_REPLACE 0x1E01
1934 #define GL_RGB 0x1907
1937 #define GL_RGB565 0x8D62
1940 #define GL_RGB5_A1 0x8057
1943 #define GL_RGBA 0x1908
1946 #define GL_RGBA4 0x8056
1948 #ifndef GL_SAMPLE_ALPHA_TO_COVERAGE
1949 #define GL_SAMPLE_ALPHA_TO_COVERAGE 0x809E
1951 #ifndef GL_SAMPLE_BUFFERS
1952 #define GL_SAMPLE_BUFFERS 0x80A8
1954 #ifndef GL_SAMPLE_COVERAGE
1955 #define GL_SAMPLE_COVERAGE 0x80A0
1957 #ifndef GL_SAMPLE_COVERAGE_INVERT
1958 #define GL_SAMPLE_COVERAGE_INVERT 0x80AB
1960 #ifndef GL_SAMPLE_COVERAGE_VALUE
1961 #define GL_SAMPLE_COVERAGE_VALUE 0x80AA
1963 #ifndef GL_SAMPLER_2D
1964 #define GL_SAMPLER_2D 0x8B5E
1966 #ifndef GL_SAMPLER_CUBE
1967 #define GL_SAMPLER_CUBE 0x8B60
1970 #define GL_SAMPLES 0x80A9
1972 #ifndef GL_SCISSOR_BOX
1973 #define GL_SCISSOR_BOX 0x0C10
1975 #ifndef GL_SCISSOR_TEST
1976 #define GL_SCISSOR_TEST 0x0C11
1978 #ifndef GL_SHADER_BINARY_FORMATS
1979 #define GL_SHADER_BINARY_FORMATS 0x8DF8
1981 #ifndef GL_SHADER_COMPILER
1982 #define GL_SHADER_COMPILER 0x8DFA
1984 #ifndef GL_SHADER_SOURCE_LENGTH
1985 #define GL_SHADER_SOURCE_LENGTH 0x8B88
1987 #ifndef GL_SHADER_TYPE
1988 #define GL_SHADER_TYPE 0x8B4F
1990 #ifndef GL_SHADING_LANGUAGE_VERSION
1991 #define GL_SHADING_LANGUAGE_VERSION 0x8B8C
1994 #define GL_SHORT 0x1402
1996 #ifndef GL_SRC_ALPHA
1997 #define GL_SRC_ALPHA 0x0302
1999 #ifndef GL_SRC_ALPHA_SATURATE
2000 #define GL_SRC_ALPHA_SATURATE 0x0308
2002 #ifndef GL_SRC_COLOR
2003 #define GL_SRC_COLOR 0x0300
2005 #ifndef GL_STATIC_DRAW
2006 #define GL_STATIC_DRAW 0x88E4
2008 #ifndef GL_STENCIL_ATTACHMENT
2009 #define GL_STENCIL_ATTACHMENT 0x8D20
2011 #ifndef GL_STENCIL_BACK_FAIL
2012 #define GL_STENCIL_BACK_FAIL 0x8801
2014 #ifndef GL_STENCIL_BACK_FUNC
2015 #define GL_STENCIL_BACK_FUNC 0x8800
2017 #ifndef GL_STENCIL_BACK_PASS_DEPTH_FAIL
2018 #define GL_STENCIL_BACK_PASS_DEPTH_FAIL 0x8802
2020 #ifndef GL_STENCIL_BACK_PASS_DEPTH_PASS
2021 #define GL_STENCIL_BACK_PASS_DEPTH_PASS 0x8803
2023 #ifndef GL_STENCIL_BACK_REF
2024 #define GL_STENCIL_BACK_REF 0x8CA3
2026 #ifndef GL_STENCIL_BACK_VALUE_MASK
2027 #define GL_STENCIL_BACK_VALUE_MASK 0x8CA4
2029 #ifndef GL_STENCIL_BACK_WRITEMASK
2030 #define GL_STENCIL_BACK_WRITEMASK 0x8CA5
2032 #ifndef GL_STENCIL_BITS
2033 #define GL_STENCIL_BITS 0x0D57
2035 #ifndef GL_STENCIL_BUFFER_BIT
2036 #define GL_STENCIL_BUFFER_BIT 0x00000400
2038 #ifndef GL_STENCIL_CLEAR_VALUE
2039 #define GL_STENCIL_CLEAR_VALUE 0x0B91
2041 #ifndef GL_STENCIL_FAIL
2042 #define GL_STENCIL_FAIL 0x0B94
2044 #ifndef GL_STENCIL_FUNC
2045 #define GL_STENCIL_FUNC 0x0B92
2047 #ifndef GL_STENCIL_INDEX
2048 #define GL_STENCIL_INDEX 0x1901
2050 #ifndef GL_STENCIL_INDEX8
2051 #define GL_STENCIL_INDEX8 0x8D48
2053 #ifndef GL_STENCIL_PASS_DEPTH_FAIL
2054 #define GL_STENCIL_PASS_DEPTH_FAIL 0x0B95
2056 #ifndef GL_STENCIL_PASS_DEPTH_PASS
2057 #define GL_STENCIL_PASS_DEPTH_PASS 0x0B96
2059 #ifndef GL_STENCIL_REF
2060 #define GL_STENCIL_REF 0x0B97
2062 #ifndef GL_STENCIL_TEST
2063 #define GL_STENCIL_TEST 0x0B90
2065 #ifndef GL_STENCIL_VALUE_MASK
2066 #define GL_STENCIL_VALUE_MASK 0x0B93
2068 #ifndef GL_STENCIL_WRITEMASK
2069 #define GL_STENCIL_WRITEMASK 0x0B98
2071 #ifndef GL_STREAM_DRAW
2072 #define GL_STREAM_DRAW 0x88E0
2074 #ifndef GL_SUBPIXEL_BITS
2075 #define GL_SUBPIXEL_BITS 0x0D50
2078 #define GL_TEXTURE0 0x84C0
2081 #define GL_TEXTURE 0x1702
2083 #ifndef GL_TEXTURE10
2084 #define GL_TEXTURE10 0x84CA
2087 #define GL_TEXTURE1 0x84C1
2089 #ifndef GL_TEXTURE11
2090 #define GL_TEXTURE11 0x84CB
2092 #ifndef GL_TEXTURE12
2093 #define GL_TEXTURE12 0x84CC
2095 #ifndef GL_TEXTURE13
2096 #define GL_TEXTURE13 0x84CD
2098 #ifndef GL_TEXTURE14
2099 #define GL_TEXTURE14 0x84CE
2101 #ifndef GL_TEXTURE15
2102 #define GL_TEXTURE15 0x84CF
2104 #ifndef GL_TEXTURE16
2105 #define GL_TEXTURE16 0x84D0
2107 #ifndef GL_TEXTURE17
2108 #define GL_TEXTURE17 0x84D1
2110 #ifndef GL_TEXTURE18
2111 #define GL_TEXTURE18 0x84D2
2113 #ifndef GL_TEXTURE19
2114 #define GL_TEXTURE19 0x84D3
2116 #ifndef GL_TEXTURE20
2117 #define GL_TEXTURE20 0x84D4
2120 #define GL_TEXTURE2 0x84C2
2122 #ifndef GL_TEXTURE21
2123 #define GL_TEXTURE21 0x84D5
2125 #ifndef GL_TEXTURE22
2126 #define GL_TEXTURE22 0x84D6
2128 #ifndef GL_TEXTURE23
2129 #define GL_TEXTURE23 0x84D7
2131 #ifndef GL_TEXTURE24
2132 #define GL_TEXTURE24 0x84D8
2134 #ifndef GL_TEXTURE25
2135 #define GL_TEXTURE25 0x84D9
2137 #ifndef GL_TEXTURE26
2138 #define GL_TEXTURE26 0x84DA
2140 #ifndef GL_TEXTURE27
2141 #define GL_TEXTURE27 0x84DB
2143 #ifndef GL_TEXTURE28
2144 #define GL_TEXTURE28 0x84DC
2146 #ifndef GL_TEXTURE29
2147 #define GL_TEXTURE29 0x84DD
2149 #ifndef GL_TEXTURE_2D
2150 #define GL_TEXTURE_2D 0x0DE1
2152 #ifndef GL_TEXTURE30
2153 #define GL_TEXTURE30 0x84DE
2156 #define GL_TEXTURE3 0x84C3
2158 #ifndef GL_TEXTURE31
2159 #define GL_TEXTURE31 0x84DF
2162 #define GL_TEXTURE4 0x84C4
2165 #define GL_TEXTURE5 0x84C5
2168 #define GL_TEXTURE6 0x84C6
2171 #define GL_TEXTURE7 0x84C7
2174 #define GL_TEXTURE8 0x84C8
2177 #define GL_TEXTURE9 0x84C9
2179 #ifndef GL_TEXTURE_BINDING_2D
2180 #define GL_TEXTURE_BINDING_2D 0x8069
2182 #ifndef GL_TEXTURE_BINDING_CUBE_MAP
2183 #define GL_TEXTURE_BINDING_CUBE_MAP 0x8514
2185 #ifndef GL_TEXTURE_CUBE_MAP
2186 #define GL_TEXTURE_CUBE_MAP 0x8513
2188 #ifndef GL_TEXTURE_CUBE_MAP_NEGATIVE_X
2189 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_X 0x8516
2191 #ifndef GL_TEXTURE_CUBE_MAP_NEGATIVE_Y
2192 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y 0x8518
2194 #ifndef GL_TEXTURE_CUBE_MAP_NEGATIVE_Z
2195 #define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z 0x851A
2197 #ifndef GL_TEXTURE_CUBE_MAP_POSITIVE_X
2198 #define GL_TEXTURE_CUBE_MAP_POSITIVE_X 0x8515
2200 #ifndef GL_TEXTURE_CUBE_MAP_POSITIVE_Y
2201 #define GL_TEXTURE_CUBE_MAP_POSITIVE_Y 0x8517
2203 #ifndef GL_TEXTURE_CUBE_MAP_POSITIVE_Z
2204 #define GL_TEXTURE_CUBE_MAP_POSITIVE_Z 0x8519
2206 #ifndef GL_TEXTURE_MAG_FILTER
2207 #define GL_TEXTURE_MAG_FILTER 0x2800
2209 #ifndef GL_TEXTURE_MIN_FILTER
2210 #define GL_TEXTURE_MIN_FILTER 0x2801
2212 #ifndef GL_TEXTURE_WRAP_S
2213 #define GL_TEXTURE_WRAP_S 0x2802
2215 #ifndef GL_TEXTURE_WRAP_T
2216 #define GL_TEXTURE_WRAP_T 0x2803
2218 #ifndef GL_TRIANGLE_FAN
2219 #define GL_TRIANGLE_FAN 0x0006
2221 #ifndef GL_TRIANGLES
2222 #define GL_TRIANGLES 0x0004
2224 #ifndef GL_TRIANGLE_STRIP
2225 #define GL_TRIANGLE_STRIP 0x0005
2230 #ifndef GL_UNPACK_ALIGNMENT
2231 #define GL_UNPACK_ALIGNMENT 0x0CF5
2233 #ifndef GL_UNSIGNED_BYTE
2234 #define GL_UNSIGNED_BYTE 0x1401
2236 #ifndef GL_UNSIGNED_INT
2237 #define GL_UNSIGNED_INT 0x1405
2239 #ifndef GL_UNSIGNED_SHORT
2240 #define GL_UNSIGNED_SHORT 0x1403
2242 #ifndef GL_UNSIGNED_SHORT_4_4_4_4
2243 #define GL_UNSIGNED_SHORT_4_4_4_4 0x8033
2245 #ifndef GL_UNSIGNED_SHORT_5_5_5_1
2246 #define GL_UNSIGNED_SHORT_5_5_5_1 0x8034
2248 #ifndef GL_UNSIGNED_SHORT_5_6_5
2249 #define GL_UNSIGNED_SHORT_5_6_5 0x8363
2251 #ifndef GL_VALIDATE_STATUS
2252 #define GL_VALIDATE_STATUS 0x8B83
2255 #define GL_VENDOR 0x1F00
2258 #define GL_VERSION 0x1F02
2260 #ifndef GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING
2261 #define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING 0x889F
2263 #ifndef GL_VERTEX_ATTRIB_ARRAY_ENABLED
2264 #define GL_VERTEX_ATTRIB_ARRAY_ENABLED 0x8622
2266 #ifndef GL_VERTEX_ATTRIB_ARRAY_NORMALIZED
2267 #define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED 0x886A
2269 #ifndef GL_VERTEX_ATTRIB_ARRAY_POINTER
2270 #define GL_VERTEX_ATTRIB_ARRAY_POINTER 0x8645
2272 #ifndef GL_VERTEX_ATTRIB_ARRAY_SIZE
2273 #define GL_VERTEX_ATTRIB_ARRAY_SIZE 0x8623
2275 #ifndef GL_VERTEX_ATTRIB_ARRAY_STRIDE
2276 #define GL_VERTEX_ATTRIB_ARRAY_STRIDE 0x8624
2278 #ifndef GL_VERTEX_ATTRIB_ARRAY_TYPE
2279 #define GL_VERTEX_ATTRIB_ARRAY_TYPE 0x8625
2281 #ifndef GL_VERTEX_SHADER
2282 #define GL_VERTEX_SHADER 0x8B31
2285 #define GL_VIEWPORT 0x0BA2
typedef GLboolean(APIENTRYP PFNGLISQUERYPROC)(GLuint id)
GLfloat GLfloat GLfloat z
qgl_GLsizeiptr const void GLenum usage
GLuint GLuint GLsizei GLenum type
GLsizei const char ** string
void glUniform2fv(GLint location, GLsizei count, const GLfloat *v)
void glDepthRangef(GLclampf zNear, GLclampf zFar)
void glGenRenderbuffers(GLsizei n, GLuint *renderbuffers)
#define glGetVertexAttribfv
void glDetachShader(GLuint program, GLuint shader)
#define glStencilOpSeparate
void glBlendColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
GLsizei GLsizei GLchar * source
unsigned int(APIENTRYP PFNGLXGETAGPOFFSETMESAPROC)(const void *pointer)
void glGetRenderbufferParameteriv(GLenum target, GLenum pname, GLint *params)
#define glGetVertexAttribPointerv
void glGetShaderPrecisionFormat(GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision)
GLenum GLenum GLenum zpass
void glGetUniformfv(GLuint program, GLint location, GLfloat *params)
#define glGetProgramInfoLog
void glSampleCoverage(GLclampf value, GLboolean invert)
void glUseProgram(GLuint program)
void glStencilOpSeparate(GLenum face, GLenum fail, GLenum zfail, GLenum zpass)
void glBindBuffer(GLenum target, GLuint buffer)
#define glGetAttribLocation
#define glUniformMatrix3fv
#define glVertexAttribPointer
void glUniformMatrix4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
void glCompileShader(GLuint shader)
GLuint glCreateShader(GLenum type)
const GLuint * framebuffers
void glDeleteProgram(GLuint program)
GLboolean glIsProgram(GLuint program)
void glBlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha)
GLsizei GLsizei GLuint * shaders
#define glGetActiveUniform
GLboolean glIsFramebuffer(GLuint framebuffer)
void glDisableVertexAttribArray(GLuint index)
void glFramebufferRenderbuffer(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer)
QT_BEGIN_HEADER QT_BEGIN_NAMESPACE typedef ptrdiff_t qgl_GLintptr
void glUniform4i(GLint location, GLint x, GLint y, GLint z, GLint w)
typedef void(APIENTRYP PFNGLBLENDCOLORPROC)(GLclampf red
void glGetActiveUniform(GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name)
const GLuint * renderbuffers
void glGenerateMipmap(GLenum target)
GLsizei GLboolean const GLfloat * value
#define glBlendEquationSeparate
void glCompressedTexImage2D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data)
void glRenderbufferStorage(GLenum target, GLenum internalformat, GLsizei width, GLsizei height)
void glStencilMaskSeparate(GLenum face, GLuint mask)
#define glCompressedTexSubImage2D
#define glBindAttribLocation
void glUniformMatrix3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
void glEnableVertexAttribArray(GLuint index)
void glUniform3iv(GLint location, GLsizei count, const GLint *v)
void glBufferSubData(GLenum target, qgl_GLintptr offset, qgl_GLsizeiptr size, const void *data)
void glLinkProgram(GLuint program)
void glClearDepthf(GLclampf depth)
GLboolean glIsShader(GLuint shader)
void glGetProgramInfoLog(GLuint program, GLsizei bufsize, GLsizei *length, char *infolog)
GLsizeiptr const GLvoid GLenum usage
GLboolean glIsRenderbuffer(GLuint renderbuffer)
void glDeleteBuffers(GLsizei n, const GLuint *buffers)
void glGetShaderiv(GLuint shader, GLenum pname, GLint *params)
GLenum GLenum renderbuffertarget
void glBufferData(GLenum target, qgl_GLsizeiptr size, const void *data, GLenum usage)
void glCompressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data)
void glUniform1fv(GLint location, GLsizei count, const GLfloat *v)
void glVertexAttrib1fv(GLuint indx, const GLfloat *values)
#define glVertexAttrib3fv
void glVertexAttrib1f(GLuint indx, GLfloat x)
void glUniform2i(GLint location, GLint x, GLint y)
void glVertexAttrib2fv(GLuint indx, const GLfloat *values)
qgl_GLintptr qgl_GLsizeiptr size
void glVertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLfloat z)
#define QT_BEGIN_NAMESPACE
GLsizei GLsizei GLenum GLenum const GLvoid * data
void glGetUniformiv(GLuint program, GLint location, GLint *params)
void glGenBuffers(GLsizei n, GLuint *buffers)
GLenum GLsizei GLenum format
GLuint GLsizei GLsizei GLint GLenum * type
#define glGetShaderSource
#define glStencilMaskSeparate
typedef GLenum(APIENTRYP PFNGLCHECKFRAMEBUFFERSTATUSEXTPROC)(GLenum target)
typedef GLuint(APIENTRYP PFNGLCREATEPROGRAMPROC)()
GLenum const GLfloat * params
void glVertexAttrib2f(GLuint indx, GLfloat x, GLfloat y)
int glGetUniformLocation(GLuint program, const char *name)
void glGetVertexAttribfv(GLuint index, GLenum pname, GLfloat *params)
void glDeleteShader(GLuint shader)
void glUniform4f(GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
GLenum GLsizei GLsizei height
void glUniform4iv(GLint location, GLsizei count, const GLint *v)
void glUniform3fv(GLint location, GLsizei count, const GLfloat *v)
GLclampf GLclampf GLclampf alpha
#define glGetBufferParameteriv
void glUniform4fv(GLint location, GLsizei count, const GLfloat *v)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei imageSize
void glUniform1iv(GLint location, GLsizei count, const GLint *v)
void glUniformMatrix2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
#define glGetVertexAttribiv
void glUniform3i(GLint location, GLint x, GLint y, GLint z)
GLsizei GLsizei char * source
GLuint GLuint GLsizei count
void glUniform2f(GLint location, GLfloat x, GLfloat y)
#define glUniformMatrix4fv
void glReleaseShaderCompiler()
GLuint GLsizei GLsizei * length
GLint GLint GLsizei GLsizei GLsizei GLint border
void glGetShaderInfoLog(GLuint shader, GLsizei bufsize, GLsizei *length, char *infolog)
void glGetProgramiv(GLuint program, GLenum pname, GLint *params)
#define glVertexAttrib1fv
void glShaderBinary(GLint n, const GLuint *shaders, GLenum binaryformat, const void *binary, GLint length)
void glFramebufferTexture2D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level)
void glVertexAttrib3fv(GLuint indx, const GLfloat *values)
void glUniform1i(GLint location, GLint x)
void glUniform2iv(GLint location, GLsizei count, const GLint *v)
const GLuint * framebuffers
GLsizei const GLfloat * value
#define glStencilFuncSeparate
GLint GLint GLsizei GLsizei GLsizei depth
GLuint const GLchar * name
GLint GLint GLint GLint w
void glDeleteRenderbuffers(GLsizei n, const GLuint *renderbuffers)
void glBindRenderbuffer(GLenum target, GLuint renderbuffer)
GLint GLint GLint yoffset
void glUniform1f(GLint location, GLfloat x)
GLenum GLenum GLuint texture
GLint GLenum GLboolean normalized
void glGetShaderSource(GLuint shader, GLsizei bufsize, GLsizei *length, char *source)
#define glGetAttachedShaders
#define glCompressedTexImage2D
void glGenFramebuffers(GLsizei n, GLuint *framebuffers)
#define glDisableVertexAttribArray
#define glVertexAttrib2fv
#define glGetUniformLocation
void glActiveTexture(GLenum texture)
void glDeleteFramebuffers(GLsizei n, const GLuint *framebuffers)
void glBindAttribLocation(GLuint program, GLuint index, const char *name)
void glGetBufferParameteriv(GLenum target, GLenum pname, GLint *params)
void glStencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask)
void glGetVertexAttribPointerv(GLuint index, GLenum pname, void **pointer)
void glAttachShader(GLuint program, GLuint shader)
void glGetVertexAttribiv(GLuint index, GLenum pname, GLint *params)
void glGetActiveAttrib(GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name)
void glBindFramebuffer(GLenum target, GLuint framebuffer)
GLint GLenum GLsizei width
typedef GLint(APIENTRYP PFNGLGETATTRIBLOCATIONPROC)(GLuint program
#define glBlendFuncSeparate
int glGetAttribLocation(GLuint program, const char *name)
#define glGetActiveAttrib
GLenum GLenum renderbuffertarget
GLubyte GLubyte GLubyte GLubyte w
#define glValidateProgram
GLboolean GLenum GLenum GLvoid * values
GLint GLint GLint yoffset
void glVertexAttribPointer(GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *ptr)
GLsizei const GLfloat * v
void glUniform3f(GLint location, GLfloat x, GLfloat y, GLfloat z)
GLfloat GLfloat GLfloat GLfloat w
void glVertexAttrib4f(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
void glGetFramebufferAttachmentParameteriv(GLenum target, GLenum attachment, GLenum pname, GLint *params)
void glShaderSource(GLuint shader, GLsizei count, const char **string, const GLint *length)
GLboolean glIsBuffer(GLuint buffer)
const GLuint * renderbuffers
void glGetAttachedShaders(GLuint program, GLsizei maxcount, GLsizei *count, GLuint *shaders)
GLenum GLuint GLint GLenum face
#define glGetShaderInfoLog
void glBlendFuncSeparate(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha)
void glValidateProgram(GLuint program)
GLenum glCheckFramebufferStatus(GLenum target)
GLsizei GLboolean transpose
void glBlendEquation(GLenum mode)
GLsizei const GLvoid * pointer
#define glUniformMatrix2fv
#define glEnableVertexAttribArray
#define glVertexAttrib4fv
void glVertexAttrib4fv(GLuint indx, const GLfloat *values)