The eye of the 2D world.
More...
#include <camera2d.h>
The eye of the 2D world.
aka Orthographic Camera, every scene and renderer requires a camera to see anything
◆ Camera2D()
| fireworks::graphics::Camera2D::Camera2D |
( |
glm::mat4 |
projection | ) |
|
Creates a camera by taking in a projection matrix.
- Parameters
-
| projection | The projection matrix onto which the world will be mapped to |
◆ getPosition()
| const glm::vec3& fireworks::graphics::Camera2D::getPosition |
( |
| ) |
const |
|
inline |
Gets the position of the camera in the world.
◆ getProjectionMatrix()
| const glm::mat4& fireworks::graphics::Camera2D::getProjectionMatrix |
( |
| ) |
const |
|
inline |
Gets the projection matrix with which the camera is rendering the scene.
◆ getProjectionViewMatrix()
| const glm::mat4& fireworks::graphics::Camera2D::getProjectionViewMatrix |
( |
| ) |
const |
|
inline |
Gets the View * Projection matrix.
◆ getRotation()
| const float fireworks::graphics::Camera2D::getRotation |
( |
| ) |
const |
|
inline |
Gets the rotation of the camera in the world.
◆ getViewMatrix()
| const glm::mat4& fireworks::graphics::Camera2D::getViewMatrix |
( |
| ) |
const |
|
inline |
Gets the view matrix of the camera.
◆ setPosition()
| void fireworks::graphics::Camera2D::setPosition |
( |
const glm::vec3 & |
pos | ) |
|
|
inline |
Sets the position of the camera.
- Parameters
-
| pos | The position of the camera in the world |
◆ setRotaion()
| void fireworks::graphics::Camera2D::setRotaion |
( |
float |
rot | ) |
|
|
inline |
Sets the rotation of the camera.
- Parameters
-
| rot | The rotation of the camera in the world |
◆ update()
| void fireworks::graphics::Camera2D::update |
( |
| ) |
|
The documentation for this class was generated from the following files:
- /home/docs/checkouts/readthedocs.org/user_builds/fireworks-engine/checkouts/latest/Fireworks Engine/Fireworks Core/src/graphics/camera2d.h
- /home/docs/checkouts/readthedocs.org/user_builds/fireworks-engine/checkouts/latest/Fireworks Engine/Fireworks Core/src/graphics/camera2d.cpp