fart/main/Scene.h
Josh Holtrop 73cdd1a5a1 improving Ray, Sphere, Solver, Scene a bit
git-svn-id: svn://anubis/fart/trunk@35 7f9b0f55-74a9-4bce-be96-3c2cd072584d
2009-01-23 14:37:18 +00:00

33 lines
659 B
C++
Executable File

#ifndef SCENE_H
#define SCENE_H SCENE_H
#include <string>
#include <map>
#include <vector>
#include "shapes/Shape.h"
class Scene
{
public:
Scene(std::map<std::string, const char *> options,
const char * filename);
~Scene();
void render();
private:
void load(const char * filename);
void renderPixel(int x, int y, unsigned char * pixel);
int m_width;
int m_height;
int m_multisample_level;
std::string m_output_file_name;
bool m_verbose;
unsigned char * m_data;
std::vector<Shape *> m_shapes;
};
#endif