goat3dgfx

annotate 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
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 "object.h"
nuclear@0 6 #include "curve.h"
nuclear@0 7
nuclear@15 8 namespace goatgfx {
nuclear@15 9
nuclear@0 10 class Scene {
nuclear@0 11 public:
nuclear@0 12 std::vector<Object*> objects;
nuclear@0 13 std::vector<Mesh*> meshes;
nuclear@0 14 std::vector<Curve*> curves;
nuclear@28 15 std::vector<Light*> lights;
nuclear@28 16 std::vector<Camera*> cameras;
nuclear@28 17
nuclear@28 18 // nodes can be objects, lights, cameras, or just dummy nodes
nuclear@28 19 std::vector<XFormNode*> nodes;
nuclear@0 20
nuclear@0 21 ~Scene();
nuclear@0 22 void destroy();
nuclear@0 23
nuclear@12 24 bool load(const char *fname);
nuclear@12 25 bool save(const char *fname) const;
nuclear@12 26
nuclear@0 27 void draw(long msec = 0) const;
nuclear@0 28 };
nuclear@0 29
nuclear@15 30 } // namespace goatgfx
nuclear@15 31
nuclear@0 32 #endif // SCENE_H_