include/raytracer.h
branchpyrit
changeset 54 dbe3c7a4e0f0
parent 53 228cb8bfdd54
child 72 7c3f38dff082
equal deleted inserted replaced
53:228cb8bfdd54 54:dbe3c7a4e0f0
    61 	int max_depth;
    61 	int max_depth;
    62 
    62 
    63 	Vector3 SphereDistribute(int i, int n, Float extent, Vector3 &normal);
    63 	Vector3 SphereDistribute(int i, int n, Float extent, Vector3 &normal);
    64 
    64 
    65 	Sample *sample_queue;
    65 	Sample *sample_queue;
    66 	int sample_queue_max, sample_queue_pos, sample_queue_count;
    66 	int sample_queue_pos, sample_queue_size, sample_queue_count;
    67 	bool sample_queue_end;
    67 	bool end_of_samples;
    68 	pthread_mutex_t sample_queue_mutex, sampler_mutex;
    68 	pthread_mutex_t sample_queue_mutex, sampler_mutex;
    69 	pthread_cond_t sample_queue_cond, worker_ready_cond;
    69 	pthread_cond_t sample_queue_cond, worker_ready_cond;
    70 
    70 
    71 	static void *raytrace_worker(void *d);
    71 	static void *raytrace_worker(void *d);
    72 public:
    72 public: