group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
KillcamBoxWidget.hpp
Go to the documentation of this file.
1
3
4#pragma once
5
6#include "hud/HudWidget.hpp"
7
8#include <glm/glm.hpp>
9
14{
16
17 void update(float dt, const HudGameState& state, HudTweenPool& tweens) override;
18 void draw(HudContext& ctx, float drawX, float drawY) override;
19
20private:
22 glm::mat4 viewProj_{1.f};
23 float screenW_ = 1280.f;
24 float screenH_ = 720.f;
25};
Base struct for all HUD widgets.
Accumulates HUD geometry during a frame for batch rendering.
Definition HudContext.hpp:19
Fixed-size tween pool. No heap allocations.
Definition HudTween.hpp:35
Snapshot of game state consumed by the HUD each frame.
Definition HudTypes.hpp:367
Killcam killer marker — the killer's world AABB + nickname, used on the death screen to float the kil...
Definition HudTypes.hpp:223
Base class for a retained HUD element.
Definition HudWidget.hpp:16
void draw(HudContext &ctx, float drawX, float drawY) override
Emit geometry into the draw context.
Definition KillcamBoxWidget.cpp:48
float screenW_
Definition KillcamBoxWidget.hpp:23
glm::mat4 viewProj_
Definition KillcamBoxWidget.hpp:22
float screenH_
Definition KillcamBoxWidget.hpp:24
void update(float dt, const HudGameState &state, HudTweenPool &tweens) override
Called each frame before draw(). Update animation, consume events.
Definition KillcamBoxWidget.cpp:39
KillcamBoxWidget()
Definition KillcamBoxWidget.cpp:33
HudKillerBox box_
Definition KillcamBoxWidget.hpp:21