Josh's Graphics Library
JGL::CachedGlyph Class Reference

Represents a single font-character "glyph", that has been cached in-memory for fast retrieval. More...

#include <FontCache.h>

Public Member Functions

 CachedGlyph (char c, std::array< GLfloat, 12 > texcoords, float x2o, float y2o, float w, float h, float advX, float advY)
 
char getCharacter () const
 
std::array< GLfloat, 12 > getTexCoords () const
 

Public Attributes

int x2offset = 0
 
int y2offset = 0
 
int w = 0
 
int h = 0
 
float advanceX = 0
 
float advanceY = 0
 

Detailed Description

Represents a single font-character "glyph", that has been cached in-memory for fast retrieval.

Constructor & Destructor Documentation

◆ CachedGlyph()

CachedGlyph::CachedGlyph ( char  c,
std::array< GLfloat, 12 >  texcoords,
float  x2o,
float  y2o,
float  w,
float  h,
float  advX,
float  advY 
)

Member Function Documentation

◆ getCharacter()

char CachedGlyph::getCharacter ( ) const
Here is the caller graph for this function:

◆ getTexCoords()

std::array< GLfloat, 12 > CachedGlyph::getTexCoords ( ) const
Here is the caller graph for this function:

Member Data Documentation

◆ advanceX

float JGL::CachedGlyph::advanceX = 0

◆ advanceY

float JGL::CachedGlyph::advanceY = 0

◆ h

int JGL::CachedGlyph::h = 0

◆ w

int JGL::CachedGlyph::w = 0

◆ x2offset

int JGL::CachedGlyph::x2offset = 0

◆ y2offset

int JGL::CachedGlyph::y2offset = 0

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