Add lights to the scene

This commit is contained in:
Eryn Wells 2013-09-10 21:49:01 -07:00
parent 14b246b6e9
commit 6bb7689ac0
2 changed files with 26 additions and 1 deletions

View file

@ -16,6 +16,7 @@
#include "basics.h"
class Light;
class Shape;
class Writer;
@ -36,12 +37,14 @@ public:
void render();
void add_shape(Shape *obj);
void add_light(Light *light);
private:
Color trace_ray(const Ray &ray, const int depth);
int width, height;
std::list<Shape *> shapes;
std::list<Light *> lights;
bool _is_rendered;
Color *pixels;