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

The gems of one type and distance, drawn as the instances of a multimesh. More...

#include <meshgroup.h>

Public Member Functions

 MeshGroup (RndMultiMesh *pMultiMesh, std::list< RndMesh * > *pMeshes, RndParticleSys *pParticles, std::list< Transform > *pTransforms, int nMaxGems, float flLookahead)
 Construct a group and empty the instances of its multimesh.
void Bind (TnlGem *pGem)
 Give a gem an instance, and a glow particle when the group has particles.
void Unbind (TnlGem *pGem)
 Return the instance and the glow particle of a gem.
void TakeGem (MeshGroup *pFrom, TnlGem *pGem)
 Move a gem to this group from another.
RndMultiMesh * GetMultiMesh () const
RndParticleSys * GetParticles () const
const std::list< RndMesh * > & GetMeshes () const
float GetLookahead () const
MeshGroup * GetNext () const
void SetNext (MeshGroup *pNext)

Detailed Description

The gems of one type and distance, drawn as the instances of a multimesh.

The class is not polymorphic, and the name is inferred. The object is 0x1c bytes. The groups of a type are chained from the nearest to the farthest. A composite group draws several meshes through its multimesh in turn.

Constructor & Destructor Documentation

◆ MeshGroup()

MeshGroup::MeshGroup ( RndMultiMesh * pMultiMesh,
std::list< RndMesh * > * pMeshes,
RndParticleSys * pParticles,
std::list< Transform > * pTransforms,
int nMaxGems,
float flLookahead )

Construct a group and empty the instances of its multimesh.

Parameters
pMultiMeshThe multimesh.
pMeshesThe meshes of a composite group, moved into the group, or null.
pParticlesThe glow particles of the gems, or null.
pTransformsThe pool of free instance transforms.
nMaxGemsThe most gems the tunnel places at once.
flLookaheadThe ticks beyond the minimum screen size of the mesh the group draws to.
Ghidra address:
NTSC-U/C: 0x001f4168
Ghidra address:
PAL: 0x001fcf08

Member Function Documentation

◆ Bind()

void MeshGroup::Bind ( TnlGem * pGem)

Give a gem an instance, and a glow particle when the group has particles.

An empty pool first grows by 64 transforms.

Parameters
pGemThe gem.
Ghidra address:
NTSC-U/C: 0x001f42b0
Ghidra address:
PAL: 0x001fd050

◆ Unbind()

void MeshGroup::Unbind ( TnlGem * pGem)

Return the instance and the glow particle of a gem.

Parameters
pGemThe gem.
Ghidra address:
NTSC-U/C: 0x001f4398
Ghidra address:
PAL: 0x001fd138

◆ TakeGem()

void MeshGroup::TakeGem ( MeshGroup * pFrom,
TnlGem * pGem )

Move a gem to this group from another.

Parameters
pFromThe group the gem leaves.
pGemThe gem.
Ghidra address:
NTSC-U/C: 0x001f4410
Ghidra address:
PAL: 0x001fd1b0

◆ GetMultiMesh()

RndMultiMesh * MeshGroup::GetMultiMesh ( ) const
inline
Returns
The multimesh that draws the instances.

◆ GetParticles()

RndParticleSys * MeshGroup::GetParticles ( ) const
inline
Returns
The glow particles of the gems, or null.

◆ GetMeshes()

const std::list< RndMesh * > & MeshGroup::GetMeshes ( ) const
inline
Returns
The meshes of a composite group.

◆ GetLookahead()

float MeshGroup::GetLookahead ( ) const
inline
Returns
The farthest ticks ahead the group draws.

◆ GetNext()

MeshGroup * MeshGroup::GetNext ( ) const
inline
Returns
The group of the next distance, or null.

◆ SetNext()

void MeshGroup::SetNext ( MeshGroup * pNext)
inline
Parameters
pNextThe group of the next distance, or null.

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