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/spring/SpringTheme.cpp | |
parent | ec0b1d450a0f6219b3b0d352cd6625ae05f62618 (diff) |
Simplification of the Theme system with a more OO model
Diffstat (limited to 'themes/src/spring/SpringTheme.cpp')
-rw-r--r-- | themes/src/spring/SpringTheme.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
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; |