diff options
| author | fschildt <florian.schildt@protonmail.com> | 2025-10-16 15:33:06 +0200 |
|---|---|---|
| committer | fschildt <florian.schildt@protonmail.com> | 2025-10-16 15:33:06 +0200 |
| commit | a873df7a66dc1831cee4eae2d998abed88246268 (patch) | |
| tree | c19cd079ce106e1431d64c34babf4ef59cf71723 /src/games/tetris/Tetris.hpp | |
| parent | 9f2845b12135c32dde91e58afc1193d54333ec9f (diff) | |
renderer: introduce text rendering
Diffstat (limited to 'src/games/tetris/Tetris.hpp')
| -rw-r--r-- | src/games/tetris/Tetris.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/games/tetris/Tetris.hpp b/src/games/tetris/Tetris.hpp index 03966fd..7f48e37 100644 --- a/src/games/tetris/Tetris.hpp +++ b/src/games/tetris/Tetris.hpp @@ -31,6 +31,10 @@ private: private: + static constexpr Color s_text_color {0.9f, 0.9f, 0.9f, 1.0f}; + static constexpr float s_text_z {10.0f}; + static constexpr size_t s_frame_strings_capcity {32}; + Font m_font; Board m_board; Tetromino m_active_tetromino; @@ -43,6 +47,8 @@ private: int32_t m_level = 0; int32_t m_softdrop_counter = 0; int32_t m_highscore = 0; + + std::vector<std::u32string> m_frame_strings; }; |
