The boundary across the tunnel at the start of each section of a song, with the name of the section and a flash when the camera looks through it.
More...
#include <tnldivider.h>
|
| | TnlDivider () |
| | Construct the boundary from its objects and fit them to the layout.
|
| void | ScaleParticles (float flScale) |
| | Scale the emission rates of the particles of the boundary.
|
| void | Reset () |
| | Remove every boundary.
|
| void | AddSection (float flTick, const char *pszLabel, float flTextScale) |
| | Add a boundary, dropping those more than a bar behind the song.
|
| float | TicksSinceSection (float flTick) const |
| | Report the ticks since the last boundary at or before a tick.
|
| void | ClearSections () |
| | Remove every boundary.
|
| void | Poll (float flDelta, GfxTunnel *pTunnel) |
| | Move the boundary to the current section and animate it.
|
| void | Draw () |
| | Draw the boundary, then the current environment.
|
| void | SetConditionFrame (float flConditionFrame) |
| void | SetEnabled (int nEnabled) |
|
| static void | SetLayout (const Vector3 *pScale, const Vector3 *pOffset) |
| | Set the scale and the offset every boundary is built with.
|
The boundary across the tunnel at the start of each section of a song, with the name of the section and a flash when the camera looks through it.
The RTTI of the nested Section identifies the class, which is not polymorphic. The object is 0x94 bytes.
◆ TnlDivider()
| TnlDivider::TnlDivider |
( |
| ) |
|
Construct the boundary from its objects and fit them to the layout.
- Ghidra address:
- NTSC-U/C: 0x001ef868
- Ghidra address:
- PAL: 0x001f8608
◆ ScaleParticles()
| void TnlDivider::ScaleParticles |
( |
float | flScale | ) |
|
Scale the emission rates of the particles of the boundary.
- Parameters
-
- Ghidra address:
- NTSC-U/C: 0x001f0008
- Ghidra address:
- PAL: 0x001f8da8
◆ Reset()
| void TnlDivider::Reset |
( |
| ) |
|
Remove every boundary.
- Ghidra address:
- NTSC-U/C: 0x001f0048
- Ghidra address:
- PAL: 0x001f8de8
◆ AddSection()
| void TnlDivider::AddSection |
( |
float | flTick, |
|
|
const char * | pszLabel, |
|
|
float | flTextScale ) |
Add a boundary, dropping those more than a bar behind the song.
A boundary at the tick of one already added is ignored.
- Parameters
-
| flTick | The tick of the boundary. |
| pszLabel | The text of the boundary, or null for the default text. |
| flTextScale | The scale of the text. |
- Ghidra address:
- NTSC-U/C: 0x001f0068
- Ghidra address:
- PAL: 0x001f8e08
◆ TicksSinceSection()
| float TnlDivider::TicksSinceSection |
( |
float | flTick | ) |
const |
Report the ticks since the last boundary at or before a tick.
- Parameters
-
- Returns
- The ticks, or 1e9 for a tick before every boundary.
- Ghidra address:
- NTSC-U/C: 0x001f0290
- Ghidra address:
- PAL: 0x001f9030
◆ ClearSections()
| void TnlDivider::ClearSections |
( |
| ) |
|
Remove every boundary.
- Ghidra address:
- NTSC-U/C: 0x001f0248
- Ghidra address:
- PAL: 0x001f8fe8
◆ Poll()
| void TnlDivider::Poll |
( |
float | flDelta, |
|
|
GfxTunnel * | pTunnel ) |
Move the boundary to the current section and animate it.
- Parameters
-
| flDelta | The time since the last update. |
| pTunnel | The tunnel. |
- Ghidra address:
- NTSC-U/C: 0x001f02f8
- Ghidra address:
- PAL: 0x001f9098
◆ Draw()
| void TnlDivider::Draw |
( |
| ) |
|
Draw the boundary, then the current environment.
- Ghidra address:
- NTSC-U/C: 0x001f0770
- Ghidra address:
- PAL: 0x001f9510
◆ SetLayout()
| void TnlDivider::SetLayout |
( |
const Vector3 * | pScale, |
|
|
const Vector3 * | pOffset ) |
|
static |
Set the scale and the offset every boundary is built with.
- Parameters
-
| pScale | The scale. |
| pOffset | The offset. |
- Ghidra address:
- NTSC-U/C: 0x001f0940
- Ghidra address:
- PAL: 0x001f96e0
◆ SetConditionFrame()
| void TnlDivider::SetConditionFrame |
( |
float | flConditionFrame | ) |
|
|
inline |
- Parameters
-
| flConditionFrame | The frame of mConditionView. |
◆ SetEnabled()
| void TnlDivider::SetEnabled |
( |
int | nEnabled | ) |
|
|
inline |
- Parameters
-
| nEnabled | Whether the boundary shows. |
◆ sFlashTime
| float TnlDivider::sFlashTime |
|
static |
The milliseconds of the flash.
- Ghidra address:
- NTSC-U/C: 0x003afb24
- Ghidra address:
- PAL: 0x0042e9bc
◆ sScale
The scale every boundary is built with.
- Ghidra address:
- NTSC-U/C: 0x0043b5f0
◆ sOffset
The offset every boundary is built with.
- Ghidra address:
- NTSC-U/C: 0x0043b600
The documentation for this class was generated from the following file: