|
RenderEngine
|
#include <Camera.hpp>
Public Member Functions | |
| Camera () | |
| Default constructor. | |
| Camera (glm::mat4 projectionMat, glm::mat4 viewMat) | |
| Constructor. | |
| glm::mat4 | getViewProjectionMatrix () |
| Access viewprojection matrix. | |
| glm::mat4 | getViewMatrix () |
| getViewMatrix | |
| glm::mat4 | getProjectionatrix () |
| getProjectionatrix | |
| glm::vec3 | getPosition () |
| Access camera position. | |
| void | setCameraOrientation (float vertAngle, float horzAngle) |
| Set camera orientation. | |
| void | setLookAt (glm::vec3 lookAt) |
| Set lookat vector. | |
| void | setLookAt (glm::vec3 pos, glm::vec3 lookAt, glm::vec3 up) |
| Set lookat vector. | |
| void | setPosition (glm::vec3 pos) |
| Set position. | |
| void | updateAngles () |
| Update angles. | |
Contains decriptions for a setting up a render camera.
| Camera::Camera | ( | ) |
Default constructor.
Setting up default camera.
Contains decriptions for a setting up a render camera.
| Camera::Camera | ( | glm::mat4 | projectionMat, |
| glm::mat4 | viewMat | ||
| ) |
Constructor.
Setting up camera with certain parameters.
| glm::vec3 Camera::getPosition | ( | ) |
Access camera position.
Access camera position. Retruns a vec3
| glm::mat4 Camera::getProjectionatrix | ( | ) |
getProjectionatrix
Access projection matrix.
| glm::mat4 Camera::getViewMatrix | ( | ) |
getViewMatrix
Access view matrix.
| glm::mat4 Camera::getViewProjectionMatrix | ( | ) |
Access viewprojection matrix.
Access viewprojection matrix.
| void Camera::setCameraOrientation | ( | float | vertAngle, |
| float | horzAngle | ||
| ) |
Set camera orientation.
Set camera orientation based on vertical and horizontal angle
| void Camera::setLookAt | ( | glm::vec3 | lookAt | ) |
Set lookat vector.
Set lookat vector only.
| void Camera::setLookAt | ( | glm::vec3 | pos, |
| glm::vec3 | lookAt, | ||
| glm::vec3 | up | ||
| ) |
Set lookat vector.
Set lookat configuration by setting position, lookat vector and up vector.
| void Camera::setPosition | ( | glm::vec3 | pos | ) |
Set position.
Set position.
| void Camera::updateAngles | ( | ) |
Update angles.
Set after setting the angles the camera settings neeed to be updated.