From 1da356d8a64c45c99871aca156ee9fdd3e10ec15 Mon Sep 17 00:00:00 2001 From: Matthew Kosarek Date: Wed, 27 Sep 2023 08:03:04 -0400 Subject: Simplification of the Theme system with a more OO model --- themes/src/autumn/AutumnTheme.hpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'themes/src/autumn/AutumnTheme.hpp') diff --git a/themes/src/autumn/AutumnTheme.hpp b/themes/src/autumn/AutumnTheme.hpp index 2d9958c..41df04c 100644 --- a/themes/src/autumn/AutumnTheme.hpp +++ b/themes/src/autumn/AutumnTheme.hpp @@ -4,6 +4,7 @@ #include "TreeShape.h" #include "LeafParticleRender.h" #include "../types.h" +#include "../theme.h" #include #include @@ -11,7 +12,10 @@ struct Renderer2d; class RectangularGradient; class Circleish; -struct AutumnTheme { +class AutumnTheme : public Theme { +public: + AutumnTheme(Renderer2d* renderer); + ~AutumnTheme(); TreeShape tree; LeafParticleRender leafParticles; RectangularGradient* background; @@ -20,8 +24,10 @@ struct AutumnTheme { void load(Renderer2d* renderer); void update(f32 dtSeconds); - void render(Renderer2d* renderer); + void render(); void unload(); +private: + Renderer2d* renderer; }; #endif -- cgit v1.2.1