erebus
annotate liberebus/src/scene.h @ 0:4abdce1361b9
initial commit
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 27 Apr 2014 16:02:47 +0300 |
parents | |
children | 59a72293f9bd |
rev | line source |
---|---|
nuclear@0 | 1 #ifndef SCENE_H_ |
nuclear@0 | 2 #define SCENE_H_ |
nuclear@0 | 3 |
nuclear@0 | 4 #include <vector> |
nuclear@0 | 5 #include "snode.h" |
nuclear@0 | 6 #include "camera.h" |
nuclear@0 | 7 |
nuclear@0 | 8 class Scene { |
nuclear@0 | 9 private: |
nuclear@0 | 10 std::vector<Object*> objects; |
nuclear@0 | 11 std::vector<SceneNode*> nodes; |
nuclear@0 | 12 |
nuclear@0 | 13 Camera *active_cam; |
nuclear@0 | 14 |
nuclear@0 | 15 public: |
nuclear@0 | 16 Scene(); |
nuclear@0 | 17 ~Scene(); |
nuclear@0 | 18 |
nuclear@0 | 19 void add_object(Object *obj); |
nuclear@0 | 20 Object *get_object(int idx); |
nuclear@0 | 21 }; |
nuclear@0 | 22 |
nuclear@0 | 23 #endif // SCENE_H_ |