One built bar of one track, 0xd0 bytes.
More...
#include <tnlgeom.h>
One built bar of one track, 0xd0 bytes.
◆ PanelData() [1/2]
| TnlGeom::PanelData::PanelData |
( |
| ) |
|
Construct a white, transparent, unpickable panel with no mesh that needs a rebuild.
BuildPanels() inlines it.
◆ PanelData() [2/2]
| TnlGeom::PanelData::PanelData |
( |
PanelData && | | ) |
|
|
default |
Take over the mesh and the sections of another panel.
◆ operator=()
Take over the mesh and the sections of another panel.
◆ Rebuild()
| void TnlGeom::PanelData::Rebuild |
( |
const MeshHolder * | pSource, |
|
|
const Vector3 * | pOffset, |
|
|
int | nRows ) |
Rebuild the vertices of the mesh from the sections of the panel and a source mesh.
Each row of four vertices takes the section of its index, and the rows before mStartSection all take that section.
- Parameters
-
| pSource | The mesh whose vertices are placed. |
| pOffset | The offset added to each source vertex first. |
| nRows | The rows of vertices. |
- Ghidra address:
- NTSC-U/C: 0x001d2940
- Ghidra address:
- PAL: 0x001db6e0
◆ UpdateTriangles()
| void TnlGeom::PanelData::UpdateTriangles |
( |
| ) |
|
Rebuild the two triangles of the panel that a pick tests.
- Ghidra address:
- NTSC-U/C: 0x001d2aa8
- Ghidra address:
- PAL: 0x001db848
◆ Hit()
| bool TnlGeom::PanelData::Hit |
( |
const Segment * | pSegment | ) |
const |
Report whether a segment strikes the panel.
- Parameters
-
- Returns
- Whether picks test the panel and the segment strikes either triangle.
- Ghidra address:
- NTSC-U/C: 0x001d2cf0
- Ghidra address:
- PAL: 0x001dba90
◆ GetBaseSections() [1/2]
- Returns
- The sections as the bar was built.
◆ GetBaseSections() [2/2]
| const std::vector< CrossSectionXfm > & TnlGeom::PanelData::GetBaseSections |
( |
| ) |
const |
|
inline |
- Returns
- The sections as the bar was built.
◆ GetSections() [1/2]
- Returns
- The sections as drawn, possibly bent.
◆ GetSections() [2/2]
| const std::vector< CrossSectionXfm > & TnlGeom::PanelData::GetSections |
( |
| ) |
const |
|
inline |
- Returns
- The sections as drawn, possibly bent.
◆ SetSection()
| void TnlGeom::PanelData::SetSection |
( |
int | nSection, |
|
|
const CrossSectionXfm & | section ) |
|
inline |
Replace one section as drawn.
- Parameters
-
| nSection | The section. |
| section | The section. |
◆ SetSections()
| void TnlGeom::PanelData::SetSections |
( |
const std::vector< CrossSectionXfm > & | sections | ) |
|
|
inline |
- Parameters
-
| sections | The sections as drawn. |
◆ GetMesh()
| RndMesh * TnlGeom::PanelData::GetMesh |
( |
| ) |
const |
|
inline |
- Returns
- The mesh of the panel.
◆ SetMesh()
| void TnlGeom::PanelData::SetMesh |
( |
std::unique_ptr< RndMesh > | pMesh | ) |
|
|
inline |
Replace the mesh of the panel.
- Parameters
-
◆ GetCheckpointMat()
| RndMat * TnlGeom::PanelData::GetCheckpointMat |
( |
| ) |
const |
|
inline |
- Returns
- The checkpoint material of the panel, or null.
◆ SetCheckpointMat()
| void TnlGeom::PanelData::SetCheckpointMat |
( |
RndMat * | pMat | ) |
|
|
inline |
Set the checkpoint material of the panel.
- Parameters
-
| pMat | The material, or null. |
◆ GetColor() [1/2]
| Color & TnlGeom::PanelData::GetColor |
( |
| ) |
|
|
inline |
- Returns
- The colour of the panel.
◆ GetColor() [2/2]
| const Color & TnlGeom::PanelData::GetColor |
( |
| ) |
const |
|
inline |
- Returns
- The colour of the panel.
◆ SetColor()
| void TnlGeom::PanelData::SetColor |
( |
const Color & | color | ) |
|
|
inline |
Set the colour of the panel.
- Parameters
-
◆ GetHighlighted()
| char TnlGeom::PanelData::GetHighlighted |
( |
| ) |
const |
|
inline |
- Returns
- Whether the panel is drawn highlighted.
◆ SetHighlighted()
| void TnlGeom::PanelData::SetHighlighted |
( |
char | bHighlighted | ) |
|
|
inline |
Set whether the panel is drawn highlighted.
- Parameters
-
| bHighlighted | Whether it is highlighted. |
◆ GetDirty()
| int TnlGeom::PanelData::GetDirty |
( |
| ) |
const |
|
inline |
◆ SetDirty()
| void TnlGeom::PanelData::SetDirty |
( |
int | bDirty | ) |
|
|
inline |
Set whether the mesh needs Rebuild().
- Parameters
-
| bDirty | Whether it needs a rebuild. |
◆ GetPickable()
| int TnlGeom::PanelData::GetPickable |
( |
| ) |
const |
|
inline |
- Returns
- Whether Hit() tests the panel.
◆ SetPickable()
| void TnlGeom::PanelData::SetPickable |
( |
int | bPickable | ) |
|
|
inline |
Set whether Hit() tests the panel.
- Parameters
-
| bPickable | Whether picks test it. |
◆ GetTransparent()
| char TnlGeom::PanelData::GetTransparent |
( |
| ) |
const |
|
inline |
- Returns
- Whether the panel does not write depth.
◆ SetTransparent()
| void TnlGeom::PanelData::SetTransparent |
( |
char | bTransparent | ) |
|
|
inline |
Set whether the panel does not write depth.
- Parameters
-
| bTransparent | Whether it is transparent. |
◆ GetStartSection()
| char TnlGeom::PanelData::GetStartSection |
( |
| ) |
const |
|
inline |
- Returns
- The first section Rebuild() moves along.
◆ SetStartSection()
| void TnlGeom::PanelData::SetStartSection |
( |
char | nSection | ) |
|
|
inline |
Set the first section Rebuild() moves along.
- Parameters
-
The documentation for this class was generated from the following file: