dbf_amiga

view src/scene.h @ 0:87dfe0e10235

initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 31 Aug 2015 07:38:37 +0300
parents
children
line source
1 #ifndef SCENE_H_
2 #define SCENE_H_
4 #include <stdio.h>
5 #include <vector>
6 #include "object.h"
7 #include "light.h"
9 enum {
10 DRAW_SOLID = 1,
11 DRAW_TRANSPARENT = 2,
12 DRAW_ALL = 0x7fffffff
13 };
15 class Scene {
16 public:
17 std::vector<Object*> objects;
18 std::vector<Light*> lights;
20 ~Scene();
22 void clear();
24 void add_object(Object *obj);
25 void add_lights(Light *lt);
27 bool load(const char *fname);
28 void dump(FILE *fp);
30 void draw(unsigned int flags = DRAW_ALL) const;
31 };
33 #endif // SCENE_H_