diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2019-02-24 13:11:12 -0500 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2019-02-24 13:11:12 -0500 |
commit | bf34f891c5c09e6c8a42797085860fa80ab53814 (patch) | |
tree | 80b52c2b7efd0b195f7e3c692a1c05a5469e1e9d /src/editor.h | |
parent | 41593f09b47537ccae1b19dc390f7d7dbb532937 (diff) | |
download | dispatcher-bf34f891c5c09e6c8a42797085860fa80ab53814.tar.gz dispatcher-bf34f891c5c09e6c8a42797085860fa80ab53814.tar.bz2 dispatcher-bf34f891c5c09e6c8a42797085860fa80ab53814.zip |
Editor now renders a tiled background image
Diffstat (limited to 'src/editor.h')
-rw-r--r-- | src/editor.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/editor.h b/src/editor.h index aa137ec..dc908b9 100644 --- a/src/editor.h +++ b/src/editor.h | |||
@@ -2,6 +2,7 @@ | |||
2 | #define EDITOR_H_8BB54FE3 | 2 | #define EDITOR_H_8BB54FE3 |
3 | 3 | ||
4 | #include "state.h" | 4 | #include "state.h" |
5 | #include "vector.h" | ||
5 | 6 | ||
6 | class Editor : public State { | 7 | class Editor : public State { |
7 | public: | 8 | public: |
@@ -12,6 +13,11 @@ public: | |||
12 | 13 | ||
13 | void render(SDL_Renderer* ren) override; | 14 | void render(SDL_Renderer* ren) override; |
14 | 15 | ||
16 | private: | ||
17 | |||
18 | texture_ptr background_; | ||
19 | vec2i bgSize_; | ||
20 | |||
15 | }; | 21 | }; |
16 | 22 | ||
17 | #endif /* end of include guard: EDITOR_H_8BB54FE3 */ | 23 | #endif /* end of include guard: EDITOR_H_8BB54FE3 */ |