nuclear@1: #ifndef CAMERA_H_ nuclear@1: #define CAMERA_H_ nuclear@1: nuclear@1: #include "vmath.h" nuclear@1: nuclear@1: class Camera { nuclear@1: private: nuclear@1: Vector3 pos; nuclear@1: Vector3 target; nuclear@1: float fov; nuclear@1: nuclear@1: public: nuclear@1: Camera(); nuclear@1: nuclear@1: void set_position(const Vector3 &pos); nuclear@1: const Vector3 &get_position() const; nuclear@1: nuclear@1: void set_target(const Vector3 &target); nuclear@1: const Vector3 &get_target() const; nuclear@1: nuclear@1: void set_fov(float fov); nuclear@1: float get_fov() const; nuclear@1: nuclear@1: Matrix4x4 get_matrix() const; nuclear@1: Matrix4x4 get_inv_matrix() const; nuclear@1: }; nuclear@1: nuclear@1: #endif // CAMERA_H_