Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class SceneManager
- {
- public:
- //constructor
- SceneManager() : _meshCache(&_textureCache)
- {}
- //get scene graph ptr
- SceneGraph* sceneGraph() { return &_sceneGraph; }
- //caches
- Texture2DCache* textureCache() { return &_textureCache; }
- MeshCache* meshCache() { return &_meshCache; }
- CameraCache* cameraCache() { return &_cameraCache; }
- //attach Mesh to SceneNode
- static bool attachMeshToSceneNode(SceneNode *sceneNode, Mesh *mesh);
- private:
- SceneGraph _sceneGraph;
- Texture2DCache _textureCache;
- MeshCache _meshCache;
- CameraCache _cameraCache;
- static void _loadSceneNode(SceneNode *sceneNode, MeshNode *meshNode, Mesh *attachedMesh);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement