66 char AddMeshKind(
const char *pszName,
float flLodOffset,
float flCostScale);
110 void Remove(
char nTrack,
float flFrame,
float flBlend);
182 static std::list<TnlGem>::iterator FindFirstAt(std::list<TnlGem> &gems,
float flFrame);
184 std::vector<TnlGemMeshKind *> mMeshKinds;
185 std::vector<TnlGemEffectKind *> mEffectKinds;
186 std::list<TnlGem> mGems;
Game-side driver of the tunnel the in-game renderer draws.
Definition apptunnel.h:88
Heap-allocated NUL-terminated string.
Definition hxstr.h:41
Mix-in for an object that draws itself and then a list of other drawables.
Definition drawable.h:32
A gem kind that TnlGemManager draws as one particle of a particle system per gem.
Definition tnlgemeffectkind.h:15
void AddKindDraws(char nKind, Rnd::Drawable *pParent)
Add every level of one mesh gem kind to a drawable.
~TnlGemManager()
Delete every gem kind.
void Update(float flFrame)
Drop the gems the playhead has passed and place the rest within the budget.
TnlGemManager(AppTunnel *pTunnel, float flCostBudget)
Start with no gem kind and no gem.
void SetKindShowing(char nKind, int nShowing)
Show or hide every level of one mesh gem kind.
void Add(const TnlGem &gem)
Insert a copy of a gem after every gem at or before its frame.
void Remove(char nTrack, float flFrame, float flBlend)
Release and remove every gem at one frame, ring, and position.
char AddEffectKind(const char *pszName)
Register one effect gem kind from "<pszName>.ps".
char AddMeshKind(const char *pszName, float flLodOffset, float flCostScale)
Register every level of detail of one mesh gem kind.
void RemoveRange(char nTrack, float flStart, float flEnd)
Release and remove every gem of one ring from flStart up to flEnd.
TnlGemMeshKind * GetMeshKind(char nKind)
Report the finest level of one mesh gem kind.
friend class AppTunnel
Definition tnlgemmanager.h:174
@ kEffectKindBase
Definition tnlgemmanager.h:30
TnlGemEffectKind * GetEffectKind(char nKind)
Report one effect gem kind.
One level of detail of a gem kind that TnlGemManager draws as instances of a multi-mesh.
Definition tnlgemmeshkind.h:16
One gem on the tunnel, as TnlGemManager keeps it sorted by mFrame.
Definition tnlgem.h:28
The rendering engine.
Definition animhelper.h:3
float g_flTnlGemLastFrame
The tunnel frame TnlGemManager::Update() last ran for.
HxStr NextTnlMeshName()
Create the next name of the form "<tnlmesh0000>".
int g_nTnlMeshNameCounter
The number of the last NextTnlMeshName() name.