summaryrefslogtreecommitdiffstats
path: root/examples/opengl/opengl.pro
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@digia.com>2014-02-26 15:21:18 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-02-28 18:00:39 +0100
commit1219dbe543eb91a52645cd96e6b7eccfd60b5be7 (patch)
treee1f0b61860dea4cea8b8fdd63b9d88488073f069 /examples/opengl/opengl.pro
parent40519146419cccf30e392b08fcf3db755ad288a1 (diff)
Add an example for creating OpenGL contexts
Besides serving as an example for performing OpenGL rendering inside a window container in a way that it works across all GL versions, this is an extremely useful tool for developers and users alike since it allows quick and easy checking of what sort of context a particular driver returns for a particular QSurfaceFormat. NB! Depending on the OpenGL driver, some surprises can be expected. The handling of core/compatibility profiles, the fwdcompat bit, the supported GLSL versions, etc. tend to be somewhat different across the different OpenGL implementations. Task-number: QTBUG-37071 Change-Id: Iae4328e66cd0bb19f74a77fefef93ea5a3221e31 Reviewed-by: Jørgen Lind <jorgen.lind@digia.com> Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com> Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'examples/opengl/opengl.pro')
-rw-r--r--examples/opengl/opengl.pro3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/opengl/opengl.pro b/examples/opengl/opengl.pro
index 54b0321b26..3d12d8707f 100644
--- a/examples/opengl/opengl.pro
+++ b/examples/opengl/opengl.pro
@@ -25,6 +25,7 @@ contains(QT_CONFIG, opengles1)|contains(QT_CONFIG, opengles2){
}
SUBDIRS += hellowindow \
- paintedwindow
+ paintedwindow \
+ contextinfo
EXAMPLE_FILES = shared