summaryrefslogtreecommitdiffstats
path: root/src/render/texture/qabstracttexture_p.h
diff options
context:
space:
mode:
authorPaul Lemire <paul.lemire@kdab.com>2018-08-20 10:11:41 +0200
committerPaul Lemire <paul.lemire@kdab.com>2018-10-10 10:20:59 +0000
commit5149ff8c645a15bc7f9ea28f6c085d08d79ca784 (patch)
tree3e22e4f453fce06feb5bdf80ad60036ce644a7f3 /src/render/texture/qabstracttexture_p.h
parentb45d56eb116395387f619837d440d5771e9edd4b (diff)
QAbstractTexture:: add handle and handleType properties
Will allow to retrieve the OpenGL texture id for textures created by Qt3D. Also completed tests along the way. [ChangeLog][Qt3DRender] QAbstractTexture: Expose raw texture handle and handleType to share with 3rdparty engines. Change-Id: I27d390c223303d9d11a418c2957aaae6ae1df850 Task-number: QTBUG-70055 Reviewed-by: Kevin Ottens <kevin.ottens@kdab.com>
Diffstat (limited to 'src/render/texture/qabstracttexture_p.h')
-rw-r--r--src/render/texture/qabstracttexture_p.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/render/texture/qabstracttexture_p.h b/src/render/texture/qabstracttexture_p.h
index 21b0fd9d3..0ad1d0737 100644
--- a/src/render/texture/qabstracttexture_p.h
+++ b/src/render/texture/qabstracttexture_p.h
@@ -89,6 +89,9 @@ public :
int m_sharedTextureId;
+ QAbstractTexture::HandleType m_handleType;
+ QVariant m_handle;
+
QTextureGeneratorPtr dataFunctor() const;
void setDataFunctor(const QTextureGeneratorPtr &generator);