|
Deki 1.3.0
Modular C++ 2D engine for embedded displays and desktop
|
Classes | |
| class | ICamera |
| Camera interface for coordinate conversion. More... | |
Enumerations | |
| enum class | ProjectionMode : uint8_t { Orthographic = 0 , Perspective = 1 } |
| Camera projection mode (forward-compat hook). More... | |
| enum class | UnitMode : uint8_t { Pixels = 0 , Meters = 1 } |
| Inspector display unit preference. More... | |
|
strong |
Camera projection mode (forward-compat hook).
Orthographic is the only path used by the 2D software renderer today; Perspective is reserved for future 3D / external renderers. Standard2DRenderer does NOT consume the projection matrix — it calls ICamera::WorldToScreen directly. The enum + GetProjectionMatrix() exist only so that future 3D code, debug tools, or third-party renderers can ask the camera for a matrix without us having to retrofit the API later.
| Enumerator | |
|---|---|
| Orthographic | |
| Perspective | |
|
strong |
Inspector display unit preference.
This is purely a UI concern. Internal storage, serialization, runtime math and physics are always in meters. The inspector multiplies stored values by the project's pixelsPerMeter when displaying physical-unit fields (DEKI_UNIT(Distance|Velocity|Acceleration)) under Pixels mode.
| Enumerator | |
|---|---|
| Pixels | |
| Meters | |