rayzor

diff src/scene.h @ 0:2a5340a6eee4

rayzor first commit
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 05 Apr 2014 08:46:27 +0300
parents
children a826bf0fb169
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/scene.h	Sat Apr 05 08:46:27 2014 +0300
     1.3 @@ -0,0 +1,29 @@
     1.4 +#ifndef SCENE_H_
     1.5 +#define SCENE_H_
     1.6 +
     1.7 +#include <string>
     1.8 +#include <vector.h>
     1.9 +#include "object.h"
    1.10 +#include "light.h"
    1.11 +#include "camera.h"
    1.12 +
    1.13 +class Scene {
    1.14 +private:
    1.15 +	char *name;
    1.16 +	vector<Object*> objects;
    1.17 +	vector<Light*> lights;
    1.18 +	vector<Camera*> cameras;
    1.19 +
    1.20 +public:
    1.21 +	Scene();
    1.22 +	~Scene();
    1.23 +
    1.24 +	void clear();
    1.25 +
    1.26 +	void set_name(const char *name);
    1.27 +	const char *get_name() const;
    1.28 +
    1.29 +	void draw() const;
    1.30 +};
    1.31 +
    1.32 +#endif	// SCENE_H_