5 #include "geometry/transform.h"
12 Camera(
int viewportWidth,
int viewportHeight);
19 void move(glm::vec3 dist);
20 void setPosition(glm::vec3 pos);
22 void rotateX(
float rot);
23 void rotateY(
float rot);
24 void rotateZ(
float rot);
25 void setOrientation(glm::quat quat);
27 const glm::mat4& view()
const;
28 const glm::mat4& viewInverted()
const;
29 const glm::quat& orientation()
const;
30 const glm::vec3& position()
const;
35 void setZNear(
float zNear);
37 void setZFar(
float zFar);
40 void setFovy(
float fovy);
42 const glm::ivec2 viewport()
const;
43 void setViewport(
const glm::ivec2 & viewport);
45 const glm::vec3& projectionOffset()
const;
46 void setProjectionOffset(
const glm::vec3& projectionOffset);
48 float aspectRatio()
const;
50 const glm::mat4& projection()
const;
52 const glm::mat4& viewProjection()
const;
57 void projectionDirty();
64 glm::ivec2 m_viewport;
66 glm::vec3 m_projectionOffset;
69 glm::mat4 m_projection;
70 glm::mat4 m_viewProjection;