#include <Glyph.hpp>
◆ Glyph()
castor::Glyph::Glyph |
( |
char32_t | c, |
|
|
Point2f const & | size, |
|
|
Point2f const & | bearing, |
|
|
float | advance, |
|
|
Size const & | bitmapSize, |
|
|
ByteArray const & | bitmap ) |
|
inline |
Constructor.
- Parameters
-
[in] | c | The glyph character. |
[in] | size | The glyph dimensions. |
[in] | bearing | The glyph position relative to cursor. |
[in] | advance | Pixels to advance in order to go next character. |
[in] | bitmapSize | The bitmap dimensions. |
[in] | bitmap | The glyph image. |
◆ getAdvance()
float castor::Glyph::getAdvance |
( |
| ) |
const |
|
inline |
- Returns
- The number of pixels to go before drawing next glyph.
◆ getBearing()
Point2f const & castor::Glyph::getBearing |
( |
| ) |
const |
|
inline |
- Returns
- The glyph position relative to cursor.
◆ getBitmap()
ByteArray const & castor::Glyph::getBitmap |
( |
| ) |
const |
|
inline |
- Returns
- The image of the glyph.
◆ getBitmapSize()
Size const & castor::Glyph::getBitmapSize |
( |
| ) |
const |
|
inline |
- Returns
- The glyph image dimensions.
◆ getCharacter()
char32_t castor::Glyph::getCharacter |
( |
| ) |
const |
|
inline |
- Returns
- The glyph character.
◆ getSize()
Point2f const & castor::Glyph::getSize |
( |
| ) |
const |
|
inline |
- Returns
- The glyph dimensions.
The documentation for this class was generated from the following file: