29#ifndef __Billboard_H__
30#define __Billboard_H__
Superclass for all objects that wish to use custom memory allocators when their new / delete operator...
Specialisation of ParticleSystemRenderer to render particles using a BillboardSet.
A collection of billboards (faces which are always facing the given direction) with the same (default...
A billboard is a primitive which always faces the camera in every frame.
void setPosition(Real x, Real y, Real z)
Set the position of the billboard.
void setTexcoordRect(const FloatRect &texcoordRect)
setTexcoordRect() sets the individual texture coordinate rect of this billboard will use when renderi...
Real getOwnHeight(void) const
Retrieves the billboard's personal height, if hasOwnDimensions is true.
Billboard()
Default constructor.
bool isUseTexcoordRect(void) const
Returns true if this billboard use individual texture coordinate rect (i.e.
~Billboard()
Default destructor.
Vector3 mDirection
Normalised direction vector.
uint16 getTexcoordIndex(void) const
getTexcoordIndex() returns the previous value set by setTexcoordIndex().
void setTexcoordRect(Real u0, Real v0, Real u1, Real v1)
setTexcoordRect() sets the individual texture coordinate rect of this billboard will use when renderi...
const Radian & getRotation(void) const
Get the rotation of the billboard.
Real getOwnWidth(void) const
Retrieves the billboard's personal width, if hasOwnDimensions is true.
FloatRect mTexcoordRect
Index into the BillboardSet array of texture coordinates.
void _notifyOwner(BillboardSet *owner)
Internal method for notifying the billboard of it's owner.
const ColourValue & getColour(void) const
Gets the colour of this billboard.
void setRotation(const Radian &rotation)
Set the rotation of the billboard.
void setColour(const ColourValue &colour)
Sets the colour of this billboard.
Real mWidth
Individual texture coordinates.
BillboardSet * mParentSet
const FloatRect & getTexcoordRect(void) const
getTexcoordRect() returns the previous value set by setTexcoordRect().
void setDimensions(Real width, Real height)
Sets the width and height for this billboard.
const Vector3 & getPosition(void) const
Get the position of the billboard.
void resetDimensions(void)
Resets this Billboard to use the parent BillboardSet's dimensions instead of it's own.
void setTexcoordIndex(uint16 texcoordIndex)
setTexcoordIndex() sets which texture coordinate rect this billboard will use when rendering.
void setPosition(const Vector3 &position)
Set the position of the billboard.
bool hasOwnDimensions(void) const
Returns true if this billboard deviates from the BillboardSet's default dimensions (i....
Billboard(const Vector3 &position, BillboardSet *owner, const ColourValue &colour=ColourValue::White)
Normal constructor as called by BillboardSet.
Class representing colour.
Wrapper class which indicates a given angle value is in Radians.
Standard 3-dimensional vector.
float Real
Software floating point type.