Vector3 up_dir;
Matrix view_matrix;
Matrix object_matrix;
+ Matrix proj_matrix;
public:
Camera();
to world space. */
const Matrix &get_object_matrix() const { return object_matrix; }
+ /** Returns the projection matrix. */
+ const Matrix &get_projection_matrix() const { return proj_matrix; }
+
Vector3 project(const Vector4 &) const;
Vector3 project(const Vector3 &) const;
Vector4 unproject(const Vector4 &) const;
void apply() const;
private:
+ void update_projection_matrix();
void update_object_matrix();
};