|
Bicameral Engine
GPU-resident engine for a magic-research open-world game
|
#include <debug_camera.h>
Public Member Functions | |
| OrbitCamera (const OrbitCameraState &initial={}) | |
| void | Orbit (float deltaXPixels, float deltaYPixels) |
| void | Pan (float deltaXPixels, float deltaYPixels, uint32_t viewportHeight) |
| void | Zoom (int32_t wheelSteps) |
| void | Focus (Vector3 target, float distance) |
| void | ToggleProjection () |
| void | Reset () |
| const OrbitCameraState & | State () const |
| CameraBasis | Basis (uint32_t width, uint32_t height) const |
Static Public Attributes | |
| static constexpr float | VERTICAL_FIELD_OF_VIEW_DEGREES = 45.0f |
| static constexpr float | MIN_DISTANCE = 0.001f |
| static constexpr float | MAX_DISTANCE = 2000.0f |
Private Attributes | |
| OrbitCameraState | m_initial |
| OrbitCameraState | m_state |
Definition at line 54 of file debug_camera.h.
|
inlineexplicit |
Definition at line 61 of file debug_camera.h.
|
nodiscard |
Definition at line 102 of file debug_camera.cpp.
References m_state, and VERTICAL_FIELD_OF_VIEW_DEGREES.
| void bicameral::render::OrbitCamera::Focus | ( | Vector3 | target, |
| float | distance ) |
Definition at line 95 of file debug_camera.cpp.
References m_state, MAX_DISTANCE, and MIN_DISTANCE.
| void bicameral::render::OrbitCamera::Orbit | ( | float | deltaXPixels, |
| float | deltaYPixels ) |
Definition at line 72 of file debug_camera.cpp.
References m_state.
| void bicameral::render::OrbitCamera::Pan | ( | float | deltaXPixels, |
| float | deltaYPixels, | ||
| uint32_t | viewportHeight ) |
Definition at line 80 of file debug_camera.cpp.
References m_state.
|
inline |
Definition at line 68 of file debug_camera.h.
|
inlinenodiscard |
Definition at line 70 of file debug_camera.h.
References m_state.
|
inline |
Definition at line 67 of file debug_camera.h.
References m_state.
| void bicameral::render::OrbitCamera::Zoom | ( | int32_t | wheelSteps | ) |
Definition at line 90 of file debug_camera.cpp.
References m_state, MAX_DISTANCE, and MIN_DISTANCE.
|
private |
Definition at line 74 of file debug_camera.h.
Referenced by Reset().
|
private |
Definition at line 75 of file debug_camera.h.
Referenced by Basis(), Focus(), Orbit(), Pan(), Reset(), State(), ToggleProjection(), and Zoom().
|
staticconstexpr |
Definition at line 59 of file debug_camera.h.
|
staticconstexpr |
Definition at line 58 of file debug_camera.h.
|
staticconstexpr |
Definition at line 56 of file debug_camera.h.
Referenced by Basis(), and bicameral::render::anonymous_namespace{debug_camera.cpp}::HalfHeightAtTarget().