vdr-plugin-softhddevice-drm-gles 1.4.0
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
cOglFont Class Reference

#include <openglosd.h>

Collaboration diagram for cOglFont:
Collaboration graph
[legend]

Public Member Functions

virtual ~cOglFont (void)
 
cOglFontAtlasAtlas (void)
 
const char * Name (void)
 
int Size (void)
 
int Bottom (void)
 
int Height (void)
 
cOglGlyphGlyph (FT_ULong charCode) const
 
int Kerning (cOglGlyph *glyph, FT_ULong prevSym) const
 
int AtlasKerning (cOglAtlasGlyph *glyph, FT_ULong prevSym) const
 

Static Public Member Functions

static cOglFontGet (const char *name, int charHeight)
 
static void Cleanup (void)
 

Private Member Functions

 cOglFont (const char *fontName, int charHeight)
 

Static Private Member Functions

static void Init (void)
 

Private Attributes

cString name
 
int size
 
int height
 
int bottom
 
FT_Face face
 
cList< cOglGlyphglyphCache
 
cOglFontAtlasatlas
 

Static Private Attributes

static bool initiated = false
 
static FT_Library ftLib = 0
 
static cList< cOglFont > * fonts = 0
 

Detailed Description

Definition at line 227 of file openglosd.h.

Constructor & Destructor Documentation

◆ cOglFont()

cOglFont::cOglFont ( const char *  fontName,
int  charHeight 
)
private

Definition at line 726 of file openglosd.cpp.

References atlas, bottom, face, ftLib, height, L_OPENGL, LOGDEBUG2, LOGERROR, name, and size.

Referenced by Get().

◆ ~cOglFont()

cOglFont::~cOglFont ( void  )
virtual

Definition at line 758 of file openglosd.cpp.

References atlas, and face.

Member Function Documentation

◆ Atlas()

cOglFontAtlas * cOglFont::Atlas ( void  )
inline

Definition at line 244 of file openglosd.h.

References atlas.

Referenced by cOglCmdDrawText::Execute().

◆ AtlasKerning()

int cOglFont::AtlasKerning ( cOglAtlasGlyph glyph,
FT_ULong  prevSym 
) const

◆ Bottom()

int cOglFont::Bottom ( void  )
inline

Definition at line 248 of file openglosd.h.

References bottom.

Referenced by cOglCmdDrawText::Execute().

◆ Cleanup()

void cOglFont::Cleanup ( void  )
static

Definition at line 786 of file openglosd.cpp.

References fonts, ftLib, initiated, and LOGERROR.

Referenced by cOglThread::Cleanup().

◆ Get()

cOglFont * cOglFont::Get ( const char *  name,
int  charHeight 
)
static

Definition at line 763 of file openglosd.cpp.

References cOglFont(), fonts, Init(), name, Name(), and Size().

Referenced by cOglCmdDrawText::Execute().

◆ Glyph()

cOglGlyph * cOglFont::Glyph ( FT_ULong  charCode) const

Definition at line 797 of file openglosd.cpp.

References code, face, FT_Errors, ftLib, Glyph(), glyphCache, LOGERROR, and message.

Referenced by cOglCmdDrawText::Execute(), and Glyph().

◆ Height()

int cOglFont::Height ( void  )
inline

Definition at line 249 of file openglosd.h.

References height.

Referenced by cOglCmdDrawText::Execute().

◆ Init()

void cOglFont::Init ( void  )
staticprivate

Definition at line 777 of file openglosd.cpp.

References fonts, ftLib, initiated, and LOGERROR.

Referenced by Get().

◆ Kerning()

int cOglFont::Kerning ( cOglGlyph glyph,
FT_ULong  prevSym 
) const

◆ Name()

const char * cOglFont::Name ( void  )
inline

Definition at line 246 of file openglosd.h.

References name.

Referenced by Get().

◆ Size()

int cOglFont::Size ( void  )
inline

Definition at line 247 of file openglosd.h.

References size.

Referenced by Get().

Member Data Documentation

◆ atlas

cOglFontAtlas* cOglFont::atlas
private

Definition at line 240 of file openglosd.h.

Referenced by Atlas(), cOglFont(), and ~cOglFont().

◆ bottom

int cOglFont::bottom
private

Definition at line 233 of file openglosd.h.

Referenced by Bottom(), and cOglFont().

◆ face

FT_Face cOglFont::face
private

Definition at line 235 of file openglosd.h.

Referenced by AtlasKerning(), cOglFont(), Glyph(), Kerning(), and ~cOglFont().

◆ fonts

cList< cOglFont > * cOglFont::fonts = 0
staticprivate

Definition at line 236 of file openglosd.h.

Referenced by Cleanup(), Get(), and Init().

◆ ftLib

FT_Library cOglFont::ftLib = 0
staticprivate

Definition at line 234 of file openglosd.h.

Referenced by Cleanup(), cOglFont(), Glyph(), and Init().

◆ glyphCache

cList<cOglGlyph> cOglFont::glyphCache
mutableprivate

Definition at line 237 of file openglosd.h.

Referenced by Glyph().

◆ height

int cOglFont::height
private

Definition at line 232 of file openglosd.h.

Referenced by cOglFont(), and Height().

◆ initiated

bool cOglFont::initiated = false
staticprivate

Definition at line 229 of file openglosd.h.

Referenced by Cleanup(), and Init().

◆ name

cString cOglFont::name
private

Definition at line 230 of file openglosd.h.

Referenced by cOglFont(), Get(), and Name().

◆ size

int cOglFont::size
private

Definition at line 231 of file openglosd.h.

Referenced by cOglFont(), and Size().


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