vdr-plugin-softhddevice-drm-gles 1.6.2
cOglFont Class Reference

OpenGL Representation of a VDR Font. More...

#include <openglosd.h>

Public Member Functions

virtual ~cOglFont (void)
 
cOglFontAtlasAtlas (void)
 
const charName (void)
 
int Size (void)
 
int Bottom (void)
 
int Height (void)
 
cOglGlyphGlyph (FT_ULong) const
 
int Kerning (cOglGlyph *glyph, FT_ULong prevSym) const
 

Static Public Member Functions

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

Private Member Functions

 cOglFont (const char *, int)
 

Static Private Member Functions

static void Init (void)
 

Private Attributes

cString m_name
 
int m_size
 
int m_height = 0
 
int m_bottom = 0
 
FT_Face m_face
 
cList< cOglGlyphm_glyphCache
 
cOglFontAtlasm_pAtlas
 

Static Private Attributes

static bool s_initiated = false
 
static FT_Library s_ftLib = 0
 
static cList< cOglFont > * s_pFonts = 0
 

Detailed Description

OpenGL Representation of a VDR Font.

Represents a OSD font (one per size and font family) using FreeType

Definition at line 191 of file openglosd.h.

Member Function Documentation

◆ Atlas()

cOglFontAtlas * cOglFont::Atlas ( void  )
inline

Definition at line 195 of file openglosd.h.

References m_pAtlas.

Referenced by cOglCmdDrawText::Execute().

◆ Bottom()

int cOglFont::Bottom ( void  )
inline

Definition at line 199 of file openglosd.h.

References m_bottom.

Referenced by cOglCmdDrawText::Execute().

◆ Height()

int cOglFont::Height ( void  )
inline

Definition at line 200 of file openglosd.h.

References m_height.

Referenced by cOglCmdDrawText::Execute().

◆ Name()

const char * cOglFont::Name ( void  )
inline

Definition at line 197 of file openglosd.h.

References m_name.

◆ Size()

int cOglFont::Size ( void  )
inline

Definition at line 198 of file openglosd.h.

References m_size.

Member Data Documentation

◆ m_bottom

int cOglFont::m_bottom = 0
private

Definition at line 211 of file openglosd.h.

Referenced by Bottom(), and cOglFont().

◆ m_face

FT_Face cOglFont::m_face
private

Definition at line 212 of file openglosd.h.

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

◆ m_glyphCache

cList<cOglGlyph> cOglFont::m_glyphCache
mutableprivate

Definition at line 213 of file openglosd.h.

Referenced by Glyph().

◆ m_height

int cOglFont::m_height = 0
private

Definition at line 210 of file openglosd.h.

Referenced by cOglFont(), and Height().

◆ m_name

cString cOglFont::m_name
private

Definition at line 208 of file openglosd.h.

Referenced by cOglFont(), and Name().

◆ m_pAtlas

cOglFontAtlas* cOglFont::m_pAtlas
private

Definition at line 214 of file openglosd.h.

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

◆ m_size

int cOglFont::m_size
private

Definition at line 209 of file openglosd.h.

Referenced by cOglFont(), and Size().


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