include/raytracer.h
branchpyrit
changeset 53 228cb8bfdd54
parent 52 a6413a3d741d
child 54 dbe3c7a4e0f0
equal deleted inserted replaced
52:a6413a3d741d 53:228cb8bfdd54
    60 	int num_threads;
    60 	int num_threads;
    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_max, sample_queue_pos, sample_queue_count;
    67 	bool sample_queue_end;
    67 	bool sample_queue_end;
    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