Main Page   Namespace List   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields   Globals  

CTextDrawer Class Reference

#include <DrawText.h>

Collaboration diagram for CTextDrawer:

Collaboration graph
[legend]

Public Methods

bool PrintText (bool bold, int maxLength, const char *aFmt,...)
void SetFontTextureId (GLuint aFontTextureId)
void SetColor (float aR, float aG, float aB, float aA)
bool PrintText (bool bold, int maxLength, const char *aFmt,...)
void SetFontTextureId (GLuint aFontTextureId)
void SetColor (float aR, float aG, float aB, float aA)

Static Public Methods

CTextDrawer & GetSingleton ()
void Destroy ()
CTextDrawer & GetSingleton ()
void Destroy ()

Private Methods

 CTextDrawer ()
 CTextDrawer ()

Static Private Methods

void Initialise ()
void Initialise ()

Private Attributes

GLuint mBaseListId
unsigned int mFontTexId
float mR
float mG
float mB
float mA

Static Private Attributes

CTextDrawer * mSingleton = NULL
CTextDrawer * mSingleton

Constructor & Destructor Documentation

CTextDrawer::CTextDrawer   [private]
 

Definition at line 75 of file DrawText.cpp.

References mA, mB, mBaseListId, mG, and mR.

CTextDrawer::CTextDrawer   [private]
 


Member Function Documentation

void CTextDrawer::Destroy   [static]
 

void CTextDrawer::Destroy   [static]
 

Definition at line 61 of file DrawText.cpp.

References mBaseListId, mFontTexId, and mSingleton.

CTextDrawer& CTextDrawer::GetSingleton   [static]
 

CTextDrawer & CTextDrawer::GetSingleton   [static]
 

Definition at line 48 of file DrawText.cpp.

References Initialise(), and mSingleton.

void CTextDrawer::Initialise   [static, private]
 

void CTextDrawer::Initialise   [static, private]
 

Definition at line 90 of file DrawText.cpp.

References createTexture(), mBaseListId, mFontTexId, and mSingleton.

Referenced by GetSingleton().

bool CTextDrawer::PrintText bool    bold,
int    maxLength,
const char *    aFmt,
...   
 

bool CTextDrawer::PrintText bool    bold,
int    maxLength,
const char *    aFmt,
...   
 

Definition at line 147 of file DrawText.cpp.

References mBaseListId, and mFontTexId.

void CTextDrawer::SetColor float    aR,
float    aG,
float    aB,
float    aA
 

void CTextDrawer::SetColor float    aR,
float    aG,
float    aB,
float    aA
 

Definition at line 127 of file DrawText.cpp.

References mA, mB, mG, and mR.

void CTextDrawer::SetFontTextureId GLuint    aFontTextureId
 

void CTextDrawer::SetFontTextureId GLuint    aFontTextureId
 

Definition at line 84 of file DrawText.cpp.

References mFontTexId, and mSingleton.


Field Documentation

float CTextDrawer::mA [private]
 

Definition at line 71 of file DrawText.h.

Referenced by CTextDrawer(), and SetColor().

float CTextDrawer::mB [private]
 

Definition at line 71 of file DrawText.h.

Referenced by CTextDrawer(), and SetColor().

GLuint CTextDrawer::mBaseListId [private]
 

Definition at line 69 of file DrawText.h.

Referenced by CTextDrawer(), Destroy(), Initialise(), and PrintText().

unsigned int CTextDrawer::mFontTexId [private]
 

Definition at line 70 of file DrawText.h.

Referenced by Destroy(), Initialise(), PrintText(), and SetFontTextureId().

float CTextDrawer::mG [private]
 

Definition at line 71 of file DrawText.h.

Referenced by CTextDrawer(), and SetColor().

float CTextDrawer::mR [private]
 

Definition at line 71 of file DrawText.h.

Referenced by CTextDrawer(), and SetColor().

CTextDrawer* CTextDrawer::mSingleton [static, private]
 

Definition at line 67 of file DrawText.h.

CTextDrawer * CTextDrawer::mSingleton = NULL [static, private]
 

Definition at line 44 of file DrawText.cpp.

Referenced by Destroy(), GetSingleton(), Initialise(), and SetFontTextureId().


The documentation for this class was generated from the following files:
Generated on Thu Mar 18 18:34:26 2004 for miniQT by doxygen1.2.18