#include <OgreBillboard.h>
Public Member Functions | |
| Billboard () | |
| Default constructor. | |
| ~Billboard () | |
| Default destructor. | |
| Billboard (const Vector3 &position, BillboardSet *owner, const ColourValue &colour=ColourValue::White) | |
| Normal constructor as called by BillboardSet. | |
| const Radian & | getRotation (void) const |
| Get the rotation of the billboard. | |
| void | setRotation (const Radian &rotation) |
| Set the rotation of the billboard. | |
| void | setPosition (const Vector3 &position) |
| Set the position of the billboard. | |
| void | setPosition (Real x, Real y, Real z) |
| Set the position of the billboard. | |
| const Vector3 & | getPosition (void) const |
| Get the position of the billboard. | |
| void | setDimensions (Real width, Real height) |
| Sets the width and height for this billboard. | |
| void | resetDimensions (void) |
| Resets this Billboard to use the parent BillboardSet's dimensions instead of it's own. | |
| void | setColour (const ColourValue &colour) |
| Sets the colour of this billboard. | |
| const ColourValue & | getColour (void) const |
| Gets the colour of this billboard. | |
| bool | hasOwnDimensions (void) const |
| Returns true if this billboard deviates from the BillboardSet's default dimensions (i.e. | |
| Real | getOwnWidth (void) const |
| Retrieves the billboard's personal width, if hasOwnDimensions is true. | |
| Real | getOwnHeight (void) const |
| Retrieves the billboard's personal width, if hasOwnDimensions is true. | |
| void | _notifyOwner (BillboardSet *owner) |
| Internal method for notifying the billboard of it's owner. | |
| bool | isUseTexcoordRect (void) const |
| Returns true if this billboard use individual texture coordinate rect (i.e. | |
| void | setTexcoordIndex (uint16 texcoordIndex) |
| setTexcoordIndex() sets which texture coordinate rect this billboard will use when rendering. | |
| uint16 | getTexcoordIndex (void) const |
| getTexcoordIndex() returns the previous value set by setTexcoordIndex(). | |
| void | setTexcoordRect (const FloatRect &texcoordRect) |
| setTexcoordRect() sets the individual texture coordinate rect of this billboard will use when rendering. | |
| void | setTexcoordRect (Real u0, Real v0, Real u1, Real v1) |
| setTexcoordRect() sets the individual texture coordinate rect of this billboard will use when rendering. | |
| const FloatRect & | getTexcoordRect (void) const |
| getTexcoordRect() returns the previous value set by setTexcoordRect(). | |
Public Attributes | |
| Vector3 | mPosition |
| Vector3 | mDirection |
| BillboardSet * | mParentSet |
| ColourValue | mColour |
| Radian | mRotation |
Protected Attributes | |
| bool | mOwnDimensions |
| bool | mUseTexcoordRect |
| uint16 | mTexcoordIndex |
| FloatRect | mTexcoordRect |
| Real | mWidth |
| Real | mHeight |
Friends | |
| class | BillboardSet |
| class | BillboardParticleRenderer |
Definition at line 61 of file OgreBillboard.h.
|
|
Default constructor.
|
|
|
Default destructor.
|
|
||||||||||||||||
|
Normal constructor as called by BillboardSet.
|
|
|
Internal method for notifying the billboard of it's owner.
|
|
|
Gets the colour of this billboard.
|
|
|
Retrieves the billboard's personal width, if hasOwnDimensions is true.
|
|
|
Retrieves the billboard's personal width, if hasOwnDimensions is true.
|
|
|
Get the position of the billboard.
|
|
|
Get the rotation of the billboard.
Definition at line 98 of file OgreBillboard.h. |
|
|
getTexcoordIndex() returns the previous value set by setTexcoordIndex(). The default value is 0, which is always a valid texture coordinate set.
Definition at line 192 of file OgreBillboard.h. |
|
|
getTexcoordRect() returns the previous value set by setTexcoordRect().
Definition at line 212 of file OgreBillboard.h. |
|
|
Returns true if this billboard deviates from the BillboardSet's default dimensions (i.e. if the Billboard::setDimensions method has been called for this instance).
|
|
|
Returns true if this billboard use individual texture coordinate rect (i.e. if the Billboard::setTexcoordRect method has been called for this instance), or returns false if use texture coordinates defined in the parent BillboardSet's texture coordinates array (i.e. if the Billboard::setTexcoordIndex method has been called for this instance). Definition at line 176 of file OgreBillboard.h. |
|
|
Resets this Billboard to use the parent BillboardSet's dimensions instead of it's own.
Definition at line 137 of file OgreBillboard.h. |
|
|
Sets the colour of this billboard.
|
|
||||||||||||
|
Sets the width and height for this billboard.
|
|
||||||||||||||||
|
Set the position of the billboard.
|
|
|
Set the position of the billboard.
|
|
|
Set the rotation of the billboard.
|
|
|
setTexcoordIndex() sets which texture coordinate rect this billboard will use when rendering. The parent billboard set may contain more than one, in which case a billboard can be textured with different pieces of a larger texture sheet very efficiently.
|
|
||||||||||||||||||||
|
setTexcoordRect() sets the individual texture coordinate rect of this billboard will use when rendering. The parent billboard set may contain more than one, in which case a billboard can be textured with different pieces of a larger texture sheet very efficiently. |
|
|
setTexcoordRect() sets the individual texture coordinate rect of this billboard will use when rendering. The parent billboard set may contain more than one, in which case a billboard can be textured with different pieces of a larger texture sheet very efficiently. |
|
|
Definition at line 64 of file OgreBillboard.h. |
|
|
Definition at line 63 of file OgreBillboard.h. |
|
|
Definition at line 79 of file OgreBillboard.h. |
|
|
Definition at line 77 of file OgreBillboard.h. |
|
|
Definition at line 71 of file OgreBillboard.h. |
|
|
Definition at line 66 of file OgreBillboard.h. |
|
|
Definition at line 78 of file OgreBillboard.h. |
|
|
Definition at line 75 of file OgreBillboard.h. |
|
|
Definition at line 80 of file OgreBillboard.h. |
|
|
Definition at line 68 of file OgreBillboard.h. |
|
|
Definition at line 69 of file OgreBillboard.h. |
|
|
Definition at line 67 of file OgreBillboard.h. |
|
|
Definition at line 70 of file OgreBillboard.h. |
Copyright © 2000-2005 by The OGRE Team

This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Sun Sep 30 10:51:03 2007