dbf-halloween2015
view src/scene.h @ 4:4316c0c879e9
fixed RUN script for macosx
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 01 Nov 2015 06:18:18 +0200 |
parents | |
children |
line source
1 #ifndef SCENE_H_
2 #define SCENE_H_
4 #include <vector>
5 #include "object.h"
6 #include "light.h"
8 enum {
9 DRAW_SOLID = 1,
10 DRAW_TRANSPARENT = 2,
11 DRAW_ALL = 0x7fffffff
12 };
14 class Scene {
15 public:
16 std::vector<Object*> objects;
17 std::vector<Light*> lights;
19 ~Scene();
21 void clear();
23 void add_object(Object *obj);
24 void add_light(Light *lt);
26 void draw(unsigned int flags = DRAW_ALL) const;
27 };
29 #endif // SCENE_H_