diff options
author | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com> | 2010-02-10 11:25:45 (GMT) |
---|---|---|
committer | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com> | 2010-02-10 11:25:45 (GMT) |
commit | 03abd6981d4a1aebec3b39f5768be3511ffbf0fb (patch) | |
tree | 6eff98b5035c584be7be5520e4953644cf5fdb1f /src/gui/painting/qpainter.cpp | |
parent | d92f8dd19a2f52771063faf0b926faa22149a206 (diff) | |
parent | 37ffa8f59c5dc1f4a1174a07e0a6df6e266d40c0 (diff) | |
download | Qt-03abd6981d4a1aebec3b39f5768be3511ffbf0fb.zip Qt-03abd6981d4a1aebec3b39f5768be3511ffbf0fb.tar.gz Qt-03abd6981d4a1aebec3b39f5768be3511ffbf0fb.tar.bz2 |
Merge branch '4.6' into qstatictext-4.6
Diffstat (limited to 'src/gui/painting/qpainter.cpp')
-rw-r--r-- | src/gui/painting/qpainter.cpp | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/src/gui/painting/qpainter.cpp b/src/gui/painting/qpainter.cpp index 0d47260..c2e2fef 100644 --- a/src/gui/painting/qpainter.cpp +++ b/src/gui/painting/qpainter.cpp @@ -1988,12 +1988,25 @@ QPaintEngine *QPainter::paintEngine() const endNativePainting(). Note that only the states the underlying paint engine changes will be reset - to their respective default states. If, for example, the OpenGL polygon - mode is changed by the user inside a beginNativePaint()/endNativePainting() - block, it will not be reset to the default state by endNativePainting(). + to their respective default states. The states we reset may change from + release to release. The following states are currently reset in the OpenGL + 2 engine: - Here is an example that shows intermixing of painter commands - and raw OpenGL commands: + \list + \i blending is disabled + \i the depth, stencil and scissor tests are disabled + \i the active texture unit is reset to 0 + \i the depth mask, depth function and the clear depth are reset to their + default values + \i the stencil mask, stencil operation and stencil function are reset to + their default values + \i the current color is reset to solid white + \endlist + + If, for example, the OpenGL polygon mode is changed by the user inside a + beginNativePaint()/endNativePainting() block, it will not be reset to the + default state by endNativePainting(). Here is an example that shows + intermixing of painter commands and raw OpenGL commands: \snippet doc/src/snippets/code/src_gui_painting_qpainter.cpp 21 |