b7faff6cb41a5cb80d3da97963db660ffb415055
[MicroTrace.git] / PerspectiveCamera.cxx
1 #include "PerspectiveCamera.hxx"
2
3 PerspectiveCamera::PerspectiveCamera()
4 : Camera()
5 {
6 }
7
8 PerspectiveCamera::PerspectiveCamera(const Vec3f& pos,
9 const Vec3f& dir,
10 const Vec3f& up,
11 float angle,
12 int resX,
13 int resY)
14 : Camera(resX,resY),
15 m_pos(pos),
16 m_dir(dir),
17 m_up(up),
18 m_angle(angle)
19 {
20 // preprocess the values and fill the rest of the member variables here
21 }
22
23 PerspectiveCamera::~PerspectiveCamera()
24 {
25 }
26
27 PerspectiveCamera::PerspectiveCamera(const PerspectiveCamera& )
28 {
29
30 }
31
32 PerspectiveCamera&
33 PerspectiveCamera::operator=(const PerspectiveCamera& )
34 {
35 return *this;
36 }
37
38 bool
39 PerspectiveCamera::InitRay(float x, //!< pixel x-coordinate
40 float y, //!< pixel y-coordinate
41 Ray& ray //!< should be filled by this function
42 )
43 {
44 // define direction,position and maximum hit distance of Ray here
45 return false;
46 }
This page took 0.044867 seconds and 3 git commands to generate.