include/raytracer.h
branchpyrit
changeset 93 96d65f841791
parent 92 9af5c039b678
child 94 4c8abb8977dc
equal deleted inserted replaced
92:9af5c039b678 93:96d65f841791
    34 #include "container.h"
    34 #include "container.h"
    35 #include "scene.h"
    35 #include "scene.h"
    36 
    36 
    37 class Raytracer;
    37 class Raytracer;
    38 
    38 
    39 struct RenderrowData {
       
    40 	Raytracer *rt;
       
    41 	int w;
       
    42 	Vector eye, dfix, dx, dy;
       
    43 	Float *iter;
       
    44 };
       
    45 
       
    46 /**
    39 /**
    47  * main ray tracer class
    40  * main ray tracer class
    48  */
    41  */
    49 class Raytracer
    42 class Raytracer
    50 {
    43 {
    51 	Container *top;
    44 	Container *top;
    52 	Sampler *sampler;
    45 	Sampler *sampler;
    53 	Camera *camera;
    46 	Camera *camera;
    54 	vector<Light*> lights;
    47 	vector<Light*> lights;
    55 	Colour bg_colour;
    48 	Colour bg_colour;
       
    49 	Float ao_distance, ao_angle;
    56 	int ao_samples;
    50 	int ao_samples;
    57 	Float ao_distance, ao_angle;
       
    58 	int num_threads;
    51 	int num_threads;
    59 	int max_depth;
    52 	int max_depth;
    60 	bool use_packets;
    53 	bool use_packets;
    61 
    54 
    62 	Sample *sample_queue;
    55 	Sample *sample_queue;