summaryrefslogtreecommitdiff
path: root/themes/src/summer
diff options
context:
space:
mode:
authormattkae <mattkae@protonmail.com>2023-07-31 07:31:52 -0400
committermattkae <mattkae@protonmail.com>2023-07-31 07:31:52 -0400
commitb6a666e96ffd04bd6d52be8fd9899faf27b751db (patch)
treeddc56ec77d0fa6a35a581ea49bcd1b4c3cac3756 /themes/src/summer
parentffa1ada2b7f65e0b3afe561b3291219394df21f3 (diff)
Some initial shader loading work
Diffstat (limited to 'themes/src/summer')
-rw-r--r--themes/src/summer/SummerTheme.cpp3
-rw-r--r--themes/src/summer/SummerTheme.h2
2 files changed, 3 insertions, 2 deletions
diff --git a/themes/src/summer/SummerTheme.cpp b/themes/src/summer/SummerTheme.cpp
index 406cd22..81cc43b 100644
--- a/themes/src/summer/SummerTheme.cpp
+++ b/themes/src/summer/SummerTheme.cpp
@@ -4,7 +4,8 @@
#include "../mathlib.h"
#include <vector>
-void SummerTheme::load(Renderer2d* renderer) {
+void SummerTheme::load(Renderer2d* renderer, WebglContext* context) {
+ renderer->load(context);
renderer->clearColor = Vector4(0, 181, 286, 255.f).toNormalizedColor();
sun.sectors = 180;
sun.radius = renderer->context->width / 4.f;
diff --git a/themes/src/summer/SummerTheme.h b/themes/src/summer/SummerTheme.h
index 4a9f76b..dad4ac9 100644
--- a/themes/src/summer/SummerTheme.h
+++ b/themes/src/summer/SummerTheme.h
@@ -16,7 +16,7 @@ struct Sun {
struct SummerTheme {
Sun sun;
- void load(Renderer2d* renderer);
+ void load(Renderer2d*, WebglContext*);
void update(f32 dtSeconds);
void render(Renderer2d* renderer);
void unload();