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

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