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.
Performs `prepare key` as part of the retained module.
void prepare_key(size_t index,unsigned parity,const RetainedKey& key,bool allow_recolor)Performs `prepare key` as part of the retained module.
| Parameter | Type | Meaning |
|---|---|---|
index | size_t | Not documented; consult the linked header. |
parity | unsigned int | Not documented; consult the linked header. |
key | const RetainedKey & | Not documented; consult the linked header. |
allow_recolor | bool | Not documented; consult the linked header. |
Returns: Nothing (void).
#include "retained.hpp"
// Assume these named values have been initialized with valid data:
// size_t index
// unsigned int parity
// const RetainedKey & key
// bool allow_recolor
epok::RetainedGeometry& object = /* obtain a valid instance */;
object.prepare_key(index, parity, key, allow_recolor);Consult the linked header for this operation’s ownership, lifetime and failure behavior.
Declared in runtime/retained.hpp:182
allocate`limit_slot` is the packet-buffer capacity.Methodfirst_slotPerforms `first slot` as part of the retained module.MethodforgetA reused entity slot keeps its resident range, including across LODs.Methodinvalidate_borrowedA descending allocation can cross protected chunks without writing them.Function templatequadsPerforms `quads` as part of the retained module.MethodresetResets reset as part of the retained module.Methodslot_topFirst preferred fragment slot beyond the cache (not a per-frame reservation).MethodstatePerforms `state` as part of the retained module.Method