qt5base-lts/examples/opengl
Samuel Rødal 4a189c188c QWindowContext / QWindowFormat refactor.
To enable having a single GL context used for multiple drawables we need
to de-couple the context class a bit more from the window class in the
plugin API. Now contexts are created stand-alone based on a GL format
and a share context, and when calling makeCurrent() a desired surface
is specified. This maps well to GLX, EGL, Cocoa, AGL, and WGL, which all
support this use case.

QWindowContext is renamed to QGuiGLContext, and QWindowFormat is renamed
to QGuiGLFormat. We have the ability to introduce a pbuffer or similar
other offscreen GL drawable abstraction in the future.
2011-06-10 09:24:56 +02:00
..
2dpainting Merge remote branch 'staging/master' into refactor 2011-05-24 15:22:06 +02:00
cube Merge remote-tracking branch 'base/master' into refactor 2011-06-01 15:34:58 +02:00
framebufferobject Squashed commit of changes from the 4.8-temp branch. 2011-05-23 14:24:07 +02:00
framebufferobject2 Merge remote branch 'staging/master' into refactor 2011-05-24 15:22:06 +02:00
grabber Merge remote branch 'staging/master' into refactor 2011-05-24 15:22:06 +02:00
hellogl Merge remote branch 'staging/master' into refactor 2011-05-24 15:22:06 +02:00
hellogl_es Merge remote branch 'staging/master' into refactor 2011-05-24 15:22:06 +02:00
hellogl_es2 Merge remote branch 'staging/master' into refactor 2011-05-24 15:22:06 +02:00
hellowindow QWindowContext / QWindowFormat refactor. 2011-06-10 09:24:56 +02:00
overpainting Merge remote branch 'staging/master' into refactor 2011-05-24 15:22:06 +02:00
pbuffers Merge remote branch 'staging/master' into refactor 2011-05-24 15:22:06 +02:00
pbuffers2 Merge remote branch 'staging/master' into refactor 2011-05-24 15:22:06 +02:00
samplebuffers Merge remote branch 'staging/master' into refactor 2011-05-24 15:22:06 +02:00
shared Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
textures Merge remote branch 'staging/master' into refactor 2011-05-24 15:22:06 +02:00
opengl.pro Merge remote branch 'staging/master' into refactor 2011-05-24 15:22:06 +02:00
README Initial import from the monolithic Qt. 2011-04-27 12:05:43 +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.


The example launcher provided with Qt can be used to explore each of the
examples in this directory.

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


Finding the Qt Examples and Demos launcher
==========================================

On Windows:

The launcher can be accessed via the Windows Start menu. Select the menu
entry entitled "Qt Examples and Demos" entry in the submenu containing
the Qt tools.

On Mac OS X:

For the binary distribution, the qtdemo executable is installed in the
/Developer/Applications/Qt directory. For the source distribution, it is
installed alongside the other Qt tools on the path specified when Qt is
configured.

On Unix/Linux:

The qtdemo executable is installed alongside the other Qt tools on the path
specified when Qt is configured.

On all platforms:

The source code for the launcher can be found in the demos/qtdemo directory
in the Qt package. This example is built at the same time as the Qt libraries,
tools, examples, and demonstrations.