resonance 1.0.1
Loading...
Searching...
No Matches
hudscreenflash.h
Go to the documentation of this file.
1#pragma once
2
3namespace Rnd {
4class Mesh;
5} // namespace Rnd
6
18public:
26
38 void Start(float flDuration, int nFadeIn);
39
49 void SetFrame();
50
51private:
52 // When the fade started, in the units of mScale. 1e9 marks no fade in progress.
53 float mStart;
54 // Share of the fade covered per unit of time.
55 float mRate;
56 Rnd::Mesh *mMesh; // `HUD screen rect`
57 // Milliseconds per unit of GetElapsedMilliseconds().
58 float mScale;
59 // Non-zero while the fade runs from opaque to clear.
60 int mFadeIn;
61};
void Start(float flDuration, int nFadeIn)
Start a fade.
HudScreenFlash()
Resolve the rectangle and show it fully opaque.
void SetFrame()
Set the rectangle's alpha for the current time and show it.
Indexed triangle mesh with one material.
Definition mesh.h:46
The rendering engine.
Definition animhelper.h:3