resonance 1.0.1
Loading...
Searching...
No Matches
TnlArena::ScreenMesh Class Reference

One mesh that shows an arena screen, with the material it had when the arena was built. More...

#include <tnlarena.h>

Collaboration diagram for TnlArena::ScreenMesh:

Public Member Functions

 ~ScreenMesh ()
 Put the recorded material back on the mesh.
void SetMaterial (Rnd::Mat *pMat) const
 Put a material on the mesh.

Public Attributes

Rnd::Mesh * mMesh
Rnd::Mat * mMat

Detailed Description

One mesh that shows an arena screen, with the material it had when the arena was built.

An eight-byte record. The name is inferred.

Constructor & Destructor Documentation

◆ ~ScreenMesh()

TnlArena::ScreenMesh::~ScreenMesh ( )
inline

Put the recorded material back on the mesh.

Every copy runs it, so the temporary TnlArena's constructor pushes re-applies the mesh's material, and destroying mScreenMeshes restores every screen. The out-of-line copy is the deleting form and has no caller.

Ghidra address:
NTSC-U/C: 0x0040c8e8
Ghidra address:
PAL: 0x00446310

Member Function Documentation

◆ SetMaterial()

void TnlArena::ScreenMesh::SetMaterial ( Rnd::Mat * pMat) const

Put a material on the mesh.

The out-of-line copy sits in the TnlArena unit. The title is inferred.

Parameters
pMatThe material.
Ghidra address:
NTSC-U/C: 0x0040c938
Ghidra address:
PAL: 0x00446360

Member Data Documentation

◆ mMesh

Rnd::Mesh* TnlArena::ScreenMesh::mMesh

The mesh.

◆ mMat

Rnd::Mat* TnlArena::ScreenMesh::mMat

The material the mesh used at construction.


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