EPOK RUNTIME
Hud Core
hud_core.hpp · native HUD layout, drawing and focus navigation
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.
Module
native HUD layout, drawing and focus navigation.
Include this module
C++ include
#include "hud_core.hpp"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 and methods
appliedCommit only after every prepare check succeeded and this packet was written.MethodapplyPerforms `apply` as part of native HUD layout, drawing and focus navigation.FunctionbeginBegins begin as part of native HUD layout, drawing and focus navigation.MethodbeginBegins begin as part of native HUD layout, drawing and focus navigation.MethodbuildPerforms `build` as part of native HUD layout, drawing and focus navigation.MethodbuildPerforms `build` as part of native HUD layout, drawing and focus navigation.Methodbuild_image_rectanglesShared emission/clipping for ordinary builds and uninitialized POD scratch.Function templatecapturePerforms `capture` as part of native HUD layout, drawing and focus navigation.MethodclampPerforms `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 templateCompiler<Sink>Constructs `epok::hud_core::Compiler` for native HUD layout, drawing and focus navigation.constructorcompose`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.FunctiondrawDraws draw as part of native HUD layout, drawing and focus navigation.MethodendEnds end as part of native HUD layout, drawing and focus navigation.MethodendEnds end as part of native HUD layout, drawing and focus navigation.MethodidentityPerforms `identity` as part of native HUD layout, drawing and focus navigation.FunctioninvalidatePerforms `invalidate` as part of native HUD layout, drawing and focus navigation.MethodinvalidatePerforms `invalidate` as part of native HUD layout, drawing and focus navigation.Methodinvalidate_nodePerforms `invalidate node` as part of native HUD layout, drawing and focus navigation.MethodlayoutMeasure and arrange without drawing: `rects` holds every laid-out node and zeroes elsewhere, and `affines` the accumulated rotation about each pivot.Methodoperator==Performs `operator ==` as part of native HUD layout, drawing and focus navigation.MethodpixelPerforms `pixel` as part of native HUD layout, drawing and focus navigation.FunctionpreparePerforms `prepare` as part of native HUD layout, drawing and focus navigation.MethodrebuildPerforms `rebuild` as part of native HUD layout, drawing and focus navigation.Methodrender_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).FunctionsealPerforms `seal` as part of native HUD layout, drawing and focus navigation.MethodsinePerforms `sine` as part of native HUD layout, drawing and focus navigation.FunctionTrigTableConstructs `epok::hud_core::TrigTable` for native HUD layout, drawing and focus navigation.constructorturn_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 templateFields, variables and values
base_keyExposes `base_key` on `epok::hud_core::ImageReuseCache::Entry` for native HUD layout, drawing and focus navigation.FieldcExposes `c` on `epok::hud_core::Affine2` for native HUD layout, drawing and focus navigation.Fieldcache_indexExposes `cache_index` on `epok::hud_core::ImageReuseCache::Patch` for native HUD layout, drawing and focus navigation.FieldcolorExposes `color` on `epok::hud_core::ImagePatchRectangle` for native HUD layout, drawing and focus navigation.FieldcolorExposes `color` on `epok::hud_core::ImageRectangle` for native HUD layout, drawing and focus navigation.FieldcountExposes `count` on `epok::hud_core::ImagePatchRectangles` for native HUD layout, drawing and focus navigation.FieldcountExposes `count` on `epok::hud_core::ImageRectangles` for native HUD layout, drawing and focus navigation.FieldcountExposes `count` on `epok::hud_core::ImageReuseCache::Entry` for native HUD layout, drawing and focus navigation.FieldfirstExposes `first` on `epok::hud_core::ImageReuseCache::Entry` for native HUD layout, drawing and focus navigation.FieldfirstExposes `first` on `epok::hud_core::ImageReuseCache::Patch` for native HUD layout, drawing and focus navigation.Fieldfull_keyExposes `full_key` on `epok::hud_core::ImageReuseCache::Entry` for native HUD layout, drawing and focus navigation.FieldglyphsExposes `glyphs` on `epok::hud_core::Budget` for native HUD layout, drawing and focus navigation.FieldhExposes `h` on `epok::hud_core::Rect` for native HUD layout, drawing and focus navigation.FieldlayoutsExposes `layouts` on `epok::hud_core::Budget` for native HUD layout, drawing and focus navigation.FieldownerExposes `owner` on `epok::hud_core::ImageReuseCache::Entry` for native HUD layout, drawing and focus navigation.FieldownerExposes `owner` on `epok::hud_core::ImageReuseCache::Patch` for native HUD layout, drawing and focus navigation.FieldquarterExposes `quarter` on `epok::hud_core::TrigTable` for native HUD layout, drawing and focus navigation.FieldrectExposes `rect` on `epok::hud_core::ImageReuseCache::Entry` for native HUD layout, drawing and focus navigation.FieldrectanglesExposes `rectangles` on `epok::hud_core::Budget` for native HUD layout, drawing and focus navigation.FieldrectanglesExposes `rectangles` on `epok::hud_core::ImageReuseCache::Patch` for native HUD layout, drawing and focus navigation.FieldrotatedExposes `rotated` on `epok::hud_core::Budget` for native HUD layout, drawing and focus navigation.FieldsExposes `s` on `epok::hud_core::Affine2` for native HUD layout, drawing and focus navigation.FieldstatsExposes `stats` on `epok::hud_core::Compiler` for native HUD layout, drawing and focus navigation.FieldtextsExposes `texts` on `epok::hud_core::Budget` for native HUD layout, drawing and focus navigation.Fieldtrig_tableExposes `trig_table` on the `epok::hud_core` namespace for native HUD layout, drawing and focus navigation.VariabletxExposes `tx` on `epok::hud_core::Affine2` for native HUD layout, drawing and focus navigation.FieldtyExposes `ty` on `epok::hud_core::Affine2` for native HUD layout, drawing and focus navigation.FieldvaluesExposes `values` on `epok::hud_core::ImagePatchRectangles` for native HUD layout, drawing and focus navigation.FieldvaluesExposes `values` on `epok::hud_core::ImageRectangles` for native HUD layout, drawing and focus navigation.FieldvaluesExposes `values` on `epok::hud_core::NodeCache::Counts` for native HUD layout, drawing and focus navigation.FieldwExposes `w` on `epok::hud_core::Rect` for native HUD layout, drawing and focus navigation.FieldxExposes `x` on `epok::hud_core::Rect` for native HUD layout, drawing and focus navigation.Fieldx0Exposes `x0` on `epok::hud_core::ImagePatchRectangle` for native HUD layout, drawing and focus navigation.Fieldx0Exposes `x0` on `epok::hud_core::ImageRectangle` for native HUD layout, drawing and focus navigation.Fieldx1Exposes `x1` on `epok::hud_core::ImagePatchRectangle` for native HUD layout, drawing and focus navigation.Fieldx1Exposes `x1` on `epok::hud_core::ImageRectangle` for native HUD layout, drawing and focus navigation.FieldyExposes `y` on `epok::hud_core::Rect` for native HUD layout, drawing and focus navigation.Fieldy0Exposes `y0` on `epok::hud_core::ImagePatchRectangle` for native HUD layout, drawing and focus navigation.Fieldy0Exposes `y0` on `epok::hud_core::ImageRectangle` for native HUD layout, drawing and focus navigation.Fieldy1Exposes `y1` on `epok::hud_core::ImagePatchRectangle` for native HUD layout, drawing and focus navigation.Fieldy1Exposes `y1` on `epok::hud_core::ImageRectangle` for native HUD layout, drawing and focus navigation.Field