Bicameral Engine
GPU-resident engine for a magic-research open-world game
Loading...
Searching...
No Matches
debug_camera.cpp File Reference
#include "render/debug_camera.h"
#include <algorithm>
#include <array>
#include <cmath>
#include <numbers>
Include dependency graph for debug_camera.cpp:

Go to the source code of this file.

Classes

struct  bicameral::render::anonymous_namespace{debug_camera.cpp}::Axes

Namespaces

namespace  bicameral
namespace  bicameral::render
namespace  bicameral::render::anonymous_namespace{debug_camera.cpp}

Functions

float bicameral::render::anonymous_namespace{debug_camera.cpp}::Radians (float degrees)
Vector3 bicameral::render::anonymous_namespace{debug_camera.cpp}::Cross (Vector3 left, Vector3 right)
Vector3 bicameral::render::anonymous_namespace{debug_camera.cpp}::Normalize (Vector3 vector)
float bicameral::render::anonymous_namespace{debug_camera.cpp}::HalfHeightAtTarget (float distance)
Axes bicameral::render::anonymous_namespace{debug_camera.cpp}::CameraAxes (const OrbitCameraState &state)
Vector3 bicameral::render::operator+ (Vector3 left, Vector3 right)
Vector3 bicameral::render::operator- (Vector3 left, Vector3 right)
Vector3 bicameral::render::operator* (Vector3 vector, float scale)
CameraRay bicameral::render::RayThroughPixel (const CameraBasis &basis, float pixelX, float pixelY, uint32_t width, uint32_t height)
std::optional< CellCoordinate > bicameral::render::PickSliceCell (const CameraRay &ray, uint32_t axis, uint32_t plane, uint32_t gridSize)
CellCoordinate bicameral::render::CellOnSlice (uint32_t axis, uint32_t plane, uint32_t u, uint32_t v)

Variables

constexpr float bicameral::render::anonymous_namespace{debug_camera.cpp}::ORBIT_DEGREES_PER_PIXEL = 0.3f
constexpr float bicameral::render::anonymous_namespace{debug_camera.cpp}::MAX_PITCH_DEGREES = 89.0f
constexpr float bicameral::render::anonymous_namespace{debug_camera.cpp}::ZOOM_PER_STEP = 0.9f
constexpr float bicameral::render::anonymous_namespace{debug_camera.cpp}::ORTHOGRAPHIC_BACK_OFF = 1000.0f
constexpr float bicameral::render::anonymous_namespace{debug_camera.cpp}::PARALLEL_EPSILON = 1e-6f