summaryrefslogtreecommitdiffstats
path: root/src/render/backend/managers_p.h
diff options
context:
space:
mode:
authorWieland Hagen <wieland.hagen@kdab.com>2016-07-05 19:20:57 +0200
committerPaul Lemire <paul.lemire@kdab.com>2016-11-14 13:55:39 +0000
commitf1ce8594d41042665970ffefee4a9c053e817e73 (patch)
treea95c62c3529167afd3cea1d491713d4db3c1226a /src/render/backend/managers_p.h
parenta5c4c4fc8f12f9d58ba0abfb616cbf27e8b1593a (diff)
Texture backend refactoring
Texture node only tracks frontend properties and a non-owning pointer to the GLTexture The backend Texture node basically just keeps track of it's properties, parameters, and data. It relies on the GLTextureManager to provide a GLTexture that matches these properties/parameters/data. If a backend Texture node is created or modified, it is marked dirty and added to the TextureManager's list of dirty textures. At the start of each frame, all gathered dirty textures will ask the GLTextureManager for a GLTexture instance that matches the texture properties. Change-Id: Ie436e52ce644a489552cad1633f2233b8c15803f Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/render/backend/managers_p.h')
-rw-r--r--src/render/backend/managers_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/render/backend/managers_p.h b/src/render/backend/managers_p.h
index fbd5ae6c4..b30a0380c 100644
--- a/src/render/backend/managers_p.h
+++ b/src/render/backend/managers_p.h
@@ -230,6 +230,8 @@ class TextureManager : public Qt3DCore::QResourceManager<
{
public:
TextureManager() {}
+
+ GLTexture *glTextureForNode(Qt3DCore::QNodeId nodeId);
};
class TransformManager : public Qt3DCore::QResourceManager<