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 50 #include <QtOpenGL/qgl.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
203 QGLFunctions::OpenGLFeatures openGLFeatures()
const;
206 void initializeGLFunctions(
const QGLContext *context = 0);
215 void glBlendEquation(
GLenum mode);
216 void glBlendEquationSeparate(
GLenum modeRGB,
GLenum modeAlpha);
221 void glClearDepthf(GLclampf depth);
232 void glDepthRangef(GLclampf zNear, GLclampf zFar);
244 void glGetAttachedShaders(GLuint program,
GLsizei maxcount,
GLsizei* count, GLuint* shaders);
255 void glGetUniformfv(GLuint program,
GLint location, GLfloat* params);
258 void glGetVertexAttribfv(GLuint
index,
GLenum pname, GLfloat* params);
260 void glGetVertexAttribPointerv(GLuint
index,
GLenum pname,
void** pointer);
267 void glReleaseShaderCompiler();
269 void glSampleCoverage(GLclampf value,
GLboolean invert);
273 void glStencilMaskSeparate(
GLenum face, GLuint mask);
283 void glUniform3f(
GLint location, GLfloat x, GLfloat y, GLfloat z);
287 void glUniform4f(
GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
295 void glValidateProgram(GLuint program);
296 void glVertexAttrib1f(GLuint indx, GLfloat x);
298 void glVertexAttrib2f(GLuint indx, GLfloat x, GLfloat y);
300 void glVertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLfloat z);
302 void glVertexAttrib4f(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
315 QGLFunctionsPrivate(
const QGLContext *context = 0);
317 #ifndef QT_OPENGL_ES_2 341 void (
QGLF_APIENTRYP detachShader)(GLuint program, GLuint shader);
406 void (
QGLF_APIENTRYP vertexAttrib2f)(GLuint indx, GLfloat x, GLfloat y);
408 void (
QGLF_APIENTRYP vertexAttrib3f)(GLuint indx, GLfloat x, GLfloat y, GLfloat z);
410 void (
QGLF_APIENTRYP vertexAttrib4f)(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
418 #if defined(QT_OPENGL_ES_1) || defined(QT_OPENGL_ES_2) 422 d_ptr->activeTexture(texture);
428 #if defined(QT_OPENGL_ES_2) 432 d_ptr->attachShader(program, shader);
438 #if defined(QT_OPENGL_ES_2) 442 d_ptr->bindAttribLocation(program, index, name);
448 #if defined(QT_OPENGL_ES_1) || defined(QT_OPENGL_ES_2) 452 d_ptr->bindBuffer(target, buffer);
458 #if defined(QT_OPENGL_ES_2) 462 d_ptr->bindFramebuffer(target, framebuffer);
468 #if defined(QT_OPENGL_ES_2) 472 d_ptr->bindRenderbuffer(target, renderbuffer);
478 #if defined(QT_OPENGL_ES_2) 482 d_ptr->blendColor(red, green, blue, alpha);
488 #if defined(QT_OPENGL_ES_2) 489 ::glBlendEquation(mode);
492 d_ptr->blendEquation(mode);
498 #if defined(QT_OPENGL_ES_2) 499 ::glBlendEquationSeparate(modeRGB, modeAlpha);
502 d_ptr->blendEquationSeparate(modeRGB, modeAlpha);
508 #if defined(QT_OPENGL_ES_2) 509 ::glBlendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha);
512 d_ptr->blendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha);
518 #if defined(QT_OPENGL_ES_1) || defined(QT_OPENGL_ES_2) 522 d_ptr->bufferData(target, size, data, usage);
528 #if defined(QT_OPENGL_ES_1) || defined(QT_OPENGL_ES_2) 532 d_ptr->bufferSubData(target, offset, size, data);
538 #if defined(QT_OPENGL_ES_2) 542 return d_ptr->checkFramebufferStatus(target);
549 ::glClearDepth(depth);
551 ::glClearDepthf(depth);
557 #if defined(QT_OPENGL_ES_2) 561 d_ptr->compileShader(shader);
567 #if defined(QT_OPENGL_ES_1) || defined(QT_OPENGL_ES_2) 571 d_ptr->compressedTexImage2D(target, level, internalformat, width, height, border, imageSize, data);
577 #if defined(QT_OPENGL_ES_1) || defined(QT_OPENGL_ES_2) 578 ::glCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data);
581 d_ptr->compressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data);
587 #if defined(QT_OPENGL_ES_2) 591 return d_ptr->createProgram();
597 #if defined(QT_OPENGL_ES_2) 601 return d_ptr->createShader(type);
607 #if defined(QT_OPENGL_ES_1) || defined(QT_OPENGL_ES_2) 611 d_ptr->deleteBuffers(n, buffers);
617 #if defined(QT_OPENGL_ES_2) 621 d_ptr->deleteFramebuffers(n, framebuffers);
627 #if defined(QT_OPENGL_ES_2) 631 d_ptr->deleteProgram(program);
637 #if defined(QT_OPENGL_ES_2) 641 d_ptr->deleteRenderbuffers(n, renderbuffers);
647 #if defined(QT_OPENGL_ES_2) 651 d_ptr->deleteShader(shader);
658 ::glDepthRange(zNear, zFar);
660 ::glDepthRangef(zNear, zFar);
666 #if defined(QT_OPENGL_ES_2) 670 d_ptr->detachShader(program, shader);
676 #if defined(QT_OPENGL_ES_2) 680 d_ptr->disableVertexAttribArray(index);
686 #if defined(QT_OPENGL_ES_2) 690 d_ptr->enableVertexAttribArray(index);
696 #if defined(QT_OPENGL_ES_2) 700 d_ptr->framebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer);
706 #if defined(QT_OPENGL_ES_2) 710 d_ptr->framebufferTexture2D(target, attachment, textarget, texture, level);
716 #if defined(QT_OPENGL_ES_1) || defined(QT_OPENGL_ES_2) 720 d_ptr->genBuffers(n, buffers);
726 #if defined(QT_OPENGL_ES_2) 730 d_ptr->generateMipmap(target);
736 #if defined(QT_OPENGL_ES_2) 740 d_ptr->genFramebuffers(n, framebuffers);
746 #if defined(QT_OPENGL_ES_2) 750 d_ptr->genRenderbuffers(n, renderbuffers);
756 #if defined(QT_OPENGL_ES_2) 757 ::glGetActiveAttrib(program, index, bufsize, length, size, type, name);
760 d_ptr->getActiveAttrib(program, index, bufsize, length, size, type, name);
766 #if defined(QT_OPENGL_ES_2) 767 ::glGetActiveUniform(program, index, bufsize, length, size, type, name);
770 d_ptr->getActiveUniform(program, index, bufsize, length, size, type, name);
776 #if defined(QT_OPENGL_ES_2) 777 ::glGetAttachedShaders(program, maxcount, count, shaders);
780 d_ptr->getAttachedShaders(program, maxcount, count, shaders);
786 #if defined(QT_OPENGL_ES_2) 790 return d_ptr->getAttribLocation(program, name);
796 #if defined(QT_OPENGL_ES_2) 800 d_ptr->getBufferParameteriv(target, pname, params);
806 #if defined(QT_OPENGL_ES_2) 810 d_ptr->getFramebufferAttachmentParameteriv(target, attachment, pname, params);
816 #if defined(QT_OPENGL_ES_2) 820 d_ptr->getProgramiv(program, pname, params);
826 #if defined(QT_OPENGL_ES_2) 830 d_ptr->getProgramInfoLog(program, bufsize, length, infolog);
836 #if defined(QT_OPENGL_ES_2) 840 d_ptr->getRenderbufferParameteriv(target, pname, params);
846 #if defined(QT_OPENGL_ES_2) 850 d_ptr->getShaderiv(shader, pname, params);
856 #if defined(QT_OPENGL_ES_2) 860 d_ptr->getShaderInfoLog(shader, bufsize, length, infolog);
866 #if defined(QT_OPENGL_ES_2) 867 ::glGetShaderPrecisionFormat(shadertype, precisiontype, range, precision);
870 d_ptr->getShaderPrecisionFormat(shadertype, precisiontype, range, precision);
876 #if defined(QT_OPENGL_ES_2) 880 d_ptr->getShaderSource(shader, bufsize, length, source);
886 #if defined(QT_OPENGL_ES_2) 887 ::glGetUniformfv(program, location, params);
890 d_ptr->getUniformfv(program, location, params);
896 #if defined(QT_OPENGL_ES_2) 897 ::glGetUniformiv(program, location, params);
900 d_ptr->getUniformiv(program, location, params);
906 #if defined(QT_OPENGL_ES_2) 910 return d_ptr->getUniformLocation(program, name);
916 #if defined(QT_OPENGL_ES_2) 917 ::glGetVertexAttribfv(index, pname, params);
920 d_ptr->getVertexAttribfv(index, pname, params);
926 #if defined(QT_OPENGL_ES_2) 927 ::glGetVertexAttribiv(index, pname, params);
930 d_ptr->getVertexAttribiv(index, pname, params);
936 #if defined(QT_OPENGL_ES_2) 937 ::glGetVertexAttribPointerv(index, pname, pointer);
940 d_ptr->getVertexAttribPointerv(index, pname, pointer);
946 #if defined(QT_OPENGL_ES_1) || defined(QT_OPENGL_ES_2) 947 return ::glIsBuffer(buffer);
950 return d_ptr->isBuffer(buffer);
956 #if defined(QT_OPENGL_ES_2) 960 return d_ptr->isFramebuffer(framebuffer);
966 #if defined(QT_OPENGL_ES_2) 970 return d_ptr->isProgram(program);
976 #if defined(QT_OPENGL_ES_2) 980 return d_ptr->isRenderbuffer(renderbuffer);
986 #if defined(QT_OPENGL_ES_2) 990 return d_ptr->isShader(shader);
996 #if defined(QT_OPENGL_ES_2) 1000 d_ptr->linkProgram(program);
1006 #if defined(QT_OPENGL_ES_2) 1007 ::glReleaseShaderCompiler();
1010 d_ptr->releaseShaderCompiler();
1016 #if defined(QT_OPENGL_ES_2) 1020 d_ptr->renderbufferStorage(target, internalformat, width, height);
1026 #if defined(QT_OPENGL_ES_1) || defined(QT_OPENGL_ES_2) 1027 ::glSampleCoverage(value, invert);
1030 d_ptr->sampleCoverage(value, invert);
1036 #if defined(QT_OPENGL_ES_2) 1040 d_ptr->shaderBinary(n, shaders, binaryformat, binary, length);
1046 #if defined(QT_OPENGL_ES_2) 1050 d_ptr->shaderSource(shader, count,
string, length);
1056 #if defined(QT_OPENGL_ES_2) 1057 ::glStencilFuncSeparate(face, func, ref, mask);
1060 d_ptr->stencilFuncSeparate(face, func, ref, mask);
1066 #if defined(QT_OPENGL_ES_2) 1067 ::glStencilMaskSeparate(face, mask);
1070 d_ptr->stencilMaskSeparate(face, mask);
1076 #if defined(QT_OPENGL_ES_2) 1080 d_ptr->stencilOpSeparate(face, fail, zfail, zpass);
1086 #if defined(QT_OPENGL_ES_2) 1087 ::glUniform1f(location, x);
1090 d_ptr->uniform1f(location, x);
1096 #if defined(QT_OPENGL_ES_2) 1100 d_ptr->uniform1fv(location, count, v);
1106 #if defined(QT_OPENGL_ES_2) 1110 d_ptr->uniform1i(location, x);
1116 #if defined(QT_OPENGL_ES_2) 1120 d_ptr->uniform1iv(location, count, v);
1126 #if defined(QT_OPENGL_ES_2) 1127 ::glUniform2f(location, x, y);
1130 d_ptr->uniform2f(location, x, y);
1136 #if defined(QT_OPENGL_ES_2) 1140 d_ptr->uniform2fv(location, count, v);
1146 #if defined(QT_OPENGL_ES_2) 1147 ::glUniform2i(location, x, y);
1150 d_ptr->uniform2i(location, x, y);
1156 #if defined(QT_OPENGL_ES_2) 1157 ::glUniform2iv(location, count, v);
1160 d_ptr->uniform2iv(location, count, v);
1166 #if defined(QT_OPENGL_ES_2) 1167 ::glUniform3f(location, x, y, z);
1170 d_ptr->uniform3f(location, x, y, z);
1176 #if defined(QT_OPENGL_ES_2) 1180 d_ptr->uniform3fv(location, count, v);
1186 #if defined(QT_OPENGL_ES_2) 1187 ::glUniform3i(location, x, y, z);
1190 d_ptr->uniform3i(location, x, y, z);
1196 #if defined(QT_OPENGL_ES_2) 1197 ::glUniform3iv(location, count, v);
1200 d_ptr->uniform3iv(location, count, v);
1206 #if defined(QT_OPENGL_ES_2) 1207 ::glUniform4f(location, x, y, z, w);
1210 d_ptr->uniform4f(location, x, y, z, w);
1216 #if defined(QT_OPENGL_ES_2) 1220 d_ptr->uniform4fv(location, count, v);
1226 #if defined(QT_OPENGL_ES_2) 1227 ::glUniform4i(location, x, y, z, w);
1230 d_ptr->uniform4i(location, x, y, z, w);
1236 #if defined(QT_OPENGL_ES_2) 1237 ::glUniform4iv(location, count, v);
1240 d_ptr->uniform4iv(location, count, v);
1246 #if defined(QT_OPENGL_ES_2) 1250 d_ptr->uniformMatrix2fv(location, count, transpose, value);
1256 #if defined(QT_OPENGL_ES_2) 1260 d_ptr->uniformMatrix3fv(location, count, transpose, value);
1266 #if defined(QT_OPENGL_ES_2) 1270 d_ptr->uniformMatrix4fv(location, count, transpose, value);
1276 #if defined(QT_OPENGL_ES_2) 1280 d_ptr->useProgram(program);
1286 #if defined(QT_OPENGL_ES_2) 1287 ::glValidateProgram(program);
1290 d_ptr->validateProgram(program);
1296 #if defined(QT_OPENGL_ES_2) 1297 ::glVertexAttrib1f(indx, x);
1300 d_ptr->vertexAttrib1f(indx, x);
1306 #if defined(QT_OPENGL_ES_2) 1310 d_ptr->vertexAttrib1fv(indx, values);
1316 #if defined(QT_OPENGL_ES_2) 1317 ::glVertexAttrib2f(indx, x, y);
1320 d_ptr->vertexAttrib2f(indx, x, y);
1326 #if defined(QT_OPENGL_ES_2) 1330 d_ptr->vertexAttrib2fv(indx, values);
1336 #if defined(QT_OPENGL_ES_2) 1337 ::glVertexAttrib3f(indx, x, y, z);
1340 d_ptr->vertexAttrib3f(indx, x, y, z);
1346 #if defined(QT_OPENGL_ES_2) 1350 d_ptr->vertexAttrib3fv(indx, values);
1356 #if defined(QT_OPENGL_ES_2) 1357 ::glVertexAttrib4f(indx, x, y, z, w);
1360 d_ptr->vertexAttrib4f(indx, x, y, z, w);
1366 #if defined(QT_OPENGL_ES_2) 1370 d_ptr->vertexAttrib4fv(indx, values);
1376 #if defined(QT_OPENGL_ES_2) 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
~QGLFunctions()
Destroys this function resolver.
QGLFunctionsPrivate * d_ptr
void glUniform3fv(GLint location, GLsizei count, const GLfloat *v)
Convenience function that calls glUniform3fv(location, count, v).
GLboolean glIsFramebuffer(GLuint framebuffer)
Convenience function that calls glIsFramebuffer(framebuffer).
void glUniform4i(GLint location, GLint x, GLint y, GLint z, GLint w)
Convenience function that calls glUniform4i(location, x, y, z, w).
#define QT_END_NAMESPACE
This macro expands to.
GLboolean glIsBuffer(GLuint buffer)
Convenience function that calls glIsBuffer(buffer).
void glDisableVertexAttribArray(GLuint index)
Convenience function that calls glDisableVertexAttribArray(index).
void glVertexAttrib1fv(GLuint indx, const GLfloat *values)
Convenience function that calls glVertexAttrib1fv(indx, values).
#define glStencilOpSeparate
void glCompressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data)
Convenience function that calls glCompressedTexSubImage2D(target, level, xoffset, yoffset...
void glGetActiveUniform(GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name)
Convenience function that calls glGetActiveUniform(program, index, bufsize, length, size, type, name).
void glUniformMatrix2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
Convenience function that calls glUniformMatrix2fv(location, count, transpose, value).
#define glGetShaderSource
#define Q_DECLARE_FLAGS(Flags, Enum)
The Q_DECLARE_FLAGS() macro expands to.
void glRenderbufferStorage(GLenum target, GLenum internalformat, GLsizei width, GLsizei height)
Convenience function that calls glRenderbufferStorage(target, internalformat, width, height).
#define glCompressedTexImage2D
void glDeleteFramebuffers(GLsizei n, const GLuint *framebuffers)
Convenience function that calls glDeleteFramebuffers(n, framebuffers).
void glGetActiveAttrib(GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, char *name)
Convenience function that calls glGetActiveAttrib(program, index, bufsize, length, size, type, name).
void glGetVertexAttribiv(GLuint index, GLenum pname, GLint *params)
Convenience function that calls glGetVertexAttribiv(index, pname, params).
void glEnableVertexAttribArray(GLuint index)
Convenience function that calls glEnableVertexAttribArray(index).
void glBlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha)
Convenience function that calls glBlendEquationSeparate(modeRGB, modeAlpha).
#define glGetFramebufferAttachmentParameteriv
void glCompressedTexImage2D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data)
Convenience function that calls glCompressedTexImage2D(target, level, internalformat, width, height, border, imageSize, data).
void glGetProgramiv(GLuint program, GLenum pname, GLint *params)
Convenience function that calls glGetProgramiv(program, pname, params).
void glDeleteRenderbuffers(GLsizei n, const GLuint *renderbuffers)
Convenience function that calls glDeleteRenderbuffers(n, renderbuffers).
void glBindAttribLocation(GLuint program, GLuint index, const char *name)
Convenience function that calls glBindAttribLocation(program, index, name).
void glVertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLfloat z)
Convenience function that calls glVertexAttrib3f(indx, x, y, z).
#define glGenRenderbuffers
void glUniform2i(GLint location, GLint x, GLint y)
Convenience function that calls glUniform2i(location, x, y).
void glVertexAttrib2f(GLuint indx, GLfloat x, GLfloat y)
Convenience function that calls glVertexAttrib2f(indx, x, y).
#define glBindAttribLocation
void glBlendEquation(GLenum mode)
Convenience function that calls glBlendEquation(mode).
#define glVertexAttribPointer
#define glVertexAttrib3fv
#define glVertexAttrib2fv
OpenGLFeature
This enum defines OpenGL/ES 2.
#define glEnableVertexAttribArray
void glStencilOpSeparate(GLenum face, GLenum fail, GLenum zfail, GLenum zpass)
Convenience function that calls glStencilOpSeparate(face, fail, zfail, zpass).
void glStencilMaskSeparate(GLenum face, GLuint mask)
Convenience function that calls glStencilMaskSeparate(face, mask).
#define glVertexAttrib1fv
void glFramebufferTexture2D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level)
Convenience function that calls glFramebufferTexture2D(target, attachment, textarget, texture, level).
void glShaderSource(GLuint shader, GLsizei count, const char **string, const GLint *length)
Convenience function that calls glShaderSource(shader, count, string, length).
#define glBindFramebuffer
void glBlendFuncSeparate(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha)
Convenience function that calls glBlendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha).
void glBlendColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
Convenience function that calls glBlendColor(red, green, blue, alpha).
void glValidateProgram(GLuint program)
Convenience function that calls glValidateProgram(program).
void glUniform4iv(GLint location, GLsizei count, const GLint *v)
Convenience function that calls glUniform4iv(location, count, v).
void glVertexAttrib1f(GLuint indx, GLfloat x)
Convenience function that calls glVertexAttrib1f(indx, x).
#define glDeleteRenderbuffers
void glDeleteBuffers(GLsizei n, const GLuint *buffers)
Convenience function that calls glDeleteBuffers(n, buffers).
#define glGetAttribLocation
int glGetUniformLocation(GLuint program, const char *name)
Convenience function that calls glGetUniformLocation(program, name).
void glUniform1i(GLint location, GLint x)
Convenience function that calls glUniform1i(location, x).
void glUniform4fv(GLint location, GLsizei count, const GLfloat *v)
Convenience function that calls glUniform4fv(location, count, v).
void glGetProgramInfoLog(GLuint program, GLsizei bufsize, GLsizei *length, char *infolog)
Convenience function that calls glGetProgramInfoLog(program, bufsize, length, infolog).
#define glVertexAttrib4fv
#define glGetBufferParameteriv
GLboolean glIsProgram(GLuint program)
Convenience function that calls glIsProgram(program).
The QGLFunctions class provides cross-platform access to the OpenGL/ES 2.0 API.
void glDepthRangef(GLclampf zNear, GLclampf zFar)
Convenience function that calls glDepthRange(zNear, zFar) on desktop OpenGL systems and glDepthRangef...
#define glUniformMatrix3fv
void glUniform4f(GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
Convenience function that calls glUniform4f(location, x, y, z, w).
#define QT_BEGIN_NAMESPACE
This macro expands to.
void glUniform3iv(GLint location, GLsizei count, const GLint *v)
Convenience function that calls glUniform3iv(location, count, v).
void glUniform1fv(GLint location, GLsizei count, const GLfloat *v)
Convenience function that calls glUniform1fv(location, count, v).
void glBufferSubData(GLenum target, qgl_GLintptr offset, qgl_GLsizeiptr size, const void *data)
Convenience function that calls glBufferSubData(target, offset, size, data).
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
The Q_DECLARE_OPERATORS_FOR_FLAGS() macro declares global operator|() functions for Flags...
void glCompileShader(GLuint shader)
Convenience function that calls glCompileShader(shader).
The QGLContext class encapsulates an OpenGL rendering context.
GLuint glCreateShader(GLenum type)
Convenience function that calls glCreateShader(type).
#define glCheckFramebufferStatus
#define glDeleteFramebuffers
GLboolean glIsShader(GLuint shader)
Convenience function that calls glIsShader(shader).
void glBindFramebuffer(GLenum target, GLuint framebuffer)
Convenience function that calls glBindFramebuffer(target, framebuffer).
#define glGenFramebuffers
void glGetUniformiv(GLuint program, GLint location, GLint *params)
Convenience function that calls glGetUniformiv(program, location, params).
static const char * data(const QByteArray &arr)
void glGetFramebufferAttachmentParameteriv(GLenum target, GLenum attachment, GLenum pname, GLint *params)
Convenience function that calls glGetFramebufferAttachmentParameteriv(target, attachment, pname, params).
void glUniform3i(GLint location, GLint x, GLint y, GLint z)
Convenience function that calls glUniform3i(location, x, y, z).
const T * ptr(const T &t)
#define glGetShaderInfoLog
void glStencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask)
Convenience function that calls glStencilFuncSeparate(face, func, ref, mask).
void glGenBuffers(GLsizei n, GLuint *buffers)
Convenience function that calls glGenBuffers(n, buffers).
#define glGetRenderbufferParameteriv
#define glBindRenderbuffer
void glVertexAttribPointer(GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *ptr)
Convenience function that calls glVertexAttribPointer(indx, size, type, normalized, stride, ptr).
void glUniform1f(GLint location, GLfloat x)
Convenience function that calls glUniform1f(location, x).
void glGetRenderbufferParameteriv(GLenum target, GLenum pname, GLint *params)
Convenience function that calls glGetRenderbufferParameteriv(target, pname, params).
void glUniform2fv(GLint location, GLsizei count, const GLfloat *v)
Convenience function that calls glUniform2fv(location, count, v).
void glVertexAttrib4f(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
Convenience function that calls glVertexAttrib4f(indx, x, y, z, w).
void glLinkProgram(GLuint program)
Convenience function that calls glLinkProgram(program).
void glShaderBinary(GLint n, const GLuint *shaders, GLenum binaryformat, const void *binary, GLint length)
Convenience function that calls glShaderBinary(n, shaders, binaryformat, binary, length).
GLuint glCreateProgram()
Convenience function that calls glCreateProgram().
void glGetVertexAttribPointerv(GLuint index, GLenum pname, void **pointer)
Convenience function that calls glGetVertexAttribPointerv(index, pname, pointer). ...
Q_STATIC_TEMPLATE_FUNCTION void blendColor(int count, const QSpan *spans, void *userData)
void glDeleteShader(GLuint shader)
Convenience function that calls glDeleteShader(shader).
void glReleaseShaderCompiler()
Convenience function that calls glReleaseShaderCompiler().
void glClearDepthf(GLclampf depth)
Convenience function that calls glClearDepth(depth) on desktop OpenGL systems and glClearDepthf(depth...
void glFramebufferRenderbuffer(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer)
Convenience function that calls glFramebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer).
#define glDisableVertexAttribArray
#define glUniformMatrix4fv
void glBufferData(GLenum target, qgl_GLsizeiptr size, const void *data, GLenum usage)
Convenience function that calls glBufferData(target, size, data, usage).
static QTestResult::TestLocation location
void glGenRenderbuffers(GLsizei n, GLuint *renderbuffers)
Convenience function that calls glGenRenderbuffers(n, renderbuffers).
void glGetShaderInfoLog(GLuint shader, GLsizei bufsize, GLsizei *length, char *infolog)
Convenience function that calls glGetShaderInfoLog(shader, bufsize, length, infolog).
void glDetachShader(GLuint program, GLuint shader)
Convenience function that calls glDetachShader(program, shader).
void glGenFramebuffers(GLsizei n, GLuint *framebuffers)
Convenience function that calls glGenFramebuffers(n, framebuffers).
static bool isInitialized(const QGLFunctionsPrivate *d)
void glGetAttachedShaders(GLuint program, GLsizei maxcount, GLsizei *count, GLuint *shaders)
Convenience function that calls glGetAttachedShaders(program, maxcount, count, shaders).
#define glGetUniformLocation
void glVertexAttrib2fv(GLuint indx, const GLfloat *values)
Convenience function that calls glVertexAttrib2fv(indx, values).
void glGetUniformfv(GLuint program, GLint location, GLfloat *params)
Convenience function that calls glGetUniformfv(program, location, params).
void glGetBufferParameteriv(GLenum target, GLenum pname, GLint *params)
Convenience function that calls glGetBufferParameteriv(target, pname, params).
void glGetShaderSource(GLuint shader, GLsizei bufsize, GLsizei *length, char *source)
Convenience function that calls glGetShaderSource(shader, bufsize, length, source).
#define glFramebufferRenderbuffer
GLboolean glIsRenderbuffer(GLuint renderbuffer)
Convenience function that calls glIsRenderbuffer(renderbuffer).
void glGetShaderiv(GLuint shader, GLenum pname, GLint *params)
Convenience function that calls glGetShaderiv(shader, pname, params).
void glBindRenderbuffer(GLenum target, GLuint renderbuffer)
Convenience function that calls glBindRenderbuffer(target, renderbuffer).
int glGetAttribLocation(GLuint program, const char *name)
Convenience function that calls glGetAttribLocation(program, name).
#define glFramebufferTexture2D
void glUseProgram(GLuint program)
Convenience function that calls glUseProgram(program).
void glGenerateMipmap(GLenum target)
Convenience function that calls glGenerateMipmap(target).
#define glUniformMatrix2fv
void glAttachShader(GLuint program, GLuint shader)
Convenience function that calls glAttachShader(program, shader).
void glUniform3f(GLint location, GLfloat x, GLfloat y, GLfloat z)
Convenience function that calls glUniform3f(location, x, y, z).
void glGetVertexAttribfv(GLuint index, GLenum pname, GLfloat *params)
Convenience function that calls glGetVertexAttribfv(index, pname, params).
void glUniform2f(GLint location, GLfloat x, GLfloat y)
Convenience function that calls glUniform2f(location, x, y).
void glDeleteProgram(GLuint program)
Convenience function that calls glDeleteProgram(program).
#define glRenderbufferStorage
void glBindBuffer(GLenum target, GLuint buffer)
Convenience function that calls glBindBuffer(target, buffer).
void glUniformMatrix3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
Convenience function that calls glUniformMatrix3fv(location, count, transpose, value).
void glGetShaderPrecisionFormat(GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision)
Convenience function that calls glGetShaderPrecisionFormat(shadertype, precisiontype, range, precision).
void glSampleCoverage(GLclampf value, GLboolean invert)
Convenience function that calls glSampleCoverage(value, invert).
GLenum glCheckFramebufferStatus(GLenum target)
Convenience function that calls glCheckFramebufferStatus(target).
void glUniformMatrix4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
Convenience function that calls glUniformMatrix4fv(location, count, transpose, value).
void glUniform2iv(GLint location, GLsizei count, const GLint *v)
Convenience function that calls glUniform2iv(location, count, v).
#define glGetProgramInfoLog
void glUniform1iv(GLint location, GLsizei count, const GLint *v)
Convenience function that calls glUniform1iv(location, count, v).
void glVertexAttrib4fv(GLuint indx, const GLfloat *values)
Convenience function that calls glVertexAttrib4fv(indx, values).
void glActiveTexture(GLenum texture)
Convenience function that calls glActiveTexture(texture).
void glVertexAttrib3fv(GLuint indx, const GLfloat *values)
Convenience function that calls glVertexAttrib3fv(indx, values).