diff options
Diffstat (limited to 'src/games/minesweeper/Minesweeper.cpp')
| -rw-r--r-- | src/games/minesweeper/Minesweeper.cpp | 13 | 
1 files changed, 12 insertions, 1 deletions
diff --git a/src/games/minesweeper/Minesweeper.cpp b/src/games/minesweeper/Minesweeper.cpp index 6dc77a4..abb9515 100644 --- a/src/games/minesweeper/Minesweeper.cpp +++ b/src/games/minesweeper/Minesweeper.cpp @@ -25,8 +25,11 @@ Minesweeper::Minesweeper()      m_CellOuterViewSize = {cell_size, cell_size};      m_CellInnerViewSize = {cell_size_without_border, cell_size_without_border}; +    m_Font.Init("fonts/dejavu_ttf/DejaVuSansMono.ttf", 32); +    for (uint32_t i = 0; i < m_DigitGlyphs.size(); ++i) { +        m_Font.LoadGlyph(m_DigitGlyphs[i], i + '0'); +    } -    // Todo: assert various stuff      Reinit();  } @@ -278,6 +281,14 @@ void Minesweeper::DrawBoard(RenderGroup &render_group) {      }; +    // Temporary: Drawing Glyph Test +    render_group.PushBitmap( +            {100.0f, 100.0f, 10.0f}, +            m_DigitGlyphs[1].bitmap.width, +            m_DigitGlyphs[1].bitmap.height, +            m_DigitGlyphs[1].bitmap.pixels.get()); + +      for (int32_t y = 0; y < m_MapHeight; y++) {          for (int32_t x = 0; x < m_MapWidth; x++) {              V2F32 world_pos = {  | 
