Default and copy constructors for Perspective and Orthographic cameras
This commit is contained in:
parent
672ff82e03
commit
6f04526d36
2 changed files with 27 additions and 0 deletions
|
@ -55,6 +55,10 @@ private:
|
|||
class PerspectiveCamera
|
||||
: public Camera
|
||||
{
|
||||
public:
|
||||
PerspectiveCamera();
|
||||
PerspectiveCamera(const Camera& other);
|
||||
|
||||
Ray compute_primary_ray(const int x, const int width,
|
||||
const int y, const int height) const;
|
||||
};
|
||||
|
@ -64,6 +68,9 @@ class OrthographicCamera
|
|||
: public Camera
|
||||
{
|
||||
public:
|
||||
OrthographicCamera();
|
||||
OrthographicCamera(const Camera& other);
|
||||
|
||||
Ray compute_primary_ray(const int x, const int width,
|
||||
const int y, const int height) const;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue