resonance 1.0.1
Loading...
Searching...
No Matches
tnlgemmeshkind.h
Go to the documentation of this file.
1#pragma once
2
3namespace Rnd {
4class Drawable;
5class MultiMesh;
6} // namespace Rnd
7
17public:
32 TnlGemMeshKind(Rnd::MultiMesh *pMesh, float flLodOffset, float flCostScale);
33
43 void AddDrawTo(Rnd::Drawable *pParent);
44
52 void SetShowing(int nShowing);
53
61 float GetCost();
62
67 float mCost;
68};
Mix-in for an object that draws itself and then a list of other drawables.
Definition drawable.h:32
Draws one mesh many times, once per recorded instance transform.
Definition multimesh.h:39
Rnd::MultiMesh * mMesh
Definition tnlgemmeshkind.h:63
TnlGemMeshKind(Rnd::MultiMesh *pMesh, float flLodOffset, float flCostScale)
Take a multi-mesh as one level of detail and clear its instances.
float GetCost()
Report the drawing cost one gem at this level adds.
TnlGemMeshKind * mNext
Definition tnlgemmeshkind.h:66
void AddDrawTo(Rnd::Drawable *pParent)
Add the multi-mesh of this level and of every coarser level to a drawable.
void SetShowing(int nShowing)
Show or hide the multi-mesh of this level and of every coarser level.
float mCost
Definition tnlgemmeshkind.h:67
float mLodDistance
Definition tnlgemmeshkind.h:65
The rendering engine.
Definition animhelper.h:3