Josh's Graphics Library
JGL::CachedFont Class Reference

Represents a Font object as it exists in the font-cache. More...

#include <FontCache.h>

Public Member Functions

void appendGlyph (CachedGlyph *glyph)
 
unsigned int getFontSize () const
 
unsigned int getFontIndex () const
 
CachedGlyphgetGlyph (char c)
 
std::unordered_map< char, CachedGlyph * > getGlyphs ()
 
const GLuint * getTextureHandle ()
 
GLsizei getTextureWidth () const
 
GLsizei getTextureHeight () const
 
 CachedFont (GLuint texture_id, GLsizei texture_width, GLsizei texture_height, unsigned int font_size, unsigned int font_index)
 
 ~CachedFont ()
 

Detailed Description

Represents a Font object as it exists in the font-cache.

Constructor & Destructor Documentation

◆ CachedFont()

CachedFont::CachedFont ( GLuint  texture_id,
GLsizei  texture_width,
GLsizei  texture_height,
unsigned int  font_size,
unsigned int  font_index 
)

◆ ~CachedFont()

CachedFont::~CachedFont ( )

Member Function Documentation

◆ appendGlyph()

void JGL::CachedFont::appendGlyph ( JGL::CachedGlyph glyph)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getFontIndex()

unsigned int JGL::CachedFont::getFontIndex ( ) const

◆ getFontSize()

unsigned int JGL::CachedFont::getFontSize ( ) const

◆ getGlyph()

CachedGlyph * JGL::CachedFont::getGlyph ( char  c)
Here is the caller graph for this function:

◆ getGlyphs()

std::unordered_map< char, CachedGlyph * > CachedFont::getGlyphs ( )

◆ getTextureHandle()

const GLuint * CachedFont::getTextureHandle ( )
Here is the caller graph for this function:

◆ getTextureHeight()

GLsizei CachedFont::getTextureHeight ( ) const
Here is the caller graph for this function:

◆ getTextureWidth()

GLsizei CachedFont::getTextureWidth ( ) const
Here is the caller graph for this function:

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