From 042da1570181dc80ee76860582f6a3c97641c14a Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Mon, 14 Mar 2022 08:32:39 -0400 Subject: fmod splash screen --- src/renderer.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/renderer.h') diff --git a/src/renderer.h b/src/renderer.h index ca4e607..4d5484c 100644 --- a/src/renderer.h +++ b/src/renderer.h @@ -5,6 +5,9 @@ #include #include #include +#include +#include +#include "consts.h" class Game; @@ -117,10 +120,14 @@ public: const Game& game, bool drawDark = true); + void renderTitle(int num, double fade); + static std::tuple calculateZoomRect(const Game& game); private: + void loadTextureFromFile(std::string_view path, texture_ptr& texture); + sdl_wrapper sdl_; img_wrapper img_; window_ptr win_; @@ -132,6 +139,10 @@ private: texture_ptr playerSheet_; texture_ptr tileset_; texture_ptr lamp_; + + std::array titles_; + std::array titleWidths_; + std::array titleHeights_; }; #endif /* end of include guard: RENDERER_H_6A58EC30 */ -- cgit 1.4.1