wavelength 1.0.0
Loading...
Searching...
No Matches
meshgroup.h
Go to the documentation of this file.
1#pragma once
2
3#include <list>
4
5#include "math/transform.h"
6#include "rnd/rndmesh.h"
7#include "rnd/rndmultimesh.h"
9
10class TnlGem;
11
19class MeshGroup {
20public:
34 std::list<RndMesh *> *pMeshes,
35 RndParticleSys *pParticles,
36 std::list<Transform> *pTransforms,
37 int nMaxGems,
38 float flLookahead);
39
49 void Bind(TnlGem *pGem);
50
58 void Unbind(TnlGem *pGem);
59
68 void TakeGem(MeshGroup *pFrom, TnlGem *pGem);
69
72 return mMultiMesh;
73 }
74
77 return mParticles;
78 }
79
81 const std::list<RndMesh *> &GetMeshes() const {
82 return mMeshes;
83 }
84
86 float GetLookahead() const {
87 return mLookahead;
88 }
89
91 MeshGroup *GetNext() const {
92 return mNext;
93 }
94
96 void SetNext(MeshGroup *pNext) {
97 mNext = pNext;
98 }
99
100private:
101 RndMultiMesh *mMultiMesh;
102 RndParticleSys *mParticles;
103 std::list<RndMesh *> mMeshes;
104 std::list<Transform> *mTransforms;
105 float mLookahead;
106 MeshGroup *mNext;
107};
The gems of one type and distance, drawn as the instances of a multimesh.
Definition meshgroup.h:19
void Unbind(TnlGem *pGem)
Return the instance and the glow particle of a gem.
const std::list< RndMesh * > & GetMeshes() const
Definition meshgroup.h:81
void Bind(TnlGem *pGem)
Give a gem an instance, and a glow particle when the group has particles.
MeshGroup * GetNext() const
Definition meshgroup.h:91
RndMultiMesh * GetMultiMesh() const
Definition meshgroup.h:71
RndParticleSys * GetParticles() const
Definition meshgroup.h:76
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 TakeGem(MeshGroup *pFrom, TnlGem *pGem)
Move a gem to this group from another.
void SetNext(MeshGroup *pNext)
Definition meshgroup.h:96
float GetLookahead() const
Definition meshgroup.h:86
Mesh drawn once at each of a list of transforms.
Definition rndmultimesh.h:17
Emitter that spawns, moves, and fades a population of particles.
Definition rndparticlesys.h:69
One gem on a track of the tunnel, 0x24 bytes.
Definition tnlgem.h:22