Guiliani  Version 2.6 revision 7293 (documentation build 12)
CFntWrapGlyphLibGLFontAtlas Class Reference

#include <FntWrapGlyphLibGLFontAtlas.h>

Inheritance diagram for CFntWrapGlyphLibGLFontAtlas:

Public Member Functions

 CFntWrapGlyphLibGLFontAtlas (const FontResource_t &reFontID, const eC_UInt &uiNumberOfRows, gui_font_t *pkFont)
 
virtual ~CFntWrapGlyphLibGLFontAtlas ()
 
virtual void * GetFace ()
 
- Public Member Functions inherited from CFntWrapGLFontAtlas
 CFntWrapGLFontAtlas (const FontResource_t &reFontID, const eC_UInt &uiNumberOfRows)
 
virtual ~CFntWrapGLFontAtlas ()
 
eC_Int GetAscender () const
 
FontAtlasRecord_t GetChar (const eC_UInt &uiUnicode)
 
eC_Int GetDescender () const
 
virtual void * GetFace ()=0
 
eC_Int GetHeight () const
 
eC_Int GetInternalLeading () const
 
eC_UInt GetTextureHeight () const
 
eC_UInt GetTextureID () const
 
eC_UInt GetTextureWidth () const
 

Protected Member Functions

virtual FontAtlasRecord_t AddGlyph (const eC_UInt &uiUnicode)
 
- Protected Member Functions inherited from CFntWrapGLFontAtlas
virtual FontAtlasRecord_t AddGlyph (const eC_UInt &uiUnicode)=0
 
eC_UInt CreateTexture (const eC_Int &iTextureWidth, const eC_Int &iTextureHeight, const eC_UInt &uiLastTextureID=0)
 
void DeleteTexture (const eC_UInt &uiTextureID)
 
eC_UInt InsertGlyphInformation (const eC_UInt &uiUnicode, const eC_UInt &uiWidth, const eC_Int &iGlyphXPos, const eC_Int &iGlyphYPos, const eC_Int &iGlyphWidth, const eC_Int &iGlyphHeight, const eC_UInt &uiXPos, const eC_UInt &uiYPos)
 

Additional Inherited Members

- Protected Attributes inherited from CFntWrapGLFontAtlas
eC_TArray< FontAtlasRecord_tm_asGlyphCache
 The dynamic cache array.
 
eC_Bool m_bArrayNeedsSorting
 Flag indicating that the internal array of stored characters needs to be sorted.
 
FontResource_t m_eFontID
 id of loaded font
 
eC_Int m_iAscender
 ascender
 
eC_Int m_iDescender
 descender
 
eC_Int m_iFontHeight
 height of font
 
eC_Int m_iFontWidth
 width of font
 
eC_Int m_iInternalLeading
 internal leading
 
eC_UInt m_uiCurrentFillRow
 current row for new characters
 
eC_UInt m_uiNumberOfCachedGlyphs
 number of cached glyphs
 
eC_UInt m_uiRemainingSpace
 remaining pixels of storage for current row
 
eC_UInt m_uiTextureHeight
 height of generated texture
 
eC_UInt m_uiTextureID
 texture-id for the atlas
 
eC_UInt m_uiTextureWidth
 width of generated texture
 
eC_UInt m_uiTotalNumberOfRows
 number of rows which can be used for storage
 

Detailed Description

This class is used by FntWrapFreeTypeGL. It stores the texture-atlas information for one Font.

Constructor & Destructor Documentation

◆ CFntWrapGlyphLibGLFontAtlas()

CFntWrapGlyphLibGLFontAtlas::CFntWrapGlyphLibGLFontAtlas ( const FontResource_t reFontID,
const eC_UInt &  uiNumberOfRows,
gui_font_t *  pkFont 
)

Constructor

Parameters
reFontIDID of selected font.
uiNumberOfRowsInitial number of rows for the texture atlas.
pkFontPointer of initialized FreeType library.

◆ ~CFntWrapGlyphLibGLFontAtlas()

virtual CFntWrapGlyphLibGLFontAtlas::~CFntWrapGlyphLibGLFontAtlas ( )
virtual

Destructor

Member Function Documentation

◆ AddGlyph()

virtual FontAtlasRecord_t CFntWrapGlyphLibGLFontAtlas::AddGlyph ( const eC_UInt &  uiUnicode)
protectedvirtual

Adds a character to the cache array and sorts array afterwards.

Parameters
uiUnicodeUnicode to add to array.
Returns
Struct of just added character.

Implements CFntWrapGLFontAtlas.

◆ GetFace()

virtual void * CFntWrapGlyphLibGLFontAtlas::GetFace ( )
inlinevirtual

Returns the handle of this font

Returns
this font's handle.

Implements CFntWrapGLFontAtlas.


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