|
VulkanEngine 0.1
Graphics engine using Vulkan
|
#include <Camera.h>
Public Member Functions | |
| Camera (Eigen::Vector3f _look_at={0.0f, 0.0f, 0.0f}, Eigen::Vector3f _up_vector={0.0f, 1.0f, 0.0f}, float _z_near=0.1f, float _z_far=1000.0f, float _fov=45.0f, uint32_t _width=800, uint32_t _height=600) | |
| virtual | ~Camera () |
| Destructor. | |
| void | setLookAt (const Eigen::Vector3f &_look_at) |
| const Eigen::Vector3f | getLookAt () const |
| const Eigen::Vector3f | getUpVector () const |
| const Eigen::Matrix4f | getPerspectiveProjectionMatrix () const |
| const Eigen::Matrix4f | getViewMatrix () const |
| void | setWidth (uint32_t _width) |
| void | setHeight (uint32_t _height) |
| float | getWidth () const |
| float | getHeight () const |
Public Member Functions inherited from VulkanEngine::SceneObject | |
| SceneObject () | |
| Contructor. | |
| void | addChildren (const std::vector< std::shared_ptr< SceneObject > > &_children) |
| const Eigen::Matrix4f | getTransform () const |
| void | setTransform (const Eigen::Matrix4f &_transform) |
Additional Inherited Members | |
Protected Member Functions inherited from VulkanEngine::SceneObject | |
| virtual void | preUpdate (std::shared_ptr< SceneState > scene_state) |
| virtual void | update (std::shared_ptr< SceneState > scene_state) |
| virtual void | postUpdate (std::shared_ptr< SceneState > scene_state) |
Protected Attributes inherited from VulkanEngine::SceneObject | |
| Eigen::Matrix4f | transform |
Represents a camera in the scene. The camera provides view and projection matrices for rendering based on the current state of the camera object.
| VulkanEngine::Camera::Camera | ( | Eigen::Vector3f | _look_at = {0.0f, 0.0f, 0.0f}, |
| Eigen::Vector3f | _up_vector = {0.0f, 1.0f, 0.0f}, |
||
| float | _z_near = 0.1f, |
||
| float | _z_far = 1000.0f, |
||
| float | _fov = 45.0f, |
||
| uint32_t | _width = 800, |
||
| uint32_t | _height = 600 |
||
| ) |
Constructor.
| _look_at | What position the Camera should be oriented towards initially. |
| _up_vector | The up direction of the Camera. |
| _z_near | The distance from the Camera's position to the near plane. |
| _z_far | The distance from the Camera's position to the far plane. |
| _fov | The field of view of the Camera. |
| _width | The width of the camera. |
| _height | The height of the camera. |
| float VulkanEngine::Camera::getHeight | ( | ) | const |
| const Eigen::Vector3f VulkanEngine::Camera::getLookAt | ( | ) | const |
| const Eigen::Matrix4f VulkanEngine::Camera::getPerspectiveProjectionMatrix | ( | ) | const |
| const Eigen::Vector3f VulkanEngine::Camera::getUpVector | ( | ) | const |
| const Eigen::Matrix4f VulkanEngine::Camera::getViewMatrix | ( | ) | const |
| _transform | The transformation matrix to use when calculating the view matrix |
| float VulkanEngine::Camera::getWidth | ( | ) | const |
| void VulkanEngine::Camera::setHeight | ( | uint32_t | _height | ) |
Set the heigth of the camera.
| _height | The height of the camera. |
| void VulkanEngine::Camera::setLookAt | ( | const Eigen::Vector3f & | _look_at | ) |
Set the look at vector of the camera.
| _look_at | The look at vector to use. |
| void VulkanEngine::Camera::setWidth | ( | uint32_t | _width | ) |
Set the width of the camera.
| _width | The width of the camera. |