|
| Billboard () |
| Default constructor. More...
|
|
| Billboard (const Vector3 &position, BillboardSet *owner, const ColourValue &colour=ColourValue::White) |
| Normal constructor as called by BillboardSet. More...
|
|
| ~Billboard () |
| Default destructor. More...
|
|
void | _notifyOwner (BillboardSet *owner) |
| Internal method for notifying the billboard of it's owner. More...
|
|
const ColourValue & | getColour (void) const |
| Gets the colour of this billboard. More...
|
|
Real | getOwnHeight (void) const |
| Retrieves the billboard's personal height, if hasOwnDimensions is true. More...
|
|
Real | getOwnWidth (void) const |
| Retrieves the billboard's personal width, if hasOwnDimensions is true. More...
|
|
const Vector3 & | getPosition (void) const |
| Get the position of the billboard. More...
|
|
const Radian & | getRotation (void) const |
| Get the rotation of the billboard. More...
|
|
uint16 | getTexcoordIndex (void) const |
| getTexcoordIndex() returns the previous value set by setTexcoordIndex(). More...
|
|
const FloatRect & | getTexcoordRect (void) const |
| getTexcoordRect() returns the previous value set by setTexcoordRect(). More...
|
|
bool | hasOwnDimensions (void) const |
| Returns true if this billboard deviates from the BillboardSet's default dimensions (i.e. More...
|
|
bool | isUseTexcoordRect (void) const |
| Returns true if this billboard use individual texture coordinate rect (i.e. More...
|
|
void | resetDimensions (void) |
| Resets this Billboard to use the parent BillboardSet's dimensions instead of it's own. More...
|
|
void | setColour (const ColourValue &colour) |
| Sets the colour of this billboard. More...
|
|
void | setDimensions (Real width, Real height) |
| Sets the width and height for this billboard. More...
|
|
void | setPosition (const Vector3 &position) |
| Set the position of the billboard. More...
|
|
void | setPosition (Real x, Real y, Real z) |
| Set the position of the billboard. More...
|
|
void | setRotation (const Radian &rotation) |
| Set the rotation of the billboard. More...
|
|
void | setTexcoordIndex (uint16 texcoordIndex) |
| setTexcoordIndex() sets which texture coordinate rect this billboard will use when rendering. More...
|
|
void | setTexcoordRect (const FloatRect &texcoordRect) |
| setTexcoordRect() sets the individual texture coordinate rect of this billboard will use when rendering. More...
|
|
void | setTexcoordRect (Real u0, Real v0, Real u1, Real v1) |
| setTexcoordRect() sets the individual texture coordinate rect of this billboard will use when rendering. More...
|
|
A billboard is a primitive which always faces the camera in every frame.
- Billboards have their geometry generated every frame depending on where the camera is. It is most beneficial for all billboards in a set to be identically sized since Ogre can take advantage of this and save some calculations - useful when you have sets of hundreds of billboards as is possible with special effects. You can deviate from this if you wish (example: a smoke effect would probably have smoke puffs expanding as they rise, so each billboard will legitimately have it's own size) but be aware the extra overhead this brings and try to avoid it if you can.
- Billboards are just the mechanism for rendering a range of effects such as particles. It is other classes which use billboards to create their individual effects, so the methods here are quite generic.
- See also
- BillboardSet