summaryrefslogtreecommitdiffstats
path: root/src/render/framegraph/qclearbuffers.h
diff options
context:
space:
mode:
authorMike Krus <mike.krus@kdab.com>2016-03-17 21:45:30 +0000
committerSean Harmer <sean.harmer@kdab.com>2016-03-22 12:53:11 +0000
commit68667e9105744478bcfd2cf16efda71a350da372 (patch)
treebf88e711878abc9403b89a21a1927e999448a6d9 /src/render/framegraph/qclearbuffers.h
parente3c31c3a5a1061e2cf85e49398093b0a11437649 (diff)
Added properties to QClearBuffers
- clearColor - clearDepthValue - clearStencilValue Task-number: QTBUG-51460 Change-Id: Ib31efde0b6ab97ef1f57d4ce71fb2fbca218dc85 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/render/framegraph/qclearbuffers.h')
-rw-r--r--src/render/framegraph/qclearbuffers.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/render/framegraph/qclearbuffers.h b/src/render/framegraph/qclearbuffers.h
index 9a145d0b0..ce1920603 100644
--- a/src/render/framegraph/qclearbuffers.h
+++ b/src/render/framegraph/qclearbuffers.h
@@ -41,6 +41,7 @@
#define QT3DRENDER_QCLEARBUFFERS_H
#include <Qt3DRender/qframegraphnode.h>
+#include <QColor>
QT_BEGIN_NAMESPACE
@@ -52,6 +53,9 @@ class QT3DRENDERSHARED_EXPORT QClearBuffers : public QFrameGraphNode
{
Q_OBJECT
Q_PROPERTY(BufferType buffers READ buffers WRITE setBuffers NOTIFY buffersChanged)
+ Q_PROPERTY(QColor clearColor READ clearColor WRITE setClearColor NOTIFY clearColorChanged)
+ Q_PROPERTY(float clearDepthValue READ clearDepthValue WRITE setClearDepthValue NOTIFY clearDepthValueChanged)
+ Q_PROPERTY(int clearStencilValue READ clearStencilValue WRITE setClearStencilValue NOTIFY clearStencilValueChanged)
public:
explicit QClearBuffers(Qt3DCore::QNode *parent = 0);
~QClearBuffers();
@@ -69,12 +73,21 @@ public:
Q_ENUM(BufferType)
BufferType buffers() const;
+ QColor clearColor() const;
+ float clearDepthValue() const;
+ int clearStencilValue() const;
public Q_SLOTS:
void setBuffers(BufferType buffers);
+ void setClearColor(const QColor& color);
+ void setClearDepthValue(float clearDepthValue);
+ void setClearStencilValue(int clearStencilValue);
Q_SIGNALS:
void buffersChanged(BufferType buffers);
+ void clearColorChanged(const QColor& color);
+ void clearDepthValueChanged(float clearDepthValue);
+ void clearStencilValueChanged(int clearStencilValue);
protected:
QClearBuffers(QClearBuffersPrivate &dd, Qt3DCore::QNode *parent = 0);