#include <RoundTimer.hpp>
◆ RoundTimer()
| RoundTimer::RoundTimer |
( |
| ) |
|
◆ draw()
| void RoundTimer::draw |
( |
HudContext & | ctx, |
|
|
float | drawX, |
|
|
float | drawY ) |
|
overridevirtual |
Emit geometry into the draw context.
- Parameters
-
| ctx | Immediate-mode draw API. |
| drawX | Resolved pixel X (anchor + offset already applied). |
| drawY | Resolved pixel Y. |
Implements HudWidget.
◆ update()
Called each frame before draw(). Update animation, consume events.
Implements HudWidget.
◆ fontSize
| float RoundTimer::fontSize = 30.f |
◆ lowTimeThreshold
| float RoundTimer::lowTimeThreshold = 10.f |
Seconds — color shifts to red below this.
◆ timeRemaining_
| float RoundTimer::timeRemaining_ = 0.f |
|
private |
The documentation for this struct was generated from the following files: