AaronCameron.net
I care not for your petty politics.
Not a Member? - Login or Create an Account
Sunday the 5th of February 2012 @ 05:01pm
Front Page Journal Projects Your Profile About
[]

LibN2L-4 Library Code Reference

Classes
Compounds
Files
Members
Method Index
Full Reference

n2l::cTextureFont Class Reference

An interface class providing a standard set of methods by which all executors must be accessable. More...

#include <cTextureFont.h>

Inheritance diagram for n2l::cTextureFont:

Inheritance graph
[legend]
Collaboration diagram for n2l::cTextureFont:

Collaboration graph
[legend]
List of all members.

Public Types

Public Member Functions

Static Public Attributes

Classes

  • class cCoordSetBase
    A class to hold the coordinates of a glyph in the passed surface.

Detailed Description

An interface class providing a standard set of methods by which all executors must be accessable.

Definition at line 47 of file cTextureFont.h.


Member Typedef Documentation

typedef std::map<tGlyphID,tCoordSet> n2l::cTextureFont::tCoordMap
 

Definition at line 75 of file cTextureFont.h.

typedef cCoordSetBase<tUint> n2l::cTextureFont::tCoordSet
 

Definition at line 74 of file cTextureFont.h.


Constructor & Destructor Documentation

n2l::cTextureFont::cTextureFont const cVfsNodeInterface iFile,
const tUint  iPtSize = 24
 

Definition at line 58 of file cTextureFont.cpp.

References buildGlyphs(), and MaxGlyphs.

n2l::cTextureFont::cTextureFont const cSurfaceInterface iSurface,
const tCoordMap iMap
 

Definition at line 71 of file cTextureFont.cpp.

References buildGlyphs(), and MaxGlyphs.

n2l::cTextureFont::cTextureFont const cTTFSurfaceFactory iFactory  ) 
 

Definition at line 82 of file cTextureFont.cpp.

References buildGlyphs(), and MaxGlyphs.

n2l::cTextureFont::~cTextureFont  )  [virtual]
 

Definition at line 92 of file cTextureFont.cpp.


Member Function Documentation

void n2l::cTextureFont::buildGlyphs const cTTFSurfaceFactory iFactory  ) 
 

Definition at line 168 of file cTextureFont.cpp.

References buildGlyphs(), n2l::cPixelFormat::Channel_Alpha, n2l::cPixelFormat::Channel_Blue, n2l::cPixelFormat::Channel_Green, n2l::cPixelFormat::Channel_Red, n2l::cSurfaceCommonImp::clearSurface(), n2l::cSurface::create(), n2l::cTTFSurfaceFactory::generate(), n2l::cTTFSurfaceFactory::glyphSize(), n2l::cSurface::literalCopyBlit(), n2l::cSurfaceCommonImp::mapRGB(), n2l::cSurfaceCommonImp::mapRGBA(), UndefinedGlyphID, and n2l::cVector2< TComponent, TComponentDiff, TMagnitude >::y().

void n2l::cTextureFont::buildGlyphs const cSurfaceInterface iSurface,
const tCoordMap iMap
 

Definition at line 100 of file cTextureFont.cpp.

References MaxGlyphs, and UndefinedGlyphID.

Referenced by buildGlyphs(), and cTextureFont().

const tVector2f n2l::cTextureFont::calcSize const tString iText,
const tFloat iGlyphHeight = 1.0f,
const tString::size_type  iStartPos = 0,
const tString::size_type  iLength = tString::npos
const [virtual]
 

Implements n2l::cFontInterface.

Definition at line 395 of file cTextureFont.cpp.

References n2l::n2lMin(), and n2l::cString::size().

void n2l::cTextureFont::draw const tVector2f iPos,
const tString iText,
const tFloat iGlyphHeight = 1.0f,
const tString::size_type  iStartPos = 0,
const tString::size_type  iLength = tString::npos
const [virtual]
 

Implements n2l::cFontInterface.

Definition at line 346 of file cTextureFont.cpp.

References n2l::n2l_min(), n2l::cString::size(), n2l::cVector2< TComponent, TComponentDiff, TMagnitude >::x(), and n2l::cVector2< TComponent, TComponentDiff, TMagnitude >::y().

void n2l::cTextureFont::draw const tString iText  )  const [virtual]
 

Implements n2l::cFontInterface.

Definition at line 306 of file cTextureFont.cpp.

References n2l::cString::size().

void n2l::cTextureFont::drawGlyph const tGlyphID  iGlyphID  )  const [virtual]
 

Definition at line 268 of file cTextureFont.cpp.

References MaxGlyphs.

const tFloat n2l::cTextureFont::glyphRowSeperation const tFloat iGlyphHeight = 1.0f  )  const [virtual]
 

Implements n2l::cFontInterface.

Definition at line 424 of file cTextureFont.cpp.

const tFloat n2l::cTextureFont::glyphSeperation const tFloat iGlyphHeight = 1.0f  )  const [virtual]
 

Implements n2l::cFontInterface.

Definition at line 417 of file cTextureFont.cpp.

const tFloat n2l::cTextureFont::glyphWidth const tGlyphID  iGlyphID,
const tFloat iGlyphHeight = 1.0f
const [virtual]
 

Implements n2l::cFontInterface.

Definition at line 410 of file cTextureFont.cpp.


Member Data Documentation

const tUint n2l::cTextureFont::MaxGlyphs = 255 [static]
 

Definition at line 77 of file cTextureFont.h.

Referenced by buildGlyphs(), cTextureFont(), and drawGlyph().

const tGlyphID n2l::cTextureFont::UndefinedGlyphID = 0 [static]
 

Definition at line 78 of file cTextureFont.h.

Referenced by buildGlyphs().


The documentation for this class was generated from the following files:
©2012 Aaron Cameron