conworlds

view src/scene.h @ 18:e4257df067a1

oh yeah, now the tracking is solid. Wasn't rendering the correct part of the texture before.
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 26 Aug 2014 12:59:15 +0300
parents
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"
9 class Scene {
10 public:
11 std::vector<Object*> objects;
12 std::vector<Mesh*> meshes;
13 std::vector<Light*> lights;
14 std::vector<Camera*> cameras;
16 // nodes can be objects, lights, cameras, or just dummy nodes
17 std::vector<XFormNode*> nodes;
19 ~Scene();
20 void destroy();
22 void draw(long msec = 0) const;
23 };
25 #endif // SCENE_H_