| 69 | } |
| 70 | |
| 71 | void TextRenderer::setText(const std::string& ID, const std::string& text) |
| 72 | { |
| 73 | Ogre::OverlayElement* textBox = mOverlayMgr->getOverlayElement(ID); |
| 74 | // Note: We make ogre handle an UTF8 string |
| 75 | if (textBox != nullptr) |
| 76 | textBox->setCaption(static_cast<Ogre::UTFString>(Helper::atow(text))); |
| 77 | } |
| 78 | |
| 79 | void TextRenderer::setColor(const std::string& ID, const Ogre::ColourValue& color) |
| 80 | { |
no test coverage detected