Font: move Glyph to it's own header.
This commit is contained in:
parent
5c4eea4ae1
commit
2dd1187ff2
7 changed files with 31 additions and 19 deletions
|
|
@ -94,7 +94,7 @@ Vector2f Text::getSize() const
|
|||
|
||||
for(size_t i = 0; i < m_string.size(); i++) {
|
||||
|
||||
Font::Glyph glyph = m_font->getGlyph(m_string[i]);
|
||||
Glyph glyph = m_font->getGlyph(m_string[i]);
|
||||
|
||||
float h = glyph.size.y;
|
||||
float w = glyph.advance;
|
||||
|
|
@ -142,7 +142,7 @@ void Text::updateGeometry() const
|
|||
|
||||
Vertex2D v1, v2, v3, v4;
|
||||
|
||||
Font::Glyph glyph = m_font->getGlyph(m_string[i]);
|
||||
Glyph glyph = m_font->getGlyph(m_string[i]);
|
||||
|
||||
if (glyph.texture) {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue