EPOK RUNTIME
epok::Camera2D
Struct
Struct
---- Camera2D ------------------------------------------------------------------------ Projection convention (no dependency whatsoever on the 3D camera or on projection_focal): screen = viewport_center + R(-camera.rotation) * (world - camera.position) * k with k = zoom * pixels_per_unit_2d, and the screen Y axis pointing DOWN while the world Y axis points UP, so the Y component is negated.
Basic usage
This minimal snippet shows the normal syntax for reaching the type. Open a member below for an operation-specific example.
C++ example
#include "world2d.hpp"
epok::Camera2D& value = /* obtain a valid instance from your game */;