summary refs log tree commit diff stats
path: root/src/renderer.h
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2022-03-19 16:46:19 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2022-03-19 16:46:19 -0400
commitb2f0190f6b2a227a21dd4909476171f7cc371a2d (patch)
tree0b12cdc515198a6daf5d0a39ed40f581e410cfba /src/renderer.h
parent81e8c1dae2e7e4be632d6e81d765b5dd43ea3927 (diff)
downloadether-b2f0190f6b2a227a21dd4909476171f7cc371a2d.tar.gz
ether-b2f0190f6b2a227a21dd4909476171f7cc371a2d.tar.bz2
ether-b2f0190f6b2a227a21dd4909476171f7cc371a2d.zip
menu!
Diffstat (limited to 'src/renderer.h')
-rw-r--r--src/renderer.h12
1 files changed, 12 insertions, 0 deletions
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:
165 165
166 TTF_Font* getFont() { return font_.get(); } 166 TTF_Font* getFont() { return font_.get(); }
167 167
168 void toggleFullscreen();
169
168private: 170private:
169 171
170 void loadTextureFromFile(std::string_view path, texture_ptr& texture); 172 void loadTextureFromFile(std::string_view path, texture_ptr& texture);
@@ -183,6 +185,7 @@ private:
183 texture_ptr tileset_; 185 texture_ptr tileset_;
184 texture_ptr lamp_; 186 texture_ptr lamp_;
185 texture_ptr readInstruction_; 187 texture_ptr readInstruction_;
188 texture_ptr menuBg_;
186 189
187 std::array<texture_ptr, NUM_TITLES> titles_; 190 std::array<texture_ptr, NUM_TITLES> titles_;
188 std::array<int, NUM_TITLES> titleWidths_; 191 std::array<int, NUM_TITLES> titleWidths_;
@@ -199,6 +202,15 @@ private:
199 void renderMessageLine(MessageCache& line, const std::string& text, const Game& game); 202 void renderMessageLine(MessageCache& line, const std::string& text, const Game& game);
200 203
201 MessageCache messageLines_[2]; 204 MessageCache messageLines_[2];
205
206 bool isFullscreen = false;
207
208 void renderMenu(const Game& game);
209
210 texture_ptr menu_;
211 int menuWidth_ = 0;
212 int menuHeight_ = 0;
213 int menuSelected_ = 0;
202}; 214};
203 215
204#endif /* end of include guard: RENDERER_H_6A58EC30 */ 216#endif /* end of include guard: RENDERER_H_6A58EC30 */