rayzor

annotate src/camera.h @ 11:fe94d9e986ae

optimized 16bpp swap_buffers
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 10 Apr 2014 08:42:33 +0300
parents 2a5340a6eee4
children d94a69933a71
rev   line source
nuclear@1 1 #ifndef CAMERA_H_
nuclear@1 2 #define CAMERA_H_
nuclear@1 3
nuclear@1 4 #include "vmath.h"
nuclear@1 5
nuclear@1 6 class Camera {
nuclear@1 7 private:
nuclear@1 8 Vector3 pos;
nuclear@1 9 Vector3 target;
nuclear@1 10 float fov;
nuclear@1 11
nuclear@1 12 public:
nuclear@1 13 Camera();
nuclear@1 14
nuclear@1 15 void set_position(const Vector3 &pos);
nuclear@1 16 const Vector3 &get_position() const;
nuclear@1 17
nuclear@1 18 void set_target(const Vector3 &target);
nuclear@1 19 const Vector3 &get_target() const;
nuclear@1 20
nuclear@1 21 void set_fov(float fov);
nuclear@1 22 float get_fov() const;
nuclear@1 23
nuclear@1 24 Matrix4x4 get_matrix() const;
nuclear@1 25 Matrix4x4 get_inv_matrix() const;
nuclear@1 26 };
nuclear@1 27
nuclear@1 28 #endif // CAMERA_H_