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

kerosin::FontServer Class Reference

#include <fontserver.h>

Inheritance diagram for kerosin::FontServer:

Inheritance graph
[legend]
Collaboration diagram for kerosin::FontServer:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 FontServer ()
 ~FontServer ()
boost::shared_ptr< FontGetFont (const std::string &name, unsigned int size=12)
 load a font with a given size
boost::shared_ptr< FontFindFont (const std::string &name, unsigned int size) const
 test if a specific font has been loaded
void Begin ()
 setup opengl states for font rendering
void End ()
 reset opengl states after font rendering

Protected Member Functions

bool LoadFont (const std::string &name, unsigned int size, boost::shared_ptr< Font > &font)

Private Types

typedef std::list< boost::shared_ptr<
kerosin::Font > > 
TFontList

Private Attributes

TFontList mFonts
 the registry of loaded fonts
FT_Library mFreeTypeLib
 FreeType.

Detailed Description

Definition at line 51 of file fontserver.h.


Member Typedef Documentation

typedef std::list<boost::shared_ptr<kerosin::Font> > kerosin::FontServer::TFontList [private]
 

Definition at line 76 of file fontserver.h.


Constructor & Destructor Documentation

FontServer::FontServer  ) 
 

Definition at line 14 of file fontserver.cpp.

References mFreeTypeLib.

FontServer::~FontServer  ) 
 

Definition at line 19 of file fontserver.cpp.

References mFonts.


Member Function Documentation

void FontServer::Begin  ) 
 

setup opengl states for font rendering

Definition at line 115 of file fontserver.cpp.

void FontServer::End  ) 
 

reset opengl states after font rendering

Definition at line 129 of file fontserver.cpp.

boost::shared_ptr<Font> kerosin::FontServer::FindFont const std::string &  name,
unsigned int  size
const
 

test if a specific font has been loaded

boost::shared_ptr<Font> kerosin::FontServer::GetFont const std::string &  name,
unsigned int  size = 12
 

load a font with a given size

bool kerosin::FontServer::LoadFont const std::string &  name,
unsigned int  size,
boost::shared_ptr< Font > &  font
[protected]
 


Member Data Documentation

TFontList kerosin::FontServer::mFonts [private]
 

the registry of loaded fonts

Definition at line 79 of file fontserver.h.

Referenced by ~FontServer().

FT_Library kerosin::FontServer::mFreeTypeLib [private]
 

FreeType.

Definition at line 82 of file fontserver.h.

Referenced by FontServer().


The documentation for this class was generated from the following files:
Generated on Thu Apr 6 15:42:30 2006 for rcssserver3d by  doxygen 1.4.4