#include <AmmoCounter.hpp>
◆ AmmoCounter()
| AmmoCounter::AmmoCounter |
( |
| ) |
|
◆ draw()
| void AmmoCounter::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.
◆ clipFontSize
| float AmmoCounter::clipFontSize = 42.f |
◆ displayClip_
| int AmmoCounter::displayClip_ = 30 |
|
private |
◆ displayReserve_
| int AmmoCounter::displayReserve_ = 90 |
|
private |
◆ dividerPadding
| float AmmoCounter::dividerPadding = 6.f |
◆ reserveFontSize
| float AmmoCounter::reserveFontSize = 22.f |
The documentation for this struct was generated from the following files: