$search

vlr::FontRenderer Class Reference

#include <fontRenderer.h>

List of all members.

Public Member Functions

bool addFont (const std::string &fontName, const unsigned char *mem, size_t memSize)
bool addFont (const std::string &fileName)
void drawString2D (const std::string &text, float x, float y, float font_size)
void drawString2D (const std::string &text, float x, float y)
void drawString2D (const std::string &text, float x, float y, const std::string &fontName)
void drawString3D (const std::string &, float x, float y, float z)
void drawString3D (const std::string &, float x, float y, float z, const std::string &fontName)
 FontRenderer ()
int numFonts ()
void removeFont (const std::string &fontName)
void setFontSize (unsigned int size)
 ~FontRenderer ()

Public Attributes

FTFont * defaultFont

Private Attributes

std::map< std::string, FTFont * > fontMap
unsigned int size_

Detailed Description

Definition at line 46 of file fontRenderer.h.


Constructor & Destructor Documentation

vlr::FontRenderer::FontRenderer (  ) 

Definition at line 44 of file fontRenderer.cpp.

vlr::FontRenderer::~FontRenderer (  ) 

Definition at line 52 of file fontRenderer.cpp.


Member Function Documentation

bool vlr::FontRenderer::addFont ( const std::string &  fontName,
const unsigned char *  mem,
size_t  memSize 
)

Definition at line 86 of file fontRenderer.cpp.

bool vlr::FontRenderer::addFont ( const std::string &  fileName  ) 

Definition at line 60 of file fontRenderer.cpp.

void vlr::FontRenderer::drawString2D ( const std::string &  text,
float  x,
float  y,
float  font_size 
)

Definition at line 158 of file fontRenderer.cpp.

void vlr::FontRenderer::drawString2D ( const std::string &  text,
float  x,
float  y 
)

Definition at line 147 of file fontRenderer.cpp.

void vlr::FontRenderer::drawString2D ( const std::string &  text,
float  x,
float  y,
const std::string &  fontName 
)

Definition at line 128 of file fontRenderer.cpp.

void vlr::FontRenderer::drawString3D ( const std::string &  text,
float  x,
float  y,
float  z 
)

Definition at line 187 of file fontRenderer.cpp.

void vlr::FontRenderer::drawString3D ( const std::string &  text,
float  x,
float  y,
float  z,
const std::string &  fontName 
)

Definition at line 169 of file fontRenderer.cpp.

int vlr::FontRenderer::numFonts (  )  [inline]

Definition at line 55 of file fontRenderer.h.

void vlr::FontRenderer::removeFont ( const std::string &  fontName  ) 

Definition at line 114 of file fontRenderer.cpp.

void vlr::FontRenderer::setFontSize ( unsigned int  size  ) 

Definition at line 197 of file fontRenderer.cpp.


Member Data Documentation

Definition at line 69 of file fontRenderer.h.

std::map<std::string, FTFont*> vlr::FontRenderer::fontMap [private]

Definition at line 65 of file fontRenderer.h.

unsigned int vlr::FontRenderer::size_ [private]

Definition at line 66 of file fontRenderer.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


vlr
Author(s): Soeren Kammel
autogenerated on Sun Mar 3 11:53:55 2013