OGRE 2.1
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. | |
Billboard (const Vector3 &position, BillboardSet *owner, const ColourValue &colour=ColourValue::White) | |
Normal constructor as called by BillboardSet. | |
~Billboard () | |
Default destructor. | |
void | _notifyOwner (BillboardSet *owner) |
Internal method for notifying the billboard of it's owner. | |
const ColourValue & | getColour (void) const |
Gets the colour of this billboard. | |
Real | getOwnHeight (void) const |
Retrieves the billboard's personal height, if hasOwnDimensions is true. | |
Real | getOwnWidth (void) const |
Retrieves the billboard's personal width, if hasOwnDimensions is true. | |
const Vector3 & | getPosition (void) const |
Get the position of the billboard. | |
const Radian & | getRotation (void) const |
Get the rotation of the billboard. | |
uint16 | getTexcoordIndex (void) const |
getTexcoordIndex() returns the previous value set by setTexcoordIndex(). | |
const FloatRect & | getTexcoordRect (void) const |
getTexcoordRect() returns the previous value set by setTexcoordRect(). | |
bool | hasOwnDimensions (void) const |
Returns true if this billboard deviates from the BillboardSet's default dimensions (i.e. | |
bool | isUseTexcoordRect (void) const |
Returns true if this billboard use individual texture coordinate rect (i.e. | |
void | operator delete (void *ptr) |
void | operator delete (void *ptr, const char *, int, const char *) |
void | operator delete (void *ptr, void *) |
void | operator delete[] (void *ptr) |
void | operator delete[] (void *ptr, const char *, int, const char *) |
void * | operator new (size_t sz) |
void * | operator new (size_t sz, const char *file, int line, const char *func) |
operator new, with debug line info | |
void * | operator new (size_t sz, void *ptr) |
placement operator new | |
void * | operator new[] (size_t sz) |
void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
array operator new, with debug line info | |
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. | |
void | setDimensions (Real width, Real height) |
Sets the width and height for this 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. | |
void | setRotation (const Radian &rotation) |
Set the rotation of the billboard. | |
void | setTexcoordIndex (uint16 texcoordIndex) |
setTexcoordIndex() sets which texture coordinate rect this billboard will use when rendering. | |
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. | |
Public Attributes | |
ColourValue | mColour |
Vector3 | mDirection |
Normalised direction vector. | |
BillboardSet * | mParentSet |
Vector3 | mPosition |
Radian | mRotation |
Friends | |
class | BillboardParticleRenderer |
class | BillboardSet |
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 | ( | void | ) | const |
Gets the colour of this billboard.
Retrieves the billboard's personal height, 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.
getTexcoordIndex() returns the previous value set by setTexcoordIndex().
The default value is 0, which is always a valid texture coordinate set.
getTexcoordRect() returns the previous value set by setTexcoordRect().
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).
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
operator new, with debug line info
placement operator new
|
inlineinherited |
|
inlineinherited |
array operator new, with debug line info
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.
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.
|
friend |
|
friend |
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 |