summaryrefslogtreecommitdiffstats
path: root/src/gui/opengl/qopenglfunctions_2_1.cpp
Commit message (Collapse)AuthorAgeFilesLines
* OpenGL: Add a set of version and context specific OpenGL classesSean Harmer2013-02-261-0/+297
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>