dbf_amiga

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