summaryrefslogtreecommitdiffstats
path: root/src/render/texture/qabstracttextureprovider.cpp
diff options
context:
space:
mode:
authorMauro Persano <mauro.persano@kdab.com>2016-01-12 10:49:20 -0200
committerSean Harmer <sean.harmer@kdab.com>2016-01-16 15:52:31 +0000
commit634ac2a3c1a7bae9eef6476c37cd68209c28ae4f (patch)
tree270469aeac7988b3534918bedd2becf70cfb8e98 /src/render/texture/qabstracttextureprovider.cpp
parent43e55cd54635a5ef1eb09fe9cff701f7eb16cd7a (diff)
Support for DDS textures
This commit adds support for DDS textures. It also adds QTextureLoader, a generic texture provider without a texture target. The actual texture target will be based on the properties of the texture loaded from its "source" property. Change-Id: If89cce7a55b3d82355f2da35588a091b7188f36c Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/render/texture/qabstracttextureprovider.cpp')
-rw-r--r--src/render/texture/qabstracttextureprovider.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/render/texture/qabstracttextureprovider.cpp b/src/render/texture/qabstracttextureprovider.cpp
index ca9849771..c46e199b2 100644
--- a/src/render/texture/qabstracttextureprovider.cpp
+++ b/src/render/texture/qabstracttextureprovider.cpp
@@ -529,6 +529,12 @@ QAbstractTextureProvider::ComparisonMode QAbstractTextureProvider::comparisonMod
return d->m_comparisonMode;
}
+QTextureDataFunctorPtr QAbstractTextureProvider::dataFunctor() const
+{
+ Q_D(const QAbstractTextureProvider);
+ return d->m_dataFunctor;
+}
+
} // namespace Qt3DRender
QT_END_NAMESPACE