70 char AddMeshGroups(
const char *pszName,
const char *pszDrawParent,
float flLookahead);
189 void RemoveGems(
char nTrack,
float flStartTick,
float flEndTick);
248 std::list<TnlGem>::iterator
Find(
float flTick);
261 mFocusTrack = nTrack;
270 mHasFocusTrack = bHasFocusTrack;
275 std::list<Transform> mTransforms;
276 std::vector<std::unique_ptr<MeshGroup>> mMeshGroups;
278 std::vector<std::unique_ptr<SpriteGroup>> mSpriteGroups;
279 std::list<std::unique_ptr<RndObject>> mObjects;
280 std::list<TnlGem> mGems;
294 static void SetRenderScale(
RndObject *pObject,
float flScale);
304 static void SetRenderScale(
RndMesh *pMesh,
float flScale);
333 static void AddRotation(
RndMesh *pMesh,
334 std::list<std::unique_ptr<RndObject>> *pObjects,
351 std::list<TnlGem>::iterator FindNearest(
float flTick);
361 std::list<TnlGem>::iterator FindLowerBound(
float flTick);
Reference-counted array of script data nodes.
Definition dataarray.h:20
Tunnel of tracks the players fly down, with the gems, the cameras of the players, and the effects dra...
Definition gfxtunnel.h:58
The gems of one type and distance, drawn as the instances of a multimesh.
Definition meshgroup.h:19
Mix-in for an object driven by a frame.
Definition rndanimatable.h:16
Triangle mesh with a material.
Definition rndmesh.h:31
Base of every object the renderer can load, resolve by name, and serialise.
Definition rndobject.h:20
The sprite gems of one type, drawn as the particles of a particle system.
Definition spritegroup.h:10
void Poll(const TnlTrackRange *pRange)
Drop the gems behind the song and far ahead of it, fire the events of the gems that pass,...
static void LoadConfig(DataArray *pConfig, DataArray *pDefaults, GfxTunnel *pTunnel, int nOption)
Load the shared settings of the gems.
static void ApplyRenderScales()
Scale the meshes and particle systems of the gems by the world length of a tick.
void RemoveGem(char nTrack, char nSlot, float flTick)
Remove the gems of a tick, slot, and track.
MeshGroup * GetMeshGroup(char nType)
Report the first mesh group of a gem type.
void SetHasFocusTrack(int bHasFocusTrack)
Set whether the focus track applies.
Definition tnlgems.h:269
std::list< TnlGem > & GetGemList()
Definition tnlgems.h:251
char AddSpriteGroup(const char *pszName)
Add a sprite group for the particle system <name>.ps.
SpriteGroup * GetSpriteGroup(char nType)
Report the sprite group of a gem type.
char AddMeshGroups(const char *pszName, const char *pszDrawParent, float flLookahead)
Add one mesh group for each multimesh <name><n>.mm, chained in that order.
~TnlGems()
Delete the groups and the animations the gems created.
void Clear()
Remove every gem.
std::list< TnlGem >::iterator Find(float flTick)
Find the first gem at or after a tick.
void AddRotations(char nType, int nKeys, int bLoop, RndAnimatable *pParent, float flStartFrame, float flStartAngle, float flEndFrame, float flEndAngle)
Add an animation that turns each mesh of the groups of a gem type.
void DrawComposites()
Draw the composite mesh groups, each mesh through the multimesh in turn.
TnlGems(GfxTunnel *pTunnel, int nMaxGems, int nNumTracks)
Construct an empty set of gems with a pool of instance transforms.
void AddGem(char nTrack, char nType, char nSlot, int bFlash, char nColor, float flTick, float flShowTick)
Add a gem, and set the removal of a gem of the same tick, slot, and track to its show tick.
void ClearInstances(const char *pszName)
Empty the instances of each multimesh <name><n>.mm.
void SetFocusTrack(char nTrack)
Set the track whose passing gems fire hit events.
Definition tnlgems.h:260
void RemoveGems(char nTrack, float flStartTick, float flEndTick)
Remove the gems of a track over a span of ticks.
char AddCompositeMeshGroups(const char *pszName, const char *pszDrawParent, float flLookahead)
Add one composite mesh group for each multimesh <name>_<n>.mm, chained in that order.
std::list< TnlGem >::iterator LowerBound(float flTick)
Find the first gem at or after a tick.
A run of tracks over a span of ticks, which the tunnel reports when the region changes.
Definition tnltrackrange.h:8