vdr-plugin-softhddevice-drm-gles 1.6.4-d0291bb
cOglGlyph Class Reference

OpenGL OSD Glyph of a Font. More...

#include <openglosd.h>

Classes

struct  tKerning
 

Public Member Functions

 cOglGlyph (FT_ULong, FT_BitmapGlyph)
 
virtual ~cOglGlyph ()
 
FT_ULong CharCode (void)
 
int AdvanceX (void)
 
int BearingLeft (void) const
 
int BearingTop (void) const
 
int Width (void) const
 
int Height (void) const
 
int GetKerningCache (FT_ULong)
 
void SetKerningCache (FT_ULong, int)
 
void LoadTexture (void)
 
void BindTexture (void)
 

Protected Attributes

FT_ULong m_charCode
 
int m_bearingLeft
 
int m_bearingTop
 
int m_width
 
int m_height
 
unsigned charm_pBuffer
 
int m_advanceX
 
cVector< tKerningm_pKerningCache
 
GLuint m_texture = 0
 

Detailed Description

OpenGL OSD Glyph of a Font.

Definition at line 103 of file openglosd.h.

Constructor & Destructor Documentation

◆ cOglGlyph()

cOglGlyph::cOglGlyph ( FT_ULong  charCode,
FT_BitmapGlyph  ftGlyph 
)

Definition at line 222 of file openglosd.cpp.

◆ ~cOglGlyph()

cOglGlyph::~cOglGlyph ( void  )
virtual

Definition at line 233 of file openglosd.cpp.

References GL_CHECK, and m_texture.

Member Function Documentation

◆ AdvanceX()

int cOglGlyph::AdvanceX ( void  )
inline

Definition at line 109 of file openglosd.h.

References m_advanceX.

◆ BearingLeft()

int cOglGlyph::BearingLeft ( void  ) const
inline

Definition at line 110 of file openglosd.h.

References m_bearingLeft.

◆ BearingTop()

int cOglGlyph::BearingTop ( void  ) const
inline

Definition at line 111 of file openglosd.h.

References m_bearingTop.

◆ BindTexture()

void cOglGlyph::BindTexture ( void  )

Definition at line 253 of file openglosd.cpp.

References GL_CHECK, and m_texture.

◆ CharCode()

FT_ULong cOglGlyph::CharCode ( void  )
inline

Definition at line 108 of file openglosd.h.

References m_charCode.

◆ GetKerningCache()

int cOglGlyph::GetKerningCache ( FT_ULong  prevSym)

Definition at line 239 of file openglosd.cpp.

References KERNING_UNKNOWN, and m_pKerningCache.

◆ Height()

int cOglGlyph::Height ( void  ) const
inline

Definition at line 113 of file openglosd.h.

References m_height.

◆ LoadTexture()

void cOglGlyph::LoadTexture ( void  )

Definition at line 258 of file openglosd.cpp.

References GL_CHECK, m_height, m_pBuffer, m_texture, and m_width.

◆ SetKerningCache()

void cOglGlyph::SetKerningCache ( FT_ULong  prevSym,
int  kerning 
)

Definition at line 248 of file openglosd.cpp.

References m_pKerningCache.

◆ Width()

int cOglGlyph::Width ( void  ) const
inline

Definition at line 112 of file openglosd.h.

References m_width.

Member Data Documentation

◆ m_advanceX

int cOglGlyph::m_advanceX
protected

Definition at line 134 of file openglosd.h.

Referenced by AdvanceX().

◆ m_bearingLeft

int cOglGlyph::m_bearingLeft
protected

Definition at line 129 of file openglosd.h.

Referenced by BearingLeft().

◆ m_bearingTop

int cOglGlyph::m_bearingTop
protected

Definition at line 130 of file openglosd.h.

Referenced by BearingTop().

◆ m_charCode

FT_ULong cOglGlyph::m_charCode
protected

Definition at line 128 of file openglosd.h.

Referenced by CharCode().

◆ m_height

int cOglGlyph::m_height
protected

Definition at line 132 of file openglosd.h.

Referenced by Height(), and LoadTexture().

◆ m_pBuffer

unsigned char* cOglGlyph::m_pBuffer
protected

Definition at line 133 of file openglosd.h.

Referenced by LoadTexture().

◆ m_pKerningCache

cVector<tKerning> cOglGlyph::m_pKerningCache
protected

Definition at line 135 of file openglosd.h.

Referenced by GetKerningCache(), and SetKerningCache().

◆ m_texture

GLuint cOglGlyph::m_texture = 0
protected

Definition at line 136 of file openglosd.h.

Referenced by BindTexture(), LoadTexture(), and ~cOglGlyph().

◆ m_width

int cOglGlyph::m_width
protected

Definition at line 131 of file openglosd.h.

Referenced by LoadTexture(), and Width().


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