coastline
0.0.4
Loading...
Searching...
No Matches
src
sdl
freecamera.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <
array
>
4
5
namespace
coastline
{
6
8
class
FreeCamera
{
9
public
:
11
void
Reset
();
18
void
19
Move
(
float
seconds,
const
std::array<float, 3>
&movement,
const
std::array<float, 2>
&rotation);
21
std::array<float, 16>
View
()
const
;
22
23
private
:
24
std::array<float, 3>
m_position{};
25
float
m_yaw = 0.0f;
26
float
m_pitch = 0.0f;
27
};
28
29
}
// namespace coastline
array
coastline::FreeCamera
A movable camera relative to the normal eye space of menus and logos.
Definition
freecamera.h:8
coastline::FreeCamera::View
std::array< float, 16 > View() const
coastline::FreeCamera::Move
void Move(float seconds, const std::array< float, 3 > &movement, const std::array< float, 2 > &rotation)
Move independently of simulation time.
coastline::FreeCamera::Reset
void Reset()
Restore the position and orientation of the normal scene camera.
coastline
Definition
assetimport.h:11
Generated by
1.15.0