#include <Text.h>
Public Member Functions | |
Text (GraphicsManager *pGraphicsManager) | |
virtual | ~Text () |
virtual void | Cleanup () |
virtual bool | Load (std::string sFontPath, int nFontSize) |
virtual void | SetText (std::string sText) |
virtual void | ClearText () |
void | SetFont (TTF_Font *pFont) |
std::string | GetText () |
void | SetTextColor (ColorRGB rColor) |
Protected Member Functions | |
virtual SDL_Surface * | RenderTextToSurface () |
virtual void | RenderSDL (TextureSDL *pDestTexture) |
virtual void | RenderOGL (TextureSDL *pDestTexture) |
Protected Attributes | |
bool | m_pRebuildTexture |
int | m_nFontSize |
std::string | m_sText |
std::string | m_sFilePath |
TTF_Font * | m_pFont |
ColorRGB | m_rTextColor |
GraphicsManager * | m_pGraphicsManager |
Text::Text | ( | GraphicsManager * | pGraphicsManager | ) |
Text::~Text | ( | ) | [virtual] |
void Text::Cleanup | ( | ) | [virtual] |
Reimplemented from EPOC::GraphicsObject.
virtual bool EPOC::Text::Load | ( | std::string | sFontPath, | |
int | nFontSize | |||
) | [virtual] |
virtual void EPOC::Text::SetText | ( | std::string | sText | ) | [virtual] |
void Text::ClearText | ( | ) | [virtual] |
void EPOC::Text::SetFont | ( | TTF_Font * | pFont | ) | [inline] |
std::string EPOC::Text::GetText | ( | ) | [inline] |
void EPOC::Text::SetTextColor | ( | ColorRGB | rColor | ) | [inline] |
SDL_Surface * Text::RenderTextToSurface | ( | ) | [protected, virtual] |
void Text::RenderSDL | ( | TextureSDL * | pDestTexture | ) | [protected, virtual] |
Reimplemented from EPOC::GraphicsObject.
void Text::RenderOGL | ( | TextureSDL * | pDestTexture | ) | [protected, virtual] |
Reimplemented from EPOC::GraphicsObject.
bool EPOC::Text::m_pRebuildTexture [protected] |
int EPOC::Text::m_nFontSize [protected] |
std::string EPOC::Text::m_sText [protected] |
std::string EPOC::Text::m_sFilePath [protected] |
TTF_Font* EPOC::Text::m_pFont [protected] |
ColorRGB EPOC::Text::m_rTextColor [protected] |
GraphicsManager* EPOC::Text::m_pGraphicsManager [protected] |