Tinman  1.0
objecttextdisplay.h
Go to the documentation of this file.
1 //From: http://www.ogre3d.org/tikiwiki/ObjectTextDisplay
2 #include "scene.h"
3 #include "gui.h"
4 
6 
7  public:
8  typedef std::shared_ptr<ObjectTextDisplay> shared;
9 
10  ObjectTextDisplay(const Ogre::MovableObject* p, const Ogre::Camera* c);
11  virtual ~ObjectTextDisplay();
12  void enable(bool enable);
13  void setText(const Ogre::String& text);
14  void update();
15 
16  protected:
17  const Ogre::MovableObject* m_p;
18  const Ogre::Camera* m_c;
19  bool m_enabled;
20  Ogre::Overlay* m_pOverlay;
21  Ogre::OverlayElement* m_pText;
22  Ogre::OverlayContainer* m_pContainer;
23  Ogre::String m_text;
24 };
void setText(const Ogre::String &text)
Definition: objecttextdisplay.cpp:58
std::shared_ptr< ObjectTextDisplay > shared
Definition: objecttextdisplay.h:8
const Ogre::MovableObject * m_p
Definition: objecttextdisplay.h:17
bool m_enabled
Definition: objecttextdisplay.h:19
Ogre::Overlay * m_pOverlay
Definition: objecttextdisplay.h:20
Definition: objecttextdisplay.h:5
ObjectTextDisplay(const Ogre::MovableObject *p, const Ogre::Camera *c)
Definition: objecttextdisplay.cpp:4
void enable(bool enable)
Definition: objecttextdisplay.cpp:49
void update()
Definition: objecttextdisplay.cpp:64
virtual ~ObjectTextDisplay()
Definition: objecttextdisplay.cpp:34
Ogre::String m_text
Definition: objecttextdisplay.h:23
Ogre::OverlayElement * m_pText
Definition: objecttextdisplay.h:21
const Ogre::Camera * m_c
Definition: objecttextdisplay.h:18
Ogre::OverlayContainer * m_pContainer
Definition: objecttextdisplay.h:22