OGRE-Next
4.0.0unstable
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 () const |
Gets the colour of this billboard. More... | |
Real | getOwnHeight () const |
Retrieves the billboard's personal height, if hasOwnDimensions is true. More... | |
Real | getOwnWidth () const |
Retrieves the billboard's personal width, if hasOwnDimensions is true. More... | |
const Vector3 & | getPosition () const |
Get the position of the billboard. More... | |
const Radian & | getRotation () const |
Get the rotation of the billboard. More... | |
uint16 | getTexcoordIndex () const |
getTexcoordIndex() returns the previous value set by setTexcoordIndex(). More... | |
const FloatRect & | getTexcoordRect () const |
getTexcoordRect() returns the previous value set by setTexcoordRect(). More... | |
bool | hasOwnDimensions () const |
Returns true if this billboard deviates from the BillboardSet's default dimensions (i.e. More... | |
bool | isUseTexcoordRect () const |
Returns true if this billboard use individual texture coordinate rect (i.e. More... | |
void | resetDimensions () |
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... | |
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::v1::Billboard::Billboard | ( | ) |
Default constructor.
Ogre::v1::Billboard::~Billboard | ( | ) |
Default destructor.
Ogre::v1::Billboard::Billboard | ( | const Vector3 & | position, |
BillboardSet * | owner, | ||
const ColourValue & | colour = ColourValue::White |
||
) |
Normal constructor as called by BillboardSet.
void Ogre::v1::Billboard::_notifyOwner | ( | BillboardSet * | owner | ) |
Internal method for notifying the billboard of it's owner.
const ColourValue& Ogre::v1::Billboard::getColour | ( | ) | const |
Gets the colour of this billboard.
Real Ogre::v1::Billboard::getOwnHeight | ( | ) | const |
Retrieves the billboard's personal height, if hasOwnDimensions is true.
Real Ogre::v1::Billboard::getOwnWidth | ( | ) | const |
Retrieves the billboard's personal width, if hasOwnDimensions is true.
const Vector3& Ogre::v1::Billboard::getPosition | ( | ) | const |
Get the position of the billboard.
|
inline |
Get the rotation of the billboard.
|
inline |
getTexcoordIndex() returns the previous value set by setTexcoordIndex().
The default value is 0, which is always a valid texture coordinate set.
|
inline |
getTexcoordRect() returns the previous value set by setTexcoordRect().
bool Ogre::v1::Billboard::hasOwnDimensions | ( | ) | const |
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 |
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).
|
inline |
Resets this Billboard to use the parent BillboardSet's dimensions instead of it's own.
void Ogre::v1::Billboard::setColour | ( | const ColourValue & | colour | ) |
Sets the colour of this billboard.
Sets the width and height for this billboard.
void Ogre::v1::Billboard::setPosition | ( | const Vector3 & | position | ) |
Set the position of the billboard.
Set the position of the billboard.
void Ogre::v1::Billboard::setRotation | ( | const Radian & | rotation | ) |
Set the rotation of the billboard.
void Ogre::v1::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.
void Ogre::v1::Billboard::setTexcoordRect | ( | const FloatRect & | texcoordRect | ) |
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.
ColourValue Ogre::v1::Billboard::mColour |
Vector3 Ogre::v1::Billboard::mDirection |
Normalised direction vector.
BillboardSet* Ogre::v1::Billboard::mParentSet |
Vector3 Ogre::v1::Billboard::mPosition |
Radian Ogre::v1::Billboard::mRotation |