diff options
author | Samuel Rødal <sroedal@trolltech.com> | 2009-06-30 07:45:14 (GMT) |
---|---|---|
committer | Samuel Rødal <sroedal@trolltech.com> | 2009-06-30 12:20:11 (GMT) |
commit | 351e890aa13faac69a0ceaa8cb02660b2275cf82 (patch) | |
tree | caf61d0d83735128390759638b20011d3b150cf7 /src/opengl/gl2paintengineex/qpaintengineex_opengl2_p.h | |
parent | 9dd82fcebc50ca802e9e24a50283152e1dc35508 (diff) | |
download | Qt-351e890aa13faac69a0ceaa8cb02660b2275cf82.zip Qt-351e890aa13faac69a0ceaa8cb02660b2275cf82.tar.gz Qt-351e890aa13faac69a0ceaa8cb02660b2275cf82.tar.bz2 |
Added custom shader hook to the GL 2 paint engine.
This will make it easier to implement pixmap filters, YUV->RGB
conversions, etc in other parts of Qt.
Diffstat (limited to 'src/opengl/gl2paintengineex/qpaintengineex_opengl2_p.h')
-rw-r--r-- | src/opengl/gl2paintengineex/qpaintengineex_opengl2_p.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/opengl/gl2paintengineex/qpaintengineex_opengl2_p.h b/src/opengl/gl2paintengineex/qpaintengineex_opengl2_p.h index 0d28a49..f8d3b53 100644 --- a/src/opengl/gl2paintengineex/qpaintengineex_opengl2_p.h +++ b/src/opengl/gl2paintengineex/qpaintengineex_opengl2_p.h @@ -88,8 +88,7 @@ public: bool canRestoreClip; }; - -class QGL2PaintEngineEx : public QPaintEngineEx +class Q_OPENGL_EXPORT QGL2PaintEngineEx : public QPaintEngineEx { Q_DECLARE_PRIVATE(QGL2PaintEngineEx) public: @@ -133,6 +132,8 @@ public: } virtual void sync(); + QGLEngineShaderManager *shaderManager() const; + private: Q_DISABLE_COPY(QGL2PaintEngineEx) }; |