summaryrefslogtreecommitdiffstats
path: root/src/render/texture/qtextureimagedata.h
diff options
context:
space:
mode:
authorJuan Casafranca <juan.casafranca@kdab.com>2020-09-25 13:02:24 +0200
committerJuan José Casafranca <juan.casafranca@kdab.com>2020-09-28 09:36:33 +0200
commit2bb20e346430aad0928d454ecaa4ace23017c196 (patch)
treeac557ff5b1fd861b2ab06cf09ffb9cd87bafd86b /src/render/texture/qtextureimagedata.h
parent327da58f9463354dea30c6fac4fdf8da3c3b7d08 (diff)
Allow to specify a functor to extract data from QTextureImageData
Change-Id: Idd052f6c24665a1accd2cd681c80fe74846e5c39 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/render/texture/qtextureimagedata.h')
-rw-r--r--src/render/texture/qtextureimagedata.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/render/texture/qtextureimagedata.h b/src/render/texture/qtextureimagedata.h
index 05b7f95f4..f546cec8c 100644
--- a/src/render/texture/qtextureimagedata.h
+++ b/src/render/texture/qtextureimagedata.h
@@ -99,6 +99,10 @@ public:
int blockSize,
bool isCompressed = false);
+ void setData(const QByteArray &data,
+ std::function<QByteArray(int layer, int face, int mipmapLevel)>,
+ bool isCompressed = false);
+
QByteArray data(int layer = 0, int face = 0, int mipmapLevel = 0) const;
protected:
QTextureImageData(QTextureImageDataPrivate &dd);