dbf-halloween2015

diff src/scene.h @ 0:50683c78264e

initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 01 Nov 2015 00:09:12 +0200
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/scene.h	Sun Nov 01 00:09:12 2015 +0200
     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_light(Light *lt);
    1.28 +
    1.29 +	void draw(unsigned int flags = DRAW_ALL) const;
    1.30 +};
    1.31 +
    1.32 +#endif	// SCENE_H_