Particle Universe
1.2
|
#include <ParticleUniverseEntityRenderer.h>
Public Types | |
enum | EntityOrientationType { ENT_ORIENTED_SELF, ENT_ORIENTED_SELF_MIRRORED, ENT_ORIENTED_SHAPE } |
Public Types inherited from ParticleUniverse::IAlias | |
enum | AliasType { AT_UNDEFINED, AT_TECHNIQUE, AT_RENDERER, AT_EMITTER, AT_AFFECTOR, AT_OBSERVER, AT_EXTERN, AT_HANDLER, AT_BEHAVIOUR } |
Public Member Functions | |
EntityRenderer (void) | |
virtual | ~EntityRenderer (void) |
const String & | getMeshName (void) const |
void | setMeshName (const String &meshName) |
void | _destroyAll (void) |
virtual void | setVisible (bool visible) |
virtual void | _prepare (ParticleTechnique *technique) |
virtual void | _unprepare (ParticleTechnique *technique) |
virtual void | _updateRenderQueue (Ogre::RenderQueue *queue, ParticlePool *pool) |
virtual void | _notifyAttached (Ogre::Node *parent, bool isTagPoint=false) |
virtual void | _setMaterialName (const String &materialName) |
virtual void | _notifyCurrentCamera (Camera *cam) |
virtual void | _notifyParticleQuota (size_t quota) |
virtual void | _notifyDefaultDimensions (Real width, Real height, Real depth) |
virtual void | _notifyParticleResized (void) |
virtual void | _notifyParticleZRotated (void) |
void | _rotateTexture (VisualParticle *particle, Ogre::Entity *entity) |
virtual void | setRenderQueueGroup (uint8 queueId) |
virtual SortMode | _getSortMode (void) const |
const EntityOrientationType & | getEntityOrientationType (void) const |
void | setEntityOrientationType (const EntityOrientationType &entityOrientationType) |
virtual void | copyAttributesTo (ParticleRenderer *renderer) |
Public Member Functions inherited from ParticleUniverse::ParticleRenderer | |
ParticleRenderer (void) | |
virtual | ~ParticleRenderer (void) |
const String & | getRendererType (void) const |
void | setRendererType (String rendererType) |
ParticleTechnique * | getParentTechnique (void) const |
void | setParentTechnique (ParticleTechnique *parentTechnique) |
bool | isRendererInitialised (void) const |
void | setRendererInitialised (bool rendererInitialised) |
virtual void | _notifyStart (void) |
virtual void | _notifyStop (void) |
virtual void | _notifyRescaled (const Vector3 &scale) |
virtual void | _processParticle (ParticleTechnique *particleTechnique, Particle *particle, Real timeElapsed, bool firstParticle) |
bool | getUseSoftParticles (void) const |
void | setUseSoftParticles (bool useSoftParticles) |
Real | getSoftParticlesContrastPower (void) const |
Real | getSoftParticlesScale (void) const |
Real | getSoftParticlesDelta (void) const |
void | setSoftParticlesContrastPower (Real softParticlesContrastPower) |
void | setSoftParticlesScale (Real softParticlesScale) |
void | setSoftParticlesDelta (Real softParticlesDelta) |
virtual uint8 | getRenderQueueGroup (void) const |
const bool | isSorted (void) const |
void | setSorted (bool sorted) |
const uchar | getTextureCoordsRows (void) const |
void | setTextureCoordsRows (uchar const textureCoordsRows) |
const uchar | getTextureCoordsColumns (void) const |
void | setTextureCoordsColumns (uchar const textureCoordsColumns) |
size_t | getNumTextureCoords (void) |
virtual void | copyParentAttributesTo (ParticleRenderer *renderer) |
void | addTextureCoords (const Real u, const Real v, const Real width, const Real height) |
const vector< Ogre::FloatRect * > & | getTextureCoords (void) const |
Public Member Functions inherited from ParticleUniverse::IAlias | |
IAlias (void) | |
virtual | ~IAlias (void) |
const String & | getAliasName (void) const |
void | setAliasName (String aliasName) |
const AliasType | getAliasType (void) const |
void | setAliasType (AliasType aliasType) |
Public Member Functions inherited from ParticleUniverse::IElement | |
IElement (void) | |
virtual | ~IElement (void) |
Static Public Attributes | |
static const EntityOrientationType | DEFAULT_ORIENTATION_TYPE |
Static Public Attributes inherited from ParticleUniverse::ParticleRenderer | |
static const uint8 | DEFAULT_RENDER_QUEUE_GROUP |
static const bool | DEFAULT_SORTED |
static const uchar | DEFAULT_TEXTURECOORDS_ROWS |
static const uchar | DEFAULT_TEXTURECOORDS_COLUMNS |
static const bool | DEFAULT_USE_SOFT_PARTICLES |
static const Real | DEFAULT_SOFT_PARTICLES_CONTRAST_POWER |
static const Real | DEFAULT_SOFT_PARTICLES_SCALE |
static const Real | DEFAULT_SOFT_PARTICLES_DELTA |
Protected Member Functions | |
void | _makeNodesVisible (bool visible) |
Protected Member Functions inherited from ParticleUniverse::ParticleRenderer | |
void | _createSoftMaterial (void) |
void | _stripNameFromSoftPrefix (String &name) |
Additional Inherited Members | |
Public Attributes inherited from ParticleUniverse::ParticleRenderer | |
bool | autoRotate |
The EntityRenderer class is responsible to render particles as an Entity.
ParticleUniverse::EntityRenderer::EntityRenderer | ( | void | ) |
|
virtual |
void ParticleUniverse::EntityRenderer::_destroyAll | ( | void | ) |
Deletes all ChildSceneNodes en Entities.
|
virtual |
Gets the particles sort mode
Implements ParticleUniverse::ParticleRenderer.
|
protected |
Make all nodes to which the entities are attached visible or invisible.
|
virtual |
Delegated to by ParticleTechnique::_notifyAttached
Implements ParticleUniverse::ParticleRenderer.
|
virtual |
Delegated to by ParticleTechnique::_notifyCurrentCamera
Implements ParticleUniverse::ParticleRenderer.
|
virtual |
The particle default size has changed
Implements ParticleUniverse::ParticleRenderer.
|
virtual |
The particle quota has changed
Implements ParticleUniverse::ParticleRenderer.
|
virtual |
Callback when particles are resized
Implements ParticleUniverse::ParticleRenderer.
|
virtual |
Callback when particles are rotated
Reimplemented from ParticleUniverse::ParticleRenderer.
|
virtual |
Prepare the renderer before it can be used.
Implements ParticleUniverse::ParticleRenderer.
void ParticleUniverse::EntityRenderer::_rotateTexture | ( | VisualParticle * | particle, |
Ogre::Entity * | entity | ||
) |
Rotate the textures of eacht entity.
|
virtual |
Sets the material this renderer must use; called by ParticleTechnique.
Implements ParticleUniverse::ParticleRenderer.
|
virtual |
Reverse the actions from the _prepare.
Reimplemented from ParticleUniverse::ParticleRenderer.
|
virtual |
Updates the renderqueue
Reimplemented from ParticleUniverse::ParticleRenderer.
|
virtual |
Copy attributes to another renderer.
Reimplemented from ParticleUniverse::ParticleRenderer.
const EntityOrientationType& ParticleUniverse::EntityRenderer::getEntityOrientationType | ( | void | ) | const |
const String& ParticleUniverse::EntityRenderer::getMeshName | ( | void | ) | const |
Get the mesh name.
void ParticleUniverse::EntityRenderer::setEntityOrientationType | ( | const EntityOrientationType & | entityOrientationType | ) |
void ParticleUniverse::EntityRenderer::setMeshName | ( | const String & | meshName | ) |
Set the mesh name.
|
virtual |
Sets renderqueue group
Reimplemented from ParticleUniverse::ParticleRenderer.
|
virtual |
Disable all ChildSceneNodes.Make all objects visible or invisible.
Reimplemented from ParticleUniverse::ParticleRenderer.
|
static |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |