TETRIS: use new sdlpp library

This commit is contained in:
2020-11-21 20:58:52 +01:00
parent a67e9e5b1a
commit 90879a3f21
11 changed files with 635 additions and 507 deletions
+6 -3
View File
@@ -36,8 +36,11 @@ std::shared_ptr< SDLPP::RectangleRender > g_shadow_colider{};
std::mutex g_movement_mutex{};
bool g_quit = false;
std::vector<std::function<void(std::shared_ptr<SDLPP::Scene>, int, std::vector<std::shared_ptr<SDLPP::RenderObject>>&)>>g_input_functions{};
std::vector<std::shared_ptr< SDLPP::Scene >> g_active_scenes{};
std::vector< std::function< void(
std::shared_ptr< SDLPP::Scene >, int,
std::vector< std::shared_ptr< SDLPP::RenderObject > > & ) > >
g_input_functions{};
std::vector< std::shared_ptr< SDLPP::Scene > > g_active_scenes{};
std::vector< std::shared_ptr< TetrisPiece > ( * )(
std::shared_ptr< SDLPP::Renderer >, std::shared_ptr< SDLPP::Scene > ) >
@@ -46,4 +49,4 @@ std::vector< std::shared_ptr< TetrisPiece > ( * )(
tetrisLine, tetrisLLeft, tetrisZLeft,
};
std::shared_ptr<SDLPP::Font> g_font{};
std::shared_ptr< SDLPP::Font > g_font{};