diff options
Diffstat (limited to 'include/vcl/opengl')
-rw-r--r-- | include/vcl/opengl/OpenGLContext.hxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/vcl/opengl/OpenGLContext.hxx b/include/vcl/opengl/OpenGLContext.hxx index 44b8d67fd8d9..723a99404ef8 100644 --- a/include/vcl/opengl/OpenGLContext.hxx +++ b/include/vcl/opengl/OpenGLContext.hxx @@ -62,6 +62,7 @@ class OpenGLProgram; class OpenGLTexture; class SalGraphicsImpl; class OpenGLTests; +class RenderState; /// Holds the information of our new child window struct GLWindow @@ -166,6 +167,11 @@ public: OpenGLProgram* UseProgram( const OUString& rVertexShader, const OUString& rFragmentShader, const OString& preamble = "" ); void UseNoProgram(); + std::unique_ptr<RenderState>& state() + { + return mpRenderState; + } + /// Is this GL context the current context ? bool isCurrent(); /// release bound resources from the current context @@ -249,6 +255,8 @@ private: ProgramCollection maPrograms; OpenGLProgram* mpCurrentProgram; + std::unique_ptr<RenderState> mpRenderState; + public: vcl::Region maClipRegion; int mnPainting; |