ld33_umonster

diff 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 diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/scene.h	Sat Aug 22 07:15:00 2015 +0300
     1.3 @@ -0,0 +1,29 @@
     1.4 +#ifndef SCENE_H_
     1.5 +#define SCENE_H_
     1.6 +
     1.7 +#include <vector>
     1.8 +#include "object.h"
     1.9 +#include "light.h"
    1.10 +
    1.11 +enum {
    1.12 +	DRAW_SOLID = 1,
    1.13 +	DRAW_TRANSPARENT = 2,
    1.14 +	DRAW_ALL = 0x7fffffff
    1.15 +};
    1.16 +
    1.17 +class Scene {
    1.18 +public:
    1.19 +	std::vector<Object*> objects;
    1.20 +	std::vector<Light*> lights;
    1.21 +
    1.22 +	~Scene();
    1.23 +
    1.24 +	void clear();
    1.25 +
    1.26 +	void add_object(Object *obj);
    1.27 +	void add_lights(Light *lt);
    1.28 +
    1.29 +	void draw(unsigned int flags = DRAW_ALL) const;
    1.30 +};
    1.31 +
    1.32 +#endif	// SCENE_H_