Encapsulation of the raylib Camera3D.
More...
#include <RlCamera.hpp>
Encapsulation of the raylib Camera3D.
◆ RlCamera() [1/2]
| raylib::RlCamera::RlCamera |
( |
| ) |
|
|
inline |
Empty constructor who doesn't initialize the camera.
◆ RlCamera() [2/2]
| raylib::RlCamera::RlCamera |
( |
const Vector3f & |
position, |
|
|
const Vector3f & |
target, |
|
|
const Vector3f & |
lookingPoint, |
|
|
const float & |
fovy = 45, |
|
|
const CameraProjection & |
projection = CAMERA_PERSPECTIVE, |
|
|
const CameraMode & |
cameraMode = CAMERA_FREE |
|
) |
| |
|
explicit |
Construct a new RlCamera object.
- Parameters
-
| position | the position of the camera |
| target | the target of the camera (Camera looking at point) |
| lookingPoint | the lookingPoint of the camera (rotation towards target) |
| fovy | the fovy of the camera (Camera field-of-view Y) |
| projection | the projection of the camera |
- See also
- CameraProjection
- Parameters
-
| cameraMode | the mode of the camera |
- See also
- CameraMode
- Attention
- Don't use this use the RlCameraBuilder instead (please)
- See also
- RlCameraBuilder
- Exceptions
-
◆ geMatrix()
| Matrix raylib::RlCamera::geMatrix |
( |
| ) |
|
Get the matrix of the camera.
- Returns
- the matrix of the camera
◆ get()
| const Camera3D & raylib::RlCamera::get |
( |
| ) |
const |
Get the 3d camera.
- Returns
- the 3d camera
◆ getConstructedCameraMode()
| const CameraMode & raylib::RlCamera::getConstructedCameraMode |
( |
| ) |
const |
Get the camera mode when construct.
- Returns
- the camera mode
◆ getConstructedFovy()
| const float & raylib::RlCamera::getConstructedFovy |
( |
| ) |
const |
Get the fovy of the camera when construct.
- Returns
- the fovy of the camera
◆ getConstructedLookingPoint()
| const Vector3f & raylib::RlCamera::getConstructedLookingPoint |
( |
| ) |
const |
Get the looking point of the camera when construct.
- Returns
- the looking point vector of the camera
◆ getConstructedPosition()
| const Vector3f & raylib::RlCamera::getConstructedPosition |
( |
| ) |
const |
Get the position of the camera when construct.
- Returns
- the position of the camera
◆ getConstructedProjection()
| const CameraProjection & raylib::RlCamera::getConstructedProjection |
( |
| ) |
const |
Get the projection of the camera when construct.
- Returns
- the projection of the camera
◆ getConstructedTarget()
| const Vector3f & raylib::RlCamera::getConstructedTarget |
( |
| ) |
const |
Get the target of the camera when construct.
- Returns
- the target of the camera
◆ getMode()
| const CameraMode & raylib::RlCamera::getMode |
( |
| ) |
const |
Get the camera mode.
- Returns
- the camera mode
◆ reset()
| void raylib::RlCamera::reset |
( |
| ) |
|
Reset the camera to the initial state of the constructor.
◆ setCameraMode()
| void raylib::RlCamera::setCameraMode |
( |
const CameraMode & |
mode | ) |
|
Set the camera mode.
- Parameters
-
| mode | the mode of the camera |
- See also
- CameraMode
◆ setFov()
| void raylib::RlCamera::setFov |
( |
const float & |
fovy | ) |
|
Set the fovy of the camera (Camera field-of-view Y)
- Parameters
-
| fovy | the fovy of the camera |
◆ setPosition()
| void raylib::RlCamera::setPosition |
( |
const Vector3f & |
position | ) |
|
Set the position of the camera.
- Parameters
-
| position | the position of the camera |
◆ setProjection()
| void raylib::RlCamera::setProjection |
( |
const CameraProjection & |
projection | ) |
|
Set the camera projection type.
- Parameters
-
| projection | the projection of the camera |
- See also
- CameraProjection
◆ setTarget()
| void raylib::RlCamera::setTarget |
( |
const Vector3f & |
target | ) |
|
Set the target of the camera (Camera looking at point)
- Parameters
-
| target | the target of the camera |
◆ update()
| void raylib::RlCamera::update |
( |
| ) |
|
Update the camera, needed to move the camera.
The documentation for this class was generated from the following files: