Full-screen scope mask, reticle, and railgun charge readout.
More...
#include <RailgunScopeWidget.hpp>
Full-screen scope mask, reticle, and railgun charge readout.
◆ RailgunScopeWidget()
| RailgunScopeWidget::RailgunScopeWidget |
( |
| ) |
|
◆ draw()
| void RailgunScopeWidget::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.
◆ chargeTime_
| float RailgunScopeWidget::chargeTime_ = 0.f |
|
private |
◆ screenH_
| float RailgunScopeWidget::screenH_ = 720.f |
|
private |
◆ screenW_
| float RailgunScopeWidget::screenW_ = 1280.f |
|
private |
The documentation for this struct was generated from the following files: