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` as part of native HUD layout, drawing and focus navigation.
bool prepare(unsigned parity,const ActorData* entities,size_t count,const uint32_t* keys,uintptr_t textures,uintptr_t fonts, int width,int height,Patch (&patches)[Capacity],unsigned& patch_count)constPerforms `prepare` as part of native HUD layout, drawing and focus navigation.
| Parameter | Type | Meaning |
|---|---|---|
parity | unsigned int | Not documented; consult the linked header. |
entities | const ActorData * | Not documented; consult the linked header. |
count | size_t | Not documented; consult the linked header. |
keys | const uint32_t * | Not documented; consult the linked header. |
textures | uintptr_t | Not documented; consult the linked header. |
fonts | uintptr_t | Not documented; consult the linked header. |
width | int | Not documented; consult the linked header. |
height | int | Not documented; consult the linked header. |
patches | Patch (&)[Capacity] | Not documented; consult the linked header. |
patch_count | unsigned int & | Not documented; consult the linked header. |
Returns: bool. Consult the linked header for its meaning.
#include "hud_core.hpp"
// Assume these named values have been initialized with valid data:
// unsigned int parity
// const ActorData * entities
// size_t count
// const uint32_t * keys
// uintptr_t textures
// uintptr_t fonts
// int width
// int height
// Patch (&)[Capacity] patches
// unsigned int & patch_count
epok::hud_core::ImageReuseCache& object = /* obtain a valid instance */;
auto result = object.prepare(parity, entities, count, keys, textures, fonts, width, height, patches, patch_count);Consult the linked header for this operation’s ownership, lifetime and failure behavior.
Declared in runtime/hud_core.hpp:237
appliedCommit only after every prepare check succeeded and this packet was written.MethodbeginBegins begin as part of native HUD layout, drawing and focus navigation.MethodcapturePerforms `capture` as part of native HUD layout, drawing and focus navigation.MethodendEnds end as part of native HUD layout, drawing and focus navigation.MethodinvalidatePerforms `invalidate` as part of native HUD layout, drawing and focus navigation.MethodsealPerforms `seal` as part of native HUD layout, drawing and focus navigation.Method