Bicameral Engine
GPU-resident engine for a magic-research open-world game
Loading...
Searching...
No Matches
bicameral::render::anonymous_namespace{debug_camera.cpp} Namespace Reference

Classes

struct  Axes

Functions

float Radians (float degrees)
Vector3 Cross (Vector3 left, Vector3 right)
Vector3 Normalize (Vector3 vector)
float HalfHeightAtTarget (float distance)
Axes CameraAxes (const OrbitCameraState &state)

Variables

constexpr float ORBIT_DEGREES_PER_PIXEL = 0.3f
constexpr float MAX_PITCH_DEGREES = 89.0f
constexpr float ZOOM_PER_STEP = 0.9f
constexpr float ORTHOGRAPHIC_BACK_OFF = 1000.0f
constexpr float PARALLEL_EPSILON = 1e-6f

Function Documentation

◆ CameraAxes()

Axes bicameral::render::anonymous_namespace{debug_camera.cpp}::CameraAxes ( const OrbitCameraState & state)

Definition at line 45 of file debug_camera.cpp.

References CameraAxes(), Cross(), Normalize(), bicameral::render::OrbitCameraState::pitchDegrees, Radians(), and bicameral::render::OrbitCameraState::yawDegrees.

Referenced by CameraAxes().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Cross()

Vector3 bicameral::render::anonymous_namespace{debug_camera.cpp}::Cross ( Vector3 left,
Vector3 right )

Definition at line 22 of file debug_camera.cpp.

References Cross(), bicameral::render::Vector3::x, bicameral::render::Vector3::y, and bicameral::render::Vector3::z.

Referenced by CameraAxes(), and Cross().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ HalfHeightAtTarget()

float bicameral::render::anonymous_namespace{debug_camera.cpp}::HalfHeightAtTarget ( float distance)

Definition at line 33 of file debug_camera.cpp.

References HalfHeightAtTarget(), Radians(), and bicameral::render::OrbitCamera::VERTICAL_FIELD_OF_VIEW_DEGREES.

Referenced by HalfHeightAtTarget().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Normalize()

Vector3 bicameral::render::anonymous_namespace{debug_camera.cpp}::Normalize ( Vector3 vector)

Definition at line 27 of file debug_camera.cpp.

References Normalize(), bicameral::render::Vector3::x, bicameral::render::Vector3::y, and bicameral::render::Vector3::z.

Referenced by CameraAxes(), and Normalize().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Radians()

float bicameral::render::anonymous_namespace{debug_camera.cpp}::Radians ( float degrees)

Definition at line 18 of file debug_camera.cpp.

References Radians().

Referenced by CameraAxes(), HalfHeightAtTarget(), and Radians().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ MAX_PITCH_DEGREES

float bicameral::render::anonymous_namespace{debug_camera.cpp}::MAX_PITCH_DEGREES = 89.0f
constexpr

Definition at line 13 of file debug_camera.cpp.

◆ ORBIT_DEGREES_PER_PIXEL

float bicameral::render::anonymous_namespace{debug_camera.cpp}::ORBIT_DEGREES_PER_PIXEL = 0.3f
constexpr

Definition at line 12 of file debug_camera.cpp.

◆ ORTHOGRAPHIC_BACK_OFF

float bicameral::render::anonymous_namespace{debug_camera.cpp}::ORTHOGRAPHIC_BACK_OFF = 1000.0f
constexpr

Definition at line 15 of file debug_camera.cpp.

◆ PARALLEL_EPSILON

float bicameral::render::anonymous_namespace{debug_camera.cpp}::PARALLEL_EPSILON = 1e-6f
constexpr

Definition at line 16 of file debug_camera.cpp.

◆ ZOOM_PER_STEP

float bicameral::render::anonymous_namespace{debug_camera.cpp}::ZOOM_PER_STEP = 0.9f
constexpr

Definition at line 14 of file debug_camera.cpp.