FTPixmapGlyph Class Reference

#include <FTPixmapGlyph.h>

Inheritance diagram for FTPixmapGlyph:

FTGlyph FTGlyph List of all members.

Public Member Functions

 FTPixmapGlyph (FT_GlyphSlot glyph)
virtual ~FTPixmapGlyph ()
virtual const FTPointRender (const FTPoint &pen)
 FTPixmapGlyph (FT_GlyphSlot glyph)
virtual ~FTPixmapGlyph ()
virtual const FTPointRender (const FTPoint &pen)

Private Attributes

int destWidth
int destHeight
FTPoint pos
unsigned char * data
unsigned char * data

Detailed Description

FTPixmapGlyph is a specialisation of FTGlyph for creating pixmaps.

See also:
FTGlyphContainer

Definition at line 19 of file FTPixmapGlyph.h.


Constructor & Destructor Documentation

FTPixmapGlyph::FTPixmapGlyph ( FT_GlyphSlot  glyph  ) 

Constructor

Parameters:
glyph The Freetype glyph to be processed

Definition at line 3 of file FTPixmapGlyph.cxx.

References FT_GlyphSlotRec_::bitmap, FT_GlyphSlotRec_::bitmap_left, FT_GlyphSlotRec_::bitmap_top, FT_Bitmap_::buffer, data, destHeight, destWidth, FTGlyph::err, FT_GlyphSlotRec_::format, ft_glyph_format_bitmap, FT_Render_Glyph(), FT_RENDER_MODE_NORMAL, pos, FT_Bitmap_::rows, size_t, FT_Bitmap_::width, FTPoint::X(), x, y, and FTPoint::Y().

FTPixmapGlyph::~FTPixmapGlyph (  )  [virtual]

Destructor

Definition at line 52 of file FTPixmapGlyph.cxx.

References data.

FTPixmapGlyph::FTPixmapGlyph ( FT_GlyphSlot  glyph  ) 

Constructor

Parameters:
glyph The Freetype glyph to be processed

virtual FTPixmapGlyph::~FTPixmapGlyph (  )  [virtual]

Destructor


Member Function Documentation

const FTPoint & FTPixmapGlyph::Render ( const FTPoint pen  )  [virtual]

Renders this glyph at the current pen position.

Parameters:
pen The current pen position.
Returns:
The advance distance for this glyph.

Implements FTGlyph.

Definition at line 58 of file FTPixmapGlyph.cxx.

References FTGlyph::advance, data, destHeight, destWidth, GL_LUMINANCE_ALPHA, GL_UNPACK_ALIGNMENT, GL_UNPACK_ROW_LENGTH, GL_UNSIGNED_BYTE, glBitmap(), glDrawPixels(), glPixelStorei(), pos, FTPoint::X(), and FTPoint::Y().

virtual const FTPoint& FTPixmapGlyph::Render ( const FTPoint pen  )  [virtual]

Renders this glyph at the current pen position.

Parameters:
pen The current pen position.
Returns:
The advance distance for this glyph.

Implements FTGlyph.


Member Data Documentation

int FTPixmapGlyph::destWidth [private]

The width of the glyph 'image'

Definition at line 48 of file FTPixmapGlyph.h.

Referenced by FTPixmapGlyph(), and Render().

int FTPixmapGlyph::destHeight [private]

The height of the glyph 'image'

Definition at line 53 of file FTPixmapGlyph.h.

Referenced by FTPixmapGlyph(), and Render().

FTPoint FTPixmapGlyph::pos [private]

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

Definition at line 58 of file FTPixmapGlyph.h.

Referenced by FTPixmapGlyph(), and Render().

unsigned char* FTPixmapGlyph::data [private]

Pointer to the 'image' data

Definition at line 63 of file FTPixmapGlyph.h.

Referenced by FTPixmapGlyph(), Render(), and ~FTPixmapGlyph().

unsigned char* FTPixmapGlyph::data [private]

Pointer to the 'image' data

Definition at line 63 of file FTPixmapGlyph.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:25:33 2011 for ROOT_528-00b_version by  doxygen 1.5.1