conworlds

diff src/scene.h @ 13:283cdfa7dda2

added a crapload of code from goat3dgfx
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 24 Aug 2014 09:41:24 +0300
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/scene.h	Sun Aug 24 09:41:24 2014 +0300
     1.3 @@ -0,0 +1,25 @@
     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 +#include "camera.h"
    1.11 +
    1.12 +class Scene {
    1.13 +public:
    1.14 +	std::vector<Object*> objects;
    1.15 +	std::vector<Mesh*> meshes;
    1.16 +	std::vector<Light*> lights;
    1.17 +	std::vector<Camera*> cameras;
    1.18 +
    1.19 +	// nodes can be objects, lights, cameras, or just dummy nodes
    1.20 +	std::vector<XFormNode*> nodes;
    1.21 +
    1.22 +	~Scene();
    1.23 +	void destroy();
    1.24 +
    1.25 +	void draw(long msec = 0) const;
    1.26 +};
    1.27 +
    1.28 +#endif	// SCENE_H_