ld33_umonster

view src/scene.h @ 0:4a6683050e29

initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 22 Aug 2015 07:15:00 +0300
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_lights(Light *lt);
26 void draw(unsigned int flags = DRAW_ALL) const;
27 };
29 #endif // SCENE_H_