|
resonance 1.0.1
|
One marker, 8 bytes. More...
#include <tnlgridmarkers.h>

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 |
One marker, 8 bytes.
The structure emits no RTTI. The name is inferred.
| TnlGridMarkers::Marker::~Marker | ( | ) |
Delete the mesh.
A copied marker deletes the same mesh again. The constructor copies only markers without a mesh.
| 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.
| pSource | The mesh to copy, or null. |
| pParent | The drawable the copy is added to. |
| 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.
| nTrack | The tunnel track. |
| nFrame | The song position, in frames. |
| Rnd::Mesh* TnlGridMarkers::Marker::mMesh |
The copy, or null.
| float TnlGridMarkers::Marker::mFrame |
Song position the mesh stands at, in frames.