Tramway SDK
Public Member Functions | Protected Attributes | List of all members
tram::Ext::Camera::Camera Class Referenceabstract

#include <camera.h>

Inheritance diagram for tram::Ext::Camera::Camera:
tram::Ext::Camera::FirstPersonCamera

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}
 

Constructor & Destructor Documentation

◆ ~Camera()

tram::Ext::Camera::Camera::~Camera ( )
virtual

Member Function Documentation

◆ GetFollowing()

id_t tram::Ext::Camera::Camera::GetFollowing ( )

◆ GetPosition()

vec3 tram::Ext::Camera::Camera::GetPosition ( )
inline

◆ GetRotation()

quat tram::Ext::Camera::Camera::GetRotation ( )
inline

◆ SetActive()

void tram::Ext::Camera::Camera::SetActive ( )

◆ SetFollowing()

void tram::Ext::Camera::Camera::SetFollowing ( Entity entity)

◆ SetFollowingLookat()

void tram::Ext::Camera::Camera::SetFollowingLookat ( quat  new_lookat)

◆ SetLayerMask()

void tram::Ext::Camera::Camera::SetLayerMask ( uint32_t  layer_mask)
inline

◆ SetListenerTransform()

void tram::Ext::Camera::Camera::SetListenerTransform ( )

◆ SetPosition()

void tram::Ext::Camera::Camera::SetPosition ( vec3  position)
inline

◆ SetRotation()

void tram::Ext::Camera::Camera::SetRotation ( quat  rotation)
inline

◆ SetViewTransform()

void tram::Ext::Camera::Camera::SetViewTransform ( )

◆ Update()

void tram::Ext::Camera::Camera::Update ( )
pure virtual

Member Data Documentation

◆ following

id_t tram::Ext::Camera::Camera::following = 0
protected

◆ following_listener

listener_t tram::Ext::Camera::Camera::following_listener = 0
protected

◆ following_lookat

quat tram::Ext::Camera::Camera::following_lookat = {1.0f, 0.0f, 0.0f, 0.0f}
protected

◆ layer_mask

uint32_t tram::Ext::Camera::Camera::layer_mask = 1 + 2
protected

◆ position

vec3 tram::Ext::Camera::Camera::position = {0.0f, 0.0f, 0.0f}
protected

◆ rotation

quat tram::Ext::Camera::Camera::rotation = {1.0f, 0.0f, 0.0f, 0.0f}
protected

The documentation for this class was generated from the following files: