7 #define GLM_ENABLE_EXPERIMENTAL
8 #include <glm/gtx/io.hpp>
13 template<
typename T, glm::precision P>
17 FPSCamera(T fovy, T aspect, T nnear, T nfar);
21 void Update(std::chrono::microseconds deltaTime,
InputHandler &ih,
bool ignoreKeyEvents =
false,
bool ignoreMouseEvents =
false);
57 T fov, aspect, nnear, far;
58 is >> fov >> aspect >> nnear >> far;
FPSCamera< double, glm::defaultp > FPSCamerad
Definition: FPSCamera.h:69
FPSCamera< float, glm::defaultp > FPSCameraf
Definition: FPSCamera.h:68
Definition: FPSCamera.h:15
void Update(std::chrono::microseconds deltaTime, InputHandler &ih, bool ignoreKeyEvents=false, bool ignoreMouseEvents=false)
Definition: FPSCamera.inl:49
glm::tmat4x4< T, P > GetClipToViewMatrix()
Definition: FPSCamera.inl:106
friend std::ostream & operator<<(std::ostream &os, FPSCamera< T, P > &v)
Definition: FPSCamera.h:50
glm::tvec2< T, P > mMouseSensitivity
Definition: FPSCamera.h:41
glm::tmat4x4< T, P > GetWorldToViewMatrix()
Definition: FPSCamera.inl:88
T GetAspect()
Definition: FPSCamera.inl:42
~FPSCamera()
Definition: FPSCamera.inl:8
glm::tmat4x4< T, P > GetViewToClipMatrix()
Definition: FPSCamera.inl:112
glm::tmat4x4< T, P > GetViewToWorldMatrix()
Definition: FPSCamera.inl:82
TRSTransform< T, P > mWorld
Definition: FPSCamera.h:39
glm::tvec3< T, P > mMovementSpeed
Definition: FPSCamera.h:40
void SetProjection(T fovy, T aspect, T nnear, T nfar)
Definition: FPSCamera.inl:13
T mNear
Definition: FPSCamera.h:44
glm::tmat4x4< T, P > mProjectionInverse
Definition: FPSCamera.h:46
T mFov
Definition: FPSCamera.h:44
T GetFov()
Definition: FPSCamera.inl:30
glm::tmat4x4< T, P > GetWorldToClipMatrix()
Definition: FPSCamera.inl:100
glm::tvec3< T, P > GetClipToWorld(glm::tvec3< T, P > xyw)
Definition: FPSCamera.inl:118
void SetAspect(T a)
Definition: FPSCamera.inl:36
glm::tmat4x4< T, P > GetClipToWorldMatrix()
Definition: FPSCamera.inl:94
glm::tvec2< T, P > mMousePosition
Definition: FPSCamera.h:47
friend std::istream & operator>>(std::istream &is, FPSCamera< T, P > &v)
Definition: FPSCamera.h:56
FPSCamera(T fovy, T aspect, T nnear, T nfar)
Definition: FPSCamera.inl:2
void SetFov(T fovy)
Definition: FPSCamera.inl:24
T mAspect
Definition: FPSCamera.h:44
glm::tmat4x4< T, P > mProjection
Definition: FPSCamera.h:45
T mFar
Definition: FPSCamera.h:44
glm::tvec3< T, P > GetClipToView(glm::tvec3< T, P > xyw)
Definition: FPSCamera.inl:126