Newer
Older
#include "../camera/CamObs.h"
#include "../tools/Vec3.h"
void setPixel(int x, int y, Vec3 color);
void setPixels(size_t threadcount, std::shared_ptr<Sampler> sampler);
Vec3 operator[](const std::array<int, 2>& i) const; // int x, int y
Vec3& operator[](const std::array<int, 2>& i);
protected:
void setPixelsTask(int x, int y, std::shared_ptr<Sampler> sampler);
std::vector<Vec3> vec;
Image raytrace(size_t threadcount, const cam::CamObs& cam,
const std::shared_ptr<Sampler>& sampler, size_t n);