wavelength 1.0.0
Loading...
Searching...
No Matches
SpotLightFX Class Reference

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.

Detailed Description

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.

Constructor & Destructor Documentation

◆ SpotLightFX()

SpotLightFX::SpotLightFX ( )

Find the meshes and create the multimeshes, and fill the pool of transforms.

Ghidra address:
NTSC-U/C: 0x001f22d8
Ghidra address:
PAL: 0x001fb078

◆ ~SpotLightFX()

SpotLightFX::~SpotLightFX ( )

Release the multimeshes.

Ghidra address:
NTSC-U/C: 0x001f26c8
Ghidra address:
PAL: 0x001fb468

Member Function Documentation

◆ LoadConfig()

void SpotLightFX::LoadConfig ( DataArray * pConfig,
DataArray * pDefaults,
GfxTunnel * pTunnel,
int nOption )
static

Load the fade ticks and the scales of the spotlights.

Parameters
pConfigThe configuration.
pDefaultsThe defaults of the configuration.
pTunnelThe tunnel. The routine does not read it.
nOptionThe fourth argument every loader of the tunnel receives. The routine does not read it.
Ghidra address:
NTSC-U/C: 0x001f2038
Ghidra address:
PAL: 0x001fadd8

◆ Poll()

void SpotLightFX::Poll ( )

Advance the spotlights.

The body is empty.

Ghidra address:
NTSC-U/C: 0x001f2788
Ghidra address:
PAL: 0x001fb528

◆ Draw()

void SpotLightFX::Draw ( )

Drop the spotlights behind the song, and draw the glows and the spotlights.

Ghidra address:
NTSC-U/C: 0x001f2790
Ghidra address:
PAL: 0x001fb530

◆ AddLight()

void SpotLightFX::AddLight ( char nTrack,
TnlGeom * pGeom,
float flTick,
float flLateral )

Light a gem, unless a light of the same tick and track exists.

Parameters
nTrackThe track.
pGeomThe geometry of the tunnel.
flTickThe tick of the gem.
flLateralThe position across the track, 0 to 1.
Ghidra address:
NTSC-U/C: 0x001f2a58
Ghidra address:
PAL: 0x001fb7f8

◆ RemoveLight()

void SpotLightFX::RemoveLight ( char nTrack,
float flTick )

Remove the lights of a track over one tick.

Parameters
nTrackThe track.
flTickThe tick.
Ghidra address:
NTSC-U/C: 0x001f2df0
Ghidra address:
PAL: 0x001fbb90

◆ RemoveLights()

void SpotLightFX::RemoveLights ( char nTrack,
float flStartTick,
float flEndTick )

Remove the lights of a track over a span of ticks.

Parameters
nTrackThe track.
flStartTickThe start of the span.
flEndTickThe end of the span.
Ghidra address:
NTSC-U/C: 0x001f2e20
Ghidra address:
PAL: 0x001fbbc0

◆ Clear()

void SpotLightFX::Clear ( )

Remove every light.

Ghidra address:
NTSC-U/C: 0x001f2f40
Ghidra address:
PAL: 0x001fbce0

◆ UpdateRange()

void SpotLightFX::UpdateRange ( TnlGeom * pGeom,
const TnlTrackRange * pRange )

Place again the lights in a range of the tunnel that changed.

Parameters
pGeomThe geometry of the tunnel.
pRangeThe range.
Ghidra address:
NTSC-U/C: 0x001f2fe0
Ghidra address:
PAL: 0x001fbd80

The documentation for this class was generated from the following file: