![]() |
OGRE
1.12.13
Object-Oriented Graphics Rendering Engine
|
A billboard is a primitive which always faces the camera in every frame. More...
#include <OgreBillboard.h>
Public Member Functions | |
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) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. 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) |
sets the individual texture coordinate rect of this billboard will use when rendering. More... | |
void | setTexcoordRect (float u0, float v0, float u1, float v1) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More... | |
Public Attributes | |
ColourValue | mColour |
Vector3 | mDirection |
Normalised direction vector. More... | |
BillboardSet * | mParentSet |
Vector3 | mPosition |
Radian | mRotation |
A billboard is a primitive which always faces the camera in every frame.
Ogre::Billboard::Billboard | ( | ) |
Default constructor.
Ogre::Billboard::~Billboard | ( | ) |
Default destructor.
Ogre::Billboard::Billboard | ( | const Vector3 & | position, |
BillboardSet * | owner, | ||
const ColourValue & | colour = ColourValue::White |
||
) |
Normal constructor as called by BillboardSet.
|
inline |
Get the rotation of the billboard.
|
inline |
Set the rotation of the billboard.
|
inline |
Set the position of the billboard.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
References setPosition().
Referenced by setPosition().
|
inline |
Get the position of the billboard.
Sets the width and height for this billboard.
|
inline |
Resets this Billboard to use the parent BillboardSet's dimensions instead of it's own.
|
inline |
Sets the colour of this billboard.
|
inline |
Gets the colour of this billboard.
|
inline |
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).
|
inline |
Retrieves the billboard's personal width, if hasOwnDimensions is true.
|
inline |
Retrieves the billboard's personal height, if hasOwnDimensions is true.
|
inline |
Internal method for notifying the billboard of it's owner.
|
inline |
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).
void Ogre::Billboard::setTexcoordIndex | ( | uint16 | texcoordIndex | ) |
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.
|
inline |
getTexcoordIndex() returns the previous value set by setTexcoordIndex().
The default value is 0, which is always a valid texture coordinate set.
void Ogre::Billboard::setTexcoordRect | ( | const FloatRect & | texcoordRect | ) |
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.
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
References setTexcoordRect().
Referenced by setTexcoordRect().
|
inline |
getTexcoordRect() returns the previous value set by setTexcoordRect().
Vector3 Ogre::Billboard::mPosition |
Vector3 Ogre::Billboard::mDirection |
Normalised direction vector.
ColourValue Ogre::Billboard::mColour |
Radian Ogre::Billboard::mRotation |
BillboardSet* Ogre::Billboard::mParentSet |