diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2022-03-14 08:32:39 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2022-03-14 08:32:39 -0400 |
commit | 042da1570181dc80ee76860582f6a3c97641c14a (patch) | |
tree | 2ef4dc0939b298f8d32b9078a6b71125fb973567 /src/renderer.h | |
parent | 016d1cdf036039792f50e1ed0431386c7b9e93d7 (diff) | |
download | ether-042da1570181dc80ee76860582f6a3c97641c14a.tar.gz ether-042da1570181dc80ee76860582f6a3c97641c14a.tar.bz2 ether-042da1570181dc80ee76860582f6a3c97641c14a.zip |
fmod splash screen
Diffstat (limited to 'src/renderer.h')
-rw-r--r-- | src/renderer.h | 11 |
1 files changed, 11 insertions, 0 deletions
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 @@ | |||
5 | #include <SDL_image.h> | 5 | #include <SDL_image.h> |
6 | #include <stdexcept> | 6 | #include <stdexcept> |
7 | #include <memory> | 7 | #include <memory> |
8 | #include <array> | ||
9 | #include <string_view> | ||
10 | #include "consts.h" | ||
8 | 11 | ||
9 | class Game; | 12 | class Game; |
10 | 13 | ||
@@ -117,10 +120,14 @@ public: | |||
117 | const Game& game, | 120 | const Game& game, |
118 | bool drawDark = true); | 121 | bool drawDark = true); |
119 | 122 | ||
123 | void renderTitle(int num, double fade); | ||
124 | |||
120 | static std::tuple<int, int, int, int> calculateZoomRect(const Game& game); | 125 | static std::tuple<int, int, int, int> calculateZoomRect(const Game& game); |
121 | 126 | ||
122 | private: | 127 | private: |
123 | 128 | ||
129 | void loadTextureFromFile(std::string_view path, texture_ptr& texture); | ||
130 | |||
124 | sdl_wrapper sdl_; | 131 | sdl_wrapper sdl_; |
125 | img_wrapper img_; | 132 | img_wrapper img_; |
126 | window_ptr win_; | 133 | window_ptr win_; |
@@ -132,6 +139,10 @@ private: | |||
132 | texture_ptr playerSheet_; | 139 | texture_ptr playerSheet_; |
133 | texture_ptr tileset_; | 140 | texture_ptr tileset_; |
134 | texture_ptr lamp_; | 141 | texture_ptr lamp_; |
142 | |||
143 | std::array<texture_ptr, NUM_TITLES> titles_; | ||
144 | std::array<int, NUM_TITLES> titleWidths_; | ||
145 | std::array<int, NUM_TITLES> titleHeights_; | ||
135 | }; | 146 | }; |
136 | 147 | ||
137 | #endif /* end of include guard: RENDERER_H_6A58EC30 */ | 148 | #endif /* end of include guard: RENDERER_H_6A58EC30 */ |