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

#include <openglosd.h>

Collaboration diagram for cOglFontAtlas:
Collaboration graph
[legend]

Public Member Functions

 cOglFontAtlas (FT_Face face, int height)
 
virtual ~cOglFontAtlas (void)
 
cOglAtlasGlyphGetGlyph (int sym) const
 
int FontHeight (void) const
 
int Height (void) const
 
int Width (void) const
 
void BindTexture (void)
 

Private Attributes

GLuint tex
 
int w
 
int h
 
int fontheight
 
cOglAtlasGlyphGlyph [MAX_CHARCODE - MIN_CHARCODE+1]
 

Detailed Description

Definition at line 207 of file openglosd.h.

Constructor & Destructor Documentation

◆ cOglFontAtlas()

cOglFontAtlas::cOglFontAtlas ( FT_Face  face,
int  height 
)

Definition at line 526 of file openglosd.cpp.

References fontheight, GL_CHECK, Glyph, h, L_OPENGL, LOGDEBUG2, LOGERROR, LOGWARNING, MAX_CHARCODE, MIN_CHARCODE, tex, and w.

◆ ~cOglFontAtlas()

cOglFontAtlas::~cOglFontAtlas ( void  )
virtual

Definition at line 696 of file openglosd.cpp.

References GL_CHECK, Glyph, MAX_CHARCODE, MIN_CHARCODE, and tex.

Member Function Documentation

◆ BindTexture()

void cOglFontAtlas::BindTexture ( void  )

Definition at line 715 of file openglosd.cpp.

References GL_CHECK, and tex.

Referenced by cOglCmdDrawText::Execute().

◆ FontHeight()

int cOglFontAtlas::FontHeight ( void  ) const
inline

Definition at line 218 of file openglosd.h.

References fontheight.

◆ GetGlyph()

cOglAtlasGlyph * cOglFontAtlas::GetGlyph ( int  sym) const

Definition at line 708 of file openglosd.cpp.

References Glyph, MAX_CHARCODE, and MIN_CHARCODE.

Referenced by cOglCmdDrawText::Execute().

◆ Height()

int cOglFontAtlas::Height ( void  ) const
inline

Definition at line 219 of file openglosd.h.

References h.

Referenced by cOglCmdDrawText::Execute().

◆ Width()

int cOglFontAtlas::Width ( void  ) const
inline

Definition at line 220 of file openglosd.h.

References w.

Referenced by cOglCmdDrawText::Execute().

Member Data Documentation

◆ fontheight

int cOglFontAtlas::fontheight
private

Definition at line 212 of file openglosd.h.

Referenced by cOglFontAtlas(), and FontHeight().

◆ Glyph

cOglAtlasGlyph* cOglFontAtlas::Glyph[MAX_CHARCODE - MIN_CHARCODE+1]
private

Definition at line 213 of file openglosd.h.

Referenced by cOglFontAtlas(), GetGlyph(), and ~cOglFontAtlas().

◆ h

int cOglFontAtlas::h
private

Definition at line 211 of file openglosd.h.

Referenced by cOglFontAtlas(), and Height().

◆ tex

GLuint cOglFontAtlas::tex
private

Definition at line 209 of file openglosd.h.

Referenced by BindTexture(), cOglFontAtlas(), and ~cOglFontAtlas().

◆ w

int cOglFontAtlas::w
private

Definition at line 210 of file openglosd.h.

Referenced by cOglFontAtlas(), and Width().


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