#include <LevelBarWidget.hpp>
◆ LevelBarWidget()
| LevelBarWidget::LevelBarWidget |
( |
| ) |
|
◆ draw()
| void LevelBarWidget::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.
◆ barHeight
| float LevelBarWidget::barHeight = 39.5f |
◆ barWidth
| float LevelBarWidget::barWidth = 790.5f |
◆ progress_
| float LevelBarWidget::progress_ = 0.f |
|
private |
◆ svgOffsetX
| float LevelBarWidget::svgOffsetX = 0.f |
◆ svgOffsetY
| float LevelBarWidget::svgOffsetY = 0.f |
◆ svgRotationDeg
| float LevelBarWidget::svgRotationDeg = 0.f |
◆ svgScale
| float LevelBarWidget::svgScale = 0.95f |
◆ svgStretchX
| float LevelBarWidget::svgStretchX = 0.57f |
◆ svgStretchY
| float LevelBarWidget::svgStretchY = 1.f |
The documentation for this struct was generated from the following files: