diff options
author | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-05-13 05:12:55 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-05-13 05:29:23 +0200 |
commit | 9fbafe9fe867fa727ce38612bd24431afd0100c1 (patch) | |
tree | d00bfa3705c1ff2633834c748f2f5526ec2f0ce4 /include/vcl | |
parent | f02999aa267c40876f29edf37d39694b619e69ba (diff) |
rerender after redrawing of the window
Change-Id: Ia967ba08a9bd0499ae5fb0865492783834204963
Diffstat (limited to 'include/vcl')
-rw-r--r-- | include/vcl/openglwin.hxx | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/include/vcl/openglwin.hxx b/include/vcl/openglwin.hxx index b766f05a0fc5..e9b823e6a15a 100644 --- a/include/vcl/openglwin.hxx +++ b/include/vcl/openglwin.hxx @@ -18,6 +18,14 @@ class OpenGLContext; class OpenGLWindowImpl; +class VCLOPENGL_DLLPUBLIC IRenderer +{ +public: + virtual ~IRenderer() {} + virtual void update() = 0; + virtual void clickedAt(const Point& rPos) = 0; +}; + // pImpl Pattern to avoid linking against OpenGL libs when using the class without the context class VCLOPENGL_DLLPUBLIC OpenGLWindow : public SystemChildWindow { @@ -26,11 +34,14 @@ public: virtual ~OpenGLWindow(); OpenGLContext* getContext(); - virtual void Paint(const Rectangle&) SAL_OVERRIDE {} + void setRenderer(IRenderer* pRenderer); + + virtual void Paint(const Rectangle&) SAL_OVERRIDE; virtual void MouseButtonDown( const MouseEvent& rMEvt ) SAL_OVERRIDE; private: boost::scoped_ptr<OpenGLWindowImpl> mpImpl; + IRenderer* mpRenderer; }; #endif |