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

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.

Detailed Description

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.

Constructor & Destructor Documentation

◆ TnlBlurs()

TnlBlurs::TnlBlurs ( )

Make an empty queue with no configuration.

Ghidra address:
NTSC-U/C: 0x001d5aa0
Ghidra address:
PAL: 0x001de840

◆ ~TnlBlurs()

TnlBlurs::~TnlBlurs ( )

Destroy the queue.

Ghidra address:
NTSC-U/C: 0x001d5b30
Ghidra address:
PAL: 0x001de8d0

Member Function Documentation

◆ LoadConfig()

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

Load the steps and the kinds of blur from the blurs entry.

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: 0x001d5b80
Ghidra address:
PAL: 0x001de920

◆ Reset()

void TnlBlurs::Reset ( )

Empty the queue and clear the opacity and the enlargement.

Ghidra address:
NTSC-U/C: 0x001d5c60
Ghidra address:
PAL: 0x001dea00

◆ Update()

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.

Ghidra address:
NTSC-U/C: 0x001d5c90
Ghidra address:
PAL: 0x001dea30

◆ Insert()

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.

Parameters
pszKindThe kind, an entry of the blurs entry.
flStartTickThe tick the blur starts at, before the offset of the kind.
flEndTickThe tick the blur ends at, before the offset of the kind.
Ghidra address:
NTSC-U/C: 0x001d5eb8
Ghidra address:
PAL: 0x001dec58

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