|
Tramway SDK v0.1.1
|
Interface API for cameras. More...
#include <extensions/camera/camera.h>
Public Member Functions | |
| void | SetActive () |
| void | SetFollowing (Entity *) |
| id_t | GetFollowing () |
| void | SetPosition (vec3 position) |
| void | SetRotation (quat rotation) |
| vec3 | GetPosition () |
| quat | GetRotation () |
| void | SetViewTransform () |
| void | SetListenerTransform () |
| void | SetFollowingLookat (quat new_lookat) |
| void | SetLayerMask (uint32_t layer_mask) |
| virtual void | Update ()=0 |
| virtual | ~Camera () |
Protected Attributes | |
| vec3 | position = {0.0f, 0.0f, 0.0f} |
| quat | rotation = {1.0f, 0.0f, 0.0f, 0.0f} |
| listener_t | following_listener = 0 |
| uint32_t | layer_mask = 1 + 2 |
| id_t | following = 0 |
| quat | following_lookat = {1.0f, 0.0f, 0.0f, 0.0f} |
Interface API for cameras.
First person camera.
This camera will look in the same direction that an entity is looking at, while also following it at a set distance.
Supports view bobbing
|
virtual |
| id_t tram::Ext::Camera::Camera::GetFollowing | ( | ) |
|
inline |
|
inline |
| void tram::Ext::Camera::Camera::SetActive | ( | ) |
| void tram::Ext::Camera::Camera::SetFollowing | ( | Entity * | entity | ) |
| void tram::Ext::Camera::Camera::SetFollowingLookat | ( | quat | new_lookat | ) |
|
inline |
| void tram::Ext::Camera::Camera::SetListenerTransform | ( | ) |
|
inline |
|
inline |
| void tram::Ext::Camera::Camera::SetViewTransform | ( | ) |
|
pure virtual |
Implemented in tram::Ext::Camera::FirstPersonCamera.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |