diff options
author | Samuel Rødal <sroedal@trolltech.com> | 2009-05-29 12:00:45 (GMT) |
---|---|---|
committer | Samuel Rødal <sroedal@trolltech.com> | 2009-05-29 14:10:24 (GMT) |
commit | 07fbbf76bef1845bb6c490b15a0b7caabf23d888 (patch) | |
tree | 34adda17d7bc6ce199fa62de032c44dd14e962e9 /src/gui/painting/qpaintengineex_p.h | |
parent | a322d3faacdb8e5a8649b478b3eaa8aa03d789d6 (diff) | |
download | Qt-07fbbf76bef1845bb6c490b15a0b7caabf23d888.zip Qt-07fbbf76bef1845bb6c490b15a0b7caabf23d888.tar.gz Qt-07fbbf76bef1845bb6c490b15a0b7caabf23d888.tar.bz2 |
Made GL2 engine default for QGLWidget, and added GL2 sync() function
To allow mixing QPainter and raw OpenGL commands we need to have some
way for the user to say that's he's about to use raw OpenGL so that we
are free to do buffering optimizations in the paint engines and use
either GL1 or GL2 paint engine. As there's already a syncState()
function in QPaintEngine we've reused this and added
QPaintEngineEx::sync() which takes care of syncing/flushing the paint
engine.
Reviewed-by: Trond
Diffstat (limited to 'src/gui/painting/qpaintengineex_p.h')
-rw-r--r-- | src/gui/painting/qpaintengineex_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/painting/qpaintengineex_p.h b/src/gui/painting/qpaintengineex_p.h index 593726c..1c55242 100644 --- a/src/gui/painting/qpaintengineex_p.h +++ b/src/gui/painting/qpaintengineex_p.h @@ -216,6 +216,8 @@ public: inline QPainterState *state() { return static_cast<QPainterState *>(QPaintEngine::state); } inline const QPainterState *state() const { return static_cast<const QPainterState *>(QPaintEngine::state); } + virtual void sync() {} + virtual QPixmapFilter *createPixmapFilter(int /*type*/) const { return 0; } protected: |