|
|
|
|
Documentation |
|
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages Search
NL3D::CPSParticle Class ReferenceThis is the base class for all particles.
More...
#include <ps_particle_basic.h>
Inheritance diagram for NL3D::CPSParticle:
List of all members.
Detailed Description
This is the base class for all particles.
A deriver must provide a drawing method for his particle. Not sharable accross systems. -
Author:
-
Nicolas Vizerie , Nevrax France
-
Date:
-
2001
Definition at line 54 of file ps_particle_basic.h.
Constructor & Destructor Documentation
NL3D::CPSParticle::CPSParticle |
( |
|
) |
|
|
Member Function Documentation
void NL3D::CPSParticle::computeSrcStep |
( |
uint32 & |
step, |
|
|
uint & |
numToProcess |
|
) |
[protected] |
|
|
System may have hand-tuned LOD, or auto LOD.
This compute the number of particles that must really be displayed, and the src step that allow to go through the whole collection. The step in the source is in a fixed point 16:16 format
Definition at line 81 of file ps_particle_basic.cpp.
References _DisableAutoLOD, NL3D::CPSLocatedBindable::_Owner, NLMISC::clamp, nlassert, r, and step.
Referenced by NL3D::CPSShockWave::draw, NL3D::CPSConstraintMesh::draw, NL3D::CPSFanLight::draw, NL3D::CPSFaceLookAt::draw, NL3D::CPSDot::draw, NL3D::CPSTailDot::step, NL3D::CPSRibbonLookAt::step, NL3D::CPSRibbon::step, and NL3D::CPSFace::step. |
virtual void NL3D::CPSParticle::deleteElement |
( |
uint32 |
index |
) |
[protected, pure virtual] |
|
|
Delete an element given its index Attributes of the located that hold this bindable are still accessible for the index given index out of range -> nl_assert.
Implements NL3D::CPSLocatedBindable.
Implemented in NL3D::CPSDot. |
void NL3D::CPSParticle::disableAutoLOD |
( |
bool |
disable = true |
) |
[inline] |
|
virtual void NL3D::CPSParticle::draw |
( |
bool |
opaque |
) |
[inline, virtual] |
|
virtual uint32 NL3D::CPSParticle::getMaxNumFaces |
( |
void |
|
) |
const [pure virtual] |
|
|
return the max number of faces needed for display. This is needed for LOD balancing.
Implemented in NL3D::CPSDot. |
virtual uint32 NL3D::CPSParticle::getPriority |
( |
void |
|
) |
const [inline, virtual] |
|
uint32 NL3D::CPSParticle::getType |
( |
void |
|
) |
const [inline, virtual] |
|
virtual bool NL3D::CPSParticle::hasOpaqueFaces |
( |
void |
|
) |
[pure virtual] |
|
|
return true if there are Opaque faces in the object.
Implemented in NL3D::CPSDot.
Referenced by step. |
virtual bool NL3D::CPSParticle::hasParticles |
( |
void |
|
) |
const [inline, virtual] |
|
virtual bool NL3D::CPSParticle::hasTransparentFaces |
( |
void |
|
) |
[pure virtual] |
|
|
return true if there are transparent faces in the object.
Implemented in NL3D::CPSDot.
Referenced by step. |
bool NL3D::CPSParticle::isAutoLODDisabled |
( |
|
) |
const [inline] |
|
virtual void NL3D::CPSParticle::newElement |
( |
CPSLocated * |
emitterLocated, |
|
|
uint32 |
emitterIndex |
|
) |
[protected, pure virtual] |
|
void NL3D::CPSParticle::notifyOwnerMaxNumFacesChanged |
( |
void |
|
) |
const [inline, protected] |
|
virtual void NL3D::CPSParticle::resize |
( |
uint32 |
size |
) |
[protected, pure virtual] |
|
void NL3D::CPSParticle::showTool |
( |
|
) |
[virtual] |
|
|
process one pass for the particles.
The default behaviour shows the particles
Implements NL3D::CPSLocatedBindable.
Reimplemented in NL3D::CPSFace.
Definition at line 73 of file ps_particle_basic.h.
References draw, hasOpaqueFaces, hasTransparentFaces, NL3D::PSBlendRender, NL3D::PSSolidRender, NL3D::PSToolRender, showTool, NL3D::TAnimationTime, and NL3D::TPSProcessPass.
Referenced by computeSrcStep, NL3D::CPSShockWave::draw, NL3D::CPSFanLight::draw, NL3D::CPSFaceLookAt::draw, and NL3D::CPSDot::draw. |
Member Data Documentation
bool NL3D::CPSParticle::_DisableAutoLOD [private]
|
|
The documentation for this class was generated from the following files:
|
|