|
wavelength 1.0.0
|
The overlay of a slowdown, a mesh over the screen whose animations run from the deployment of the slowdown to the tick the song is back at its speed. More...
#include <tnlslowdownfx.h>
Public Member Functions | |
| TnlSlowdownFX (const char *pszName, GfxTunnel *pTunnel) | |
| Find the objects of the overlay, scale its animation and place its mesh to cover the screen, and hide it. | |
| ~TnlSlowdownFX () | |
| Destroy the overlay. | |
| void | LoadConfig (DataArray *pConfig, DataArray *pDefaults, GfxTunnel *pTunnel, int nOption) |
| Load the settings of the overlay. | |
| void | Reset () |
| Hide the overlay and stop its animation. | |
| void | Start (float flStartTick, float flEndTick, float flStopTick) |
| Show the overlay and run its animation from the song tick to the end of a slowdown. | |
| void | Update () |
| Move the animations of the overlay to the song tick, unless the slowdown has ended. | |
| void | Draw () |
| Draw the mesh of the overlay. | |
The overlay of a slowdown, a mesh over the screen whose animations run from the deployment of the slowdown to the tick the song is back at its speed.
The class is not polymorphic, and the name is inferred from the slowdown_shell entry the tunnel creates it with and from the slowdown overlay objects it finds. The object is 0x30 bytes.
| TnlSlowdownFX::TnlSlowdownFX | ( | const char * | pszName, |
| GfxTunnel * | pTunnel ) |
Find the objects of the overlay, scale its animation and place its mesh to cover the screen, and hide it.
| pszName | The entry of the overlay in the configuration of the tunnel. |
| pTunnel | The tunnel. |
| TnlSlowdownFX::~TnlSlowdownFX | ( | ) |
Destroy the overlay.
| void TnlSlowdownFX::LoadConfig | ( | DataArray * | pConfig, |
| DataArray * | pDefaults, | ||
| GfxTunnel * | pTunnel, | ||
| int | nOption ) |
Load the settings of the overlay.
The overlay has none, and the routine does nothing.
| pConfig | The configuration. |
| pDefaults | The defaults of the configuration. |
| pTunnel | The tunnel. |
| nOption | The fourth argument every loader of the tunnel receives. |
| void TnlSlowdownFX::Reset | ( | ) |
Hide the overlay and stop its animation.
| void TnlSlowdownFX::Start | ( | float | flStartTick, |
| float | flEndTick, | ||
| float | flStopTick ) |
Show the overlay and run its animation from the song tick to the end of a slowdown.
| flStartTick | The tick the song reaches the slow speed. The overlay does not read it. |
| flEndTick | The tick the song starts to speed up again. The overlay does not read it. |
| flStopTick | The tick the song is back at its speed. |
| void TnlSlowdownFX::Update | ( | ) |
Move the animations of the overlay to the song tick, unless the slowdown has ended.
| void TnlSlowdownFX::Draw | ( | ) |
Draw the mesh of the overlay.