

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 BillboardComponent * | refFactory (Entity *parent) |
| Will be used to instanciate objects of this class. | |
| static BillboardComponent * | refFactory (Entity *parent, const dimension2df &size, const SColor &colorTop, const SColor &colorBottom) |
| Will be used to instanciate objects of this class. | |
Protected Member Functions | |
| BillboardComponent (Entity *parent, bool isDerived) | |
| Constructor for derived classes. | |
Protected Attributes | |
| IBillboardSceneNode * | mBillboardSN |
Definition at line 26 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 70 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 76 of file BillboardComponent.cpp.
| const dimension2df & BillboardComponent::getSize | ( | ) | const |
| BillboardComponent * BillboardComponent::refFactory | ( | Entity * | parent, | |
| const dimension2df & | size, | |||
| const SColor & | colorTop, | |||
| const SColor & | colorBottom | |||
| ) | [static] |
Will be used to instanciate objects of this class.
Definition at line 53 of file BillboardComponent.cpp.
| BillboardComponent * BillboardComponent::refFactory | ( | Entity * | parent | ) | [static] |
Will be used to instanciate objects of this class.
Reimplemented from SceneComponent.
Reimplemented in TextBillboardComponent.
Definition at line 47 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.
| topColor | The color to set the top vertices. | |
| bottomColor | The color to set the bottom vertices. |
Definition at line 94 of file BillboardComponent.cpp.
| void BillboardComponent::setColor | ( | const SColor & | overallColor | ) |
Sets the color of all vertices of the billboard.
| overallColor | The color to set. |
Definition at line 88 of file BillboardComponent.cpp.
| void BillboardComponent::setSize | ( | const dimension2df & | size | ) |
Sets the size of the billboard.
| size | Size of the billboard. |
Definition at line 100 of file BillboardComponent.cpp.
IBillboardSceneNode* BillboardComponent::mBillboardSN [protected] |
Definition at line 81 of file BillboardComponent.h.
1.5.8