diff options
author | Matthew Kosarek <matthew@matthewkosarek.xyz> | 2023-09-27 08:03:04 -0400 |
---|---|---|
committer | Matthew Kosarek <matthew@matthewkosarek.xyz> | 2023-09-27 08:03:04 -0400 |
commit | 1da356d8a64c45c99871aca156ee9fdd3e10ec15 (patch) | |
tree | 00438481bc972c9606995af794be09189833510a /themes/src/winter/WinterTheme.hpp | |
parent | ec0b1d450a0f6219b3b0d352cd6625ae05f62618 (diff) |
Simplification of the Theme system with a more OO model
Diffstat (limited to 'themes/src/winter/WinterTheme.hpp')
-rw-r--r-- | themes/src/winter/WinterTheme.hpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/themes/src/winter/WinterTheme.hpp b/themes/src/winter/WinterTheme.hpp index 5b8cc95..7e5f2ef 100644 --- a/themes/src/winter/WinterTheme.hpp +++ b/themes/src/winter/WinterTheme.hpp @@ -3,16 +3,22 @@ #include "Snowflake.h" #include "../types.h" +#include "../theme.h" struct Renderer2d; -struct WinterTheme { +struct WinterTheme : public Theme { +public: + WinterTheme(Renderer2d* renderer); + ~WinterTheme(); SnowflakeParticleRenderer spr; void load(Renderer2d* renderer); void update(f32 dtSeconds); - void render(Renderer2d* renderer); + void render(); void unload(); +private: + Renderer2d* renderer; }; -#endif
\ No newline at end of file +#endif |