coastline 0.0.4
Loading...
Searching...
No Matches
coastline::FreeCamera Class Reference

A movable camera relative to the normal eye space of menus and logos. More...

#include <freecamera.h>

Public Member Functions

void Reset ()
 Restore the position and orientation of the normal scene camera.
void Move (float seconds, const std::array< float, 3 > &movement, const std::array< float, 2 > &rotation)
 Move independently of simulation time.
std::array< float, 16 > View () const

Detailed Description

A movable camera relative to the normal eye space of menus and logos.

Member Function Documentation

◆ Reset()

void coastline::FreeCamera::Reset ( )

Restore the position and orientation of the normal scene camera.

◆ Move()

void coastline::FreeCamera::Move ( float seconds,
const std::array< float, 3 > & movement,
const std::array< float, 2 > & rotation )

Move independently of simulation time.

Parameters
secondsElapsed time, clamped to zero through 0.1 seconds.
movementForward, right, and upward speeds in scene units per second.
rotationYaw and pitch changes in radians.

◆ View()

std::array< float, 16 > coastline::FreeCamera::View ( ) const
Returns
The column-major eye-space view transform, identity after Reset().

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