

Public Member Functions | |
| TextBillboardComponent (Entity *parent) | |
| Constructor (default). | |
| TextBillboardComponent (Entity *parent, const std::string &fontFileName, const wchar_t *text, 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. | |
| TextBillboardComponent (Entity *parent, const std::string &fontFileName, const std::string &text, 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. | |
| ~TextBillboardComponent () | |
| Deconstructor. | |
| IBillboardTextSceneNode * | getBillboardTextSceneNode () |
| Returns a direct pointer to the IBillboardTextSceneNode. | |
| void | setText (const std::string &text) |
| Sets the text string. | |
| void | setText (const wchar_t *text) |
| Sets the text string. | |
| void | setTextColor (const SColor &color) |
| Sets the color of the text. | |
Static Public Member Functions | |
| static TextBillboardComponent * | refFactory (Entity *parent) |
| Will be used to instanciate objects of this class. | |
| static TextBillboardComponent * | refFactory (Entity *parent, const std::string &fontFileName, const std::string &text, const dimension2df &size, const SColor &colorTop, const SColor &colorBottom) |
| Will be used to instanciate objects of this class. | |
Definition at line 26 of file TextBillboardComponent.h.
| TextBillboardComponent::TextBillboardComponent | ( | Entity * | parent | ) |
| TextBillboardComponent::TextBillboardComponent | ( | Entity * | parent, | |
| const std::string & | fontFileName, | |||
| const wchar_t * | text, | |||
| 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.
| parent | The parent entity to which the component should be added. | |
| fontFileName | Filename of the font to load. | |
| text | The text to display on the billboard. | |
| size | The billboard's width and height. | |
| 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 43 of file TextBillboardComponent.cpp.
| TextBillboardComponent::TextBillboardComponent | ( | Entity * | parent, | |
| const std::string & | fontFileName, | |||
| const std::string & | text, | |||
| 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.
| parent | The parent entity to which the component should be added. | |
| fontFileName | Filename of the font to load. | |
| text | The text to display on the billboard. | |
| size | The billboard's width and height. | |
| 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 65 of file TextBillboardComponent.cpp.
| TextBillboardComponent::~TextBillboardComponent | ( | ) |
| IBillboardTextSceneNode * TextBillboardComponent::getBillboardTextSceneNode | ( | ) |
Returns a direct pointer to the IBillboardTextSceneNode.
Definition at line 114 of file TextBillboardComponent.cpp.
| TextBillboardComponent * TextBillboardComponent::refFactory | ( | Entity * | parent, | |
| const std::string & | fontFileName, | |||
| const std::string & | text, | |||
| const dimension2df & | size, | |||
| const SColor & | colorTop, | |||
| const SColor & | colorBottom | |||
| ) | [static] |
Will be used to instanciate objects of this class.
Definition at line 103 of file TextBillboardComponent.cpp.
| TextBillboardComponent * TextBillboardComponent::refFactory | ( | Entity * | parent | ) | [static] |
Will be used to instanciate objects of this class.
Reimplemented from BillboardComponent.
Definition at line 97 of file TextBillboardComponent.cpp.
| void TextBillboardComponent::setText | ( | const wchar_t * | text | ) |
Sets the text string.
| text | Text to set. |
Definition at line 127 of file TextBillboardComponent.cpp.
| void TextBillboardComponent::setText | ( | const std::string & | text | ) |
Sets the text string.
| text | Text to set. |
Definition at line 120 of file TextBillboardComponent.cpp.
| void TextBillboardComponent::setTextColor | ( | const SColor & | color | ) |
Sets the color of the text.
| color | New color of the text. |
Definition at line 133 of file TextBillboardComponent.cpp.
1.5.8