Trade-offs and warnings
Consult the linked header for this operation’s ownership, lifetime and failure behavior.
EPOK RUNTIME
Method · 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.
Measure and arrange without drawing: `rects` holds every laid-out node and zeroes elsewhere, and `affines` the accumulated rotation about each pivot.
void layout(ActorData* entities,size_t count,int* first,int* next,Fixed (*sizes)[2],Rect* boxes,Affine2* affines,bool measure_intrinsics=true)Measure and arrange without drawing: `rects` holds every laid-out node and zeroes elsewhere, and `affines` the accumulated rotation about each pivot.
| Parameter | Type | Meaning |
|---|---|---|
entities | ActorData * | Not documented; consult the linked header. |
count | size_t | Not documented; consult the linked header. |
first | int * | Not documented; consult the linked header. |
next | int * | Not documented; consult the linked header. |
sizes | Fixed (*)[2] | Not documented; consult the linked header. |
boxes | Rect * | Not documented; consult the linked header. |
affines | Affine2 * | Not documented; consult the linked header. |
measure_intrinsics | bool | Not documented; consult the linked header. |
Returns: Nothing (void).
#include "hud_core.hpp"
// Assume these named values have been initialized with valid data:
// ActorData * entities
// size_t count
// int * first
// int * next
// Fixed (*)[2] sizes
// Rect * boxes
// Affine2 * affines
// bool measure_intrinsics
epok::hud_core::Compiler& object = /* obtain a valid instance */;
object.layout(entities, count, first, next, sizes, boxes, affines, measure_intrinsics);Consult the linked header for this operation’s ownership, lifetime and failure behavior.
Declared in runtime/hud_core.hpp:698