#include <glyph.h>
Public Member Functions | |
Glyph ()=delete | |
~Glyph () | |
Glyph (const Glyph &other)=delete | |
Glyph & | operator= (const Glyph &)=delete |
Glyph (Glyph &&other)=delete | |
Glyph & | operator= (Glyph &&other)=delete |
uint | getIndex () const |
bool | isValid () |
int | getHorizontalAdvance () const |
int | getVerticalAdvance () const |
void * | getHandle () const |
Protected Member Functions | |
Glyph (void *handle, uint index) | |
Represents a symbol (character) in a font. This class wraps and manages 1 free-type Glyph character and is created by a FontInstance. The Glyph is destroyed when this object is destructed. Every Glyph can be represented using an IGLyphRepresentation. This allows for multiple interpretations of the same Glyph, for example a 2DTexture or 3Dmesh.
|
delete |
~Glyph | ( | ) |
Destructor, unloads and destroys the glyph if present
Only a font instance can create a glyph
handle | to the glyph in memory, should be of type FT_Glyph |
index | the index of the glyph in the font |
void* getHandle | ( | ) | const |
int getHorizontalAdvance | ( | ) | const |
int getVerticalAdvance | ( | ) | const |
bool isValid | ( | ) |