|
wavelength 1.0.0
|
The spotlights over the gems ahead of the song, with a glow at the base of each. More...
#include <spotlightfx.h>
Classes | |
| class | LightPos |
| One spotlight, 0x60 bytes. More... | |
Public Member Functions | |
| SpotLightFX () | |
| Find the meshes and create the multimeshes, and fill the pool of transforms. | |
| ~SpotLightFX () | |
| Release the multimeshes. | |
| void | Poll () |
| Advance the spotlights. | |
| void | Draw () |
| Drop the spotlights behind the song, and draw the glows and the spotlights. | |
| void | AddLight (char nTrack, TnlGeom *pGeom, float flTick, float flLateral) |
| Light a gem, unless a light of the same tick and track exists. | |
| void | RemoveLight (char nTrack, float flTick) |
| Remove the lights of a track over one tick. | |
| void | RemoveLights (char nTrack, float flStartTick, float flEndTick) |
| Remove the lights of a track over a span of ticks. | |
| void | Clear () |
| Remove every light. | |
| void | UpdateRange (TnlGeom *pGeom, const TnlTrackRange *pRange) |
| Place again the lights in a range of the tunnel that changed. | |
Static Public Member Functions | |
| static void | LoadConfig (DataArray *pConfig, DataArray *pDefaults, GfxTunnel *pTunnel, int nOption) |
| Load the fade ticks and the scales of the spotlights. | |
The spotlights over the gems ahead of the song, with a glow at the base of each.
The class is not polymorphic. The type of its list of lights records the name. The object is 0x1c bytes. A spotlight is an instance of a multimesh until it comes within the fade ticks of the song, when it is drawn alone with an environment that fades it in.
| SpotLightFX::SpotLightFX | ( | ) |
Find the meshes and create the multimeshes, and fill the pool of transforms.
| SpotLightFX::~SpotLightFX | ( | ) |
Release the multimeshes.
|
static |
Load the fade ticks and the scales of the spotlights.
| 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 SpotLightFX::Poll | ( | ) |
Advance the spotlights.
The body is empty.
| void SpotLightFX::Draw | ( | ) |
Drop the spotlights behind the song, and draw the glows and the spotlights.
| void SpotLightFX::AddLight | ( | char | nTrack, |
| TnlGeom * | pGeom, | ||
| float | flTick, | ||
| float | flLateral ) |
Light a gem, unless a light of the same tick and track exists.
| nTrack | The track. |
| pGeom | The geometry of the tunnel. |
| flTick | The tick of the gem. |
| flLateral | The position across the track, 0 to 1. |
| void SpotLightFX::RemoveLight | ( | char | nTrack, |
| float | flTick ) |
Remove the lights of a track over one tick.
| nTrack | The track. |
| flTick | The tick. |
| void SpotLightFX::RemoveLights | ( | char | nTrack, |
| float | flStartTick, | ||
| float | flEndTick ) |
Remove the lights of a track over a span of ticks.
| nTrack | The track. |
| flStartTick | The start of the span. |
| flEndTick | The end of the span. |
| void SpotLightFX::Clear | ( | ) |
Remove every light.
| void SpotLightFX::UpdateRange | ( | TnlGeom * | pGeom, |
| const TnlTrackRange * | pRange ) |
Place again the lights in a range of the tunnel that changed.
| pGeom | The geometry of the tunnel. |
| pRange | The range. |