Public Member Functions | Public Attributes | List of all members
cpp3ds::Glyph Class Reference

Structure describing a glyph. More...

#include <Glyph.hpp>

Public Member Functions

 Glyph ()
 Default constructor. More...
 

Public Attributes

int advance
 Offset to move horizontically to the next character. More...
 
IntRect bounds
 Bounding rectangle of the glyph, in coordinates relative to the baseline. More...
 
IntRect textureRect
 Texture coordinates of the glyph inside the font's texture. More...
 

Detailed Description

Structure describing a glyph.

A glyph is the visual representation of a character.

The cpp3ds::Glyph structure provides the information needed to handle the glyph:

See also
cpp3ds::Font

Definition at line 40 of file Glyph.hpp.

Constructor & Destructor Documentation

cpp3ds::Glyph::Glyph ( )
inline

Default constructor.

Definition at line 48 of file Glyph.hpp.

Member Data Documentation

int cpp3ds::Glyph::advance

Offset to move horizontically to the next character.

Definition at line 53 of file Glyph.hpp.

IntRect cpp3ds::Glyph::bounds

Bounding rectangle of the glyph, in coordinates relative to the baseline.

Definition at line 54 of file Glyph.hpp.

IntRect cpp3ds::Glyph::textureRect

Texture coordinates of the glyph inside the font's texture.

Definition at line 55 of file Glyph.hpp.


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