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

#include <openglosd.h>

Collaboration diagram for cOglGlyph:
Collaboration graph
[legend]

Classes

struct  tKerning
 

Public Member Functions

 cOglGlyph (FT_ULong charCode, FT_BitmapGlyph ftGlyph)
 
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 prevSym)
 
void SetKerningCache (FT_ULong prevSym, int kerning)
 
void BindTexture (void)
 

Private Member Functions

void LoadTexture (FT_BitmapGlyph ftGlyph)
 

Private Attributes

FT_ULong charCode
 
int bearingLeft
 
int bearingTop
 
int width
 
int height
 
int advanceX
 
cVector< tKerningkerningCache
 
GLuint texture
 

Detailed Description

Definition at line 128 of file openglosd.h.

Constructor & Destructor Documentation

◆ cOglGlyph()

cOglGlyph::cOglGlyph ( FT_ULong  charCode,
FT_BitmapGlyph  ftGlyph 
)

Definition at line 430 of file openglosd.cpp.

References advanceX, bearingLeft, bearingTop, charCode, height, LoadTexture(), and width.

◆ ~cOglGlyph()

cOglGlyph::~cOglGlyph ( void  )
virtual

Definition at line 440 of file openglosd.cpp.

References GL_CHECK, and texture.

Member Function Documentation

◆ AdvanceX()

int cOglGlyph::AdvanceX ( void  )
inline

Definition at line 152 of file openglosd.h.

References advanceX.

Referenced by cOglCmdDrawText::Execute().

◆ BearingLeft()

int cOglGlyph::BearingLeft ( void  ) const
inline

Definition at line 153 of file openglosd.h.

References bearingLeft.

Referenced by cOglCmdDrawText::Execute().

◆ BearingTop()

int cOglGlyph::BearingTop ( void  ) const
inline

Definition at line 154 of file openglosd.h.

References bearingTop.

Referenced by cOglCmdDrawText::Execute().

◆ BindTexture()

void cOglGlyph::BindTexture ( void  )

Definition at line 457 of file openglosd.cpp.

References GL_CHECK, and texture.

Referenced by cOglCmdDrawText::Execute().

◆ CharCode()

FT_ULong cOglGlyph::CharCode ( void  )
inline

Definition at line 151 of file openglosd.h.

References charCode.

Referenced by cOglFont::Kerning().

◆ GetKerningCache()

int cOglGlyph::GetKerningCache ( FT_ULong  prevSym)

Definition at line 445 of file openglosd.cpp.

References KERNING_UNKNOWN, and kerningCache.

Referenced by cOglFont::Kerning().

◆ Height()

int cOglGlyph::Height ( void  ) const
inline

Definition at line 156 of file openglosd.h.

References height.

Referenced by cOglCmdDrawText::Execute().

◆ LoadTexture()

void cOglGlyph::LoadTexture ( FT_BitmapGlyph  ftGlyph)
private

Definition at line 461 of file openglosd.cpp.

References GL_CHECK, and texture.

Referenced by cOglGlyph().

◆ SetKerningCache()

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

Definition at line 453 of file openglosd.cpp.

References kerningCache.

Referenced by cOglFont::Kerning().

◆ Width()

int cOglGlyph::Width ( void  ) const
inline

Definition at line 155 of file openglosd.h.

References width.

Referenced by cOglCmdDrawText::Execute().

Member Data Documentation

◆ advanceX

int cOglGlyph::advanceX
private

Definition at line 144 of file openglosd.h.

Referenced by AdvanceX(), and cOglGlyph().

◆ bearingLeft

int cOglGlyph::bearingLeft
private

Definition at line 140 of file openglosd.h.

Referenced by BearingLeft(), and cOglGlyph().

◆ bearingTop

int cOglGlyph::bearingTop
private

Definition at line 141 of file openglosd.h.

Referenced by BearingTop(), and cOglGlyph().

◆ charCode

FT_ULong cOglGlyph::charCode
private

Definition at line 139 of file openglosd.h.

Referenced by CharCode(), and cOglGlyph().

◆ height

int cOglGlyph::height
private

Definition at line 143 of file openglosd.h.

Referenced by cOglGlyph(), and Height().

◆ kerningCache

cVector<tKerning> cOglGlyph::kerningCache
private

Definition at line 145 of file openglosd.h.

Referenced by GetKerningCache(), and SetKerningCache().

◆ texture

GLuint cOglGlyph::texture
private

Definition at line 146 of file openglosd.h.

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

◆ width

int cOglGlyph::width
private

Definition at line 142 of file openglosd.h.

Referenced by cOglGlyph(), and Width().


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