4a189c188c
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. |
||
---|---|---|
.. | ||
2dpainting | ||
cube | ||
framebufferobject | ||
framebufferobject2 | ||
grabber | ||
hellogl | ||
hellogl_es | ||
hellogl_es2 | ||
hellowindow | ||
overpainting | ||
pbuffers | ||
pbuffers2 | ||
samplebuffers | ||
shared | ||
textures | ||
opengl.pro | ||
README |
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.