goat3dgfx
view src/scene.h @ 34:3eb6c8f89fe1
merge
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 02 Mar 2014 17:41:10 +0200 |
parents | 0b863938da04 |
children |
line source
1 #ifndef SCENE_H_
2 #define SCENE_H_
4 #include <vector>
5 #include "object.h"
6 #include "light.h"
7 #include "camera.h"
8 #include "curve.h"
10 namespace goatgfx {
12 class Scene {
13 public:
14 std::vector<Object*> objects;
15 std::vector<Mesh*> meshes;
16 std::vector<Curve*> curves;
17 std::vector<Light*> lights;
18 std::vector<Camera*> cameras;
20 // nodes can be objects, lights, cameras, or just dummy nodes
21 std::vector<XFormNode*> nodes;
23 ~Scene();
24 void destroy();
26 bool load(const char *fname);
27 bool save(const char *fname) const;
29 void draw(long msec = 0) const;
30 };
32 } // namespace goatgfx
34 #endif // SCENE_H_