|
wavelength 1.0.0
|
The full-screen blurs of the tunnel, each a span of ticks with an opacity and an enlargement. More...
#include <tnlblurs.h>
Classes | |
| struct | ActiveBlur |
| A queued blur. More... | |
Public Member Functions | |
| TnlBlurs () | |
| Make an empty queue with no configuration. | |
| ~TnlBlurs () | |
| Destroy the queue. | |
| void | LoadConfig (DataArray *pConfig, DataArray *pDefaults, GfxTunnel *pTunnel, int nOption) |
| Load the steps and the kinds of blur from the blurs entry. | |
| void | Reset () |
| Empty the queue and clear the opacity and the enlargement. | |
| void | Update () |
| Drop the blurs that have ended, step toward the blur at the song tick, and set the screen blur, or turn it off at an opacity of 0. | |
| void | Insert (const char *pszKind, float flStartTick, float flEndTick) |
| Queue a blur of a kind in the order of the start ticks. | |
The full-screen blurs of the tunnel, each a span of ticks with an opacity and an enlargement.
The class is not polymorphic. RTTI identifies its nested ActiveBlur. The object is 0x34 bytes. The tunnel queues a blur for each phase of a slowdown, and each update moves the opacity and the enlargement of the screen blur toward those of the blur at the song tick by at most the configured steps.
| TnlBlurs::TnlBlurs | ( | ) |
Make an empty queue with no configuration.
| TnlBlurs::~TnlBlurs | ( | ) |
Destroy the queue.
| void TnlBlurs::LoadConfig | ( | DataArray * | pConfig, |
| DataArray * | pDefaults, | ||
| GfxTunnel * | pTunnel, | ||
| int | nOption ) |
Load the steps and the kinds of blur from the blurs entry.
| pConfig | The configuration. |
| pDefaults | The defaults of the configuration. |
| pTunnel | The tunnel. The routine does not read it. |
| nOption | The fourth argument every loader of the tunnel receives. The routine does not read it. |
| void TnlBlurs::Reset | ( | ) |
Empty the queue and clear the opacity and the enlargement.
| void TnlBlurs::Update | ( | ) |
Drop the blurs that have ended, step toward the blur at the song tick, and set the screen blur, or turn it off at an opacity of 0.
| void TnlBlurs::Insert | ( | const char * | pszKind, |
| float | flStartTick, | ||
| float | flEndTick ) |
Queue a blur of a kind in the order of the start ticks.
The kind gives offsets to the two ticks, and the opacity and the enlargement of the blur. A blur that ends at or before its start is not queued.
| pszKind | The kind, an entry of the blurs entry. |
| flStartTick | The tick the blur starts at, before the offset of the kind. |
| flEndTick | The tick the blur ends at, before the offset of the kind. |