fart/main/Scene.h
Josh Holtrop c32e826ee3 added --field-of-view and m_vfov to Scene
git-svn-id: svn://anubis/fart/trunk@36 7f9b0f55-74a9-4bce-be96-3c2cd072584d
2009-01-23 14:43:49 +00:00

39 lines
789 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);
/* rendering parameters */
int m_width;
int m_height;
int m_multisample_level;
std::string m_output_file_name;
bool m_verbose;
double m_vfov;
/* the shapes in the scene */
std::vector<Shape *> m_shapes;
/* framebuffer */
unsigned char * m_data;
};
#endif