1 #ifndef MSP_GL_CAMERA_H_
2 #define MSP_GL_CAMERA_H_
13 Geometry::Angle<float> fov;
15 // Some compilers have "near" and "far" keywords
28 void set_field_of_view(const Geometry::Angle<float> &);
29 void set_aspect(float);
30 void set_depth_clip(float, float);
31 void set_frustum_axis(float, float);
32 const Geometry::Angle<float> &get_field_of_view() const { return fov; }
33 float get_aspect() const { return aspect; }
34 float get_near_clip() const { return clip_near; }
35 float get_far_clip() const { return clip_far; }
37 void set_position(const Vector3 &);
38 void set_look_direction(const Vector3 &);
39 void look_at(const Vector3 &);
40 void set_up_direction(const Vector3 &);
41 const Vector3 &get_position() const { return position; }
42 const Vector3 &get_look_direction() const { return look_dir; }
43 const Vector3 &get_up_direction() const { return up_dir; }
44 const Matrix &get_matrix() const { return matrix; }
46 Vector3 project(const Vector4 &) const;
47 Vector3 project(const Vector3 &) const;
48 Vector4 unproject(const Vector4 &) const;
53 void compute_matrix();