resonance 1.0.1
Loading...
Searching...
No Matches
tnlgridmarkers.h
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4
5class AppTunnel;
6namespace Rnd {
7class Drawable;
8class Mesh;
9} // namespace Rnd
10
27public:
33 class Marker {
34 public:
42
55 void Init(Rnd::Mesh *pSource, Rnd::Drawable *pParent);
56
67 void Place(int nTrack, int nFrame);
68
70 float mFrame;
71 };
72
83 TnlGridMarkers(AppTunnel *pTunnel, int nPlayerNum);
84
94 void SetTrack(int nTrack);
95
105 void Update(float flFrame);
106
107private:
108 std::vector<Marker> mMarkers;
109 int mTrack;
110 AppTunnel *mTunnel;
111};
Game-side driver of the tunnel the in-game renderer draws.
Definition apptunnel.h:88
Mix-in for an object that draws itself and then a list of other drawables.
Definition drawable.h:32
Indexed triangle mesh with one material.
Definition mesh.h:46
One marker, 8 bytes.
Definition tnlgridmarkers.h:33
void Init(Rnd::Mesh *pSource, Rnd::Drawable *pParent)
Create a copy of a mesh and add it to a drawable.
~Marker()
Delete the mesh.
Rnd::Mesh * mMesh
Definition tnlgridmarkers.h:69
void Place(int nTrack, int nFrame)
Place the mesh on a track at a song position and record the position.
float mFrame
Definition tnlgridmarkers.h:70
TnlGridMarkers(AppTunnel *pTunnel, int nPlayerNum)
Build the markers into the player's grid view on track 0.
void Update(float flFrame)
Recycle the markers behind the song position and fade and show each one.
void SetTrack(int nTrack)
Move every marker onto another track at its current song position.
The rendering engine.
Definition animhelper.h:3