diff options
Diffstat (limited to 'vcl/inc/opengl/texture.hxx')
-rw-r--r-- | vcl/inc/opengl/texture.hxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/vcl/inc/opengl/texture.hxx b/vcl/inc/opengl/texture.hxx index e120c080ffa1..95126ff5b7bb 100644 --- a/vcl/inc/opengl/texture.hxx +++ b/vcl/inc/opengl/texture.hxx @@ -66,6 +66,11 @@ public: mFunctSlotDeallocateCallback = aCallback; } + void ResetSlotDeallocateCallback() + { + mFunctSlotDeallocateCallback = std::function<void(int)>(); + } + GLuint AddStencil(); }; @@ -80,6 +85,11 @@ private: inline bool GetTextureRect(const SalTwoRect& rPosAry, bool bInverted, GLfloat& x1, GLfloat& x2, GLfloat& y1, GLfloat& y2) const; + inline bool IsValid() const + { + return (mpImpl && mpImpl->mnTexture != 0); + } + public: OpenGLTexture(); OpenGLTexture(ImplOpenGLTexture* pImpl, Rectangle aRectangle, int nSlotNumber); |