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

Glyph on a Texture Atlas. More...

#include <openglosd.h>

Public Member Functions

 cOglAtlasGlyph (FT_ULong charCode, FT_BitmapGlyph ftGlyph, float offsetX, float offsetY)
 
int AdvanceY (void)
 
float OffsetX (void) const
 
float OffsetY (void) const
 
- Public Member Functions inherited from cOglGlyph
 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)
 

Private Attributes

int m_advanceY
 
float m_offsetX
 
float m_offsetY
 

Additional Inherited Members

- Protected Attributes inherited from cOglGlyph
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

Glyph on a Texture Atlas.

A glyph of a font-atlas (texture-atlas) needs some more infos like offset on the texture

Definition at line 139 of file openglosd.h.

Constructor & Destructor Documentation

◆ cOglAtlasGlyph()

cOglAtlasGlyph::cOglAtlasGlyph ( FT_ULong  charCode,
FT_BitmapGlyph  ftGlyph,
float  offsetX,
float  offsetY 
)
inline

Definition at line 141 of file openglosd.h.

Member Function Documentation

◆ AdvanceY()

int cOglAtlasGlyph::AdvanceY ( void  )
inline

Definition at line 147 of file openglosd.h.

References m_advanceY.

◆ OffsetX()

float cOglAtlasGlyph::OffsetX ( void  ) const
inline

Definition at line 148 of file openglosd.h.

References m_offsetX.

◆ OffsetY()

float cOglAtlasGlyph::OffsetY ( void  ) const
inline

Definition at line 149 of file openglosd.h.

References m_offsetY.

Member Data Documentation

◆ m_advanceY

int cOglAtlasGlyph::m_advanceY
private

Definition at line 151 of file openglosd.h.

Referenced by AdvanceY().

◆ m_offsetX

float cOglAtlasGlyph::m_offsetX
private

Definition at line 152 of file openglosd.h.

Referenced by OffsetX().

◆ m_offsetY

float cOglAtlasGlyph::m_offsetY
private

Definition at line 153 of file openglosd.h.

Referenced by OffsetY().


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