Remove pixel dimensions from camera
The scene computes those and gives them to the camera for each ray
This commit is contained in:
parent
ca5cabb6ef
commit
8336753bcf
2 changed files with 1 additions and 40 deletions
|
@ -22,41 +22,6 @@ Camera::~Camera()
|
|||
{ }
|
||||
|
||||
|
||||
/*
|
||||
* Camera::get_pixel_width --
|
||||
* Camera::set_pixel_width --
|
||||
* Camera::get_pixel_height --
|
||||
* Camera::set_pixel_height --
|
||||
*
|
||||
* Get and set pixel width and height.
|
||||
*/
|
||||
int
|
||||
Camera::get_pixel_width()
|
||||
const
|
||||
{
|
||||
return pwidth;
|
||||
}
|
||||
|
||||
void
|
||||
Camera::set_pixel_width(const int &w)
|
||||
{
|
||||
pwidth = w;
|
||||
}
|
||||
|
||||
int
|
||||
Camera::get_pixel_height()
|
||||
const
|
||||
{
|
||||
return pheight;
|
||||
}
|
||||
|
||||
void
|
||||
Camera::set_pixel_height(const int &h)
|
||||
{
|
||||
pheight = h;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Camera::get_width --
|
||||
* Camera::set_width --
|
||||
|
|
|
@ -18,12 +18,8 @@ class Camera
|
|||
{
|
||||
public:
|
||||
Camera();
|
||||
~Camera();
|
||||
virtual ~Camera();
|
||||
|
||||
int get_pixel_width() 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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue