Epok Engine

EPOK RUNTIME

epok::pixels_per_unit_2d

Variable

Variable

Screen pixels covered by one world unit at zoom 1.

Belongs to
epok
Header
world2d.hpp

Declaration

Declaration
const int pixels_per_unit_2d

Screen pixels covered by one world unit at zoom 1.

Type
const int
Storage
Namespace scope

Example

C++ example
#include "world2d.hpp"

auto value = epok::pixels_per_unit_2d;

When it helps

Use this member when you need direct access to the state represented by its declared type.

Trade-offs and warnings

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