Tactics: Western Philosophers Vs. Musicians  0.12
A turn-based tactical game combining rules and gameplay elements inspired by Final Fantasy Tactics and the Mayfair Exponential Game System. Unlike most games of this type, motion is in full, grid-less 3D.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Attributes | Static Protected Attributes | List of all members
OpenSkyNet::Graphics::ObjectTextDisplay Class Reference

#include <GObjectTextDisplay.h>

Public Member Functions

 ObjectTextDisplay (const Ogre::MovableObject *p, const Ogre::Camera *cam, const Ogre::ColourValue &color)
 
virtual ~ObjectTextDisplay ()
 
void enable (bool enable)
 
const Ogre::String & getText ()
 
void setText (const Ogre::String &text)
 
void update ()
 

Protected Attributes

const Ogre::MovableObject * m_p
 
const Ogre::Camera * m_c
 
bool m_enabled
 
Ogre::Overlay * m_pOverlay
 
Ogre::OverlayElement * m_pText
 
Ogre::OverlayContainer * m_pContainer
 
Ogre::String m_text
 

Static Protected Attributes

static int s_count = 0
 

Detailed Description

Draws text near an object in a 3D scene. Based on code in the public domain from: http://www.ogre3d.org/tikiwiki/ObjectTextDisplay.

Constructor & Destructor Documentation

ObjectTextDisplay::ObjectTextDisplay ( const Ogre::MovableObject *  p,
const Ogre::Camera *  cam,
const Ogre::ColourValue &  color 
)
ObjectTextDisplay::~ObjectTextDisplay ( )
virtual

Member Function Documentation

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

Member Data Documentation

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: