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 bool | parseXML (IXMLReader *file, Entity *entity) |
Parses for a TextBillboardComponent. |
XML:
<TextBillboardComponent> <!-- Properties --> </TextBillboardComponent>
Definition at line 33 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 31 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 41 of file TextBillboardComponent.cpp.
TextBillboardComponent::~TextBillboardComponent | ( | ) |
IBillboardTextSceneNode * TextBillboardComponent::getBillboardTextSceneNode | ( | ) |
Returns a direct pointer to the IBillboardTextSceneNode.
Definition at line 80 of file TextBillboardComponent.cpp.
bool TextBillboardComponent::parseXML | ( | IXMLReader * | file, | |
Entity * | entity | |||
) | [static] |
Parses for a TextBillboardComponent.
Reimplemented from BillboardComponent.
Definition at line 105 of file TextBillboardComponent.cpp.
void TextBillboardComponent::setText | ( | const wchar_t * | text | ) |
Sets the text string.
text | Text to set. |
Definition at line 93 of file TextBillboardComponent.cpp.
void TextBillboardComponent::setText | ( | const std::string & | text | ) |
Sets the text string.
XML:
<text value="" />
text | Text to set. |
Definition at line 86 of file TextBillboardComponent.cpp.
void TextBillboardComponent::setTextColor | ( | const SColor & | color | ) |
Sets the color of the text.
XML:
<textColor a="" r="" g="" b="" />
color | New color of the text. |
Definition at line 99 of file TextBillboardComponent.cpp.