Simple game engine with complete export to scripting language
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

31 lines
465 B

  1. #ifndef BLUECORE_SCENEGRAPH_H
  2. #define BLUECORE_SCENEGRAPH_H
  3. #include "SceneNode.h"
  4. namespace BlueCore
  5. {
  6. class SceneGraph : public Referenced
  7. {
  8. ref_ptr<SceneNode> _RootNode;
  9. ref_ptr<Camera> _Camera;
  10. public:
  11. SceneGraph();
  12. ~SceneGraph();
  13. SceneNode* getRootNode();
  14. void setCamera(Camera *camera);
  15. Camera* getCamera() const;
  16. void update(Scalar time);
  17. void queue (RenderQueue *queue);
  18. };
  19. }
  20. #endif /*SCENEGRAPH_H_*/