15 #define M_PI 3.14159265358979323846
188 void setUp(glm::vec3 &up){mUp = up;};
251 glm::mat4 mViewMatrix;
252 glm::mat4 mProjectionMatrix;
void moveRight(float t)
A member function to move the camera right.
Definition: Camera.cpp:126
void rotateAzimuth(float t)
A member function to rotate the camera(Azimuth).
Definition: Camera.cpp:82
void setTarget(glm::vec3 &target)
An inline member function to set the target vector of the camera.
Definition: Camera.h:195
void moveBackwards(float t)
A member function to move the camera backwards.
Definition: Camera.cpp:108
void moveForwards(float t)
A member function to move the camera forwards.
Definition: Camera.cpp:100
void buildViewMatrix(void)
A member function to build the view matrix.
Definition: Camera.cpp:51
void setFieldOfView(float fieldOfView)
An inline member function to set the field of view of the camera.
Definition: Camera.h:202
void setUp(glm::vec3 &up)
An inline member function to set the up vector of the camera.
Definition: Camera.h:188
void rotateLeft(float t)
A member function to rotate the camera left.
Definition: Camera.cpp:182
glm::vec3 getTarget()
An inline member function to get the target vector of the camera.
Definition: Camera.h:162
glm::vec3 getUp()
An inline member function to get the up vector of the camera.
Definition: Camera.h:156
void moveDown(float t)
A member function to move the camera down.
Definition: Camera.cpp:147
bool isOrthogonal()
An inline member function to check if it is orthogonal.
Definition: Camera.h:168
Camera()
Default constructor.
Definition: Camera.cpp:12
void moveUp(float t)
A member function to move the camera up.
Definition: Camera.cpp:136
void rotateDown(float t)
A member function to rotate the camera down.
Definition: Camera.cpp:170
void setAspect(float aspect)
An inline member function to set the aspect ratio of the camera.
Definition: Camera.h:235
void setOrthogonal(bool orthogonal)
An inline member function to set orthogonal.
Definition: Camera.h:181
void setNearPlane(float nearPlane)
An inline member function to set the near plane of the camera.
Definition: Camera.h:209
const glm::mat4 & getViewMatrix()
An inline member function to get the view matrix.
Definition: Camera.h:241
float getNearPlane()
An inline member function to get the near plane of the camera.
Definition: Camera.h:222
void moveLeft(float t)
A member function to move the camera left.
Definition: Camera.cpp:116
void setOrthogonalBorders(float left, float right, float top, float bottom)
A member function to set the orthogonal borders of the camera.
Definition: Camera.cpp:43
float getFieldOfView()
An inline member function to get the field of view.
Definition: Camera.h:174
void zoom(float t)
A member function to zoom.
Definition: Camera.cpp:70
float getFarPlane()
An inline member function to get the far plane of the camera.
Definition: Camera.h:228
~Camera(void)
Destructor.
Definition: Camera.cpp:17
const glm::mat4 & getProjectionMatrix()
An inline member function to get the projection matrix.
Definition: Camera.h:247
void rotateUp(float t)
A member function to rotate the camera up.
Definition: Camera.cpp:158
void setFarPlane(float farPlane)
An inline member function to set the far plane of the camera.
Definition: Camera.h:216
void rotateRight(float t)
A member function to rotate the camera right.
Definition: Camera.cpp:193
void rotatePolar(float t)
A member function to rotate the camera(Polar).
Definition: Camera.cpp:88
void buildProjectionMatrix(void)
A member function to build the projection matrix.
Definition: Camera.cpp:61