OGRE 2.1
Object-Oriented Graphics Rendering Engine
|
Specialisation of ParticleSystemRenderer to render particles using a BillboardSet. More...
#include <OgreBillboardParticleRenderer.h>
Classes | |
class | CmdAccurateFacing |
Command object for accurate facing(see ParamCommand). More... | |
class | CmdBillboardOrigin |
Command object for billboard origin (see ParamCommand). More... | |
class | CmdBillboardRotationType |
Command object for billboard rotation type (see ParamCommand). More... | |
class | CmdBillboardType |
Command object for billboard type (see ParamCommand). More... | |
class | CmdCommonDirection |
Command object for common direction (see ParamCommand). More... | |
class | CmdCommonUpVector |
Command object for common up-vector (see ParamCommand). More... | |
class | CmdPointRendering |
Command object for point rendering (see ParamCommand). More... | |
Public Member Functions | |
BillboardParticleRenderer (IdType id, ObjectMemoryManager *objectMemoryManager, SceneManager *sceneManager) | |
~BillboardParticleRenderer () | |
virtual ParticleVisualData * | _createVisualData (void) |
Create a new ParticleVisualData instance for attachment to a particle. | |
virtual void | _destroyVisualData (ParticleVisualData *vis) |
Destroy a ParticleVisualData instance. | |
SortMode | _getSortMode (void) const |
Gets the desired particles sort mode of this renderer. | |
void | _notifyAttached (Node *parent) |
Delegated to by ParticleSystem::_notifyAttached. | |
void | _notifyCurrentCamera (const Camera *cam) |
Delegated to by ParticleSystem::_notifyCurrentCamera. | |
void | _notifyDefaultDimensions (Real width, Real height) |
Tells the renderer that the particle default size has changed. | |
virtual void | _notifyParticleCleared (list< Particle * >::type ¤tParticles) |
Optional callback notified when particles cleared. | |
virtual void | _notifyParticleEmitted (Particle *particle) |
Optional callback notified when particle emitted. | |
virtual void | _notifyParticleExpired (Particle *particle) |
Optional callback notified when particle expired. | |
virtual void | _notifyParticleMoved (list< Particle * >::type ¤tParticles) |
Optional callback notified when particles moved. | |
void | _notifyParticleQuota (size_t quota) |
Tells the renderer that the particle quota has changed. | |
void | _notifyParticleResized (void) |
Optional callback notified when particles are resized individually. | |
void | _notifyParticleRotated (void) |
Optional callback notified when particles are rotated. | |
virtual void | _setDatablock (HlmsDatablock *datablock) |
Sets the HLMS material this renderer must use; called by ParticleSystem. | |
virtual void | _setMaterialName (const String &matName, const String &resourceGroup) |
Sets the material this renderer must use; called by ParticleSystem. | |
void | _updateRenderQueue (RenderQueue *queue, Camera *camera, const Camera *lodCamera, list< Particle * >::type ¤tParticles, bool cullIndividually, RenderableArray &outRenderables) |
Delegated to by ParticleSystem::_updateRenderQueue. | |
virtual void | copyParametersTo (StringInterface *dest) const |
Method for copying this object's parameters to another object. | |
BillboardOrigin | getBillboardOrigin (void) const |
Gets the point which acts as the origin point for all billboards in this set. | |
BillboardRotationType | getBillboardRotationType (void) const |
Gets billboard rotation type. | |
BillboardSet * | getBillboardSet (void) const |
Access BillboardSet in use. | |
BillboardType | getBillboardType (void) const |
Returns the billboard type in use. | |
const Vector3 & | getCommonDirection (void) const |
Gets the common direction for all billboards (BBT_ORIENTED_COMMON) | |
const Vector3 & | getCommonUpVector (void) const |
Gets the common up-vector for all billboards (BBT_PERPENDICULAR_SELF) | |
ParamDictionary * | getParamDictionary (void) |
Retrieves the parameter dictionary for this class. | |
const ParamDictionary * | getParamDictionary (void) const |
virtual String | getParameter (const String &name) const |
Generic parameter retrieval method. | |
const ParameterList & | getParameters (void) const |
Retrieves a list of parameters valid for this object. | |
const String & | getType (void) const |
Gets the type of this renderer - must be implemented by subclasses. | |
bool | getUseAccurateFacing (void) const |
Gets whether or not billboards use an 'accurate' facing model based on the vector from each billboard to the camera, rather than an optimised version using just the camera direction. | |
bool | isPointRenderingEnabled (void) const |
Returns whether point rendering is enabled. | |
void | operator delete (void *ptr) |
void | operator delete (void *ptr, const char *, int, const char *) |
void | operator delete (void *ptr, void *) |
void | operator delete[] (void *ptr) |
void | operator delete[] (void *ptr, const char *, int, const char *) |
void * | operator new (size_t sz) |
void * | operator new (size_t sz, const char *file, int line, const char *func) |
operator new, with debug line info | |
void * | operator new (size_t sz, void *ptr) |
placement operator new | |
void * | operator new[] (size_t sz) |
void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
array operator new, with debug line info | |
void | setBillboardOrigin (BillboardOrigin origin) |
Sets the point which acts as the origin point for all billboards in this set. | |
void | setBillboardRotationType (BillboardRotationType rotationType) |
Sets billboard rotation type. | |
void | setBillboardType (BillboardType bbt) |
Sets the type of billboard to render. | |
void | setCommonDirection (const Vector3 &vec) |
Use this to specify the common direction given to billboards of type BBT_ORIENTED_COMMON. | |
void | setCommonUpVector (const Vector3 &vec) |
Use this to specify the common up-vector given to billboards of type BBT_PERPENDICULAR_SELF. | |
void | setKeepParticlesInLocalSpace (bool keepLocal) |
Setting carried over from ParticleSystem. | |
virtual bool | setParameter (const String &name, const String &value) |
Generic parameter setting method. | |
virtual void | setParameterList (const NameValuePairList ¶mList) |
Generic multiple parameter setting method. | |
void | setPointRenderingEnabled (bool enabled) |
Set whether or not the BillboardSet will use point rendering rather than manually generated quads. | |
void | setRenderQueueGroup (uint8 queueID) |
Sets which render queue group this renderer should target with it's output. | |
void | setRenderQueueSubGroup (uint8 subGroup) |
Sets the render queue sub group. | |
void | setUseAccurateFacing (bool acc) |
Sets whether or not billboards should use an 'accurate' facing model based on the vector from each billboard to the camera, rather than an optimised version using just the camera direction. | |
Static Public Member Functions | |
static void | cleanupDictionary () |
Cleans up the static 'msDictionary' required to reset Ogre, otherwise the containers are left with invalid pointers, which will lead to a crash as soon as one of the ResourceManager implementers (e.g. | |
Specialisation of ParticleSystemRenderer to render particles using a BillboardSet.
Ogre::v1::BillboardParticleRenderer::BillboardParticleRenderer | ( | IdType | id, |
ObjectMemoryManager * | objectMemoryManager, | ||
SceneManager * | sceneManager | ||
) |
Ogre::v1::BillboardParticleRenderer::~BillboardParticleRenderer | ( | ) |
|
inlinevirtualinherited |
Create a new ParticleVisualData instance for attachment to a particle.
|
inlinevirtualinherited |
Destroy a ParticleVisualData instance.
Gets the desired particles sort mode of this renderer.
Implements Ogre::ParticleSystemRenderer.
Delegated to by ParticleSystem::_notifyAttached.
Implements Ogre::ParticleSystemRenderer.
Delegated to by ParticleSystem::_notifyCurrentCamera.
Implements Ogre::ParticleSystemRenderer.
|
virtual |
Tells the renderer that the particle default size has changed.
Implements Ogre::ParticleSystemRenderer.
|
inlinevirtualinherited |
Optional callback notified when particles cleared.
|
inlinevirtualinherited |
Optional callback notified when particle emitted.
|
inlinevirtualinherited |
Optional callback notified when particle expired.
|
inlinevirtualinherited |
Optional callback notified when particles moved.
Tells the renderer that the particle quota has changed.
Implements Ogre::ParticleSystemRenderer.
Optional callback notified when particles are resized individually.
Reimplemented from Ogre::ParticleSystemRenderer.
Optional callback notified when particles are rotated.
Reimplemented from Ogre::ParticleSystemRenderer.
|
virtual |
Sets the HLMS material this renderer must use; called by ParticleSystem.
Implements Ogre::ParticleSystemRenderer.
|
virtual |
Sets the material this renderer must use; called by ParticleSystem.
Implements Ogre::ParticleSystemRenderer.
|
virtual |
Delegated to by ParticleSystem::_updateRenderQueue.
Implements Ogre::ParticleSystemRenderer.
Cleans up the static 'msDictionary' required to reset Ogre, otherwise the containers are left with invalid pointers, which will lead to a crash as soon as one of the ResourceManager implementers (e.g.
MaterialManager) initializes.
|
inlinevirtualinherited |
Method for copying this object's parameters to another object.
dest | Pointer to object to have it's parameters set the same as this object. |
|
inline |
Gets the point which acts as the origin point for all billboards in this set.
References Ogre::v1::BillboardSet::getBillboardOrigin().
BillboardRotationType Ogre::v1::BillboardParticleRenderer::getBillboardRotationType | ( | void | ) | const |
Gets billboard rotation type.
|
inline |
Access BillboardSet in use.
BillboardType Ogre::v1::BillboardParticleRenderer::getBillboardType | ( | void | ) | const |
Returns the billboard type in use.
Gets the common direction for all billboards (BBT_ORIENTED_COMMON)
Gets the common up-vector for all billboards (BBT_PERPENDICULAR_SELF)
|
inlineinherited |
Retrieves the parameter dictionary for this class.
|
inlineinherited |
|
inlinevirtualinherited |
Generic parameter retrieval method.
name | The name of the parameter to get |
|
inherited |
Retrieves a list of parameters valid for this object.
Gets the type of this renderer - must be implemented by subclasses.
Implements Ogre::ParticleSystemRenderer.
Gets whether or not billboards use an 'accurate' facing model based on the vector from each billboard to the camera, rather than an optimised version using just the camera direction.
Returns whether point rendering is enabled.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
operator new, with debug line info
placement operator new
|
inlineinherited |
|
inlineinherited |
array operator new, with debug line info
|
inline |
Sets the point which acts as the origin point for all billboards in this set.
origin | A member of the BillboardOrigin enum specifying the origin for all the billboards in this set. |
References Ogre::v1::BillboardSet::setBillboardOrigin().
void Ogre::v1::BillboardParticleRenderer::setBillboardRotationType | ( | BillboardRotationType | rotationType | ) |
Sets billboard rotation type.
rotationType | A member of the BillboardRotationType enum specifying the rotation type for all the billboards in this set. |
void Ogre::v1::BillboardParticleRenderer::setBillboardType | ( | BillboardType | bbt | ) |
Sets the type of billboard to render.
bbt | The type of billboard to render |
Use this to specify the common direction given to billboards of type BBT_ORIENTED_COMMON.
vec | The direction for all billboards. |
Use this to specify the common up-vector given to billboards of type BBT_PERPENDICULAR_SELF.
vec | The up-vector for all billboards. |
Setting carried over from ParticleSystem.
Implements Ogre::ParticleSystemRenderer.
|
virtualinherited |
Generic parameter setting method.
name | The name of the parameter to set |
value | String value. Must be in the right format for the type specified in the parameter definition. See the StringConverter class for more information. |
|
virtualinherited |
Generic multiple parameter setting method.
paramList | Name/value pair list |
Set whether or not the BillboardSet will use point rendering rather than manually generated quads.
enabled | True to enable point rendering, false otherwise |
Sets which render queue group this renderer should target with it's output.
Implements Ogre::ParticleSystemRenderer.
Sets the render queue sub group.
subGroup | The sub group. This value can't exceed OGRE_MAKE_MASK( SubRqIdBits ) @See RenderQueue |
Implements Ogre::ParticleSystemRenderer.
Sets whether or not billboards should use an 'accurate' facing model based on the vector from each billboard to the camera, rather than an optimised version using just the camera direction.
acc | True to use the slower but more accurate model. Default is false. |