fart/main/Scene.h
Josh Holtrop a1c81e5adc sphere drawing, but stretched horizontally... have to figure that out yet
git-svn-id: svn://anubis/fart/trunk@40 7f9b0f55-74a9-4bce-be96-3c2cd072584d
2009-01-23 16:00:43 +00:00

42 lines
876 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:
/* private methods */
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;
/* private data */
std::vector<Shape *> m_shapes;
Transform m_transform;
double m_view_plane_dist;
/* framebuffer */
unsigned char * m_data;
};
#endif