rayzor
diff 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 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/camera.h Sat Apr 05 08:46:27 2014 +0300 1.3 @@ -0,0 +1,28 @@ 1.4 +#ifndef CAMERA_H_ 1.5 +#define CAMERA_H_ 1.6 + 1.7 +#include "vmath.h" 1.8 + 1.9 +class Camera { 1.10 +private: 1.11 + Vector3 pos; 1.12 + Vector3 target; 1.13 + float fov; 1.14 + 1.15 +public: 1.16 + Camera(); 1.17 + 1.18 + void set_position(const Vector3 &pos); 1.19 + const Vector3 &get_position() const; 1.20 + 1.21 + void set_target(const Vector3 &target); 1.22 + const Vector3 &get_target() const; 1.23 + 1.24 + void set_fov(float fov); 1.25 + float get_fov() const; 1.26 + 1.27 + Matrix4x4 get_matrix() const; 1.28 + Matrix4x4 get_inv_matrix() const; 1.29 +}; 1.30 + 1.31 +#endif // CAMERA_H_