|
resonance 1.0.1
|
Sixteen copies of the grid meshes that march down one player's tunnel track. More...
#include <tnlgridmarkers.h>
Classes | |
| class | Marker |
| One marker, 8 bytes. More... | |
Public Member Functions | |
| TnlGridMarkers (AppTunnel *pTunnel, int nPlayerNum) | |
| Build the markers into the player's grid view on track 0. | |
| void | SetTrack (int nTrack) |
| Move every marker onto another track at its current song position. | |
| void | Update (float flFrame) |
| Recycle the markers behind the song position and fade and show each one. | |
Sixteen copies of the grid meshes that march down one player's tunnel track.
The class is not polymorphic and emits no RTTI, and no allocation tag or file path identifies it. The name is inferred from the view it fills, "grid<n>.view", and the two meshes it copies, "grid4" and "grid8".
The markers start 240 frames apart from frame 0. A marker on a beat is a copy of "grid4" and every other marker a copy of "grid8". Update() moves a marker more than 480 frames behind the song position forward by 3840 frames, the length of the whole row, and hides a marker whose bar AppTunnel::IsTrackBarLocked() reports for mTrack.
TnlPlayer embeds one, 0x14 bytes, at +0x114. The destructor at 0x00454970 is the implicit one and is not written.
| TnlGridMarkers::TnlGridMarkers | ( | AppTunnel * | pTunnel, |
| int | nPlayerNum ) |
Build the markers into the player's grid view on track 0.
Builds nothing when "grid<n>.view" does not resolve. The view's draw list is cleared first.
| pTunnel | The tunnel, queried by Update(). |
| nPlayerNum | The player number, selecting the view. |
| void TnlGridMarkers::SetTrack | ( | int | nTrack | ) |
Move every marker onto another track at its current song position.
The image has no caller.
| nTrack | The tunnel track. |
| void TnlGridMarkers::Update | ( | float | flFrame | ) |
Recycle the markers behind the song position and fade and show each one.
A marker's alpha is (3840 - mFrame + flFrame) / 1920, capped at 0.8.
| flFrame | The song position. |