goat3dgfx

view src/scene.h @ 28:0b863938da04

I don't remember
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 01 Mar 2014 22:37:49 +0200
parents 7d6b667821cf
children 3ba80928b530
line source
1 #ifndef SCENE_H_
2 #define SCENE_H_
4 #include <vector>
5 #include "object.h"
6 #include "curve.h"
8 namespace goatgfx {
10 class Scene {
11 public:
12 std::vector<Object*> objects;
13 std::vector<Mesh*> meshes;
14 std::vector<Curve*> curves;
15 std::vector<Light*> lights;
16 std::vector<Camera*> cameras;
18 // nodes can be objects, lights, cameras, or just dummy nodes
19 std::vector<XFormNode*> nodes;
21 ~Scene();
22 void destroy();
24 bool load(const char *fname);
25 bool save(const char *fname) const;
27 void draw(long msec = 0) const;
28 };
30 } // namespace goatgfx
32 #endif // SCENE_H_