resonance 1.0.1
Loading...
Searching...
No Matches
TnlGridMarkers::Marker Class Reference

One marker, 8 bytes. More...

#include <tnlgridmarkers.h>

Collaboration diagram for TnlGridMarkers::Marker:

Public Member Functions

 ~Marker ()
 Delete the mesh.
void Init (Rnd::Mesh *pSource, Rnd::Drawable *pParent)
 Create a copy of a mesh and add it to a drawable.
void Place (int nTrack, int nFrame)
 Place the mesh on a track at a song position and record the position.

Public Attributes

Rnd::Mesh * mMesh
float mFrame

Detailed Description

One marker, 8 bytes.

The structure emits no RTTI. The name is inferred.

Constructor & Destructor Documentation

◆ ~Marker()

TnlGridMarkers::Marker::~Marker ( )

Delete the mesh.

A copied marker deletes the same mesh again. The constructor copies only markers without a mesh.

Member Function Documentation

◆ Init()

void TnlGridMarkers::Marker::Init ( Rnd::Mesh * pSource,
Rnd::Drawable * pParent )

Create a copy of a mesh and add it to a drawable.

The copy is a new mesh from Rnd::NewMeshThroughHook() under a NextAppTunnelName() name, and it shares the face owner of pSource. A null pSource sets mMesh to null and does nothing else.

Parameters
pSourceThe mesh to copy, or null.
pParentThe drawable the copy is added to.
Ghidra address:
NTSC-U/C: 0x00438fe0
Ghidra address:
PAL: 0x00474e10

◆ Place()

void TnlGridMarkers::Marker::Place ( int nTrack,
int nFrame )

Place the mesh on a track at a song position and record the position.

Does nothing without a mesh.

Parameters
nTrackThe tunnel track.
nFrameThe song position, in frames.
Ghidra address:
NTSC-U/C: 0x00454fb0
Ghidra address:
PAL: 0x004924e0

Member Data Documentation

◆ mMesh

Rnd::Mesh* TnlGridMarkers::Marker::mMesh

The copy, or null.

◆ mFrame

float TnlGridMarkers::Marker::mFrame

Song position the mesh stands at, in frames.


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