summaryrefslogtreecommitdiffstats
path: root/src/gui/opengl/qopenglframebufferobject.h
diff options
context:
space:
mode:
authorSamuel Rødal <samuel.rodal@nokia.com>2012-02-14 19:43:46 +0100
committerQt by Nokia <qt-info@nokia.com>2012-02-15 17:01:50 +0100
commitb36ece3ff4ee516eab8f0f34c8e7f54d2fcee311 (patch)
tree432b03015991a752012d781558020751708b12d6 /src/gui/opengl/qopenglframebufferobject.h
parent0f0d8a5a8fecf545cdf58ab50d05253ffd20e90b (diff)
Added support for resetting QOpenGLFramebufferObject attachments.
As the documentation says, this can be useful to free or recreate attachments when needed. For example, it might be useful to free stencil and depth attachments to free up resources when not rendering to the framebuffer object. Change-Id: Ib267024fdd380a788c256eb8fb86e0f8832329e0 Reviewed-by: Kim M. Kalland <kim.kalland@nokia.com>
Diffstat (limited to 'src/gui/opengl/qopenglframebufferobject.h')
-rw-r--r--src/gui/opengl/qopenglframebufferobject.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/opengl/qopenglframebufferobject.h b/src/gui/opengl/qopenglframebufferobject.h
index 0b2ead1cbb..63260f1940 100644
--- a/src/gui/opengl/qopenglframebufferobject.h
+++ b/src/gui/opengl/qopenglframebufferobject.h
@@ -101,6 +101,8 @@ public:
QImage toImage() const;
Attachment attachment() const;
+ void setAttachment(Attachment attachment);
+
GLuint handle() const;
static bool bindDefault();