resonance 1.0.1
Loading...
Searching...
No Matches
hudletterbox.h
Go to the documentation of this file.
1#pragma once
2
3#include "app/linearanim.h"
4
5namespace Rnd {
6class View;
7} // namespace Rnd
8
20public:
28
38 void SetFrame(float flTime);
39
49 void SetTarget(float flTarget);
50
60 void Jump(float flTarget);
61
62private:
63 Rnd::View *mView; // `HUD letterbox.view`
64 LinearAnim mRamp;
65};
void SetFrame(float flTime)
Advance the ramp, pose the view on its value, and show the view unless the value is 0.
void SetTarget(float flTarget)
Start the bars moving toward a raw ramp position.
void Jump(float flTarget)
Move the bars to a raw ramp position at once.
HudLetterbox()
Resolve the view, hide it, and set the ramp's range.
Value that moves toward a target at a fixed rate, read through a linear mapping.
Definition linearanim.h:12
Root of a loadable scene.
Definition view.h:47
The rendering engine.
Definition animhelper.h:3