Fix compiler errors in camera module
This commit is contained in:
parent
746731398a
commit
f6e92f2571
2 changed files with 30 additions and 11 deletions
10
src/camera.h
10
src/camera.h
|
@ -20,11 +20,16 @@ public:
|
|||
Camera();
|
||||
~Camera();
|
||||
|
||||
int get_pixel_height() const;
|
||||
int get_pixel_width() const;
|
||||
const Vector3 &get_height() const;
|
||||
void set_pixel_width(const int &w);
|
||||
int get_pixel_height() const;
|
||||
void set_pixel_height(const int &h);
|
||||
const Vector3 &get_width() const;
|
||||
void set_width(const Vector3 &w);
|
||||
const Vector3 &get_height() const;
|
||||
void set_height(const Vector3 &h);
|
||||
const Vector3 &get_direction() const;
|
||||
void set_direction(const Vector3 &d);
|
||||
float get_angle() const;
|
||||
|
||||
virtual Ray compute_primary_ray(const int &x, const int &y) const = 0;
|
||||
|
@ -45,6 +50,7 @@ private:
|
|||
|
||||
|
||||
class OrthographicCamera
|
||||
: public Camera
|
||||
{
|
||||
public:
|
||||
Ray compute_primary_ray(const int &x, const int &y) const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue