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