qt5base-lts/examples/opengl
Laszlo Agocs 1219dbe543 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>
2014-02-28 18:00:39 +01:00
..
2dpainting Remove warnings about examples not running in the Qt Simulator 2013-10-09 21:45:31 +02:00
contextinfo Add an example for creating OpenGL contexts 2014-02-28 18:00:39 +01:00
cube Fix MSVC-warnings about double to float truncation. 2014-01-24 20:26:39 +01:00
doc Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
framebufferobject2 expand tabs and related whitespace fixes in *.{cpp,h,qdoc} 2014-01-13 22:46:50 +01:00
grabber Remove warnings about examples not running in the Qt Simulator 2013-10-09 21:45:31 +02:00
hellogl Remove warnings about examples not running in the Qt Simulator 2013-10-09 21:45:31 +02:00
hellogl_es Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
hellogl_es2 Fix division by zero in hellogl_es2 example. 2014-02-24 12:30:34 +01:00
hellowindow Make OpenGL examples work on retina displays. 2013-11-29 10:05:24 +01:00
overpainting Remove warnings about examples not running in the Qt Simulator 2013-10-09 21:45:31 +02:00
paintedwindow Make OpenGL examples work on retina displays. 2013-11-29 10:05:24 +01:00
pbuffers expand tabs and related whitespace fixes in *.{cpp,h,qdoc} 2014-01-13 22:46:50 +01:00
pbuffers2 expand tabs and related whitespace fixes in *.{cpp,h,qdoc} 2014-01-13 22:46:50 +01:00
samplebuffers expand tabs and related whitespace fixes in *.{cpp,h,qdoc} 2014-01-13 22:46:50 +01:00
shared examples: remove unused static const variables 2013-09-14 23:40:18 +02:00
textures Dynamic GL switch on Windows 2014-02-14 10:51:44 +01:00
opengl.pro Add an example for creating OpenGL contexts 2014-02-28 18:00:39 +01:00
README Remove references to demos from docs. 2011-07-05 19:57:54 +02:00

Qt provides support for integration with OpenGL implementations on all
platforms, giving developers the opportunity to display hardware accelerated
3D graphics alongside a more conventional user interface.

These examples demonstrate the basic techniques used to take advantage of
OpenGL in Qt applications.


Documentation for these examples can be found via the Examples
link in the main Qt documentation.