Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Moteur3D::BasicANSIFont Class Reference

#include <BasicANSIFont.h>

Inheritance diagram for Moteur3D::BasicANSIFont:

Moteur3D::IFont List of all members.

Public Member Functions

 BasicANSIFont ()
 ~BasicANSIFont ()
bool LoadFont (string &filename)
virtual int GetLineHeight ()
virtual int GetChrWidth (unsigned char c)
virtual int GetChrWidth (unsigned short c)
virtual int GetStrWidth (string str)
virtual int GetStrWidth (wstring str)
virtual void DrawString (const string &str, int x, int y)
virtual void DrawString (const wstring &str, int x, int y)

Protected Attributes

Glyphm_Glyphs
Glyphm_Table [65536]
unsigned int m_LineHeight
float m_TexLineHeight
ITexturem_Texture

Classes

struct  Glyph

Constructor & Destructor Documentation

Moteur3D::BasicANSIFont::BasicANSIFont  ) 
 

Moteur3D::BasicANSIFont::~BasicANSIFont  ) 
 


Member Function Documentation

virtual void Moteur3D::BasicANSIFont::DrawString const wstring &  str,
int  x,
int  y
[virtual]
 

Implements Moteur3D::IFont.

virtual void Moteur3D::BasicANSIFont::DrawString const string &  str,
int  x,
int  y
[virtual]
 

Implements Moteur3D::IFont.

virtual int Moteur3D::BasicANSIFont::GetChrWidth unsigned short  c  )  [inline, virtual]
 

Implements Moteur3D::IFont.

virtual int Moteur3D::BasicANSIFont::GetChrWidth unsigned char  c  )  [inline, virtual]
 

Implements Moteur3D::IFont.

virtual int Moteur3D::BasicANSIFont::GetLineHeight  )  [inline, virtual]
 

Implements Moteur3D::IFont.

virtual int Moteur3D::BasicANSIFont::GetStrWidth wstring  str  )  [virtual]
 

virtual int Moteur3D::BasicANSIFont::GetStrWidth string  str  )  [virtual]
 

bool Moteur3D::BasicANSIFont::LoadFont string &  filename  ) 
 


Member Data Documentation

Glyph* Moteur3D::BasicANSIFont::m_Glyphs [protected]
 

unsigned int Moteur3D::BasicANSIFont::m_LineHeight [protected]
 

Glyph* Moteur3D::BasicANSIFont::m_Table[65536] [protected]
 

Todo:
THIS IS MUCH TOO WIDE as 99.99% of chars will be ascii. Need to find a better solution (such as a table of 256 chars and a queue, map or sth).

float Moteur3D::BasicANSIFont::m_TexLineHeight [protected]
 

ITexture* Moteur3D::BasicANSIFont::m_Texture [protected]
 


The documentation for this class was generated from the following file:
Generated on Sat Oct 15 15:05:52 2005 for Moteur3D by  doxygen 1.4.4