Helper class for Camera.
More...
#include <CameraHelper.hpp>
|
| static void | setPanControl (int keyPan) |
| | Set camera pan key to combine with mouse movement (free camera) More...
|
| |
| static void | setAltControl (int keyAlt) |
| | Set camera alt key to combine with mouse movement (free camera) More...
|
| |
| static void | setSmoothZoomControl (int keySmoothZoom) |
| | Set camera smooth zoom key to combine with mouse movement (free camera) More...
|
| |
| static void | setMoveControls (int keyFront, int keyBack, int keyRight, int keyLeft, int keyUp, int keyDown) |
| | Set camera move controls (1st person and 3rd person cameras) More...
|
| |
| static void | setCameraMode (const RlCamera &camera, const CameraMode &mode) |
| | Set camera mode (global camera) More...
|
| |
◆ setAltControl()
| void raylib::helper::CameraHelper::setAltControl |
( |
int |
keyAlt | ) |
|
|
static |
Set camera alt key to combine with mouse movement (free camera)
- Parameters
-
| keyAlt | the key to combine with mouse movement |
◆ setCameraMode()
| void raylib::helper::CameraHelper::setCameraMode |
( |
const RlCamera & |
camera, |
|
|
const CameraMode & |
mode |
|
) |
| |
|
static |
Set camera mode (global camera)
- Parameters
-
| camera | the camera to set |
| mode | the mode to set |
◆ setMoveControls()
| void raylib::helper::CameraHelper::setMoveControls |
( |
int |
keyFront, |
|
|
int |
keyBack, |
|
|
int |
keyRight, |
|
|
int |
keyLeft, |
|
|
int |
keyUp, |
|
|
int |
keyDown |
|
) |
| |
|
static |
Set camera move controls (1st person and 3rd person cameras)
- Parameters
-
| keyFront | the key to forward |
| keyBack | the key to backward |
| keyRight | the key to right |
| keyLeft | the key to left |
| keyUp | the key to up |
| keyDown | the key to down |
◆ setPanControl()
| void raylib::helper::CameraHelper::setPanControl |
( |
int |
keyPan | ) |
|
|
static |
Set camera pan key to combine with mouse movement (free camera)
- Parameters
-
| keyPan | the key to combine with mouse movement |
◆ setSmoothZoomControl()
| void raylib::helper::CameraHelper::setSmoothZoomControl |
( |
int |
keySmoothZoom | ) |
|
|
static |
Set camera smooth zoom key to combine with mouse movement (free camera)
- Parameters
-
| keySmoothZoom | the key to combine with mouse movement |
The documentation for this class was generated from the following files: