First Person Shooter style view controller.
More...
#include <rendering/rendering.hh>
Inherits ViewController.
|
static std::string | GetTypeString () |
| Get the type name of this view controller.
|
|
First Person Shooter style view controller.
◆ FPSViewController()
◆ ~FPSViewController()
◆ GetTypeString() [1/2]
static std::string GetTypeString |
( |
| ) |
|
|
static |
Get the type name of this view controller.
- Returns
- The name of the controller type: "fps"
◆ GetTypeString() [2/2]
std::string GetTypeString |
( |
| ) |
const |
|
inherited |
Get the type of view controller.
- Returns
- The view controller type string.
◆ HandleKeyPressEvent()
void HandleKeyPressEvent |
( |
const std::string & | _key | ) |
|
|
virtual |
Handle a key press event.
- Parameters
-
[in] | _key | The key that was pressed. |
Implements ViewController.
◆ HandleKeyReleaseEvent()
void HandleKeyReleaseEvent |
( |
const std::string & | _key | ) |
|
|
virtual |
Handle a key release event.
- Parameters
-
[in] | _key | The key that was released. |
Implements ViewController.
◆ HandleMouseEvent()
Handle a mouse event.
- Parameters
-
[in] | _event | The mouse position. |
Implements ViewController.
◆ Init() [1/2]
◆ Init() [2/2]
virtual void Init |
( |
const ignition::math::Vector3d & | _focalPoint, |
|
|
const double | _yaw = 0, |
|
|
const double | _pitch = 0 ) |
|
virtual |
Initialize with a focus point.
- Parameters
-
[in] | _focalPoint | The point to look at. |
[in] | _yaw | Initial yaw angle. |
[in] | _pitch | Initial pitch angle. |
Reimplemented from ViewController.
◆ Resize()
virtual void Resize |
( |
const unsigned int | _width, |
|
|
const unsigned int | _height ) |
|
virtualinherited |
◆ SetEnabled()
void SetEnabled |
( |
bool | _value | ) |
|
|
inherited |
Set whether the controller is enabled.
- Parameters
-
[in] | _value | True if the controller is enabled. |
◆ Update()
◆ camera
Pointer to the camera to control.
◆ enabled
◆ typeString
The documentation for this class was generated from the following file: