summaryrefslogtreecommitdiffstats
path: root/src/render/graphicshelpers/graphicscontext_p.h
diff options
context:
space:
mode:
authorAntti Määttä <antti.maatta@qt.io>2016-08-12 12:23:45 +0300
committerSean Harmer <sean.harmer@kdab.com>2016-08-13 08:06:24 +0000
commitb1d171c8a308cea30f7bf9b1b28baf5d3013f355 (patch)
treec22dbc5db9d4a002402604fd9c39dd66da9af061 /src/render/graphicshelpers/graphicscontext_p.h
parent01234b9cc117078563dfcbfd3ae149a9a4a97311 (diff)
Add readFrameBuffer function
Add function, which can be used to read the pixels of the current render target to image. Use exported function for now, implement own later. Change-Id: Ifb6a5ddf03f968050ba56d14b28c049a2d59e1b7 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/render/graphicshelpers/graphicscontext_p.h')
-rw-r--r--src/render/graphicshelpers/graphicscontext_p.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/render/graphicshelpers/graphicscontext_p.h b/src/render/graphicshelpers/graphicscontext_p.h
index 07998c18b..d1b21a1d6 100644
--- a/src/render/graphicshelpers/graphicscontext_p.h
+++ b/src/render/graphicshelpers/graphicscontext_p.h
@@ -59,6 +59,7 @@
#include <QColor>
#include <QMatrix4x4>
#include <QBitArray>
+#include <QImage>
#include <Qt3DRender/private/quniformvalue_p.h>
#include <Qt3DRender/qclearbuffers.h>
#include <Qt3DRender/private/shader_p.h>
@@ -228,6 +229,8 @@ public:
bool supportsDrawBuffersBlend() const;
bool supportsVAO() const { return m_supportsVAO; }
+ QImage readFramebuffer(QSize size);
+
private:
void initialize();