Nebula
Loading...
Searching...
No Matches
Particles::EmitterMesh Class Reference

#include <emittermesh.h>

Detailed Description

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 EmitterPointGetEmitterPoint (IndexT key) const
 get emitter point
 

Private Attributes

SizeT numPoints
 
EmitterPointpoints
 

Static Private Attributes

static const SizeT VertexWidth = sizeof(EmitterPoint) / sizeof(Math::vec4)
 

Constructor & Destructor Documentation

◆ EmitterMesh()

Particles::EmitterMesh::EmitterMesh ( )

constructor

◆ ~EmitterMesh()

Particles::EmitterMesh::~EmitterMesh ( )

destructor

Member Function Documentation

◆ Discard()

void Particles::EmitterMesh::Discard ( )

discard the emitter mesh

◆ GetEmitterPoint()

const EmitterMesh::EmitterPoint & Particles::EmitterMesh::GetEmitterPoint ( IndexT key) const

get emitter point

◆ IsValid()

bool Particles::EmitterMesh::IsValid ( ) const
inline

return true if object has been setup

◆ Setup()

void Particles::EmitterMesh::Setup ( const CoreGraphics::MeshId mesh,
IndexT primGroupIndex )

setup the emitter mesh

Member Data Documentation

◆ numPoints

SizeT Particles::EmitterMesh::numPoints
private

◆ points

EmitterPoint* Particles::EmitterMesh::points
private

◆ VertexWidth

const SizeT Particles::EmitterMesh::VertexWidth = sizeof(EmitterPoint) / sizeof(Math::vec4)
staticprivate

The documentation for this class was generated from the following files: