aboutsummaryrefslogtreecommitdiff
path: root/src/games/tetris/Tetris.hpp
diff options
context:
space:
mode:
authorfschildt <florian.schildt@protonmail.com>2025-10-16 15:33:06 +0200
committerfschildt <florian.schildt@protonmail.com>2025-10-16 15:33:06 +0200
commita873df7a66dc1831cee4eae2d998abed88246268 (patch)
treec19cd079ce106e1431d64c34babf4ef59cf71723 /src/games/tetris/Tetris.hpp
parent9f2845b12135c32dde91e58afc1193d54333ec9f (diff)
renderer: introduce text rendering
Diffstat (limited to 'src/games/tetris/Tetris.hpp')
-rw-r--r--src/games/tetris/Tetris.hpp6
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;
};