summaryrefslogtreecommitdiffstats
path: root/src/render/texture/qtexture.h
diff options
context:
space:
mode:
authorPaul Lemire <paul.lemire@kdab.com>2016-08-02 11:10:36 +0200
committerPaul Lemire <paul.lemire@kdab.com>2016-10-10 08:49:18 +0000
commitc90a70d0426d12f1d37a24dbd3b9d44424aacdfc (patch)
treeba0c110e62c274c51e1e756662674db9e940a0af /src/render/texture/qtexture.h
parentd152e1c86fd2f4b08920f7113930e754397fcea5 (diff)
QTextureLoader/QTextureImage: add a mirrored property
This allows controlling this behavior as cube maps for example don't want the images to be mirrored. Change-Id: Ia5353074a4a24760476d57b845733d6052e08588 Task-number: QTBUG-54881 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/render/texture/qtexture.h')
-rw-r--r--src/render/texture/qtexture.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/render/texture/qtexture.h b/src/render/texture/qtexture.h
index 4d687dc6d..24d19fbcf 100644
--- a/src/render/texture/qtexture.h
+++ b/src/render/texture/qtexture.h
@@ -149,18 +149,21 @@ class QT3DRENDERSHARED_EXPORT QTextureLoader : public QAbstractTexture
{
Q_OBJECT
Q_PROPERTY(QUrl source READ source WRITE setSource NOTIFY sourceChanged)
-
+ Q_PROPERTY(bool mirrored READ isMirrored WRITE setMirrored NOTIFY mirroredChanged)
public:
explicit QTextureLoader(Qt3DCore::QNode *parent = nullptr);
~QTextureLoader();
QUrl source() const;
+ bool isMirrored() const;
public Q_SLOTS:
void setSource(const QUrl &source);
+ void setMirrored(bool mirrored);
Q_SIGNALS:
void sourceChanged(const QUrl &source);
+ void mirroredChanged(bool mirrored);
private:
Q_DECLARE_PRIVATE(QTextureLoader)