From 5d3ff36045bfb11af0f373d5ecee7c9b54e4c4f9 Mon Sep 17 00:00:00 2001 From: mattkae Date: Mon, 3 Apr 2023 06:35:27 -0400 Subject: Folderized all of the seasons and loading the shaders from a remote source --- themes/src/summer/SummerTheme.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 themes/src/summer/SummerTheme.h (limited to 'themes/src/summer/SummerTheme.h') diff --git a/themes/src/summer/SummerTheme.h b/themes/src/summer/SummerTheme.h new file mode 100644 index 0000000..4a9f76b --- /dev/null +++ b/themes/src/summer/SummerTheme.h @@ -0,0 +1,23 @@ +#pragma once +#include "../types.h" +#include "../Renderer2d.h" +#include + +struct Sun { + f32 radius = 20.f; + i32 sectors = 180; + Mesh2D mesh; + + void load(Renderer2d* renderer); + void update(f32 dtSeconds); + void render(Renderer2d* renderer); + void unload(); +}; + +struct SummerTheme { + Sun sun; + void load(Renderer2d* renderer); + void update(f32 dtSeconds); + void render(Renderer2d* renderer); + void unload(); +}; -- cgit v1.2.1