Public Member Functions | |
BillboardComponent (Entity *parent, const dimension2df &size=dimension2df(10.0f, 10.0f), const SColor &colorTop=SColor(255, 255, 255, 255), const SColor &colorBottom=SColor(255, 255, 255, 255)) | |
Constructor (default). | |
~BillboardComponent () | |
Deconstructor. | |
IBillboardSceneNode * | getBillboardSceneNode () |
Returns a direct pointer to the IBillboardSceneNode. | |
void | getColor (SColor &topColor, SColor &bottomColor) const |
Gets the color of the top and bottom vertices of the billboard. | |
const dimension2df & | getSize () const |
Returns the size of the billboard. | |
void | setColor (const SColor &overallColor) |
Sets the color of all vertices of the billboard. | |
void | setColor (const SColor &topColor, const SColor &bottomColor) |
Sets the color of the top and bottom vertices of the billboard. | |
void | setSize (const dimension2df &size) |
Sets the size of the billboard. | |
Static Public Member Functions | |
static bool | parseXML (IXMLReader *file, Entity *entity) |
Parses for a BillboardComponent. | |
static bool | parseBaseXML (IXMLReader *file, BillboardComponent *component) |
Parses for the base elements of a BillboardComponent. | |
Protected Member Functions | |
BillboardComponent (Entity *parent, bool isDerived) | |
Constructor for derived classes. | |
Protected Attributes | |
IBillboardSceneNode * | mBillboardSN |
XML:
<BillboardComponent> <!-- Properties --> </BillboardComponent>
Definition at line 33 of file BillboardComponent.h.
BillboardComponent::BillboardComponent | ( | Entity * | parent, | |
const dimension2df & | size = dimension2df(10.0f, 10.0f) , |
|||
const SColor & | colorTop = SColor(255, 255, 255, 255) , |
|||
const SColor & | colorBottom = SColor(255, 255, 255, 255) | |||
) |
Constructor (default).
parent | The parent entity to which the component should be added. | |
size | 2 dimensional size of the billboard. | |
colorTop | The color of the vertices at the top of the billboard. | |
colorBottom | The color of the vertices at the bottom of the billboard. |
Definition at line 23 of file BillboardComponent.cpp.
BillboardComponent::~BillboardComponent | ( | ) |
BillboardComponent::BillboardComponent | ( | Entity * | parent, | |
bool | isDerived | |||
) | [protected] |
IBillboardSceneNode * BillboardComponent::getBillboardSceneNode | ( | ) |
Returns a direct pointer to the IBillboardSceneNode.
Definition at line 57 of file BillboardComponent.cpp.
void BillboardComponent::getColor | ( | SColor & | topColor, | |
SColor & | bottomColor | |||
) | const |
Gets the color of the top and bottom vertices of the billboard.
topColor | SColor object in which the top color will be stored. | |
bottomColor | SColor object in which the bottom color will be stored. |
Definition at line 63 of file BillboardComponent.cpp.
const dimension2df & BillboardComponent::getSize | ( | ) | const |
bool BillboardComponent::parseBaseXML | ( | IXMLReader * | file, | |
BillboardComponent * | component | |||
) | [static] |
Parses for the base elements of a BillboardComponent.
Definition at line 144 of file BillboardComponent.cpp.
bool BillboardComponent::parseXML | ( | IXMLReader * | file, | |
Entity * | entity | |||
) | [static] |
Parses for a BillboardComponent.
Reimplemented from SceneComponent.
Reimplemented in TextBillboardComponent.
Definition at line 93 of file BillboardComponent.cpp.
void BillboardComponent::setColor | ( | const SColor & | topColor, | |
const SColor & | bottomColor | |||
) |
Sets the color of the top and bottom vertices of the billboard.
XML:
<color topA="" topR="" topG="" topB="" bottomA="" bottomR="" bottomG="" bottomB=""/>
topColor | The color to set the top vertices. | |
bottomColor | The color to set the bottom vertices. |
Definition at line 81 of file BillboardComponent.cpp.
void BillboardComponent::setColor | ( | const SColor & | overallColor | ) |
Sets the color of all vertices of the billboard.
XML:
<color overallA="" overallR="" overallG="" overallB="" />
overallColor | The color to set. |
Definition at line 75 of file BillboardComponent.cpp.
void BillboardComponent::setSize | ( | const dimension2df & | size | ) |
Sets the size of the billboard.
XML:
<size width="" height=""/>
size | Size of the billboard. |
Definition at line 87 of file BillboardComponent.cpp.
IBillboardSceneNode* BillboardComponent::mBillboardSN [protected] |
Definition at line 106 of file BillboardComponent.h.