Entity representing a Camera in 2D space.
More...
#include <Camera2D.hpp>
Entity representing a Camera in 2D space.
◆ Camera2D() [1/2]
| RAY::Camera::Camera2D::Camera2D |
( |
const Vector2 & |
offset, |
|
|
const Vector2 & |
target, |
|
|
float |
rotation, |
|
|
float |
zoom = 1 |
|
) |
| |
2D Camera constructor
- Parameters
-
| offset | Camera offset (displacement from target) |
| target | Camera target (rotation and zoom origin) |
| rotation | Camera rotation in degrees |
| zoom | Camera zoom (scaling), should be 1.0f by default |
◆ Camera2D() [2/2]
| RAY::Camera::Camera2D::Camera2D |
( |
const Camera2D & |
| ) |
|
|
default |
◆ ~Camera2D()
| RAY::Camera::Camera2D::~Camera2D |
( |
| ) |
|
|
overridedefault |
◆ getMatrix()
| Matrix RAY::Camera::Camera2D::getMatrix |
( |
void |
| ) |
const |
|
overridevirtual |
◆ getOffset()
| RAY::Vector2 RAY::Camera::Camera2D::getOffset |
( |
void |
| ) |
const |
◆ getRotation()
| float RAY::Camera::Camera2D::getRotation |
( |
void |
| ) |
const |
◆ getTarget()
| RAY::Vector2 RAY::Camera::Camera2D::getTarget |
( |
void |
| ) |
const |
◆ getZoom()
| float RAY::Camera::Camera2D::getZoom |
( |
void |
| ) |
const |
◆ operator=()
◆ setOffset()
| void RAY::Camera::Camera2D::setOffset |
( |
const Vector2 & |
offset | ) |
|
◆ setRotation()
| void RAY::Camera::Camera2D::setRotation |
( |
float |
rotation | ) |
|
◆ setTarget()
| void RAY::Camera::Camera2D::setTarget |
( |
const Vector2 & |
target | ) |
|
◆ setZoom()
| void RAY::Camera::Camera2D::setZoom |
( |
float |
zoom | ) |
|
◆ __pad0__
| INTERNAL RAY::Camera::Camera2D::__pad0__ |
|
private |
◆ _camera
| ::Camera2D RAY::Camera::Camera2D::_camera |
|
private |
The documentation for this class was generated from the following files: