|
wavelength 1.0.0
|
One line of the grid, an instance of the multi-mesh. More...
#include <tnlgrid.h>

Public Member Functions | |
| GridLine () | |
| Make a line of no scale. | |
| ~GridLine () | |
| Destroy the line. | |
| void | Attach (const Vector3 *pScale, RndMultiMesh *pMesh) |
| Add a transform to the front of the instances of a multi-mesh and take it as a shown line. | |
| void | Place (TnlGeom *pGeom, int nTrack, int nTick) |
| Place the line across the middle of a track at a tick, just below the surface, scale its basis rows, and record the tick. | |
| void | SetShowing (bool bShowing, RndMultiMesh *pMesh, std::list< Transform > &hidden) |
| Move the transform to the front of the instances of the multi-mesh to show the line, or to the back of the hidden list to hide it, unless the line is already so. | |
Public Attributes | |
| const Vector3 * | mScale |
| int | mShowing |
| std::list< Transform >::iterator | mInstance |
| float | mTick |
One line of the grid, an instance of the multi-mesh.
RTTI identifies the class in the anonymous namespace of the tunnel's source file. The class is not polymorphic, and the object is 0x10 bytes. A shown line's transform sits in the instances of the multi-mesh, and a hidden line's transform sits in the hidden list of its grid.
| TnlGrid::GridLine::GridLine | ( | ) |
Make a line of no scale.
The constructor sets nothing else.
| TnlGrid::GridLine::~GridLine | ( | ) |
Destroy the line.
The transform stays where it is.
| void TnlGrid::GridLine::Attach | ( | const Vector3 * | pScale, |
| RndMultiMesh * | pMesh ) |
Add a transform to the front of the instances of a multi-mesh and take it as a shown line.
| pScale | The scale of the basis rows of the line. |
| pMesh | The multi-mesh. |
| void TnlGrid::GridLine::Place | ( | TnlGeom * | pGeom, |
| int | nTrack, | ||
| int | nTick ) |
Place the line across the middle of a track at a tick, just below the surface, scale its basis rows, and record the tick.
| pGeom | The geometry of the tracks. |
| nTrack | The track. |
| nTick | The tick. |
| void TnlGrid::GridLine::SetShowing | ( | bool | bShowing, |
| RndMultiMesh * | pMesh, | ||
| std::list< Transform > & | hidden ) |
Move the transform to the front of the instances of the multi-mesh to show the line, or to the back of the hidden list to hide it, unless the line is already so.
| bShowing | Whether to show the line. |
| pMesh | The multi-mesh. |
| hidden | The hidden transforms of the grid. |
| const Vector3* TnlGrid::GridLine::mScale |
The scale of the basis rows.
| int TnlGrid::GridLine::mShowing |
Whether the transform is an instance.
| std::list<Transform>::iterator TnlGrid::GridLine::mInstance |
The transform of the line.
| float TnlGrid::GridLine::mTick |
The tick the line was last placed at.