List of all members.
Public Member Functions |
| ParticleSystemCuda (int numParticles) |
| ~ParticleSystemCuda (void) |
glm::vec3 | runEmitter (glm::vec3 pos) |
glm::vec3 | runEmitter (glm::vec3 pos, glm::vec3 vel) |
void | AddParticles (unsigned int &index, glm::vec3 pos, glm::vec3 vel, glm::vec3 spread, float r, int n, float lifetimeVariance) |
void | InitCube (glm::vec3 origin, glm::vec3 size, glm::vec3 vel, float lifetime) |
void | Update (float duration) |
void | DepthSort () |
void | InitSphere (glm::vec3 origin, glm::vec3 vel, float size, float lifetime) |
void | InitStartPositions () |
void | PrintParticles (unsigned int start, unsigned int count) |
Particle * | Getparticle_parameter () |
void | SetIsoValue (float v) |
void | SetData (float *pos, float *vel, int numParticles) |
void | Debug () |
Public Attributes |
Particle * | m_particle_parameter |
unsigned int | m_numParticles |
CudaArray< float4 > * | m_Pos |
CudaArray< float4 > * | m_Vel |
CudaArray< float > * | m_Depth |
CudaArray< unsigned int > * | m_Index |
CudaArray< float3 > * | m_Force |
CudaArray< float > * | m_Pressure |
CudaArray< float3 > * | m_Viscosity |
CudaArray< unsigned int > * | m_CellStart |
CudaArray< unsigned int > * | m_CellEnd |
CudaArray< unsigned int > * | m_Indices2 |
CudaArray< unsigned int > * | m_Hash |
unsigned int | m_emitterIndex |
float3 | m_sortVector |
float | m_time |
float | m_duration |
cudaExtent | res |
CudaArray< uint > * | m_initPos |
CudaArray< uint > * | m_initResPos |
CudaArray< uint > * | m_randomSequence |
Constructor & Destructor Documentation
ParticleSystemCuda::ParticleSystemCuda |
( |
int |
numParticles | ) |
|
Standardconstructor
- Parameters:
-
numParticles | number of Particles |
ParticleSystemCuda::~ParticleSystemCuda |
( |
void |
| ) |
|
Member Function Documentation
void ParticleSystemCuda::AddParticles |
( |
unsigned int & |
index, |
|
|
glm::vec3 |
pos, |
|
|
glm::vec3 |
vel, |
|
|
glm::vec3 |
spread, |
|
|
float |
r, |
|
|
int |
n, |
|
|
float |
lifetimeVariance |
|
) |
| |
void ParticleSystemCuda::Debug |
( |
| ) |
|
void ParticleSystemCuda::DepthSort |
( |
| ) |
|
Particle * ParticleSystemCuda::Getparticle_parameter |
( |
| ) |
|
void ParticleSystemCuda::InitCube |
( |
glm::vec3 |
origin, |
|
|
glm::vec3 |
size, |
|
|
glm::vec3 |
vel, |
|
|
float |
lifetime |
|
) |
| |
void ParticleSystemCuda::InitSphere |
( |
glm::vec3 |
origin, |
|
|
glm::vec3 |
vel, |
|
|
float |
size, |
|
|
float |
lifetime |
|
) |
| |
void ParticleSystemCuda::InitStartPositions |
( |
| ) |
|
This method sets the init start positions
void ParticleSystemCuda::PrintParticles |
( |
unsigned int |
start, |
|
|
unsigned int |
count |
|
) |
| |
glm::vec3 ParticleSystemCuda::runEmitter |
( |
glm::vec3 |
pos | ) |
|
glm::vec3 ParticleSystemCuda::runEmitter |
( |
glm::vec3 |
pos, |
|
|
glm::vec3 |
vel |
|
) |
| |
void ParticleSystemCuda::SetData |
( |
float * |
pos, |
|
|
float * |
vel, |
|
|
int |
numParticles |
|
) |
| |
Initialize the data
- Parameters:
-
pos | position |
vel | velocity |
numParticles | number of Particles |
void ParticleSystemCuda::SetIsoValue |
( |
float |
v | ) |
|
Iso Value changed
- Parameters:
-
void ParticleSystemCuda::Update |
( |
float |
duration | ) |
|
This method update the particle system
The documentation for this class was generated from the following files: