rayzor

diff src/camera.h @ 15:be616b58df99

continued the renderer slightly
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 13 Apr 2014 09:54:36 +0300
parents 964f8ea5f095
children 79609d482762
line diff
     1.1 --- a/src/camera.h	Sun Apr 13 08:06:21 2014 +0300
     1.2 +++ b/src/camera.h	Sun Apr 13 09:54:36 2014 +0300
     1.3 @@ -10,7 +10,6 @@
     1.4  	float fov;
     1.5  
     1.6  	void calc_matrix() const;
     1.7 -	void calc_inv_matrix() const;
     1.8  
     1.9  public:
    1.10  	Camera();
    1.11 @@ -24,6 +23,8 @@
    1.12  	void draw() const;
    1.13  
    1.14  	bool intersect(const Ray &ray, float *dist = 0) const;
    1.15 +
    1.16 +	Ray get_primary_ray(int x, int y) const;
    1.17  };
    1.18  
    1.19  #endif	// CAMERA_H_