From b6a666e96ffd04bd6d52be8fd9899faf27b751db Mon Sep 17 00:00:00 2001 From: mattkae Date: Mon, 31 Jul 2023 07:31:52 -0400 Subject: Some initial shader loading work --- themes/src/summer/SummerTheme.cpp | 3 ++- themes/src/summer/SummerTheme.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'themes/src/summer') 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 -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(); -- cgit v1.2.1