EPOK RUNTIME
namespace epok::hud_core
14 types, 15 functions and 1 data symbols.
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.
Types
Affine2Rotation-only 2-D affine in Q12: x'=c*x-s*y+tx, y'=s*x+c*y+ty, in HUD space.StructBudgetStruct declared by the hud-core module for native HUD layout, drawing and focus navigation.StructCompilerClass template declared by the hud-core module for native HUD layout, drawing and focus navigation.Class templateCountsStruct declared by the hud-core module for native HUD layout, drawing and focus navigation.StructEntryStruct declared by the hud-core module for native HUD layout, drawing and focus navigation.StructImagePatchRectanglePatch scratch has no default initialization: only accepted commands are read.StructImagePatchRectanglesStruct declared by the hud-core module for native HUD layout, drawing and focus navigation.StructImageRectangleStruct declared by the hud-core module for native HUD layout, drawing and focus navigation.StructImageRectanglesStruct declared by the hud-core module for native HUD layout, drawing and focus navigation.StructImageReuseCacheA bounded cache for appearance-only leaf Images.Class templateNodeCacheA node may retain packets only at the same offsets in arenas it uses, and only from the preceding rebuild of that parity.Class templatePatchAll scratch fields are assigned by prepare before a successful caller consumes them.StructRectShared by the PSX packet writer and the native preview.StructTrigTablepsyqo::Trig's table, by the same integer recurrence, but held here as a constexpr array: the console, the native preview and the host harness all get identical cosines without EASTL storage or the out-of-line generator.StructFunctions
applyPerforms `apply` as part of native HUD layout, drawing and focus navigation.Functionbuild_image_rectanglesShared emission/clipping for ordinary builds and uninitialized POD scratch.Function templateclampPerforms `clamp` as part of native HUD layout, drawing and focus navigation.Functionclipped_rectanglePerforms `clipped rectangle` as part of native HUD layout, drawing and focus navigation.Function templatecompose`b` applied first, then `a`: the parent's accumulated transform composed onto a child's.FunctioncosinePerforms `cosine` as part of native HUD layout, drawing and focus navigation.FunctionidentityPerforms `identity` as part of native HUD layout, drawing and focus navigation.FunctionpixelPerforms `pixel` as part of native HUD layout, drawing and focus navigation.Functionrender_key_mixPacket keys are shared with host validation.Functionrender_node_keyRenders node key as part of native HUD layout, drawing and focus navigation.FunctionresolvePerforms `resolve` as part of native HUD layout, drawing and focus navigation.Functionrotation_aboutT(pivot) * R(degrees) * T(-pivot).FunctionsinePerforms `sine` as part of native HUD layout, drawing and focus navigation.Functionturn_unitsDegrees to 1/2048 of a turn, rounded once per rotated node rather than per primitive.Functionuntextured_imagePerforms `untextured image` as part of native HUD layout, drawing and focus navigation.Function template