Advertisement
Guest User

Untitled

a guest
Aug 24th, 2015
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. class SceneManager
  2. {
  3. public:
  4. //constructor
  5. SceneManager() : _meshCache(&_textureCache)
  6. {}
  7.  
  8. //get scene graph ptr
  9. SceneGraph* sceneGraph() { return &_sceneGraph; }
  10.  
  11. //caches
  12. Texture2DCache* textureCache() { return &_textureCache; }
  13. MeshCache* meshCache() { return &_meshCache; }
  14. CameraCache* cameraCache() { return &_cameraCache; }
  15.  
  16. //attach Mesh to SceneNode
  17. static bool attachMeshToSceneNode(SceneNode *sceneNode, Mesh *mesh);
  18.  
  19. private:
  20. SceneGraph _sceneGraph;
  21.  
  22. Texture2DCache _textureCache;
  23. MeshCache _meshCache;
  24. CameraCache _cameraCache;
  25.  
  26. static void _loadSceneNode(SceneNode *sceneNode, MeshNode *meshNode, Mesh *attachedMesh);
  27. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement