|
Nebula
|
#include <emittermesh.h>
An emitter mesh holds positions and normals for particle emission.
The actual format of a vertex in the emitter mesh is:
vec4 position; vec4 normal; vec4 tangent;
Classes | |
| struct | EmitterPoint |
Public Member Functions | |
| EmitterMesh () | |
| constructor | |
| ~EmitterMesh () | |
| destructor | |
| void | Setup (const CoreGraphics::MeshId mesh, IndexT primGroupIndex) |
| setup the emitter mesh | |
| void | Discard () |
| discard the emitter mesh | |
| bool | IsValid () const |
| return true if object has been setup | |
| const EmitterPoint & | GetEmitterPoint (IndexT key) const |
| get emitter point | |
Private Attributes | |
| SizeT | numPoints |
| EmitterPoint * | points |
Static Private Attributes | |
| static const SizeT | VertexWidth = sizeof(EmitterPoint) / sizeof(Math::vec4) |
| Particles::EmitterMesh::EmitterMesh | ( | ) |
constructor
| Particles::EmitterMesh::~EmitterMesh | ( | ) |
destructor
| void Particles::EmitterMesh::Discard | ( | ) |
discard the emitter mesh
| const EmitterMesh::EmitterPoint & Particles::EmitterMesh::GetEmitterPoint | ( | IndexT | key | ) | const |
get emitter point
|
inline |
return true if object has been setup
| void Particles::EmitterMesh::Setup | ( | const CoreGraphics::MeshId | mesh, |
| IndexT | primGroupIndex ) |
setup the emitter mesh
|
private |
|
private |
|
staticprivate |