Back to index

extremetuxracer  0.5beta
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Protected Attributes | Private Types | Private Member Functions | Private Attributes | Static Private Attributes | Friends
FTGL_EXPORT< FT_LIST_ITEM_TYPE > Protocol Template Reference

FTBBox is a convenience class for handling bounding boxes. More...

#include <FTBBox.h>

Collaboration diagram for FTGL_EXPORT< FT_LIST_ITEM_TYPE >:
Collaboration graph
[legend]

List of all members.

Classes

struct  Node

Public Types

enum  { NumberOfBuckets = 256, BucketSize = 256, IndexNotFound = -1 }
typedef unsigned long CharacterCode
typedef signed long GlyphIndex
typedef FT_LIST_ITEM_TYPE value_type
typedef value_typereference
typedef const value_typeconst_reference
typedef size_t size_type
typedef FT_VECTOR_ITEM_TYPE value_type
typedef value_typereference
typedef const value_typeconst_reference
typedef value_typeiterator
typedef const value_typeconst_iterator
typedef size_t size_type

Public Member Functions

 FTBBox ()
 Default constructor.
 FTBBox (float lx, float ly, float lz, float ux, float uy, float uz)
 Constructor.
 FTBBox (FT_GlyphSlot glyph)
 Constructor.
 ~FTBBox ()
 Destructor.
FTBBoxMove (FTPoint distance)
 Move the Bounding Box by a vector.
FTBBoxoperator+= (const FTBBox &bbox)
void SetDepth (float depth)
 FTCharmap (FTFace *face)
 Constructor.
virtual ~FTCharmap ()
 Destructor.
FT_Encoding Encoding () const
 Queries for the current character map code.
bool CharMap (FT_Encoding encoding)
 Sets the character map for the face.
unsigned int GlyphListIndex (const unsigned int characterCode)
 Get the FTGlyphContainer index of the input character.
unsigned int FontIndex (const unsigned int characterCode)
 Get the font glyph index of the input character.
void InsertIndex (const unsigned int characterCode, const unsigned int containerIndex)
 Set the FTGlyphContainer index of the character code.
FT_Error Error () const
 Queries for errors.
 FTCharToGlyphIndexMap ()
virtual ~FTCharToGlyphIndexMap ()
void clear ()
const GlyphIndex find (CharacterCode c)
void insert (CharacterCode c, GlyphIndex g)
 FTContour (FT_Vector *contour, char *pointTags, unsigned int numberOfPoints)
 Constructor.
 ~FTContour ()
 Destructor.
const FTPointPoint (unsigned int index) const
 Return a point at index.
size_t PointCount () const
 How many points define this contour.
 FTFace (const char *fontFilePath)
 Opens and reads a face file.
 FTFace (const unsigned char *pBufferBytes, size_t bufferSizeInBytes)
 Read face data from an in-memory buffer.
virtual ~FTFace ()
 Destructor.
bool Attach (const char *fontFilePath)
 Attach auxilliary file to font (e.g., font metrics).
bool Attach (const unsigned char *pBufferBytes, size_t bufferSizeInBytes)
 Attach auxilliary data to font (e.g., font metrics) from memory.
FT_Face * Face () const
 Get the freetype face object.
const FTSizeSize (const unsigned int size, const unsigned int res)
 Sets the char size for the current face.
unsigned int CharMapCount ()
 Get the number of character maps in this face.
FT_Encoding * CharMapList ()
 Get a list of character maps in this face.
FTPoint KernAdvance (unsigned int index1, unsigned int index2)
 Gets the kerning vector between two glyphs.
FT_GlyphSlot Glyph (unsigned int index, FT_Int load_flags)
 Loads and creates a Freetype glyph.
unsigned int GlyphCount () const
 Gets the number of glyphs in the current face.
FT_Error Error () const
 Queries for errors.
 FTFont (const char *fontFilePath)
 Open and read a font file.
 FTFont (const unsigned char *pBufferBytes, size_t bufferSizeInBytes)
 Open and read a font from a buffer in memory.
virtual ~FTFont ()
 Destructor.
bool Attach (const char *fontFilePath)
 Attach auxilliary file to font e.g font metrics.
bool Attach (const unsigned char *pBufferBytes, size_t bufferSizeInBytes)
 Attach auxilliary data to font e.g font metrics, from memory.
bool CharMap (FT_Encoding encoding)
 Set the character map for the face.
unsigned int CharMapCount ()
 Get the number of character maps in this face.
FT_Encoding * CharMapList ()
 Get a list of character maps in this face.
virtual bool FaceSize (const unsigned int size, const unsigned int res=72)
 Set the char size for the current face.
unsigned int FaceSize () const
 Get the current face size in points.
virtual void Depth (float depth)
 Set the extrusion distance for the font.
void UseDisplayList (bool useList)
 Enable or disable the use of Display Lists inside FTGL.
float Ascender () const
 Get the global ascender height for the face.
float Descender () const
 Gets the global descender height for the face.
float LineHeight () const
 Gets the line spacing for the font.
void BBox (const char *string, float &llx, float &lly, float &llz, float &urx, float &ury, float &urz)
 Get the bounding box for a string.
void BBox (const wchar_t *string, float &llx, float &lly, float &llz, float &urx, float &ury, float &urz)
 Get the bounding box for a string.
float Advance (const wchar_t *string)
 Get the advance width for a string.
float Advance (const char *string)
 Get the advance width for a string.
virtual void Render (const char *string)
 Render a string of characters.
virtual void Render (const wchar_t *string)
 Render a string of characters.
FT_Error Error () const
 Queries the Font for errors.
 FTGLOutlineFont (const char *fontFilePath)
 Open and read a font file.
 FTGLOutlineFont (const unsigned char *pBufferBytes, size_t bufferSizeInBytes)
 Open and read a font from a buffer in memory.
 ~FTGLOutlineFont ()
 Destructor.
void Render (const char *string)
 Renders a string of characters.
void Render (const wchar_t *string)
 Renders a string of characters.
void setWidth (GLfloat w)
 FTGLTextureFont (const char *fontFilePath)
 Open and read a font file.
 FTGLTextureFont (const unsigned char *pBufferBytes, size_t bufferSizeInBytes)
 Open and read a font from a buffer in memory.
virtual ~FTGLTextureFont ()
 Destructor.
virtual bool FaceSize (const unsigned int size, const unsigned int res=72)
 Set the char size for the current face.
virtual void Render (const char *string)
 Renders a string of characters.
virtual void Render (const wchar_t *string)
 Renders a string of characters.
 FTGlyph (FT_GlyphSlot glyph, bool useDisplayList=true)
 Constructor.
virtual ~FTGlyph ()
 Destructor.
virtual const FTPointRender (const FTPoint &pen)=0
 Renders this glyph at the current pen position.
const FTPointAdvance () const
 Return the advance width for this glyph.
const FTBBoxBBox () const
 Return the bounding box for this glyph.
FT_Error Error () const
 Queries for errors.
 FTGlyphContainer (FTFace *face)
 Constructor.
 ~FTGlyphContainer ()
 Destructor.
bool CharMap (FT_Encoding encoding)
 Sets the character map for the face.
unsigned int FontIndex (const unsigned int characterCode) const
 Get the font index of the input character.
void Add (FTGlyph *glyph, const unsigned int characterCode)
 Adds a glyph to this glyph list.
const FTGlyph *const Glyph (const unsigned int characterCode) const
 Get a glyph from the glyph list.
FTBBox BBox (const unsigned int characterCode) const
 Get the bounding box for a character.
float Advance (const unsigned int characterCode, const unsigned int nextCharacterCode)
 Returns the kerned advance width for a glyph.
FTPoint Render (const unsigned int characterCode, const unsigned int nextCharacterCode, FTPoint penPosition)
 Renders a character.
FT_Error Error () const
 Queries the Font for errors.
const FT_Library *const GetLibrary () const
 Gets a pointer to the native Freetype library.
FT_Error Error () const
 Queries the library for errors.
 ~FTLibrary ()
 Destructor.
 FTList ()
 Constructor.
 ~FTList ()
 Destructor.
size_type size () const
 Get the number of items in the list.
void push_back (const value_type &item)
 Add an item to the end of the list.
reference front () const
 Get the item at the front of the list.
reference back () const
 Get the item at the end of the list.
 FTOutlineGlyph (FT_GlyphSlot glyph, bool useDisplayList, GLfloat _width=DEFAULT_WIDTH)
 Constructor.
virtual ~FTOutlineGlyph ()
 Destructor.
virtual const FTPointRender (const FTPoint &pen)
 Renders this glyph at the current pen position.
 FTPoint ()
 Default constructor.
 FTPoint (const FTGL_DOUBLE x, const FTGL_DOUBLE y, const FTGL_DOUBLE z)
 Constructor.
 FTPoint (const FT_Vector &ft_vector)
 Constructor.
FTPointoperator+= (const FTPoint &point)
 Operator += In Place Addition.
FTPoint operator+ (const FTPoint &point)
 Operator +.
FTPoint operator* (double multiplier)
 Operator *.
 operator const FTGL_DOUBLE * () const
 Cast to FTGL_DOUBLE*.
void X (FTGL_DOUBLE x)
 Setters.
void Y (FTGL_DOUBLE y)
void Z (FTGL_DOUBLE z)
FTGL_DOUBLE X () const
 Getters.
FTGL_DOUBLE Y () const
FTGL_DOUBLE Z () const
 FTSize ()
 Default Constructor.
virtual ~FTSize ()
 Destructor.
bool CharSize (FT_Face *face, unsigned int point_size, unsigned int x_resolution, unsigned int y_resolution)
 Sets the char size for the current face.
unsigned int CharSize () const
 get the char size for the current face.
float Ascender () const
 Gets the global ascender height for the face in pixels.
float Descender () const
 Gets the global descender height for the face in pixels.
float Height () const
 Gets the global face height for the face.
float Width () const
 Gets the global face width for the face.
float Underline () const
 Gets the underline position for the face.
FT_Error Error () const
 Queries for errors.
 FTTextureGlyph (FT_GlyphSlot glyph, int id, int xOffset, int yOffset, GLsizei width, GLsizei height)
 Constructor.
virtual ~FTTextureGlyph ()
 Destructor.
virtual const FTPointRender (const FTPoint &pen)
 Renders this glyph at the current pen position.
 FTVector ()
virtual ~FTVector ()
FTVectoroperator= (const FTVector &v)
size_type size () const
size_type capacity () const
iterator begin ()
const_iterator begin () const
iterator end ()
const_iterator end () const
bool empty () const
reference operator[] (size_type pos)
const_reference operator[] (size_type pos) const
void clear ()
void reserve (size_type n)
void push_back (const value_type &x)
void resize (size_type n, value_type x)
 FTTesselation (GLenum m)
 Default constructor.
 ~FTTesselation ()
 Destructor.
void AddPoint (const FTGL_DOUBLE x, const FTGL_DOUBLE y, const FTGL_DOUBLE z)
 Add a point to the mesh.
size_t PointCount () const
 The number of points in this mesh.
const FTPointPoint (unsigned int index) const
 
      

GLenum PolygonType () const
 Return the OpenGL polygon type.
 FTMesh ()
 Default constructor.
 ~FTMesh ()
 Destructor.
void AddPoint (const FTGL_DOUBLE x, const FTGL_DOUBLE y, const FTGL_DOUBLE z)
 Add a point to the mesh.
const FTGL_DOUBLECombine (const FTGL_DOUBLE x, const FTGL_DOUBLE y, const FTGL_DOUBLE z)
 Create a combine point for the gluTesselator.
void Begin (GLenum meshType)
 Begin a new polygon.
void End ()
 End a polygon.
void Error (GLenum e)
 Record a gluTesselation error.
unsigned int TesselationCount () const
 The number of tesselations in the mesh.
const FTTesselation *const Tesselation (unsigned int index) const
 Get a tesselation by index.
const PointListTempPointList () const
 Return the temporary point list.
GLenum Error () const
 Get the GL ERROR returned by the glu tesselator.
 FTVectoriser (const FT_GlyphSlot glyph)
 Constructor.
virtual ~FTVectoriser ()
 Destructor.
void MakeMesh (FTGL_DOUBLE zNormal=FTGL_FRONT_FACING)
 Build an FTMesh from the vector outline data.
const FTMesh *const GetMesh () const
 Get the current mesh.
size_t PointCount ()
 Get the total count of points in this outline.
size_t ContourCount () const
 Get the count of contours in this outline.
const FTContour *const Contour (unsigned int index) const
 Return a contour at index.
size_t ContourSize (int c) const
 Get the number of points in a specific contour in this outline.
int ContourFlag () const
 Get the flag for the tesselation rule for this outline.

Static Public Member Functions

static const FTLibraryInstance ()
 Global acces point to the single FTLibrary object.
static void ResetActiveTexture ()
 Reset the currently active texture to zero to get into a known state before drawing a string.

Public Attributes

float lowerX
 The bounds of the box.
float lowerY
float lowerZ
float upperX
float upperY
float upperZ

Static Public Attributes

static const GLfloat DEFAULT_WIDTH = 1.0

Protected Member Functions

virtual FTGlyphMakeGlyph (unsigned int g)=0
 Construct a glyph of the correct type.

Protected Attributes

FTFace face
 Current face object.
bool useDisplayLists
 Flag to enable or disable the use of Display Lists inside FTGL true turns ON display lists.
FTPoint advance
 The advance distance for this glyph.
FTBBox bBox
 The bounding box of this glyph.
bool useDisplayList
 Flag to enable or disable the use of Display Lists inside FTGL true turns ON display lists.

Private Types

typedef FTCharToGlyphIndexMap CharacterMap
 A structure that maps glyph indices to character codes.
typedef FTVector< FTPointPointVector
 The list of points in this contour.
typedef FTVector< FTGlyph * > GlyphVector
typedef FTVector< FTPointPointVector
 Points generated by gluTesselator.
typedef FTVector< FTTesselation * > TesselationVector
typedef FTList< FTPointPointList

Private Member Functions

void AddPoint (FTPoint point)
 Add a point to this contour.
void AddPoint (float x, float y)
void evaluateQuadraticCurve ()
 De Casteljau (bezier) algorithm contributed by Jed Soane Evaluates a quadratic or conic (second degree) curve.
void evaluateCubicCurve ()
 De Casteljau (bezier) algorithm contributed by Jed Soane Evaluates a cubic (third degree) curve.
bool CheckGlyph (const unsigned int chr)
 Check that the glyph at chr exist.
virtual FTGlyphMakeGlyph (unsigned int g)
 Construct a FTOutlineGlyph.
virtual FTGlyphMakeGlyph (unsigned int glyphIndex)
 Construct a FTTextureGlyph.
void CalculateTextureSize ()
 Get the size of a block of memory required to layout the glyphs.
GLuint CreateTexture ()
 Creates a 'blank' OpenGL texture object.
 FTLibrary ()
 Default constructors.
 FTLibrary (const FT_Library &)
FTLibraryoperator= (const FT_Library &)
bool Initialise ()
 Initialises the Freetype library.
void expand (size_type capacity_hint=0)
void ProcessContours ()
 Process the freetype outline data into contours of points.

Private Attributes

FT_Encoding ftEncoding
 Current character map code.
const FT_Face ftFace
 The current Freetype face.
CharacterMap charMap
FT_Error err
 Current error code.
GlyphIndex ** Indices
PointVector pointList
float controlPoints [4][2]
 2D array storing values of de Casteljau algorithm.
FT_Face * ftFace
 The Freetype face.
FTSize charSize
 The size object associated with this face.
int numGlyphs
 The number of glyphs in this face.
FT_Encoding * fontEncodingList
bool hasKerningTable
 This face has kerning tables.
FTGlyphContainerglyphList
 An object that holds a list of glyphs.
FTPoint pen
 Current pen or cursor position;.
GLfloat width
GLsizei maximumGLTextureSize
 The maximum texture dimension on this OpenGL implemetation.
GLsizei textureWidth
 The minimum texture width required to hold the glyphs.
GLsizei textureHeight
 The minimum texture height required to hold the glyphs.
FTVector< GLuint > textureIDList
 *An array of texture ids
int glyphHeight
 The max height for glyphs in the current font.
int glyphWidth
 The max width for glyphs in the current font.
unsigned int padding
 A value to be added to the height and width to ensure that glyphs don't overlap in the texture.
unsigned int numGlyphs
 
      

unsigned int remGlyphs
 
      

int xOffset
 
      

int yOffset
 
      

FTFaceface
 The FTGL face.
FTCharmapcharMap
 The Character Map object associated with the current face.
GlyphVector glyphs
 A structure to hold the glyphs.
FT_Library * library
 Freetype library handle.
size_type listSize
Nodehead
Nodetail
GLuint glList
 OpenGL display list.
FTGL_DOUBLE values [3]
 The point data.
FT_Size ftSize
 The Freetype size.
unsigned int size
 The size in points.
unsigned int xResolution
 The horizontal resolution.
unsigned int yResolution
 The vertical resolution.
int destWidth
 The width of the glyph 'image'.
int destHeight
 The height of the glyph 'image'.
FTPoint pos
 Vector from the pen position to the topleft corner of the pixmap.
FTPoint uv [2]
 The texture co-ords of this glyph within the texture.
int glTextureID
 The texture index that this glyph is contained in.
size_type Capacity
size_type Size
value_typeItems
GLenum meshType
 OpenGL primitive type from gluTesselator.
FTTesselationcurrentTesselation
 The current sub mesh that we are constructing.
TesselationVector tesselationList
 Holds each sub mesh that comprises this glyph.
PointList tempPointList
 Holds extra points created by gluTesselator.
GLenum err
 GL ERROR returned by the glu tesselator.
FTContour ** contourList
 The list of contours in the glyph.
FTMeshmesh
 A Mesh for tesselations.
short ftContourCount
 The number of contours reported by Freetype.
int contourFlag
 A flag indicating the tesselation rule for the glyph.
FT_Outline outline
 A Freetype outline.

Static Private Attributes

static GLint activeTextureID
 The texture index of the currently active texture.

Friends

FTPoint operator* (double multiplier, FTPoint &point)
 Operator *.
bool operator== (const FTPoint &a, const FTPoint &b)
 Operator == Tests for eqaulity.
bool operator!= (const FTPoint &a, const FTPoint &b)
 Operator != Tests for non equality.

Detailed Description

template<typename FT_LIST_ITEM_TYPE>
protocol FTGL_EXPORT< FT_LIST_ITEM_TYPE >

FTBBox is a convenience class for handling bounding boxes.

FTVectoriser class is a helper class that converts font outlines into point data.

FTMesh is a container of FTTesselation's that make up a polygon glyph.

FTTesselation captures points that are output by OpenGL's gluTesselator.

Provides a non-STL alternative to the STL vector.

FTTextureGlyph is a specialisation of FTGlyph for creating texture glyphs.

FTSize class provides an abstraction layer for the Freetype Size.

FTPoint class is a basic 3 dimensional point or vector.

FTOutlineGlyph is a specialisation of FTGlyph for creating outlines.

Provides a non-STL alternative to the STL list.

FTLibrary class is the global accessor for the Freetype library.

FTGlyphContainer holds the post processed FTGlyph objects.

FTGlyph is the base class for FTGL glyphs.

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

FTGLOutlineFont is a specialisation of the FTFont class for handling Vector Outline fonts.

FTFont is the public interface for the FTGL library.

FTFace class provides an abstraction layer for the Freetype Face.

FTContour class is a container of points that describe a vector font outline.

Provides a non-STL alternative to the STL map<unsigned long, unsigned long> which maps character codes to glyph indices inside FTCharmap.

Implementation:

Caveats:

It is used as a container for the output of the bezier curve evaluator in FTVectoriser.

See also:
FTOutlineGlyph
FTPolyGlyph
FTPoint
"Freetype 2 Documentation"

Specific font classes are derived from this class. It uses the helper classes FTFace and FTSize to access the Freetype library. This class is abstract and deriving classes must implement the protected MakeGlyph function to create glyphs of the appropriate type.

It is good practice after using these functions to test the error code returned. FT_Error Error(). Check the freetype file fterrdef.h for error definitions.

See also:
FTFace
FTSize
FTGlyphContainer
FTGlyph
FTFont

It provides the interface between Freetype glyphs and their openGL renderable counterparts. This is an abstract class and derived classes must implement the render function.

See also:
FTGlyphContainer
FTBBox
FTPoint
FTGlyph

This class encapsulates the Freetype Library. This is a singleton class and ensures that only one FT_Library is in existence at any one time. All constructors are private therefore clients cannot create or instantiate this class themselves and must access it's methods via the static FTLibrary::Instance() function.

Just because this class returns a valid FTLibrary object doesn't mean that the Freetype Library has been successfully initialised. Clients should check for errors. You can initialse the library AND check for errors using the following code... err = FTLibrary::Instance().Error();

See also:
"Freetype 2 Documentation"
FTGlyphContainer
FTVectoriser
FTGlyphContainer
FTExtrdGlyph
FTOutlineGlyph
FTPolyGlyph
FTContour
FTPoint

Definition at line 16 of file FTBBox.h.


Member Typedef Documentation

template<typename FT_LIST_ITEM_TYPE >
typedef unsigned long FTGL_EXPORT< FT_LIST_ITEM_TYPE >::CharacterCode

Definition at line 31 of file FTCharToGlyphIndexMap.h.

template<typename FT_LIST_ITEM_TYPE >
typedef FTCharToGlyphIndexMap FTGL_EXPORT< FT_LIST_ITEM_TYPE >::CharacterMap [private]

A structure that maps glyph indices to character codes.

< character code, face glyph index>

Definition at line 125 of file FTCharmap.h.

template<typename FT_LIST_ITEM_TYPE >
typedef const value_type* FTGL_EXPORT< FT_LIST_ITEM_TYPE >::const_iterator

Definition at line 17 of file FTVector.h.

template<typename FT_LIST_ITEM_TYPE >
typedef const value_type& FTGL_EXPORT< FT_LIST_ITEM_TYPE >::const_reference

Definition at line 15 of file FTList.h.

template<typename FT_LIST_ITEM_TYPE >
typedef const value_type& FTGL_EXPORT< FT_LIST_ITEM_TYPE >::const_reference

Definition at line 15 of file FTVector.h.

template<typename FT_LIST_ITEM_TYPE >
typedef signed long FTGL_EXPORT< FT_LIST_ITEM_TYPE >::GlyphIndex

Definition at line 32 of file FTCharToGlyphIndexMap.h.

template<typename FT_LIST_ITEM_TYPE >
typedef FTVector<FTGlyph*> FTGL_EXPORT< FT_LIST_ITEM_TYPE >::GlyphVector [private]

Definition at line 24 of file FTGlyphContainer.h.

template<typename FT_LIST_ITEM_TYPE >
typedef value_type* FTGL_EXPORT< FT_LIST_ITEM_TYPE >::iterator

Definition at line 16 of file FTVector.h.

template<typename FT_LIST_ITEM_TYPE >
typedef FTList<FTPoint> FTGL_EXPORT< FT_LIST_ITEM_TYPE >::PointList [private]

Definition at line 83 of file FTVectoriser.h.

template<typename FT_LIST_ITEM_TYPE >
typedef FTVector<FTPoint> FTGL_EXPORT< FT_LIST_ITEM_TYPE >::PointVector [private]

Points generated by gluTesselator.

Definition at line 67 of file FTVectoriser.h.

template<typename FT_LIST_ITEM_TYPE >
typedef FTVector<FTPoint> FTGL_EXPORT< FT_LIST_ITEM_TYPE >::PointVector [private]

The list of points in this contour.

Definition at line 79 of file FTContour.h.

template<typename FT_LIST_ITEM_TYPE >
typedef value_type& FTGL_EXPORT< FT_LIST_ITEM_TYPE >::reference

Definition at line 14 of file FTVector.h.

template<typename FT_LIST_ITEM_TYPE >
typedef value_type& FTGL_EXPORT< FT_LIST_ITEM_TYPE >::reference

Definition at line 14 of file FTList.h.

template<typename FT_LIST_ITEM_TYPE >
typedef size_t FTGL_EXPORT< FT_LIST_ITEM_TYPE >::size_type

Definition at line 16 of file FTList.h.

template<typename FT_LIST_ITEM_TYPE >
typedef size_t FTGL_EXPORT< FT_LIST_ITEM_TYPE >::size_type

Definition at line 18 of file FTVector.h.

template<typename FT_LIST_ITEM_TYPE >
typedef FTVector<FTTesselation*> FTGL_EXPORT< FT_LIST_ITEM_TYPE >::TesselationVector [private]

Definition at line 82 of file FTVectoriser.h.

template<typename FT_LIST_ITEM_TYPE >
typedef FT_VECTOR_ITEM_TYPE FTGL_EXPORT< FT_LIST_ITEM_TYPE >::value_type

Definition at line 13 of file FTVector.h.

template<typename FT_LIST_ITEM_TYPE >
typedef FT_LIST_ITEM_TYPE FTGL_EXPORT< FT_LIST_ITEM_TYPE >::value_type

Definition at line 13 of file FTList.h.


Member Enumeration Documentation

template<typename FT_LIST_ITEM_TYPE >
anonymous enum
Enumerator:
NumberOfBuckets 
BucketSize 
IndexNotFound 

Definition at line 34 of file FTCharToGlyphIndexMap.h.

        {
            NumberOfBuckets = 256,
            BucketSize = 256,
            IndexNotFound = -1
        };

Constructor & Destructor Documentation

template<typename FT_LIST_ITEM_TYPE >
FTGL_EXPORT< FT_LIST_ITEM_TYPE >::~FTBBox ( ) [inline]

Destructor.

Definition at line 72 of file FTBBox.h.

        {}
template<typename FT_LIST_ITEM_TYPE >
virtual FTGL_EXPORT< FT_LIST_ITEM_TYPE >::~FTCharmap ( ) [virtual]

Destructor.

template<typename FT_LIST_ITEM_TYPE >
virtual FTGL_EXPORT< FT_LIST_ITEM_TYPE >::~FTCharToGlyphIndexMap ( ) [inline, virtual]

Definition at line 46 of file FTCharToGlyphIndexMap.h.

        {
            if( this->Indices)
            {
                // Free all buckets
                this->clear();
        
                // Free main structure
                delete [] this->Indices;
                this->Indices = 0;
            }
        }

Here is the call graph for this function:

template<typename FT_LIST_ITEM_TYPE >
FTGL_EXPORT< FT_LIST_ITEM_TYPE >::~FTContour ( ) [inline]

Destructor.

Definition at line 33 of file FTContour.h.

        {
            pointList.clear();
        }
template<typename FT_LIST_ITEM_TYPE >
virtual FTGL_EXPORT< FT_LIST_ITEM_TYPE >::~FTFace ( ) [virtual]

Destructor.

Disposes of the current Freetype Face.

template<typename FT_LIST_ITEM_TYPE >
virtual FTGL_EXPORT< FT_LIST_ITEM_TYPE >::~FTFont ( ) [virtual]

Destructor.

template<typename FT_LIST_ITEM_TYPE >
FTGL_EXPORT< FT_LIST_ITEM_TYPE >::~FTGLOutlineFont ( )

Destructor.

template<typename FT_LIST_ITEM_TYPE >
virtual FTGL_EXPORT< FT_LIST_ITEM_TYPE >::~FTGLTextureFont ( ) [virtual]

Destructor.

template<typename FT_LIST_ITEM_TYPE >
virtual FTGL_EXPORT< FT_LIST_ITEM_TYPE >::~FTGlyph ( ) [virtual]

Destructor.

template<typename FT_LIST_ITEM_TYPE >
FTGL_EXPORT< FT_LIST_ITEM_TYPE >::~FTGlyphContainer ( )

Destructor.

template<typename FT_LIST_ITEM_TYPE >
FTGL_EXPORT< FT_LIST_ITEM_TYPE >::~FTLibrary ( )

Destructor.

Disposes of the Freetype library

template<typename FT_LIST_ITEM_TYPE >
FTGL_EXPORT< FT_LIST_ITEM_TYPE >::~FTList ( ) [inline]

Destructor.

Definition at line 32 of file FTList.h.

        {
            Node* next;
            
            for( Node *walk = head; walk; walk = next)
            {
                next = walk->next;
                delete walk;
            }
        }
template<typename FT_LIST_ITEM_TYPE >
virtual FTGL_EXPORT< FT_LIST_ITEM_TYPE >::~FTOutlineGlyph ( ) [virtual]

Destructor.

template<typename FT_LIST_ITEM_TYPE >
virtual FTGL_EXPORT< FT_LIST_ITEM_TYPE >::~FTSize ( ) [virtual]

Destructor.

template<typename FT_LIST_ITEM_TYPE >
virtual FTGL_EXPORT< FT_LIST_ITEM_TYPE >::~FTTextureGlyph ( ) [virtual]

Destructor.

template<typename FT_LIST_ITEM_TYPE >
virtual FTGL_EXPORT< FT_LIST_ITEM_TYPE >::~FTVector ( ) [inline, virtual]

Definition at line 27 of file FTVector.h.

        {
            clear();
        }

Here is the call graph for this function:

template<typename FT_LIST_ITEM_TYPE >
FTGL_EXPORT< FT_LIST_ITEM_TYPE >::~FTTesselation ( ) [inline]

Destructor.

Definition at line 35 of file FTVectoriser.h.

        {
            pointList.clear();
        }
template<typename FT_LIST_ITEM_TYPE >
FTGL_EXPORT< FT_LIST_ITEM_TYPE >::~FTMesh ( )

Destructor.

template<typename FT_LIST_ITEM_TYPE >
virtual FTGL_EXPORT< FT_LIST_ITEM_TYPE >::~FTVectoriser ( ) [virtual]

Destructor.


Member Function Documentation

template<typename FT_LIST_ITEM_TYPE >
void FTGL_EXPORT< FT_LIST_ITEM_TYPE >::Add ( FTGlyph glyph,
const unsigned int  characterCode 
)

Adds a glyph to this glyph list.

Parameters:
glyphThe FTGlyph to be inserted into the container
characterCodeThe char code of the glyph NOT the glyph index.
template<typename FT_LIST_ITEM_TYPE >
void FTGL_EXPORT< FT_LIST_ITEM_TYPE >::AddPoint ( const FTGL_DOUBLE  x,
const FTGL_DOUBLE  y,
const FTGL_DOUBLE  z 
) [inline]

Add a point to the mesh.

Definition at line 43 of file FTVectoriser.h.

        {   
            pointList.push_back( FTPoint( x, y, z));
        }

Here is the call graph for this function:

template<typename FT_LIST_ITEM_TYPE >
void FTGL_EXPORT< FT_LIST_ITEM_TYPE >::AddPoint ( FTPoint  point) [inline, private]

Add a point to this contour.

This function tests for duplicate points.

Parameters:
pointThe point to be added to the contour.
template<typename FT_LIST_ITEM_TYPE >
void FTGL_EXPORT< FT_LIST_ITEM_TYPE >::AddPoint ( float  x,
float  y 
) [inline, private]
template<typename FT_LIST_ITEM_TYPE >
void FTGL_EXPORT< FT_LIST_ITEM_TYPE >::AddPoint ( const FTGL_DOUBLE  x,
const FTGL_DOUBLE  y,
const FTGL_DOUBLE  z 
)

Add a point to the mesh.

template<typename FT_LIST_ITEM_TYPE >
const FTPoint& FTGL_EXPORT< FT_LIST_ITEM_TYPE >::Advance ( ) const [inline]

Return the advance width for this glyph.

Returns:
advance width.

Definition at line 56 of file FTGlyph.h.

{ return advance;}
template<typename FT_LIST_ITEM_TYPE >
float FTGL_EXPORT< FT_LIST_ITEM_TYPE >::Advance ( const unsigned int  characterCode,
const unsigned int  nextCharacterCode 
)

Returns the kerned advance width for a glyph.

Parameters:
characterCodeglyph index of the character
nextCharacterCodethe next glyph in a string
Returns:
advance width
template<typename FT_LIST_ITEM_TYPE >
float FTGL_EXPORT< FT_LIST_ITEM_TYPE >::Advance ( const wchar_t *  string)

Get the advance width for a string.

Parameters:
stringa wchar_t string
Returns:
advance width
template<typename FT_LIST_ITEM_TYPE >
float FTGL_EXPORT< FT_LIST_ITEM_TYPE >::Advance ( const char *  string)

Get the advance width for a string.

Parameters:
stringa char string
Returns:
advance width
template<typename FT_LIST_ITEM_TYPE >
float FTGL_EXPORT< FT_LIST_ITEM_TYPE >::Ascender ( ) const

Gets the global ascender height for the face in pixels.

Returns:
Ascender height
template<typename FT_LIST_ITEM_TYPE >
float FTGL_EXPORT< FT_LIST_ITEM_TYPE >::Ascender ( ) const

Get the global ascender height for the face.

Returns:
Ascender height
template<typename FT_LIST_ITEM_TYPE >
bool FTGL_EXPORT< FT_LIST_ITEM_TYPE >::Attach ( const char *  fontFilePath)

Attach auxilliary file to font (e.g., font metrics).

Parameters:
fontFilePathauxilliary font file path.
Returns:
true if file has opened successfully.
template<typename FT_LIST_ITEM_TYPE >
bool FTGL_EXPORT< FT_LIST_ITEM_TYPE >::Attach ( const unsigned char *  pBufferBytes,
size_t  bufferSizeInBytes 
)

Attach auxilliary data to font (e.g., font metrics) from memory.

Parameters:
pBufferBytesthe in-memory buffer
bufferSizeInBytesthe length of the buffer in bytes
Returns:
true if file has opened successfully.
template<typename FT_LIST_ITEM_TYPE >
bool FTGL_EXPORT< FT_LIST_ITEM_TYPE >::Attach ( const char *  fontFilePath)

Attach auxilliary file to font e.g font metrics.

Note: not all font formats implement this function.

Parameters:
fontFilePathauxilliary font file path.
Returns:
true if file has been attached successfully.
template<typename FT_LIST_ITEM_TYPE >
bool FTGL_EXPORT< FT_LIST_ITEM_TYPE >::Attach ( const unsigned char *  pBufferBytes,
size_t  bufferSizeInBytes 
)

Attach auxilliary data to font e.g font metrics, from memory.

Note: not all font formats implement this function.

Parameters:
pBufferBytesthe in-memory buffer
bufferSizeInBytesthe length of the buffer in bytes
Returns:
true if file has been attached successfully.
template<typename FT_LIST_ITEM_TYPE >
reference FTGL_EXPORT< FT_LIST_ITEM_TYPE >::back ( ) const [inline]

Get the item at the end of the list.

Definition at line 82 of file FTList.h.

        {
            return tail->payload;
        }
template<typename FT_LIST_ITEM_TYPE >
const FTBBox& FTGL_EXPORT< FT_LIST_ITEM_TYPE >::BBox ( ) const [inline]

Return the bounding box for this glyph.

Returns:
bounding box.

Definition at line 63 of file FTGlyph.h.

{ return bBox;}
template<typename FT_LIST_ITEM_TYPE >
FTBBox FTGL_EXPORT< FT_LIST_ITEM_TYPE >::BBox ( const unsigned int  characterCode) const

Get the bounding box for a character.

Parameters:
characterCodeThe char code of the glyph NOT the glyph index
template<typename FT_LIST_ITEM_TYPE >
void FTGL_EXPORT< FT_LIST_ITEM_TYPE >::BBox ( const char *  string,
float &  llx,
float &  lly,
float &  llz,
float &  urx,
float &  ury,
float &  urz 
)

Get the bounding box for a string.

Parameters:
stringa char string
llxlower left near x coord
llylower left near y coord
llzlower left near z coord
urxupper right far x coord
uryupper right far y coord
urzupper right far z coord
template<typename FT_LIST_ITEM_TYPE >
void FTGL_EXPORT< FT_LIST_ITEM_TYPE >::BBox ( const wchar_t *  string,
float &  llx,
float &  lly,
float &  llz,
float &  urx,
float &  ury,
float &  urz 
)

Get the bounding box for a string.

Parameters:
stringa wchar_t string
llxlower left near x coord
llylower left near y coord
llzlower left near z coord
urxupper right far x coord
uryupper right far y coord
urzupper right far z coord
template<typename FT_LIST_ITEM_TYPE >
iterator FTGL_EXPORT< FT_LIST_ITEM_TYPE >::begin ( ) [inline]

Definition at line 59 of file FTVector.h.

        {
            return Items;
        }

Here is the caller graph for this function:

template<typename FT_LIST_ITEM_TYPE >
const_iterator FTGL_EXPORT< FT_LIST_ITEM_TYPE >::begin ( ) const [inline]

Definition at line 64 of file FTVector.h.

        {
            return Items;
        }
template<typename FT_LIST_ITEM_TYPE >
void FTGL_EXPORT< FT_LIST_ITEM_TYPE >::Begin ( GLenum  meshType)

Begin a new polygon.

template<typename FT_LIST_ITEM_TYPE >
void FTGL_EXPORT< FT_LIST_ITEM_TYPE >::CalculateTextureSize ( ) [inline, private]

Get the size of a block of memory required to layout the glyphs.

Calculates a width and height based on the glyph sizes and the number of glyphs. It over estimates.

template<typename FT_LIST_ITEM_TYPE >
size_type FTGL_EXPORT< FT_LIST_ITEM_TYPE >::capacity ( ) const [inline]

Definition at line 54 of file FTVector.h.

        {
            return Capacity;
        }

Here is the caller graph for this function:

template<typename FT_LIST_ITEM_TYPE >
bool FTGL_EXPORT< FT_LIST_ITEM_TYPE >::CharMap ( FT_Encoding  encoding)

Sets the character map for the face.

Parameters:
encodingthe Freetype encoding symbol. See above.
Returns:
true if charmap was valid and set correctly
template<typename FT_LIST_ITEM_TYPE >
bool FTGL_EXPORT< FT_LIST_ITEM_TYPE >::CharMap ( FT_Encoding  encoding)

Sets the character map for the face.

Valid encodings as at Freetype 2.0.4 ft_encoding_none ft_encoding_symbol ft_encoding_unicode ft_encoding_latin_2 ft_encoding_sjis ft_encoding_gb2312 ft_encoding_big5 ft_encoding_wansung ft_encoding_johab ft_encoding_adobe_standard ft_encoding_adobe_expert ft_encoding_adobe_custom ft_encoding_apple_roman

Parameters:
encodingthe Freetype encoding symbol. See above.
Returns:
true if charmap was valid and set correctly. If the requested encoding is unavailable it will be set to ft_encoding_none.
template<typename FT_LIST_ITEM_TYPE >
bool FTGL_EXPORT< FT_LIST_ITEM_TYPE >::CharMap ( FT_Encoding  encoding)

Set the character map for the face.

Parameters:
encodingFreetype enumerate for char map code.
Returns:
true if charmap was valid and set correctly
template<typename FT_LIST_ITEM_TYPE >
unsigned int FTGL_EXPORT< FT_LIST_ITEM_TYPE >::CharMapCount ( )

Get the number of character maps in this face.

Returns:
character map count.
template<typename FT_LIST_ITEM_TYPE >
unsigned int FTGL_EXPORT< FT_LIST_ITEM_TYPE >::CharMapCount ( )

Get the number of character maps in this face.

Returns:
character map count.
template<typename FT_LIST_ITEM_TYPE >
FT_Encoding* FTGL_EXPORT< FT_LIST_ITEM_TYPE >::CharMapList ( )

Get a list of character maps in this face.

Returns:
pointer to the first encoding.
template<typename FT_LIST_ITEM_TYPE >
FT_Encoding* FTGL_EXPORT< FT_LIST_ITEM_TYPE >::CharMapList ( )

Get a list of character maps in this face.

Returns:
pointer to the first encoding.
template<typename FT_LIST_ITEM_TYPE >
bool FTGL_EXPORT< FT_LIST_ITEM_TYPE >::CharSize ( FT_Face *  face,
unsigned int  point_size,
unsigned int  x_resolution,
unsigned int  y_resolution 
)

Sets the char size for the current face.

This doesn't guarantee that the size was set correctly. Clients should check errors.

Parameters:
faceParent face for this size object
point_sizethe face size in points (1/72 inch)
x_resolutionthe horizontal resolution of the target device.
y_resolutionthe vertical resolution of the target device.
Returns:
true if the size has been set. Clients should check Error() for more information if this function returns false()
template<typename FT_LIST_ITEM_TYPE >
unsigned int FTGL_EXPORT< FT_LIST_ITEM_TYPE >::CharSize ( ) const

get the char size for the current face.

Returns:
The char size in points
template<typename FT_LIST_ITEM_TYPE >
bool FTGL_EXPORT< FT_LIST_ITEM_TYPE >::CheckGlyph ( const unsigned int  chr) [inline, private]

Check that the glyph at chr exist.

If not load it.

Parameters:
chrcharacter index
Returns:
true if the glyph can be created.
template<typename FT_LIST_ITEM_TYPE >
void FTGL_EXPORT< FT_LIST_ITEM_TYPE >::clear ( ) [inline]

Definition at line 59 of file FTCharToGlyphIndexMap.h.

        {
            if(this->Indices)
            {
                for( int i = 0; i < FTCharToGlyphIndexMap::NumberOfBuckets; i++)
                {
                    if( this->Indices[i])
                    {
                        delete [] this->Indices[i];
                        this->Indices[i] = 0;
                    }
                }
            }
        }

Here is the caller graph for this function:

template<typename FT_LIST_ITEM_TYPE >
void FTGL_EXPORT< FT_LIST_ITEM_TYPE >::clear ( ) [inline]

Definition at line 94 of file FTVector.h.

        {
            if( Capacity)
            {
                delete [] Items;
                Capacity = Size = 0;
                Items = 0;
            }
        }
template<typename FT_LIST_ITEM_TYPE >
const FTGL_DOUBLE* FTGL_EXPORT< FT_LIST_ITEM_TYPE >::Combine ( const FTGL_DOUBLE  x,
const FTGL_DOUBLE  y,
const FTGL_DOUBLE  z 
)

Create a combine point for the gluTesselator.

template<typename FT_LIST_ITEM_TYPE >
const FTContour* const FTGL_EXPORT< FT_LIST_ITEM_TYPE >::Contour ( unsigned int  index) const

Return a contour at index.

Returns:
the number of contours
template<typename FT_LIST_ITEM_TYPE >
size_t FTGL_EXPORT< FT_LIST_ITEM_TYPE >::ContourCount ( ) const [inline]

Get the count of contours in this outline.

Returns:
the number of contours

Definition at line 218 of file FTVectoriser.h.

{ return ftContourCount;}
template<typename FT_LIST_ITEM_TYPE >
int FTGL_EXPORT< FT_LIST_ITEM_TYPE >::ContourFlag ( ) const [inline]

Get the flag for the tesselation rule for this outline.

Returns:
The contour flag

Definition at line 240 of file FTVectoriser.h.

{ return contourFlag;}
template<typename FT_LIST_ITEM_TYPE >
size_t FTGL_EXPORT< FT_LIST_ITEM_TYPE >::ContourSize ( int  c) const [inline]

Get the number of points in a specific contour in this outline.

Parameters:
cThe contour index
Returns:
the number of points in contour[c]

Definition at line 233 of file FTVectoriser.h.

{ return contourList[c]->PointCount();}
template<typename FT_LIST_ITEM_TYPE >
GLuint FTGL_EXPORT< FT_LIST_ITEM_TYPE >::CreateTexture ( ) [inline, private]

Creates a 'blank' OpenGL texture object.

The format is GL_ALPHA and the params are GL_TEXTURE_WRAP_S = GL_CLAMP GL_TEXTURE_WRAP_T = GL_CLAMP GL_TEXTURE_MAG_FILTER = GL_LINEAR GL_TEXTURE_MIN_FILTER = GL_LINEAR Note that mipmapping is NOT used

template<typename FT_LIST_ITEM_TYPE >
virtual void FTGL_EXPORT< FT_LIST_ITEM_TYPE >::Depth ( float  depth) [inline, virtual]

Set the extrusion distance for the font.

Only implemented by FTGLExtrdFont

Parameters:
depthThe extrusion distance.

Definition at line 125 of file FTFont.h.

{}
template<typename FT_LIST_ITEM_TYPE >
float FTGL_EXPORT< FT_LIST_ITEM_TYPE >::Descender ( ) const

Gets the global descender height for the face in pixels.

Returns:
Ascender height
template<typename FT_LIST_ITEM_TYPE >
float FTGL_EXPORT< FT_LIST_ITEM_TYPE >::Descender ( ) const

Gets the global descender height for the face.

Returns:
Descender height
template<typename FT_LIST_ITEM_TYPE >
bool FTGL_EXPORT< FT_LIST_ITEM_TYPE >::empty ( ) const [inline]

Definition at line 79 of file FTVector.h.

        { 
            return size() == 0; 
        }

Here is the call graph for this function:

template<typename FT_LIST_ITEM_TYPE >
FT_Encoding FTGL_EXPORT< FT_LIST_ITEM_TYPE >::Encoding ( ) const [inline]

Queries for the current character map code.

Returns:
The current character map code.

Definition at line 47 of file FTCharmap.h.

{ return ftEncoding;}
template<typename FT_LIST_ITEM_TYPE >
iterator FTGL_EXPORT< FT_LIST_ITEM_TYPE >::end ( ) [inline]

Definition at line 69 of file FTVector.h.

        {
            return begin() + size(); 
        }

Here is the call graph for this function:

Here is the caller graph for this function:

template<typename FT_LIST_ITEM_TYPE >
const_iterator FTGL_EXPORT< FT_LIST_ITEM_TYPE >::end ( ) const [inline]

Definition at line 74 of file FTVector.h.

        {
            return begin() + size(); 
        }

Here is the call graph for this function:

template<typename FT_LIST_ITEM_TYPE >
void FTGL_EXPORT< FT_LIST_ITEM_TYPE >::End ( )

End a polygon.

template<typename FT_LIST_ITEM_TYPE >
FT_Error FTGL_EXPORT< FT_LIST_ITEM_TYPE >::Error ( ) const [inline]

Queries the library for errors.

Returns:
The current error code.

Definition at line 51 of file FTLibrary.h.

{ return err;}
template<typename FT_LIST_ITEM_TYPE >
FT_Error FTGL_EXPORT< FT_LIST_ITEM_TYPE >::Error ( ) const [inline]

Queries for errors.

Returns:
The current error code.

Definition at line 70 of file FTGlyph.h.

{ return err;}
template<typename FT_LIST_ITEM_TYPE >
FT_Error FTGL_EXPORT< FT_LIST_ITEM_TYPE >::Error ( ) const [inline]

Queries the Font for errors.

Returns:
The current error code.

Definition at line 102 of file FTGlyphContainer.h.

{ return err;}
template<typename FT_LIST_ITEM_TYPE >
FT_Error FTGL_EXPORT< FT_LIST_ITEM_TYPE >::Error ( ) const [inline]

Queries for errors.

Returns:
The current error code.

Definition at line 102 of file FTSize.h.

{ return err; }
template<typename FT_LIST_ITEM_TYPE >
FT_Error FTGL_EXPORT< FT_LIST_ITEM_TYPE >::Error ( ) const [inline]

Queries for errors.

Returns:
The current error code. Zero means no error.

Definition at line 107 of file FTCharmap.h.

{ return err;}
template<typename FT_LIST_ITEM_TYPE >
FT_Error FTGL_EXPORT< FT_LIST_ITEM_TYPE >::Error ( ) const [inline]

Queries for errors.

Returns:
The current error code.

Definition at line 115 of file FTFace.h.

{ return err; }
template<typename FT_LIST_ITEM_TYPE >
void FTGL_EXPORT< FT_LIST_ITEM_TYPE >::Error ( GLenum  e) [inline]

Record a gluTesselation error.

Definition at line 119 of file FTVectoriser.h.

{ err = e;}
template<typename FT_LIST_ITEM_TYPE >
GLenum FTGL_EXPORT< FT_LIST_ITEM_TYPE >::Error ( ) const [inline]

Get the GL ERROR returned by the glu tesselator.

Definition at line 139 of file FTVectoriser.h.

{ return err;}
template<typename FT_LIST_ITEM_TYPE >
FT_Error FTGL_EXPORT< FT_LIST_ITEM_TYPE >::Error ( ) const [inline]

Queries the Font for errors.

Returns:
The current error code.

Definition at line 217 of file FTFont.h.

{ return err;}
template<typename FT_LIST_ITEM_TYPE >
void FTGL_EXPORT< FT_LIST_ITEM_TYPE >::evaluateCubicCurve ( ) [inline, private]

De Casteljau (bezier) algorithm contributed by Jed Soane Evaluates a cubic (third degree) curve.

template<typename FT_LIST_ITEM_TYPE >
void FTGL_EXPORT< FT_LIST_ITEM_TYPE >::evaluateQuadraticCurve ( ) [inline, private]

De Casteljau (bezier) algorithm contributed by Jed Soane Evaluates a quadratic or conic (second degree) curve.

template<typename FT_LIST_ITEM_TYPE >
void FTGL_EXPORT< FT_LIST_ITEM_TYPE >::expand ( size_type  capacity_hint = 0) [inline, private]

Definition at line 154 of file FTVector.h.

        {
            size_type new_capacity =( capacity() == 0) ? 256 : capacity()* 2;
            if( capacity_hint)
            {
                while( new_capacity < capacity_hint)
                {
                    new_capacity *= 2;
                }
            }
            
            value_type *new_items = new value_type[new_capacity];
            
            iterator begin = this->begin();
            iterator end = this->end();
            value_type *ptr = new_items;
            
            while( begin != end)
            {
                *ptr++ = *begin++;
            }
            
            if( Capacity)
            {
                delete [] Items;
            }
        
            Items = new_items;
            Capacity = new_capacity;
        }

Here is the call graph for this function:

Here is the caller graph for this function:

template<typename FT_LIST_ITEM_TYPE >
FT_Face* FTGL_EXPORT< FT_LIST_ITEM_TYPE >::Face ( ) const [inline]

Get the freetype face object.

Returns:
pointer to an FT_Face.

Definition at line 67 of file FTFace.h.

{ return ftFace;}
template<typename FT_LIST_ITEM_TYPE >
virtual bool FTGL_EXPORT< FT_LIST_ITEM_TYPE >::FaceSize ( const unsigned int  size,
const unsigned int  res = 72 
) [virtual]

Set the char size for the current face.

Parameters:
sizethe face size in points (1/72 inch)
resthe resolution of the target device.
Returns:
true if size was set correctly
template<typename FT_LIST_ITEM_TYPE >
virtual bool FTGL_EXPORT< FT_LIST_ITEM_TYPE >::FaceSize ( const unsigned int  size,
const unsigned int  res = 72 
) [virtual]

Set the char size for the current face.

Parameters:
sizethe face size in points (1/72 inch)
resthe resolution of the target device.
Returns:
true if size was set correctly
template<typename FT_LIST_ITEM_TYPE >
unsigned int FTGL_EXPORT< FT_LIST_ITEM_TYPE >::FaceSize ( ) const

Get the current face size in points.

Returns:
face size
template<typename FT_LIST_ITEM_TYPE >
const GlyphIndex FTGL_EXPORT< FT_LIST_ITEM_TYPE >::find ( CharacterCode  c) [inline]

Definition at line 74 of file FTCharToGlyphIndexMap.h.

        {
            if( !this->Indices)
            {
                return 0;
            }
        
            // Find position of char code in buckets
            div_t pos = div( c, FTCharToGlyphIndexMap::BucketSize);
        
            if( !this->Indices[pos.quot])
            {
                return 0;
            }
        
            const FTCharToGlyphIndexMap::GlyphIndex *ptr = &this->Indices[pos.quot][pos.rem];
            if( *ptr == FTCharToGlyphIndexMap::IndexNotFound)
            {
                return 0;
            }
        
            return *ptr;
        }
template<typename FT_LIST_ITEM_TYPE >
unsigned int FTGL_EXPORT< FT_LIST_ITEM_TYPE >::FontIndex ( const unsigned int  characterCode) const

Get the font index of the input character.

Parameters:
characterCodeThe character code of the requested glyph in the current encoding eg apple roman.
Returns:
The font index for the character.
template<typename FT_LIST_ITEM_TYPE >
unsigned int FTGL_EXPORT< FT_LIST_ITEM_TYPE >::FontIndex ( const unsigned int  characterCode)

Get the font glyph index of the input character.

Parameters:
characterCodeThe character code of the requested glyph in the current encoding eg apple roman.
Returns:
The glyph index for the character.
template<typename FT_LIST_ITEM_TYPE >
reference FTGL_EXPORT< FT_LIST_ITEM_TYPE >::front ( ) const [inline]

Get the item at the front of the list.

Definition at line 74 of file FTList.h.

        {
            return head->next->payload;
        }
template<typename FT_LIST_ITEM_TYPE >
FTGL_EXPORT< FT_LIST_ITEM_TYPE >::FTBBox ( ) [inline]

Default constructor.

Bounding box is set to zero.

Definition at line 22 of file FTBBox.h.

        :   lowerX(0.0f),
            lowerY(0.0f),
            lowerZ(0.0f),
            upperX(0.0f),
            upperY(0.0f),
            upperZ(0.0f)
        {}
template<typename FT_LIST_ITEM_TYPE >
FTGL_EXPORT< FT_LIST_ITEM_TYPE >::FTBBox ( float  lx,
float  ly,
float  lz,
float  ux,
float  uy,
float  uz 
) [inline]

Constructor.

Definition at line 34 of file FTBBox.h.

        :   lowerX(lx),
            lowerY(ly),
            lowerZ(lz),
            upperX(ux),
            upperY(uy),
            upperZ(uz)
        {}
template<typename FT_LIST_ITEM_TYPE >
FTGL_EXPORT< FT_LIST_ITEM_TYPE >::FTBBox ( FT_GlyphSlot  glyph) [inline]

Constructor.

Extracts a bounding box from a freetype glyph. Uses the control box for the glyph. FT_Glyph_Get_CBox()

Parameters:
glyphA freetype glyph

Definition at line 49 of file FTBBox.h.

        :   lowerX(0.0f),
            lowerY(0.0f),
            lowerZ(0.0f),
            upperX(0.0f),
            upperY(0.0f),
            upperZ(0.0f)
        {
            FT_BBox bbox;
            FT_Outline_Get_CBox( &(glyph->outline), &bbox);

            lowerX = static_cast<float>( bbox.xMin) / 64.0f;
            lowerY = static_cast<float>( bbox.yMin) / 64.0f;
            lowerZ = 0.0f;
            upperX = static_cast<float>( bbox.xMax) / 64.0f;
            upperY = static_cast<float>( bbox.yMax) / 64.0f;
            upperZ = 0.0f;
            
        }       
template<typename FT_LIST_ITEM_TYPE >
FTGL_EXPORT< FT_LIST_ITEM_TYPE >::FTCharmap ( FTFace face)

Constructor.

template<typename FT_LIST_ITEM_TYPE >
FTGL_EXPORT< FT_LIST_ITEM_TYPE >::FTCharToGlyphIndexMap ( ) [inline]

Definition at line 41 of file FTCharToGlyphIndexMap.h.

        {
            this->Indices = 0;
        }
template<typename FT_LIST_ITEM_TYPE >
FTGL_EXPORT< FT_LIST_ITEM_TYPE >::FTContour ( FT_Vector *  contour,
char *  pointTags,
unsigned int  numberOfPoints 
)

Constructor.

Parameters:
contour
pointTags
numberOfPoints
template<typename FT_LIST_ITEM_TYPE >
FTGL_EXPORT< FT_LIST_ITEM_TYPE >::FTFace ( const char *  fontFilePath)

Opens and reads a face file.

Error is set.

Parameters:
fontFilePathfont file path.
template<typename FT_LIST_ITEM_TYPE >
FTGL_EXPORT< FT_LIST_ITEM_TYPE >::FTFace ( const unsigned char *  pBufferBytes,
size_t  bufferSizeInBytes 
)

Read face data from an in-memory buffer.

Error is set.

Parameters:
pBufferBytesthe in-memory buffer
bufferSizeInBytesthe length of the buffer in bytes
template<typename FT_LIST_ITEM_TYPE >
FTGL_EXPORT< FT_LIST_ITEM_TYPE >::FTFont ( const char *  fontFilePath)

Open and read a font file.

Sets Error flag.

Parameters:
fontFilePathfont file path.
template<typename FT_LIST_ITEM_TYPE >
FTGL_EXPORT< FT_LIST_ITEM_TYPE >::FTFont ( const unsigned char *  pBufferBytes,
size_t  bufferSizeInBytes 
)

Open and read a font from a buffer in memory.

Sets Error flag. The buffer is owned by the client and is NOT copied by FTGL. The pointer must be valid while using FTGL.

Parameters:
pBufferBytesthe in-memory buffer
bufferSizeInBytesthe length of the buffer in bytes
template<typename FT_LIST_ITEM_TYPE >
FTGL_EXPORT< FT_LIST_ITEM_TYPE >::FTGLOutlineFont ( const char *  fontFilePath)

Open and read a font file.

Sets Error flag.

Parameters:
fontFilePathfont file path.
template<typename FT_LIST_ITEM_TYPE >
FTGL_EXPORT< FT_LIST_ITEM_TYPE >::FTGLOutlineFont ( const unsigned char *  pBufferBytes,
size_t  bufferSizeInBytes 
)

Open and read a font from a buffer in memory.

Sets Error flag.

Parameters:
pBufferBytesthe in-memory buffer
bufferSizeInBytesthe length of the buffer in bytes
template<typename FT_LIST_ITEM_TYPE >
FTGL_EXPORT< FT_LIST_ITEM_TYPE >::FTGLTextureFont ( const char *  fontFilePath)

Open and read a font file.

Sets Error flag.

Parameters:
fontFilePathfont file path.
template<typename FT_LIST_ITEM_TYPE >
FTGL_EXPORT< FT_LIST_ITEM_TYPE >::FTGLTextureFont ( const unsigned char *  pBufferBytes,
size_t  bufferSizeInBytes 
)

Open and read a font from a buffer in memory.

Sets Error flag.

Parameters:
pBufferBytesthe in-memory buffer
bufferSizeInBytesthe length of the buffer in bytes
template<typename FT_LIST_ITEM_TYPE >
FTGL_EXPORT< FT_LIST_ITEM_TYPE >::FTGlyph ( FT_GlyphSlot  glyph,
bool  useDisplayList = true 
)

Constructor.

Parameters:
glyphThe Freetype glyph to be processed
useDisplayListEnable or disable the use of Display Lists for this glyph true turns ON display lists. false turns OFF display lists.
template<typename FT_LIST_ITEM_TYPE >
FTGL_EXPORT< FT_LIST_ITEM_TYPE >::FTGlyphContainer ( FTFace face)

Constructor.

Parameters:
faceThe Freetype face
template<typename FT_LIST_ITEM_TYPE >
FTGL_EXPORT< FT_LIST_ITEM_TYPE >::FTLibrary ( ) [private]

Default constructors.

Made private to stop clients creating there own FTLibrary objects.

template<typename FT_LIST_ITEM_TYPE >
FTGL_EXPORT< FT_LIST_ITEM_TYPE >::FTLibrary ( const FT_Library &  ) [inline, private]

Definition at line 68 of file FTLibrary.h.

{}
template<typename FT_LIST_ITEM_TYPE >
FTGL_EXPORT< FT_LIST_ITEM_TYPE >::FTList ( ) [inline]

Constructor.

Definition at line 21 of file FTList.h.

        :   listSize(0),
            tail(0)
        {
            tail = NULL;
            head = new Node;
        }
template<typename FT_LIST_ITEM_TYPE >
FTGL_EXPORT< FT_LIST_ITEM_TYPE >::FTMesh ( )

Default constructor.

template<typename FT_LIST_ITEM_TYPE >
FTGL_EXPORT< FT_LIST_ITEM_TYPE >::FTOutlineGlyph ( FT_GlyphSlot  glyph,
bool  useDisplayList,
GLfloat  _width = DEFAULT_WIDTH 
)

Constructor.

Sets the Error to Invalid_Outline if the glyphs isn't an outline.

Parameters:
glyphThe Freetype glyph to be processed
useDisplayListEnable or disable the use of Display Lists for this glyph true turns ON display lists. false turns OFF display lists.
template<typename FT_LIST_ITEM_TYPE >
FTGL_EXPORT< FT_LIST_ITEM_TYPE >::FTPoint ( ) [inline]

Default constructor.

Point is set to zero.

Definition at line 19 of file FTPoint.h.

        {
            values[0] = 0;
            values[1] = 0;
            values[2] = 0;
        }

Here is the caller graph for this function:

template<typename FT_LIST_ITEM_TYPE >
FTGL_EXPORT< FT_LIST_ITEM_TYPE >::FTPoint ( const FTGL_DOUBLE  x,
const FTGL_DOUBLE  y,
const FTGL_DOUBLE  z 
) [inline]

Constructor.

Parameters:
xFirst component
ySecond component
zThird component

Definition at line 33 of file FTPoint.h.

        {
            values[0] = x;
            values[1] = y;
            values[2] = z;
        }
template<typename FT_LIST_ITEM_TYPE >
FTGL_EXPORT< FT_LIST_ITEM_TYPE >::FTPoint ( const FT_Vector &  ft_vector) [inline]

Constructor.

This converts an FT_Vector to an FT_Point

Parameters:
ft_vectorA freetype vector

Definition at line 45 of file FTPoint.h.

        {
            values[0] = ft_vector.x;
            values[1] = ft_vector.y;
            values[2] = 0;
        }
template<typename FT_LIST_ITEM_TYPE >
FTGL_EXPORT< FT_LIST_ITEM_TYPE >::FTSize ( )

Default Constructor.

template<typename FT_LIST_ITEM_TYPE >
FTGL_EXPORT< FT_LIST_ITEM_TYPE >::FTTesselation ( GLenum  m) [inline]

Default constructor.

Definition at line 26 of file FTVectoriser.h.

        :     meshType(m)
        {
            pointList.reserve( 128);
        }
template<typename FT_LIST_ITEM_TYPE >
FTGL_EXPORT< FT_LIST_ITEM_TYPE >::FTTextureGlyph ( FT_GlyphSlot  glyph,
int  id,
int  xOffset,
int  yOffset,
GLsizei  width,
GLsizei  height 
)

Constructor.

Parameters:
glyphThe Freetype glyph to be processed
idThe id of the texture that this glyph will be drawn in
xOffsetThe x offset into the parent texture to draw this glyph
yOffsetThe y offset into the parent texture to draw this glyph
widthThe width of the parent texture
heightThe height (number of rows) of the parent texture
template<typename FT_LIST_ITEM_TYPE >
FTGL_EXPORT< FT_LIST_ITEM_TYPE >::FTVector ( ) [inline]

Definition at line 20 of file FTVector.h.

        {
            Capacity = Size = 0;
            Items = 0;
        }
template<typename FT_LIST_ITEM_TYPE >
FTGL_EXPORT< FT_LIST_ITEM_TYPE >::FTVectoriser ( const FT_GlyphSlot  glyph)

Constructor.

Parameters:
glyphThe freetype glyph to be processed
template<typename FT_LIST_ITEM_TYPE >
const FT_Library* const FTGL_EXPORT< FT_LIST_ITEM_TYPE >::GetLibrary ( ) const [inline]

Gets a pointer to the native Freetype library.

Returns:
A handle to a FreeType library instance.

Definition at line 44 of file FTLibrary.h.

{ return library;}
template<typename FT_LIST_ITEM_TYPE >
const FTMesh* const FTGL_EXPORT< FT_LIST_ITEM_TYPE >::GetMesh ( ) const [inline]

Get the current mesh.

Definition at line 204 of file FTVectoriser.h.

{ return mesh;}
template<typename FT_LIST_ITEM_TYPE >
const FTGlyph* const FTGL_EXPORT< FT_LIST_ITEM_TYPE >::Glyph ( const unsigned int  characterCode) const

Get a glyph from the glyph list.

Parameters:
characterCodeThe char code of the glyph NOT the glyph index
Returns:
An FTGlyph or null is it hasn't been loaded.
template<typename FT_LIST_ITEM_TYPE >
FT_GlyphSlot FTGL_EXPORT< FT_LIST_ITEM_TYPE >::Glyph ( unsigned int  index,
FT_Int  load_flags 
)

Loads and creates a Freetype glyph.

template<typename FT_LIST_ITEM_TYPE >
unsigned int FTGL_EXPORT< FT_LIST_ITEM_TYPE >::GlyphCount ( ) const [inline]

Gets the number of glyphs in the current face.

Definition at line 108 of file FTFace.h.

{ return numGlyphs;}
template<typename FT_LIST_ITEM_TYPE >
unsigned int FTGL_EXPORT< FT_LIST_ITEM_TYPE >::GlyphListIndex ( const unsigned int  characterCode)

Get the FTGlyphContainer index of the input character.

Parameters:
characterCodeThe character code of the requested glyph in the current encoding eg apple roman.
Returns:
The FTGlyphContainer index for the character or zero if it wasn't found
template<typename FT_LIST_ITEM_TYPE >
float FTGL_EXPORT< FT_LIST_ITEM_TYPE >::Height ( ) const

Gets the global face height for the face.

If the face is scalable this returns the height of the global bounding box which ensures that any glyph will be less than or equal to this height. If the font isn't scalable there is no guarantee that glyphs will not be taller than this value.

Returns:
height in pixels.
template<typename FT_LIST_ITEM_TYPE >
bool FTGL_EXPORT< FT_LIST_ITEM_TYPE >::Initialise ( ) [private]

Initialises the Freetype library.

Even though this function indicates success via the return value, clients can't see this so must check the error codes. This function is only ever called by the default c_stor

Returns:
true if the Freetype library was successfully initialised, false otherwise.
template<typename FT_LIST_ITEM_TYPE >
void FTGL_EXPORT< FT_LIST_ITEM_TYPE >::insert ( CharacterCode  c,
GlyphIndex  g 
) [inline]

Definition at line 98 of file FTCharToGlyphIndexMap.h.

        {
            if( !this->Indices)
            {
                this->Indices = new GlyphIndex* [FTCharToGlyphIndexMap::NumberOfBuckets];
                for( int i = 0; i < FTCharToGlyphIndexMap::NumberOfBuckets; i++)
                {
                    this->Indices[i] = 0;
                }
            }
        
            // Find position of char code in buckets
            div_t pos = div(c, FTCharToGlyphIndexMap::BucketSize);
        
            // Allocate bucket if does not exist yet
            if( !this->Indices[pos.quot])
            {
                this->Indices[pos.quot] = new GlyphIndex [FTCharToGlyphIndexMap::BucketSize];
                for( int i = 0; i < FTCharToGlyphIndexMap::BucketSize; i++)
                {
                    this->Indices[pos.quot][i] = FTCharToGlyphIndexMap::IndexNotFound;
                }
            }
          
            this->Indices[pos.quot][pos.rem] = g;
        }
template<typename FT_LIST_ITEM_TYPE >
void FTGL_EXPORT< FT_LIST_ITEM_TYPE >::InsertIndex ( const unsigned int  characterCode,
const unsigned int  containerIndex 
)

Set the FTGlyphContainer index of the character code.

Parameters:
characterCodeThe character code of the requested glyph in the current encoding eg apple roman.
containerIndexThe index into the FTGlyphContainer of the character code.
template<typename FT_LIST_ITEM_TYPE >
static const FTLibrary& FTGL_EXPORT< FT_LIST_ITEM_TYPE >::Instance ( ) [static]

Global acces point to the single FTLibrary object.

Returns:
The global FTLibrary object.
template<typename FT_LIST_ITEM_TYPE >
FTPoint FTGL_EXPORT< FT_LIST_ITEM_TYPE >::KernAdvance ( unsigned int  index1,
unsigned int  index2 
)

Gets the kerning vector between two glyphs.

template<typename FT_LIST_ITEM_TYPE >
float FTGL_EXPORT< FT_LIST_ITEM_TYPE >::LineHeight ( ) const

Gets the line spacing for the font.

Returns:
Line height
template<typename FT_LIST_ITEM_TYPE >
virtual FTGlyph* FTGL_EXPORT< FT_LIST_ITEM_TYPE >::MakeGlyph ( unsigned int  g) [inline, private, virtual]

Construct a FTOutlineGlyph.

Parameters:
gThe glyph index NOT the char code.
Returns:
An FTOutlineGlyph or null on failure.
template<typename FT_LIST_ITEM_TYPE >
virtual FTGlyph* FTGL_EXPORT< FT_LIST_ITEM_TYPE >::MakeGlyph ( unsigned int  glyphIndex) [inline, private, virtual]

Construct a FTTextureGlyph.

Parameters:
glyphIndexThe glyph index NOT the char code.
Returns:
An FTTextureGlyph or null on failure.
template<typename FT_LIST_ITEM_TYPE >
virtual FTGlyph* FTGL_EXPORT< FT_LIST_ITEM_TYPE >::MakeGlyph ( unsigned int  g) [protected, pure virtual]

Construct a glyph of the correct type.

Clients must overide the function and return their specialised FTGlyph.

Parameters:
gThe glyph index NOT the char code.
Returns:
An FT****Glyph or null on failure.
template<typename FT_LIST_ITEM_TYPE >
void FTGL_EXPORT< FT_LIST_ITEM_TYPE >::MakeMesh ( FTGL_DOUBLE  zNormal = FTGL_FRONT_FACING)

Build an FTMesh from the vector outline data.

Parameters:
zNormalThe direction of the z axis of the normal for this mesh
template<typename FT_LIST_ITEM_TYPE >
FTBBox& FTGL_EXPORT< FT_LIST_ITEM_TYPE >::Move ( FTPoint  distance) [inline]

Move the Bounding Box by a vector.

Parameters:
distanceThe distance to move the bbox in 3D space.

Definition at line 81 of file FTBBox.h.

        {
            lowerX += distance.X();
            lowerY += distance.Y();
            lowerZ += distance.Z();
            upperX += distance.X();
            upperY += distance.Y();
            upperZ += distance.Z();
            return *this;
        }
template<typename FT_LIST_ITEM_TYPE >
FTGL_EXPORT< FT_LIST_ITEM_TYPE >::operator const FTGL_DOUBLE * ( ) const [inline]

Cast to FTGL_DOUBLE*.

Definition at line 133 of file FTPoint.h.

        {
            return values;
        }
template<typename FT_LIST_ITEM_TYPE >
FTPoint FTGL_EXPORT< FT_LIST_ITEM_TYPE >::operator* ( double  multiplier) [inline]

Operator *.

Parameters:
multiplier
Returns:
this multiplied by multiplier.

Definition at line 90 of file FTPoint.h.

        {
            FTPoint temp;
            temp.values[0] = values[0] * multiplier;
            temp.values[1] = values[1] * multiplier;
            temp.values[2] = values[2] * multiplier;

            return temp;
        }

Here is the call graph for this function:

template<typename FT_LIST_ITEM_TYPE >
FTPoint FTGL_EXPORT< FT_LIST_ITEM_TYPE >::operator+ ( const FTPoint point) [inline]

Operator +.

Parameters:
point
Returns:
this plus point.

Definition at line 73 of file FTPoint.h.

        {
            FTPoint temp;
            temp.values[0] = values[0] + point.values[0];
            temp.values[1] = values[1] + point.values[1];
            temp.values[2] = values[2] + point.values[2];

            return temp;
        }

Here is the call graph for this function:

template<typename FT_LIST_ITEM_TYPE >
FTPoint& FTGL_EXPORT< FT_LIST_ITEM_TYPE >::operator+= ( const FTPoint point) [inline]

Operator += In Place Addition.

Parameters:
point
Returns:
this plus point.

Definition at line 58 of file FTPoint.h.

        {
            values[0] += point.values[0];
            values[1] += point.values[1];
            values[2] += point.values[2];

            return *this;
        }
template<typename FT_LIST_ITEM_TYPE >
FTBBox& FTGL_EXPORT< FT_LIST_ITEM_TYPE >::operator+= ( const FTBBox bbox) [inline]

Definition at line 92 of file FTBBox.h.

        {
            lowerX = bbox.lowerX < lowerX? bbox.lowerX: lowerX; 
            lowerY = bbox.lowerY < lowerY? bbox.lowerY: lowerY;
            lowerZ = bbox.lowerZ < lowerZ? bbox.lowerZ: lowerZ; 
            upperX = bbox.upperX > upperX? bbox.upperX: upperX; 
            upperY = bbox.upperY > upperY? bbox.upperY: upperY; 
            upperZ = bbox.upperZ > upperZ? bbox.upperZ: upperZ; 
            
            return *this;
        }
template<typename FT_LIST_ITEM_TYPE >
FTVector& FTGL_EXPORT< FT_LIST_ITEM_TYPE >::operator= ( const FTVector v) [inline]

Definition at line 32 of file FTVector.h.

        {
            reserve(v.capacity());
            
            iterator ptr = begin();
            const_iterator vbegin = v.begin();
            const_iterator vend = v.end();
            
            while( vbegin != vend)
            {
                *ptr++ = *vbegin++;
            }
            
            Size = v.size();
            return *this;
        }

Here is the call graph for this function:

template<typename FT_LIST_ITEM_TYPE >
FTLibrary& FTGL_EXPORT< FT_LIST_ITEM_TYPE >::operator= ( const FT_Library &  ) [inline, private]

Definition at line 69 of file FTLibrary.h.

{ return *this; }
template<typename FT_LIST_ITEM_TYPE >
reference FTGL_EXPORT< FT_LIST_ITEM_TYPE >::operator[] ( size_type  pos) [inline]

Definition at line 84 of file FTVector.h.

        { 
            return( *(begin() + pos)); 
        }

Here is the call graph for this function:

template<typename FT_LIST_ITEM_TYPE >
const_reference FTGL_EXPORT< FT_LIST_ITEM_TYPE >::operator[] ( size_type  pos) const [inline]

Definition at line 89 of file FTVector.h.

        { 
            return( *(begin() + pos)); 
        }

Here is the call graph for this function:

template<typename FT_LIST_ITEM_TYPE >
const FTPoint& FTGL_EXPORT< FT_LIST_ITEM_TYPE >::Point ( unsigned int  index) const [inline]

Return a point at index.

Parameters:
indexof the point in the curve.
Returns:
const point reference

Definition at line 44 of file FTContour.h.

{ return pointList[index];}
template<typename FT_LIST_ITEM_TYPE >
const FTPoint& FTGL_EXPORT< FT_LIST_ITEM_TYPE >::Point ( unsigned int  index) const [inline]

      

Definition at line 56 of file FTVectoriser.h.

{ return pointList[index];}
template<typename FT_LIST_ITEM_TYPE >
size_t FTGL_EXPORT< FT_LIST_ITEM_TYPE >::PointCount ( ) const [inline]

The number of points in this mesh.

Definition at line 51 of file FTVectoriser.h.

{ return pointList.size();}
template<typename FT_LIST_ITEM_TYPE >
size_t FTGL_EXPORT< FT_LIST_ITEM_TYPE >::PointCount ( ) const [inline]

How many points define this contour.

Returns:
the number of points in this contour

Definition at line 51 of file FTContour.h.

{ return pointList.size();}
template<typename FT_LIST_ITEM_TYPE >
size_t FTGL_EXPORT< FT_LIST_ITEM_TYPE >::PointCount ( )

Get the total count of points in this outline.

Returns:
the number of points
template<typename FT_LIST_ITEM_TYPE >
GLenum FTGL_EXPORT< FT_LIST_ITEM_TYPE >::PolygonType ( ) const [inline]

Return the OpenGL polygon type.

Definition at line 61 of file FTVectoriser.h.

{ return meshType;}
template<typename FT_LIST_ITEM_TYPE >
void FTGL_EXPORT< FT_LIST_ITEM_TYPE >::ProcessContours ( ) [private]

Process the freetype outline data into contours of points.

template<typename FT_LIST_ITEM_TYPE >
void FTGL_EXPORT< FT_LIST_ITEM_TYPE >::push_back ( const value_type item) [inline]

Add an item to the end of the list.

Definition at line 54 of file FTList.h.

        {
            Node* node = new Node( item);
            
            if( head->next == NULL)
            {
                head->next = node;
            }

            if( tail)
            {
                tail->next = node;
            }
            tail = node;
            ++listSize;
        }
template<typename FT_LIST_ITEM_TYPE >
void FTGL_EXPORT< FT_LIST_ITEM_TYPE >::push_back ( const value_type x) [inline]

Definition at line 112 of file FTVector.h.

        {
            if( size() == capacity())
            {
                expand();
            }
           
           ( *this)[size()] = x;
            ++Size;
        }

Here is the call graph for this function:

template<typename FT_LIST_ITEM_TYPE >
void FTGL_EXPORT< FT_LIST_ITEM_TYPE >::Render ( const char *  string)

Renders a string of characters.

Parameters:
string'C' style string to be output.
template<typename FT_LIST_ITEM_TYPE >
virtual const FTPoint& FTGL_EXPORT< FT_LIST_ITEM_TYPE >::Render ( const FTPoint pen) [virtual]

Renders this glyph at the current pen position.

Parameters:
penThe current pen position.
Returns:
The advance distance for this glyph.
template<typename FT_LIST_ITEM_TYPE >
virtual const FTPoint& FTGL_EXPORT< FT_LIST_ITEM_TYPE >::Render ( const FTPoint pen) [pure virtual]

Renders this glyph at the current pen position.

Parameters:
penThe current pen position.
Returns:
The advance distance for this glyph.
template<typename FT_LIST_ITEM_TYPE >
virtual const FTPoint& FTGL_EXPORT< FT_LIST_ITEM_TYPE >::Render ( const FTPoint pen) [virtual]

Renders this glyph at the current pen position.

Parameters:
penThe current pen position.
Returns:
The advance distance for this glyph.
template<typename FT_LIST_ITEM_TYPE >
void FTGL_EXPORT< FT_LIST_ITEM_TYPE >::Render ( const wchar_t *  string)

Renders a string of characters.

Parameters:
stringwchar_t string to be output.
template<typename FT_LIST_ITEM_TYPE >
virtual void FTGL_EXPORT< FT_LIST_ITEM_TYPE >::Render ( const char *  string) [virtual]

Renders a string of characters.

Parameters:
string'C' style string to be output.
template<typename FT_LIST_ITEM_TYPE >
virtual void FTGL_EXPORT< FT_LIST_ITEM_TYPE >::Render ( const wchar_t *  string) [virtual]

Renders a string of characters.

Parameters:
stringwchar_t string to be output.
template<typename FT_LIST_ITEM_TYPE >
FTPoint FTGL_EXPORT< FT_LIST_ITEM_TYPE >::Render ( const unsigned int  characterCode,
const unsigned int  nextCharacterCode,
FTPoint  penPosition 
)

Renders a character.

Parameters:
characterCodethe glyph to be Rendered
nextCharacterCodethe next glyph in the string. Used for kerning.
penPositionthe position to Render the glyph
Returns:
The distance to advance the pen position after Rendering
template<typename FT_LIST_ITEM_TYPE >
virtual void FTGL_EXPORT< FT_LIST_ITEM_TYPE >::Render ( const char *  string) [virtual]

Render a string of characters.

Parameters:
string'C' style string to be output.
template<typename FT_LIST_ITEM_TYPE >
virtual void FTGL_EXPORT< FT_LIST_ITEM_TYPE >::Render ( const wchar_t *  string) [virtual]

Render a string of characters.

Parameters:
stringwchar_t string to be output.
template<typename FT_LIST_ITEM_TYPE >
void FTGL_EXPORT< FT_LIST_ITEM_TYPE >::reserve ( size_type  n) [inline]

Definition at line 104 of file FTVector.h.

        {
            if( capacity() < n)
            {
                expand(n);
            }
        }

Here is the call graph for this function:

Here is the caller graph for this function:

template<typename FT_LIST_ITEM_TYPE >
static void FTGL_EXPORT< FT_LIST_ITEM_TYPE >::ResetActiveTexture ( ) [inline, static]

Reset the currently active texture to zero to get into a known state before drawing a string.

This is to get round possible threading issues.

Definition at line 55 of file FTTextureGlyph.h.

template<typename FT_LIST_ITEM_TYPE >
void FTGL_EXPORT< FT_LIST_ITEM_TYPE >::resize ( size_type  n,
value_type  x 
) [inline]

Definition at line 123 of file FTVector.h.

        {
            if( n == size())
            {
                return;
            }
            
            reserve(n);
            iterator begin, end;
            
            if( n >= Size)
            {
                begin = this->end();
                end = this->begin() + n;
            }
            else
            {
                begin = this->begin() + n;
                end = this->end();
            }
        
            while( begin != end)
            {
                *begin++ = x;
            }
        
            Size = n;
        }

Here is the call graph for this function:

template<typename FT_LIST_ITEM_TYPE >
void FTGL_EXPORT< FT_LIST_ITEM_TYPE >::SetDepth ( float  depth) [inline]

Definition at line 104 of file FTBBox.h.

        {
            upperZ = lowerZ + depth;
        }
template<typename FT_LIST_ITEM_TYPE >
void FTGL_EXPORT< FT_LIST_ITEM_TYPE >::setWidth ( GLfloat  w) [inline]

Definition at line 55 of file FTGLOutlineFont.h.

{width = w;}
template<typename FT_LIST_ITEM_TYPE >
size_type FTGL_EXPORT< FT_LIST_ITEM_TYPE >::size ( ) const [inline]

Get the number of items in the list.

Definition at line 46 of file FTList.h.

        {
            return listSize;
        }

Here is the caller graph for this function:

template<typename FT_LIST_ITEM_TYPE >
size_type FTGL_EXPORT< FT_LIST_ITEM_TYPE >::size ( ) const [inline]

Definition at line 49 of file FTVector.h.

        {
            return Size;
        }
template<typename FT_LIST_ITEM_TYPE >
const FTSize& FTGL_EXPORT< FT_LIST_ITEM_TYPE >::Size ( const unsigned int  size,
const unsigned int  res 
)

Sets the char size for the current face.

This doesn't guarantee that the size was set correctly. Clients should check errors.

Parameters:
sizethe face size in points (1/72 inch)
resthe resolution of the target device.
Returns:
FTSize object
template<typename FT_LIST_ITEM_TYPE >
const PointList& FTGL_EXPORT< FT_LIST_ITEM_TYPE >::TempPointList ( ) const [inline]

Return the temporary point list.

For testing only.

Definition at line 134 of file FTVectoriser.h.

{ return tempPointList;}
template<typename FT_LIST_ITEM_TYPE >
const FTTesselation* const FTGL_EXPORT< FT_LIST_ITEM_TYPE >::Tesselation ( unsigned int  index) const

Get a tesselation by index.

template<typename FT_LIST_ITEM_TYPE >
unsigned int FTGL_EXPORT< FT_LIST_ITEM_TYPE >::TesselationCount ( ) const [inline]

The number of tesselations in the mesh.

Definition at line 124 of file FTVectoriser.h.

{ return tesselationList.size();}
template<typename FT_LIST_ITEM_TYPE >
float FTGL_EXPORT< FT_LIST_ITEM_TYPE >::Underline ( ) const

Gets the underline position for the face.

Returns:
underline position in pixels
template<typename FT_LIST_ITEM_TYPE >
void FTGL_EXPORT< FT_LIST_ITEM_TYPE >::UseDisplayList ( bool  useList)

Enable or disable the use of Display Lists inside FTGL.

Parameters:
useListtrue turns ON display lists. false turns OFF display lists.
template<typename FT_LIST_ITEM_TYPE >
float FTGL_EXPORT< FT_LIST_ITEM_TYPE >::Width ( ) const

Gets the global face width for the face.

If the face is scalable this returns the width of the global bounding box which ensures that any glyph will be less than or equal to this width. If the font isn't scalable this value is the max_advance for the face.

Returns:
width in pixels.
template<typename FT_LIST_ITEM_TYPE >
void FTGL_EXPORT< FT_LIST_ITEM_TYPE >::X ( FTGL_DOUBLE  x) [inline]

Setters.

Definition at line 142 of file FTPoint.h.

{ values[0] = x;};
template<typename FT_LIST_ITEM_TYPE >
FTGL_DOUBLE FTGL_EXPORT< FT_LIST_ITEM_TYPE >::X ( ) const [inline]

Getters.

Definition at line 150 of file FTPoint.h.

{ return values[0];};
template<typename FT_LIST_ITEM_TYPE >
void FTGL_EXPORT< FT_LIST_ITEM_TYPE >::Y ( FTGL_DOUBLE  y) [inline]

Definition at line 143 of file FTPoint.h.

{ values[1] = y;};
template<typename FT_LIST_ITEM_TYPE >
FTGL_DOUBLE FTGL_EXPORT< FT_LIST_ITEM_TYPE >::Y ( ) const [inline]

Definition at line 151 of file FTPoint.h.

{ return values[1];};
template<typename FT_LIST_ITEM_TYPE >
void FTGL_EXPORT< FT_LIST_ITEM_TYPE >::Z ( FTGL_DOUBLE  z) [inline]

Definition at line 144 of file FTPoint.h.

{ values[2] = z;};
template<typename FT_LIST_ITEM_TYPE >
FTGL_DOUBLE FTGL_EXPORT< FT_LIST_ITEM_TYPE >::Z ( ) const [inline]

Definition at line 152 of file FTPoint.h.

{ return values[2];};

Friends And Related Function Documentation

template<typename FT_LIST_ITEM_TYPE >
bool operator!= ( const FTPoint a,
const FTPoint b 
) [friend]

Operator != Tests for non equality.

Parameters:
a
b
Returns:
true if a & b are not equal

Definition at line 9 of file FTPoint.cpp.

{
    return((a.values[0] != b.values[0]) || (a.values[1] != b.values[1]) || (a.values[2] != b.values[2]));
}
template<typename FT_LIST_ITEM_TYPE >
FTPoint operator* ( double  multiplier,
FTPoint point 
) [friend]

Operator *.

Parameters:
point
multiplier
Returns:
multiplier multiplied by point.

Definition at line 15 of file FTPoint.cpp.

{
    return point * multiplier;
}
template<typename FT_LIST_ITEM_TYPE >
bool operator== ( const FTPoint a,
const FTPoint b 
) [friend]

Operator == Tests for eqaulity.

Parameters:
a
b
Returns:
true if a & b are equal

Definition at line 4 of file FTPoint.cpp.

{
    return((a.values[0] == b.values[0]) && (a.values[1] == b.values[1]) && (a.values[2] == b.values[2]));
}

Member Data Documentation

template<typename FT_LIST_ITEM_TYPE >
GLint FTGL_EXPORT< FT_LIST_ITEM_TYPE >::activeTextureID [static, private]

The texture index of the currently active texture.

We keep track of the currently active texture to try to reduce the number of texture bind operations.

Definition at line 89 of file FTTextureGlyph.h.

template<typename FT_LIST_ITEM_TYPE >
FTPoint FTGL_EXPORT< FT_LIST_ITEM_TYPE >::advance [protected]

The advance distance for this glyph.

Definition at line 76 of file FTGlyph.h.

template<typename FT_LIST_ITEM_TYPE >
FTBBox FTGL_EXPORT< FT_LIST_ITEM_TYPE >::bBox [protected]

The bounding box of this glyph.

Definition at line 81 of file FTGlyph.h.

template<typename FT_LIST_ITEM_TYPE >
size_type FTGL_EXPORT< FT_LIST_ITEM_TYPE >::Capacity [private]

Definition at line 185 of file FTVector.h.

template<typename FT_LIST_ITEM_TYPE >
FTCharmap* FTGL_EXPORT< FT_LIST_ITEM_TYPE >::charMap [private]

The Character Map object associated with the current face.

Definition at line 113 of file FTGlyphContainer.h.

template<typename FT_LIST_ITEM_TYPE >
CharacterMap FTGL_EXPORT< FT_LIST_ITEM_TYPE >::charMap [private]

Definition at line 126 of file FTCharmap.h.

template<typename FT_LIST_ITEM_TYPE >
FTSize FTGL_EXPORT< FT_LIST_ITEM_TYPE >::charSize [private]

The size object associated with this face.

Current size object.

Definition at line 126 of file FTFace.h.

template<typename FT_LIST_ITEM_TYPE >
int FTGL_EXPORT< FT_LIST_ITEM_TYPE >::contourFlag [private]

A flag indicating the tesselation rule for the glyph.

Definition at line 266 of file FTVectoriser.h.

template<typename FT_LIST_ITEM_TYPE >
FTContour** FTGL_EXPORT< FT_LIST_ITEM_TYPE >::contourList [private]

The list of contours in the glyph.

Definition at line 251 of file FTVectoriser.h.

template<typename FT_LIST_ITEM_TYPE >
float FTGL_EXPORT< FT_LIST_ITEM_TYPE >::controlPoints[4][2] [private]

2D array storing values of de Casteljau algorithm.

Definition at line 85 of file FTContour.h.

template<typename FT_LIST_ITEM_TYPE >
FTTesselation* FTGL_EXPORT< FT_LIST_ITEM_TYPE >::currentTesselation [private]

The current sub mesh that we are constructing.

Definition at line 145 of file FTVectoriser.h.

template<typename FT_LIST_ITEM_TYPE >
const GLfloat FTGL_EXPORT< FT_LIST_ITEM_TYPE >::DEFAULT_WIDTH = 1.0 [static]

Definition at line 48 of file FTOutlineGlyph.h.

template<typename FT_LIST_ITEM_TYPE >
int FTGL_EXPORT< FT_LIST_ITEM_TYPE >::destHeight [private]

The height of the glyph 'image'.

Definition at line 66 of file FTTextureGlyph.h.

template<typename FT_LIST_ITEM_TYPE >
int FTGL_EXPORT< FT_LIST_ITEM_TYPE >::destWidth [private]

The width of the glyph 'image'.

Definition at line 61 of file FTTextureGlyph.h.

template<typename FT_LIST_ITEM_TYPE >
FT_Error FTGL_EXPORT< FT_LIST_ITEM_TYPE >::err [private]

Current error code.

Zero means no error.

Definition at line 131 of file FTCharmap.h.

template<typename FT_LIST_ITEM_TYPE >
GLenum FTGL_EXPORT< FT_LIST_ITEM_TYPE >::err [private]

GL ERROR returned by the glu tesselator.

Definition at line 160 of file FTVectoriser.h.

template<typename FT_LIST_ITEM_TYPE >
FTFace* FTGL_EXPORT< FT_LIST_ITEM_TYPE >::face [private]

The FTGL face.

Definition at line 108 of file FTGlyphContainer.h.

template<typename FT_LIST_ITEM_TYPE >
FTFace FTGL_EXPORT< FT_LIST_ITEM_TYPE >::face [protected]

Current face object.

Definition at line 234 of file FTFont.h.

template<typename FT_LIST_ITEM_TYPE >
FT_Encoding* FTGL_EXPORT< FT_LIST_ITEM_TYPE >::fontEncodingList [private]

Definition at line 133 of file FTFace.h.

template<typename FT_LIST_ITEM_TYPE >
short FTGL_EXPORT< FT_LIST_ITEM_TYPE >::ftContourCount [private]

The number of contours reported by Freetype.

Definition at line 261 of file FTVectoriser.h.

template<typename FT_LIST_ITEM_TYPE >
FT_Encoding FTGL_EXPORT< FT_LIST_ITEM_TYPE >::ftEncoding [private]

Current character map code.

Definition at line 113 of file FTCharmap.h.

template<typename FT_LIST_ITEM_TYPE >
FT_Face * FTGL_EXPORT< FT_LIST_ITEM_TYPE >::ftFace [private]

The current Freetype face.

The current Freetype face that this FTSize object relates to.

Definition at line 118 of file FTCharmap.h.

template<typename FT_LIST_ITEM_TYPE >
FT_Face* FTGL_EXPORT< FT_LIST_ITEM_TYPE >::ftFace [private]

The Freetype face.

The current Freetype face that this FTSize object relates to.

Definition at line 121 of file FTFace.h.

template<typename FT_LIST_ITEM_TYPE >
FT_Size FTGL_EXPORT< FT_LIST_ITEM_TYPE >::ftSize [private]

The Freetype size.

Definition at line 113 of file FTSize.h.

template<typename FT_LIST_ITEM_TYPE >
GLuint FTGL_EXPORT< FT_LIST_ITEM_TYPE >::glList [private]

OpenGL display list.

Definition at line 54 of file FTOutlineGlyph.h.

template<typename FT_LIST_ITEM_TYPE >
int FTGL_EXPORT< FT_LIST_ITEM_TYPE >::glTextureID [private]

The texture index that this glyph is contained in.

Definition at line 81 of file FTTextureGlyph.h.

template<typename FT_LIST_ITEM_TYPE >
int FTGL_EXPORT< FT_LIST_ITEM_TYPE >::glyphHeight [private]

The max height for glyphs in the current font.

Definition at line 116 of file FTGLTextureFont.h.

template<typename FT_LIST_ITEM_TYPE >
FTGlyphContainer* FTGL_EXPORT< FT_LIST_ITEM_TYPE >::glyphList [private]

An object that holds a list of glyphs.

Definition at line 265 of file FTFont.h.

template<typename FT_LIST_ITEM_TYPE >
GlyphVector FTGL_EXPORT< FT_LIST_ITEM_TYPE >::glyphs [private]

A structure to hold the glyphs.

Definition at line 118 of file FTGlyphContainer.h.

template<typename FT_LIST_ITEM_TYPE >
int FTGL_EXPORT< FT_LIST_ITEM_TYPE >::glyphWidth [private]

The max width for glyphs in the current font.

Definition at line 121 of file FTGLTextureFont.h.

template<typename FT_LIST_ITEM_TYPE >
bool FTGL_EXPORT< FT_LIST_ITEM_TYPE >::hasKerningTable [private]

This face has kerning tables.

Definition at line 138 of file FTFace.h.

template<typename FT_LIST_ITEM_TYPE >
Node* FTGL_EXPORT< FT_LIST_ITEM_TYPE >::head [private]

Definition at line 107 of file FTList.h.

template<typename FT_LIST_ITEM_TYPE >
GlyphIndex** FTGL_EXPORT< FT_LIST_ITEM_TYPE >::Indices [private]

Definition at line 126 of file FTCharToGlyphIndexMap.h.

template<typename FT_LIST_ITEM_TYPE >
value_type* FTGL_EXPORT< FT_LIST_ITEM_TYPE >::Items [private]

Definition at line 187 of file FTVector.h.

template<typename FT_LIST_ITEM_TYPE >
FT_Library* FTGL_EXPORT< FT_LIST_ITEM_TYPE >::library [private]

Freetype library handle.

Definition at line 87 of file FTLibrary.h.

template<typename FT_LIST_ITEM_TYPE >
size_type FTGL_EXPORT< FT_LIST_ITEM_TYPE >::listSize [private]

Definition at line 105 of file FTList.h.

template<typename FT_LIST_ITEM_TYPE >
float FTGL_EXPORT< FT_LIST_ITEM_TYPE >::lowerX

The bounds of the box.

Definition at line 114 of file FTBBox.h.

template<typename FT_LIST_ITEM_TYPE >
float FTGL_EXPORT< FT_LIST_ITEM_TYPE >::lowerY

Definition at line 114 of file FTBBox.h.

template<typename FT_LIST_ITEM_TYPE >
float FTGL_EXPORT< FT_LIST_ITEM_TYPE >::lowerZ

Definition at line 114 of file FTBBox.h.

template<typename FT_LIST_ITEM_TYPE >
GLsizei FTGL_EXPORT< FT_LIST_ITEM_TYPE >::maximumGLTextureSize [private]

The maximum texture dimension on this OpenGL implemetation.

Definition at line 96 of file FTGLTextureFont.h.

template<typename FT_LIST_ITEM_TYPE >
FTMesh* FTGL_EXPORT< FT_LIST_ITEM_TYPE >::mesh [private]

A Mesh for tesselations.

Definition at line 256 of file FTVectoriser.h.

template<typename FT_LIST_ITEM_TYPE >
GLenum FTGL_EXPORT< FT_LIST_ITEM_TYPE >::meshType [private]

OpenGL primitive type from gluTesselator.

Definition at line 73 of file FTVectoriser.h.

template<typename FT_LIST_ITEM_TYPE >
int FTGL_EXPORT< FT_LIST_ITEM_TYPE >::numGlyphs [private]

The number of glyphs in this face.

Definition at line 131 of file FTFace.h.

template<typename FT_LIST_ITEM_TYPE >
unsigned int FTGL_EXPORT< FT_LIST_ITEM_TYPE >::numGlyphs [private]

      

Definition at line 132 of file FTGLTextureFont.h.

template<typename FT_LIST_ITEM_TYPE >
FT_Outline FTGL_EXPORT< FT_LIST_ITEM_TYPE >::outline [private]

A Freetype outline.

Definition at line 271 of file FTVectoriser.h.

template<typename FT_LIST_ITEM_TYPE >
unsigned int FTGL_EXPORT< FT_LIST_ITEM_TYPE >::padding [private]

A value to be added to the height and width to ensure that glyphs don't overlap in the texture.

Definition at line 127 of file FTGLTextureFont.h.

template<typename FT_LIST_ITEM_TYPE >
FTPoint FTGL_EXPORT< FT_LIST_ITEM_TYPE >::pen [private]

Current pen or cursor position;.

Definition at line 270 of file FTFont.h.

template<typename FT_LIST_ITEM_TYPE >
PointVector FTGL_EXPORT< FT_LIST_ITEM_TYPE >::pointList [private]

Definition at line 80 of file FTContour.h.

template<typename FT_LIST_ITEM_TYPE >
FTPoint FTGL_EXPORT< FT_LIST_ITEM_TYPE >::pos [private]

Vector from the pen position to the topleft corner of the pixmap.

Definition at line 71 of file FTTextureGlyph.h.

template<typename FT_LIST_ITEM_TYPE >
unsigned int FTGL_EXPORT< FT_LIST_ITEM_TYPE >::remGlyphs [private]

      

Definition at line 136 of file FTGLTextureFont.h.

template<typename FT_LIST_ITEM_TYPE >
unsigned int FTGL_EXPORT< FT_LIST_ITEM_TYPE >::size [private]

The size in points.

Definition at line 118 of file FTSize.h.

template<typename FT_LIST_ITEM_TYPE >
size_type FTGL_EXPORT< FT_LIST_ITEM_TYPE >::Size [private]

Definition at line 186 of file FTVector.h.

template<typename FT_LIST_ITEM_TYPE >
Node* FTGL_EXPORT< FT_LIST_ITEM_TYPE >::tail [private]

Definition at line 108 of file FTList.h.

template<typename FT_LIST_ITEM_TYPE >
PointList FTGL_EXPORT< FT_LIST_ITEM_TYPE >::tempPointList [private]

Holds extra points created by gluTesselator.

See ftglCombine.

Definition at line 155 of file FTVectoriser.h.

template<typename FT_LIST_ITEM_TYPE >
TesselationVector FTGL_EXPORT< FT_LIST_ITEM_TYPE >::tesselationList [private]

Holds each sub mesh that comprises this glyph.

Definition at line 150 of file FTVectoriser.h.

template<typename FT_LIST_ITEM_TYPE >
GLsizei FTGL_EXPORT< FT_LIST_ITEM_TYPE >::textureHeight [private]

The minimum texture height required to hold the glyphs.

Definition at line 106 of file FTGLTextureFont.h.

template<typename FT_LIST_ITEM_TYPE >
FTVector<GLuint> FTGL_EXPORT< FT_LIST_ITEM_TYPE >::textureIDList [private]

*An array of texture ids

Definition at line 111 of file FTGLTextureFont.h.

template<typename FT_LIST_ITEM_TYPE >
GLsizei FTGL_EXPORT< FT_LIST_ITEM_TYPE >::textureWidth [private]

The minimum texture width required to hold the glyphs.

Definition at line 101 of file FTGLTextureFont.h.

template<typename FT_LIST_ITEM_TYPE >
float FTGL_EXPORT< FT_LIST_ITEM_TYPE >::upperX

Definition at line 114 of file FTBBox.h.

template<typename FT_LIST_ITEM_TYPE >
float FTGL_EXPORT< FT_LIST_ITEM_TYPE >::upperY

Definition at line 114 of file FTBBox.h.

template<typename FT_LIST_ITEM_TYPE >
float FTGL_EXPORT< FT_LIST_ITEM_TYPE >::upperZ

Definition at line 114 of file FTBBox.h.

template<typename FT_LIST_ITEM_TYPE >
bool FTGL_EXPORT< FT_LIST_ITEM_TYPE >::useDisplayList [protected]

Flag to enable or disable the use of Display Lists inside FTGL true turns ON display lists.

false turns OFF display lists.

Definition at line 88 of file FTGlyph.h.

template<typename FT_LIST_ITEM_TYPE >
bool FTGL_EXPORT< FT_LIST_ITEM_TYPE >::useDisplayLists [protected]

Flag to enable or disable the use of Display Lists inside FTGL true turns ON display lists.

false turns OFF display lists.

Definition at line 246 of file FTFont.h.

template<typename FT_LIST_ITEM_TYPE >
FTPoint FTGL_EXPORT< FT_LIST_ITEM_TYPE >::uv[2] [private]

The texture co-ords of this glyph within the texture.

Definition at line 76 of file FTTextureGlyph.h.

template<typename FT_LIST_ITEM_TYPE >
FTGL_DOUBLE FTGL_EXPORT< FT_LIST_ITEM_TYPE >::values[3] [private]

The point data.

Definition at line 152 of file FTPoint.h.

template<typename FT_LIST_ITEM_TYPE >
GLfloat FTGL_EXPORT< FT_LIST_ITEM_TYPE >::width [private]

Definition at line 66 of file FTGLOutlineFont.h.

template<typename FT_LIST_ITEM_TYPE >
int FTGL_EXPORT< FT_LIST_ITEM_TYPE >::xOffset [private]

      

Definition at line 140 of file FTGLTextureFont.h.

template<typename FT_LIST_ITEM_TYPE >
unsigned int FTGL_EXPORT< FT_LIST_ITEM_TYPE >::xResolution [private]

The horizontal resolution.

Definition at line 123 of file FTSize.h.

template<typename FT_LIST_ITEM_TYPE >
int FTGL_EXPORT< FT_LIST_ITEM_TYPE >::yOffset [private]

      

Definition at line 144 of file FTGLTextureFont.h.

template<typename FT_LIST_ITEM_TYPE >
unsigned int FTGL_EXPORT< FT_LIST_ITEM_TYPE >::yResolution [private]

The vertical resolution.

Definition at line 128 of file FTSize.h.


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