1 #ifndef CAMERA_HXX
 2 #define CAMERA_HXX
 3 
 4 #include "Ray.hxx"
 5 
 6 class Camera 
 7 {
 8 public:
 9 	int resX, resY;
10 
11 	Camera(int resX, int resY) 
12 		: resX(resX),resY(resY) 
13 	{};
14 
15         virtual ~Camera(){};
16 
17 	virtual bool InitRay(float x, float y, Ray &ray) = 0;
18 
19 	// In the stereo view case, we need another InitRay function
20 #ifdef STEREOVIEW
21 	virtual bool InitRay(float x, float y, Ray &ray, float eyedistance) = 0;
22 #endif
23 
24 };
25 #endif


syntax highlighted by Code2HTML, v. 0.9.1