|
wavelength 1.0.0
|
The gems of one type and distance, drawn as the instances of a multimesh. More...
#include <meshgroup.h>
Public Member Functions | |
| MeshGroup (RndMultiMesh *pMultiMesh, std::list< RndMesh * > *pMeshes, RndParticleSys *pParticles, std::list< Transform > *pTransforms, int nMaxGems, float flLookahead) | |
| Construct a group and empty the instances of its multimesh. | |
| void | Bind (TnlGem *pGem) |
| Give a gem an instance, and a glow particle when the group has particles. | |
| void | Unbind (TnlGem *pGem) |
| Return the instance and the glow particle of a gem. | |
| void | TakeGem (MeshGroup *pFrom, TnlGem *pGem) |
| Move a gem to this group from another. | |
| RndMultiMesh * | GetMultiMesh () const |
| RndParticleSys * | GetParticles () const |
| const std::list< RndMesh * > & | GetMeshes () const |
| float | GetLookahead () const |
| MeshGroup * | GetNext () const |
| void | SetNext (MeshGroup *pNext) |
The gems of one type and distance, drawn as the instances of a multimesh.
The class is not polymorphic, and the name is inferred. The object is 0x1c bytes. The groups of a type are chained from the nearest to the farthest. A composite group draws several meshes through its multimesh in turn.
| MeshGroup::MeshGroup | ( | RndMultiMesh * | pMultiMesh, |
| std::list< RndMesh * > * | pMeshes, | ||
| RndParticleSys * | pParticles, | ||
| std::list< Transform > * | pTransforms, | ||
| int | nMaxGems, | ||
| float | flLookahead ) |
Construct a group and empty the instances of its multimesh.
| pMultiMesh | The multimesh. |
| pMeshes | The meshes of a composite group, moved into the group, or null. |
| pParticles | The glow particles of the gems, or null. |
| pTransforms | The pool of free instance transforms. |
| nMaxGems | The most gems the tunnel places at once. |
| flLookahead | The ticks beyond the minimum screen size of the mesh the group draws to. |
| void MeshGroup::Bind | ( | TnlGem * | pGem | ) |
Give a gem an instance, and a glow particle when the group has particles.
An empty pool first grows by 64 transforms.
| pGem | The gem. |
| void MeshGroup::Unbind | ( | TnlGem * | pGem | ) |
Return the instance and the glow particle of a gem.
| pGem | The gem. |
Move a gem to this group from another.
| pFrom | The group the gem leaves. |
| pGem | The gem. |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| pNext | The group of the next distance, or null. |