summaryrefslogtreecommitdiff
path: root/themes/SummerTheme.h
diff options
context:
space:
mode:
Diffstat (limited to 'themes/SummerTheme.h')
-rw-r--r--themes/SummerTheme.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/themes/SummerTheme.h b/themes/SummerTheme.h
new file mode 100644
index 0000000..1d9093a
--- /dev/null
+++ b/themes/SummerTheme.h
@@ -0,0 +1,23 @@
+#pragma once
+#include "types.h"
+#include "Renderer2d.h"
+#include <vector>
+
+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();
+};