From b2f0190f6b2a227a21dd4909476171f7cc371a2d Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sat, 19 Mar 2022 16:46:19 -0400 Subject: menu! --- src/renderer.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/renderer.h') diff --git a/src/renderer.h b/src/renderer.h index ce2e7e1..8a74c3c 100644 --- a/src/renderer.h +++ b/src/renderer.h @@ -165,6 +165,8 @@ public: TTF_Font* getFont() { return font_.get(); } + void toggleFullscreen(); + private: void loadTextureFromFile(std::string_view path, texture_ptr& texture); @@ -183,6 +185,7 @@ private: texture_ptr tileset_; texture_ptr lamp_; texture_ptr readInstruction_; + texture_ptr menuBg_; std::array titles_; std::array titleWidths_; @@ -199,6 +202,15 @@ private: void renderMessageLine(MessageCache& line, const std::string& text, const Game& game); MessageCache messageLines_[2]; + + bool isFullscreen = false; + + void renderMenu(const Game& game); + + texture_ptr menu_; + int menuWidth_ = 0; + int menuHeight_ = 0; + int menuSelected_ = 0; }; #endif /* end of include guard: RENDERER_H_6A58EC30 */ -- cgit 1.4.1