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/spring/SpringTheme.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'themes/src/spring/SpringTheme.cpp') diff --git a/themes/src/spring/SpringTheme.cpp b/themes/src/spring/SpringTheme.cpp index 39b6bad..e39c138 100644 --- a/themes/src/spring/SpringTheme.cpp +++ b/themes/src/spring/SpringTheme.cpp @@ -37,6 +37,16 @@ inline void on_shaders_loader(ShaderFetchResult* result) { fetch_bunny(theme); } +SpringTheme::SpringTheme(WebglContext* context) +{ + load(context); +} + +SpringTheme::~SpringTheme() +{ + unload(); +} + void SpringTheme::load(WebglContext* context) { state = SpringThemeState::Loading; renderer.context = context; -- cgit v1.2.1