Go to the documentation of this file.
28 #ifndef __BillboardParticleRenderer_H__
29 #define __BillboardParticleRenderer_H__
208 bool debugRenderables =
false);
265 #endif // __BillboardParticleRenderer_H__
void setBillboardType(BillboardType bbt)
Sets the type of billboard to render.
Command object for billboard origin (see ParamCommand).
void _notifyAttached(Node *parent, bool isTagPoint=false)
Delegated to by ParticleSystem::_notifyAttached.
BillboardRotationType getBillboardRotationType(void) const
Gets billboard rotation type.
void doSet(void *target, const String &val)
static CmdBillboardRotationType msBillboardRotationTypeCmd
static CmdBillboardType msBillboardTypeCmd
void doSet(void *target, const String &val)
A viewpoint from which the scene will be rendered.
void destroyInstance(ParticleSystemRenderer *ptr)
Destroys an object which was created by this factory.
BillboardType
The type of billboard to use.
ParticleSystemRenderer * createInstance(const String &name)
Creates a new object.
void setCommonUpVector(const Vector3 &vec)
Use this to specify the common up-vector given to billboards of type BBT_PERPENDICULAR_SELF.
BillboardSet * mBillboardSet
The billboard set that's doing the rendering.
String doGet(const void *target) const
virtual void setBillboardOrigin(BillboardOrigin origin)
Sets the point which acts as the origin point for all billboards in this set.
Factory class for BillboardParticleRenderer.
Command object for common direction (see ParamCommand).
BillboardOrigin getBillboardOrigin(void) const
Gets the point which acts as the origin point for all billboards in this set.
Abstract class defining the interface required to be implemented by classes which provide rendering c...
Specialisation of ParticleSystemRenderer to render particles using a BillboardSet.
static CmdCommonUpVector msCommonUpVectorCmd
void _setMaterial(MaterialPtr &mat)
Sets the material this renderer must use; called by ParticleSystem.
Command object for billboard type (see ParamCommand).
A collection of billboards (faces which are always facing the given direction) with the same (default...
SortMode
Sort mode for billboard-set and particle-system.
void visitRenderables(Renderable::Visitor *visitor, bool debugRenderables=false)
Required method to allow the renderer to communicate the Renderables it will be using to render the s...
String doGet(const void *target) const
Abstract class which is command object which gets/sets parameters.
static CmdBillboardOrigin msBillboardOriginCmd
static CmdAccurateFacing msAccurateFacingCmd
const String & getType() const
Returns the factory type.
Command object for common up-vector (see ParamCommand).
void _notifyCurrentCamera(Camera *cam)
Delegated to by ParticleSystem::_notifyCurrentCamera.
void doSet(void *target, const String &val)
void setRenderQueueGroupAndPriority(uint8 queueID, ushort priority)
Sets the render queue group and group priority this entity will be rendered through.
const Vector3 & getCommonDirection(void) const
Gets the common direction for all billboards (BBT_ORIENTED_COMMON)
void doSet(void *target, const String &val)
void doSet(void *target, const String &val)
Command object for point rendering (see ParamCommand).
void setRenderQueueGroup(uint8 queueID)
Sets which render queue group this renderer should target with it's output.
BillboardSet * getBillboardSet(void) const
Access BillboardSet in use.
BillboardType getBillboardType(void) const
Returns the billboard type in use.
void setPointRenderingEnabled(bool enabled)
Set whether or not the BillboardSet will use point rendering rather than manually generated quads.
String doGet(const void *target) const
BillboardOrigin
Enum covering what exactly a billboard's position means (center, top-left etc).
const String & getType(void) const
Gets the type of this renderer - must be implemented by subclasses.
BillboardRotationType
The rotation type of billboard.
String doGet(const void *target) const
static CmdCommonDirection msCommonDirectionCmd
void doSet(void *target, const String &val)
Abstract class definition of a factory object for ParticleSystemRenderer.
void setKeepParticlesInLocalSpace(bool keepLocal)
Setting carried over from ParticleSystem.
void _notifyDefaultDimensions(Real width, Real height)
Tells the renderer that the particle default size has changed.
void setBillboardOrigin(BillboardOrigin origin)
Sets the point which acts as the origin point for all billboards in this set.
String doGet(const void *target) const
bool getUseAccurateFacing(void) const
Gets whether or not billboards use an 'accurate' facing model based on the vector from each billboard...
String doGet(const void *target) const
Visitor object that can be used to iterate over a collection of Renderable instances abstractly.
virtual BillboardOrigin getBillboardOrigin(void) const
Gets the point which acts as the origin point for all billboards in this set.
void setBillboardRotationType(BillboardRotationType rotationType)
Sets billboard rotation type.
void _notifyParticleRotated(void)
Optional callback notified when particles are rotated.
void _notifyParticleResized(void)
Optional callback notified when particles are resized individually.
BillboardParticleRenderer()
void setCommonDirection(const Vector3 &vec)
Use this to specify the common direction given to billboards of type BBT_ORIENTED_COMMON.
void _notifyParticleQuota(size_t quota)
Tells the renderer that the particle quota has changed.
float Real
Software floating point type.
static CmdPointRendering msPointRenderingCmd
void _updateRenderQueue(RenderQueue *queue, list< Particle * >::type ¤tParticles, bool cullIndividually)
Delegated to by ParticleSystem::_updateRenderQueue.
Class representing a general-purpose node an articulated scene graph.
Command object for accurate facing(see ParamCommand).
void setUseAccurateFacing(bool acc)
Sets whether or not billboards should use an 'accurate' facing model based on the vector from each bi...
String doGet(const void *target) const
Standard 3-dimensional vector.
SortMode _getSortMode(void) const
Gets the desired particles sort mode of this renderer.
Class to manage the scene object rendering queue.
const Vector3 & getCommonUpVector(void) const
Gets the common up-vector for all billboards (BBT_PERPENDICULAR_SELF)
~BillboardParticleRenderer()
Command object for billboard rotation type (see ParamCommand).
void doSet(void *target, const String &val)
bool isPointRenderingEnabled(void) const
Returns whether point rendering is enabled.
Copyright © 2012 Torus Knot Software Ltd

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.