Epok Engine

EPOK RUNTIME

epok::draw_key_2d

Function · 1 overload

Declarations are extracted from the pinned headers. Examples and general guidance are generated sketches, not verified complete programs; consult the linked source and guides for the actual contract.

Function

---- draw order ---------------------------------------------------------------------- A single monotonically comparable key so the renderer never needs a multi-field comparator: layer (int8, coarse) above draw_order (int16) above the creation index (uint16, the tie breaker that makes the order stable and reproducible across frames).

Belongs to
epok
Header
world2d.hpp
Overloads
1

Declaration

Declaration
inline uint64_t draw_key_2d(int8_t layer, int16_t draw_order, uint16_t creation)

---- draw order ---------------------------------------------------------------------- A single monotonically comparable key so the renderer never needs a multi-field comparator: layer (int8, coarse) above draw_order (int16) above the creation index (uint16, the tie breaker that makes the order stable and reproducible across frames).

ParameterTypeMeaning
layerint8_tNot documented; consult the linked header.
draw_orderint16_tNot documented; consult the linked header.
creationuint16_tNot documented; consult the linked header.

Returns: uint64_t. Consult the linked header for its meaning.

Example sketch

C++ example
#include "world2d.hpp"

// Assume these named values have been initialized with valid data:
// int8_t layer
// int16_t draw_order
// uint16_t creation

auto result = epok::draw_key_2d(layer, draw_order, creation);

Trade-offs and warnings

Consult the linked header for this operation’s ownership, lifetime and failure behavior.

Declared in runtime/world2d.hpp:262

Related members