Skip to content

Commit

Permalink
#47 Methode drawCharacter umgeschrieben
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Mahler committed Oct 23, 2017
1 parent 16227e7 commit 5947b13
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Koramu/FontManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ void FontManager::parseFont()

void FontManager::drawCharacter(char character, int x, int y)
{
// Checken, ob Zeichen mit dem die Methode aufgerufen wird im Alphabet enthalten ist
if (m_texturePositionMap.count(character) == 0)
{
return;
}
// Eine bestimmte Textur zeichnen
TheTextureManager::Instance()->drawFrame("font",
x, y, m_width, m_height,
Expand Down

0 comments on commit 5947b13

Please sign in to comment.