$search
This class shows output strings in the Ogre scene window. More...
#include <text_output.h>
Public Member Functions | |
void | setColor (const Ogre::ColourValue &color) |
void | setFontSize (const int &size) |
void | setText (const std::string &Text) |
TextOutput (const std::string &id, Ogre::Real pos_x, Ogre::Real pos_y, Ogre::Real width, Ogre::Real height) | |
Constructor. | |
~TextOutput () | |
Destructor. | |
Private Attributes | |
std::string | id_ |
Ogre::Overlay * | overlay_ |
Ogre::OverlayManager * | overlayManager_ |
Ogre::OverlayContainer * | panel_ |
Ogre::OverlayElement * | textBox_ |
This class shows output strings in the Ogre scene window.
Definition at line 39 of file text_output.h.
ogre_tools::TextOutput::TextOutput | ( | const std::string & | id, | |
Ogre::Real | pos_x, | |||
Ogre::Real | pos_y, | |||
Ogre::Real | width, | |||
Ogre::Real | height | |||
) | [inline] |
Constructor.
id | unique string ID | |
pos_x | x position of the text box | |
pos_y | y position of the text box | |
width | width of the text box | |
height | height of the text box |
Definition at line 52 of file text_output.h.
ogre_tools::TextOutput::~TextOutput | ( | ) |
Destructor.
void ogre_tools::TextOutput::setColor | ( | const Ogre::ColourValue & | color | ) | [inline] |
Sets color of the text
color | is color of the text |
Definition at line 94 of file text_output.h.
void ogre_tools::TextOutput::setFontSize | ( | const int & | size | ) | [inline] |
Sets size of the font
size | is size of the ofnt |
Definition at line 103 of file text_output.h.
void ogre_tools::TextOutput::setText | ( | const std::string & | Text | ) | [inline] |
std::string ogre_tools::TextOutput::id_ [private] |
Definition at line 115 of file text_output.h.
Ogre::Overlay* ogre_tools::TextOutput::overlay_ [private] |
Definition at line 113 of file text_output.h.
Ogre::OverlayManager* ogre_tools::TextOutput::overlayManager_ [private] |
Definition at line 112 of file text_output.h.
Ogre::OverlayContainer* ogre_tools::TextOutput::panel_ [private] |
Definition at line 114 of file text_output.h.
Ogre::OverlayElement* ogre_tools::TextOutput::textBox_ [private] |
Definition at line 111 of file text_output.h.