Log the camera before rendering

Implement an operator<< for Cameras. Log the scene's camera.
This commit is contained in:
Eryn Wells 2014-08-03 19:10:31 -07:00
parent bcf93bb4ce
commit f99608085e
4 changed files with 62 additions and 0 deletions

View file

@ -66,6 +66,10 @@ private:
* this and mRight determine the aspect ratio of the image.
*/
Vector3 mUp;
virtual void WriteType(std::ostream& ost) const;
friend std::ostream& operator<<(std::ostream& ost, const Camera& camera);
};
@ -78,6 +82,9 @@ public:
Ray compute_primary_ray(const int x, const int width,
const int y, const int height) const;
private:
void WriteType(std::ostream& ost) const;
};
@ -90,7 +97,12 @@ public:
Ray compute_primary_ray(const int x, const int width,
const int y, const int height) const;
private:
void WriteType(std::ostream& ost) const;
};
std::ostream& operator<<(std::ostream& ost, const Camera& camera);
#endif