Accumulates HUD geometry during a frame for batch rendering.
Definition HudContext.hpp:19
Fixed-size tween pool. No heap allocations.
Definition HudTween.hpp:35
float svgOffsetX
SVG frame X adjustment.
Definition HealthArmorBar.hpp:13
int maxHealth_
Definition HealthArmorBar.hpp:23
void update(float dt, const HudGameState &state, HudTweenPool &tweens) override
Called each frame before draw(). Update animation, consume events.
Definition HealthArmorBar.cpp:26
int maxArmor_
Definition HealthArmorBar.hpp:24
void draw(HudContext &ctx, float drawX, float drawY) override
Emit geometry into the draw context.
Definition HealthArmorBar.cpp:39
HealthArmorBar()
Definition HealthArmorBar.cpp:17
float armorFill_
Definition HealthArmorBar.hpp:27
float healthFill_
Definition HealthArmorBar.hpp:26
float barHeight
Base SVG frame height.
Definition HealthArmorBar.hpp:11
float svgScale
Extra scale applied to both SVG frame layers.
Definition HealthArmorBar.hpp:12
float svgOffsetY
SVG frame Y adjustment.
Definition HealthArmorBar.hpp:14
float svgStretchY
Vertical SVG stretch multiplier.
Definition HealthArmorBar.hpp:16
int maxOverShield_
Definition HealthArmorBar.hpp:25
float overShieldFill_
Definition HealthArmorBar.hpp:28
float svgStretchX
Horizontal SVG stretch multiplier.
Definition HealthArmorBar.hpp:15
float panelWidth
Base SVG frame width.
Definition HealthArmorBar.hpp:10
Snapshot of game state consumed by the HUD each frame.
Definition HudTypes.hpp:367