b39df8bf92
Previously we only had QWindow::setOrientation() which was a hint about the orientation the window's contents were rendered in. However, it's necessary to separate between the orientation corresponding to the window buffer layout and orientation of the contents. A game for example might typically want to use a landscape buffer even on a portrait device. Thus, we replace QWindow::orientation() with QWindow::reportContentOrientationChange() and QWindow::requestWindowOrientation(). Change-Id: I1f07362192daf36c45519cb05b43ac352f1945b5 Reviewed-by: Lars Knoll <lars.knoll@nokia.com> |
||
---|---|---|
.. | ||
2dpainting | ||
cube | ||
framebufferobject | ||
framebufferobject2 | ||
grabber | ||
hellogl | ||
hellogl_es | ||
hellogl_es2 | ||
hellowindow | ||
overpainting | ||
paintedwindow | ||
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. Documentation for these examples can be found via the Examples link in the main Qt documentation.