GLFont2dFreeType Class Reference

#include <GLFont2dFreeType.h>

List of all members.

Public Member Functions

 GLFont2dFreeType ()
 ~GLFont2dFreeType ()
bool createFont (const std::string &typeFace, unsigned int h, bool makeShadow)
bool createCharacter (unsigned int ch, GLFont2dStorage::CharEntry *character)

Protected Attributes

bool makeShadow_
FT_Library library_
FT_Face face_


Detailed Description

Definition at line 32 of file GLFont2dFreeType.h.


Constructor & Destructor Documentation

GLFont2dFreeType::GLFont2dFreeType (  ) 

Definition at line 35 of file GLFont2dFreeType.cpp.

GLFont2dFreeType::~GLFont2dFreeType (  ) 

Definition at line 40 of file GLFont2dFreeType.cpp.

References face_, and library_.


Member Function Documentation

bool GLFont2dFreeType::createFont ( const std::string typeFace,
unsigned int  h,
bool  makeShadow 
)

Definition at line 51 of file GLFont2dFreeType.cpp.

References S3D::dialogMessage(), face_, S3D::formatStringBuffer(), library_, and makeShadow_.

Referenced by GLFont2d::createFont().

bool GLFont2dFreeType::createCharacter ( unsigned int  ch,
GLFont2dStorage::CharEntry character 
)

Definition at line 82 of file GLFont2dFreeType.cpp.

References GLFont2dStorage::CharEntry::advances, S3D::dialogMessage(), GLFont2dStorage::CharEntry::displaylist, face_, GL_CLAMP, GL_COMPILE, GL_LINEAR, GL_LUMINANCE_ALPHA, GL_QUADS, GL_RGBA, GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_FILTER, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_UNSIGNED_BYTE, glBegin(), glBindTexture(), glEnd(), glEndList(), glGenLists(), glGenTextures(), glNewList(), glPopMatrix(), glPushMatrix(), glTexCoord2f(), glTexImage2D(), glTexParameteri(), glTranslatef(), glVertex2f(), GLFont2dStorage::CharEntry::height, int(), GLFont2dStorage::CharEntry::left, makeShadow_, next_p2(), GLFont2dStorage::CharEntry::rows, GLFont2dStorage::CharEntry::texture, GLFont2dStorage::CharEntry::width, GLFont2dStorage::CharEntry::x, and GLFont2dStorage::CharEntry::y.

Referenced by GLFont2d::getCharacter().


Member Data Documentation

bool GLFont2dFreeType::makeShadow_ [protected]

Definition at line 42 of file GLFont2dFreeType.h.

Referenced by createCharacter(), and createFont().

FT_Library GLFont2dFreeType::library_ [protected]

Definition at line 44 of file GLFont2dFreeType.h.

Referenced by createFont(), and ~GLFont2dFreeType().

FT_Face GLFont2dFreeType::face_ [protected]

Definition at line 48 of file GLFont2dFreeType.h.

Referenced by createCharacter(), createFont(), and ~GLFont2dFreeType().


The documentation for this class was generated from the following files:
Generated on Mon Feb 16 15:15:01 2009 for Scorched3D by  doxygen 1.5.3