|
group2 0.1.0
CSE 125 Group 2
|
While the local player is dead and the killcam is tracking the killer, floats the killer's nickname above them in red. More...
#include <KillcamBoxWidget.hpp>
Public Member Functions | |
| KillcamBoxWidget () | |
| void | update (float dt, const HudGameState &state, HudTweenPool &tweens) override |
| Called each frame before draw(). Update animation, consume events. | |
| void | draw (HudContext &ctx, float drawX, float drawY) override |
| Emit geometry into the draw context. | |
| Public Member Functions inherited from HudWidget | |
| virtual | ~HudWidget ()=default |
Private Attributes | |
| HudKillerBox | box_ {} |
| glm::mat4 | viewProj_ {1.f} |
| float | screenW_ = 1280.f |
| float | screenH_ = 720.f |
Additional Inherited Members | |
| Public Attributes inherited from HudWidget | |
| bool | visible = true |
| HudAnchor | anchor = HudAnchor::TopLeft |
| float | offsetX = 0.f |
| float | offsetY = 0.f |
| float | width = 0.f |
| float | height = 0.f |
| HudColor | tint {1.f, 1.f, 1.f, 1.f} |
| float | uiScale_ = 1.f |
| Set by Hud each frame (screenH / 1080). | |
While the local player is dead and the killcam is tracking the killer, floats the killer's nickname above them in red.
(The wallhack silhouette itself is drawn by the 3D renderer's chams pass.)
| KillcamBoxWidget::KillcamBoxWidget | ( | ) |
|
overridevirtual |
Emit geometry into the draw context.
| ctx | Immediate-mode draw API. |
| drawX | Resolved pixel X (anchor + offset already applied). |
| drawY | Resolved pixel Y. |
Implements HudWidget.
|
overridevirtual |
|
private |
|
private |
|
private |
|
private |