From dcbb16a45212d263496df1e5875da6205e4f5f53 Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Mon, 30 Dec 2013 14:37:22 +0100 Subject: Add takeTexture() to QOpenGLFramebufferObject Add an API that allows to retrieve and detach the texture from the framebuffer object. The next bind() call will then create and attach a new texture. [ChangeLog][QtGui][QOpenGLFramebufferObject] Added takeTexture() for retrieving and detaching the texture from the framebuffer object. Task-number: QTBUG-35881 Change-Id: I2cca37f5872c1685b1238047f8b912e6534ab781 Reviewed-by: Gunnar Sletta --- src/gui/opengl/qopenglframebufferobject.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gui/opengl/qopenglframebufferobject.h') diff --git a/src/gui/opengl/qopenglframebufferobject.h b/src/gui/opengl/qopenglframebufferobject.h index 215d3701ca8..a431618f6d2 100644 --- a/src/gui/opengl/qopenglframebufferobject.h +++ b/src/gui/opengl/qopenglframebufferobject.h @@ -97,6 +97,7 @@ public: int height() const { return size().height(); } GLuint texture() const; + GLuint takeTexture(); QSize size() const; QImage toImage() const; Attachment attachment() const; -- cgit v1.2.3