When it helps
Use this member when you need direct access to the state represented by its declared type.
EPOK RUNTIME
Variable
Screen pixels covered by one world unit at zoom 1.
const int pixels_per_unit_2dScreen pixels covered by one world unit at zoom 1.
#include "world2d.hpp"
auto value = epok::pixels_per_unit_2d;Use this member when you need direct access to the state represented by its declared type.
Direct field access has no validation step. Keep the owning object alive, respect units and ranges, and do not mutate state while hardware or another subsystem is consuming it.
Declared in runtime/world2d.hpp:41