summaryrefslogtreecommitdiffstats
path: root/src/openglextensions/qopenglextensions.cpp
diff options
context:
space:
mode:
authorSean Harmer <sean.harmer@kdab.com>2012-09-22 16:34:21 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-02-26 16:27:30 +0100
commit10aa64d74c0208ed9f42e88e6deb3000e9cad6df (patch)
tree4fb87da458d75f728c862fd3c34c483438249a14 /src/openglextensions/qopenglextensions.cpp
parent4b1332783e16423b3b2c54125b130247ee6bc5b2 (diff)
OpenGL: Add a set of version and context specific OpenGL classes
This commit adds part of the output of utils/glgen and some simple modifications to QOpenGLContext to allow easy access to classes containing functions specific to a given OpenGL context and version. This allows compile-time detection of mis-use of OpenGL features. For example, trying to use glBegin(GL_TRIANGLES) with an OpenGL 3.2 Core Profile context will be detected by the compiler rather than at runtime. These capabilities make it much easier to add functionality to Qt and applications that relies upon core features of OpenGL from specific versions e.g. geometry shaders. Change-Id: Ieb584a489792595f831bc77dee84935c03bb5a64 Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
Diffstat (limited to 'src/openglextensions/qopenglextensions.cpp')
0 files changed, 0 insertions, 0 deletions