#include <GObjectTextDisplay.h>
Draws text near an object in a 3D scene. Based on code in the public domain from: http://www.ogre3d.org/tikiwiki/ObjectTextDisplay.
ObjectTextDisplay::ObjectTextDisplay |
( |
const Ogre::MovableObject * |
p, |
|
|
const Ogre::Camera * |
cam, |
|
|
const Ogre::ColourValue & |
color |
|
) |
| |
ObjectTextDisplay::~ObjectTextDisplay |
( |
| ) |
|
|
virtual |
void ObjectTextDisplay::enable |
( |
bool |
enable | ) |
|
const Ogre::String& OpenSkyNet::Graphics::ObjectTextDisplay::getText |
( |
| ) |
|
|
inline |
void ObjectTextDisplay::setText |
( |
const Ogre::String & |
text | ) |
|
void ObjectTextDisplay::update |
( |
| ) |
|
- Todo:
- use hardware occlusion queries to determine whether text should be displayed
const Ogre::Camera* OpenSkyNet::Graphics::ObjectTextDisplay::m_c |
|
protected |
bool OpenSkyNet::Graphics::ObjectTextDisplay::m_enabled |
|
protected |
const Ogre::MovableObject* OpenSkyNet::Graphics::ObjectTextDisplay::m_p |
|
protected |
Ogre::OverlayContainer* OpenSkyNet::Graphics::ObjectTextDisplay::m_pContainer |
|
protected |
Ogre::Overlay* OpenSkyNet::Graphics::ObjectTextDisplay::m_pOverlay |
|
protected |
Ogre::OverlayElement* OpenSkyNet::Graphics::ObjectTextDisplay::m_pText |
|
protected |
Ogre::String OpenSkyNet::Graphics::ObjectTextDisplay::m_text |
|
protected |
int ObjectTextDisplay::s_count = 0 |
|
staticprotected |
The documentation for this class was generated from the following files: