Logo Search packages:      
Sourcecode: blender version File versions  Download package

FTGLTextureFont Class Reference

#include <FTGLTextureFont.h>

Inheritance diagram for FTGLTextureFont:

FTFont

List of all members.


Detailed Description

FTGLTextureFont is a specialisation of the FTFont class for handling Texture mapped fonts

See also:
FTFont

Definition at line 17 of file FTGLTextureFont.h.


Public Member Functions

float Advance (const char *string)
float Advance (const wchar_t *string)
float Ascender () const
bool Attach (const unsigned char *pBufferBytes, size_t bufferSizeInBytes)
bool Attach (const char *filename)
void BBox (const wchar_t *string, float &llx, float &lly, float &llz, float &urx, float &ury, float &urz)
void BBox (const char *string, float &llx, float &lly, float &llz, float &urx, float &ury, float &urz)
bool CharMap (FT_Encoding encoding)
unsigned int CharMapCount ()
FT_Encoding * CharMapList ()
virtual void Depth (float d)
float Descender () const
FT_Error Error () const
unsigned int FaceSize () const
virtual bool FaceSize (const unsigned int size, const unsigned int res=72)
 FTGLTextureFont (const unsigned char *pBufferBytes, size_t bufferSizeInBytes)
 FTGLTextureFont (const char *fontname)
virtual void Render (const wchar_t *string)
virtual void Render (const char *string)
virtual ~FTGLTextureFont ()

Protected Attributes

FTSize charSize
FT_Error err
FTFace face

Private Member Functions

void CalculateTextureSize ()
GLuint CreateTexture ()
virtual FTGlyphMakeGlyph (unsigned int glyphIndex)

Private Attributes

int glyphHeight
int glyphWidth
GLsizei maxTextSize
unsigned int numGlyphs
unsigned int padding
unsigned int remGlyphs
GLsizei textureHeight
FTVector< GLuint > textureIDList
GLsizei textureWidth
int xOffset
int yOffset

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index