Visualization Library v1.0.3A lightweight C++ OpenGL middleware for 2D/3D graphics |
[Download] [Tutorials] [All Classes] [Grouped Classes] |
The Glyph associated to a character of a given Font. More...
#include <Font.hpp>
Public Member Functions | |
Glyph () | |
~Glyph () | |
unsigned int | textureHandle () const |
void | setTextureHandle (unsigned int handle) |
int | width () const |
void | setWidth (int width) |
int | height () const |
void | setHeight (int height) |
int | left () const |
void | setLeft (int left) |
int | top () const |
void | setTop (int top) |
float | s0 () const |
void | setS0 (float s0) |
float | t0 () const |
void | setT0 (float t0) |
float | s1 () const |
void | setS1 (float s1) |
float | t1 () const |
void | setT1 (float t1) |
const fvec2 & | advance () const |
void | setAdvance (const fvec2 &advance) |
unsigned int | glyphIndex () const |
void | setGlyphIndex (unsigned int glyph_index) |
const Font * | font () const |
void | setFont (Font *font) |
Protected Attributes | |
Font * | mFont |
fvec2 | mAdvance |
float | mS0 |
float | mT0 |
float | mS1 |
float | mT1 |
unsigned int | mGlyphIndex |
unsigned int | mTextureHandle |
int | mWidth |
int | mHeight |
int | mLeft |
int | mTop |
The Glyph associated to a character of a given Font.
Definition at line 55 of file Font.hpp.
vl::Glyph::~Glyph | ( | ) |
unsigned int vl::Glyph::textureHandle | ( | ) | const [inline] |
Definition at line 71 of file Font.hpp.
References mTextureHandle.
Referenced by vl::Text::renderText(), and vl::CoreText::renderText().
void vl::Glyph::setTextureHandle | ( | unsigned int | handle ) | [inline] |
Definition at line 72 of file Font.hpp.
References mTextureHandle.
int vl::Glyph::width | ( | ) | const [inline] |
Definition at line 74 of file Font.hpp.
References mWidth.
Referenced by vl::Text::renderText(), vl::CoreText::renderText(), and setWidth().
void vl::Glyph::setWidth | ( | int | width ) | [inline] |
int vl::Glyph::height | ( | ) | const [inline] |
Definition at line 77 of file Font.hpp.
References mHeight.
Referenced by vl::Text::renderText(), vl::CoreText::renderText(), and setHeight().
void vl::Glyph::setHeight | ( | int | height ) | [inline] |
int vl::Glyph::left | ( | ) | const [inline] |
Definition at line 80 of file Font.hpp.
References mLeft.
Referenced by vl::Text::renderText(), vl::CoreText::renderText(), and setLeft().
void vl::Glyph::setLeft | ( | int | left ) | [inline] |
int vl::Glyph::top | ( | ) | const [inline] |
Definition at line 83 of file Font.hpp.
References mTop.
Referenced by vl::Text::renderText(), vl::CoreText::renderText(), and setTop().
void vl::Glyph::setTop | ( | int | top ) | [inline] |
float vl::Glyph::s0 | ( | ) | const [inline] |
Definition at line 86 of file Font.hpp.
References mS0.
Referenced by vl::Text::renderText(), vl::CoreText::renderText(), and setS0().
void vl::Glyph::setS0 | ( | float | s0 ) | [inline] |
float vl::Glyph::t0 | ( | ) | const [inline] |
Definition at line 89 of file Font.hpp.
References mT0.
Referenced by vl::Text::renderText(), vl::CoreText::renderText(), and setT0().
void vl::Glyph::setT0 | ( | float | t0 ) | [inline] |
float vl::Glyph::s1 | ( | ) | const [inline] |
Definition at line 92 of file Font.hpp.
References mS1.
Referenced by vl::Text::renderText(), vl::CoreText::renderText(), and setS1().
void vl::Glyph::setS1 | ( | float | s1 ) | [inline] |
float vl::Glyph::t1 | ( | ) | const [inline] |
Definition at line 95 of file Font.hpp.
References mT1.
Referenced by vl::Text::renderText(), vl::CoreText::renderText(), and setT1().
void vl::Glyph::setT1 | ( | float | t1 ) | [inline] |
const fvec2& vl::Glyph::advance | ( | ) | const [inline] |
Definition at line 98 of file Font.hpp.
References mAdvance.
Referenced by vl::Text::renderText(), vl::CoreText::renderText(), and setAdvance().
void vl::Glyph::setAdvance | ( | const fvec2 & | advance ) | [inline] |
unsigned int vl::Glyph::glyphIndex | ( | ) | const [inline] |
Definition at line 101 of file Font.hpp.
References mGlyphIndex.
Referenced by vl::Text::renderText(), and vl::CoreText::renderText().
void vl::Glyph::setGlyphIndex | ( | unsigned int | glyph_index ) | [inline] |
Definition at line 102 of file Font.hpp.
References mGlyphIndex.
const Font* vl::Glyph::font | ( | ) | const [inline] |
void vl::Glyph::setFont | ( | Font * | font ) | [inline] |
Font* vl::Glyph::mFont [protected] |
fvec2 vl::Glyph::mAdvance [protected] |
Definition at line 109 of file Font.hpp.
Referenced by advance(), and setAdvance().
float vl::Glyph::mS0 [protected] |
float vl::Glyph::mT0 [protected] |
float vl::Glyph::mS1 [protected] |
float vl::Glyph::mT1 [protected] |
unsigned int vl::Glyph::mGlyphIndex [protected] |
Definition at line 114 of file Font.hpp.
Referenced by glyphIndex(), and setGlyphIndex().
unsigned int vl::Glyph::mTextureHandle [protected] |
Definition at line 115 of file Font.hpp.
Referenced by setTextureHandle(), and textureHandle().
int vl::Glyph::mWidth [protected] |
Definition at line 116 of file Font.hpp.
Referenced by setWidth(), and width().
int vl::Glyph::mHeight [protected] |
Definition at line 117 of file Font.hpp.
Referenced by height(), and setHeight().
int vl::Glyph::mLeft [protected] |
int vl::Glyph::mTop [protected] |