wavelength 1.0.0
Loading...
Searching...
No Matches
TnlGrid::GridLine Class Reference

One line of the grid, an instance of the multi-mesh. More...

#include <tnlgrid.h>

Collaboration diagram for TnlGrid::GridLine:

Public Member Functions

 GridLine ()
 Make a line of no scale.
 ~GridLine ()
 Destroy the line.
void Attach (const Vector3 *pScale, RndMultiMesh *pMesh)
 Add a transform to the front of the instances of a multi-mesh and take it as a shown line.
void Place (TnlGeom *pGeom, int nTrack, int nTick)
 Place the line across the middle of a track at a tick, just below the surface, scale its basis rows, and record the tick.
void SetShowing (bool bShowing, RndMultiMesh *pMesh, std::list< Transform > &hidden)
 Move the transform to the front of the instances of the multi-mesh to show the line, or to the back of the hidden list to hide it, unless the line is already so.

Public Attributes

const Vector3 * mScale
int mShowing
std::list< Transform >::iterator mInstance
float mTick

Detailed Description

One line of the grid, an instance of the multi-mesh.

RTTI identifies the class in the anonymous namespace of the tunnel's source file. The class is not polymorphic, and the object is 0x10 bytes. A shown line's transform sits in the instances of the multi-mesh, and a hidden line's transform sits in the hidden list of its grid.

Constructor & Destructor Documentation

◆ GridLine()

TnlGrid::GridLine::GridLine ( )

Make a line of no scale.

The constructor sets nothing else.

Ghidra address:
NTSC-U/C: 0x001d39d8
Ghidra address:
PAL: 0x001dc778

◆ ~GridLine()

TnlGrid::GridLine::~GridLine ( )

Destroy the line.

The transform stays where it is.

Ghidra address:
NTSC-U/C: 0x001d39e8
Ghidra address:
PAL: 0x001dc788

Member Function Documentation

◆ Attach()

void TnlGrid::GridLine::Attach ( const Vector3 * pScale,
RndMultiMesh * pMesh )

Add a transform to the front of the instances of a multi-mesh and take it as a shown line.

Parameters
pScaleThe scale of the basis rows of the line.
pMeshThe multi-mesh.
Ghidra address:
NTSC-U/C: 0x001d3a10
Ghidra address:
PAL: 0x001dc7b0

◆ Place()

void TnlGrid::GridLine::Place ( TnlGeom * pGeom,
int nTrack,
int nTick )

Place the line across the middle of a track at a tick, just below the surface, scale its basis rows, and record the tick.

Parameters
pGeomThe geometry of the tracks.
nTrackThe track.
nTickThe tick.
Ghidra address:
NTSC-U/C: 0x001d3ae8
Ghidra address:
PAL: 0x001dc888

◆ SetShowing()

void TnlGrid::GridLine::SetShowing ( bool bShowing,
RndMultiMesh * pMesh,
std::list< Transform > & hidden )

Move the transform to the front of the instances of the multi-mesh to show the line, or to the back of the hidden list to hide it, unless the line is already so.

Parameters
bShowingWhether to show the line.
pMeshThe multi-mesh.
hiddenThe hidden transforms of the grid.
Ghidra address:
NTSC-U/C: 0x001d3be0
Ghidra address:
PAL: 0x001dc980

Member Data Documentation

◆ mScale

const Vector3* TnlGrid::GridLine::mScale

The scale of the basis rows.

◆ mShowing

int TnlGrid::GridLine::mShowing

Whether the transform is an instance.

◆ mInstance

std::list<Transform>::iterator TnlGrid::GridLine::mInstance

The transform of the line.

◆ mTick

float TnlGrid::GridLine::mTick

The tick the line was last placed at.


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