resonance 1.0.1
Loading...
Searching...
No Matches
Rnd::TunnelSortEntry Class Reference

A mesh of a Rnd::Tunnel keyed by its squared distance from an eye point. More...

#include <tunnelsortentry.h>

Collaboration diagram for Rnd::TunnelSortEntry:

Public Member Functions

 TunnelSortEntry (Mesh *pMesh, int nIndex, const Vector3 &eye)
 Key a mesh by the squared distance from eye to the midpoint of its first two vertices.

Public Attributes

float mDistanceSq
Mesh * mMesh
int mIndex

Detailed Description

A mesh of a Rnd::Tunnel keyed by its squared distance from an eye point.

The record is 0xc bytes and has no RTTI. Its only trace is the out-of-line copy of its constructor, which sits in the Rnd::Tunnel unit and has no callers, so the name is inferred from what the constructor computes.

Constructor & Destructor Documentation

◆ TunnelSortEntry()

Rnd::TunnelSortEntry::TunnelSortEntry ( Mesh * pMesh,
int nIndex,
const Vector3 & eye )
inline

Key a mesh by the squared distance from eye to the midpoint of its first two vertices.

The vertices are those of the mesh's mVertsOwner.

Parameters
pMeshThe mesh.
nIndexA word stored alongside.
eyeThe eye point.
Ghidra address:
NTSC-U/C: 0x00476930
Ghidra address:
PAL: 0x004b45a8

Member Data Documentation

◆ mDistanceSq

float Rnd::TunnelSortEntry::mDistanceSq

The squared distance from the eye.

◆ mMesh

Mesh* Rnd::TunnelSortEntry::mMesh

The mesh.

◆ mIndex

int Rnd::TunnelSortEntry::mIndex

The word stored alongside.


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