summaryrefslogtreecommitdiff
path: root/themes/src/Renderer2d.h
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/Renderer2d.h
parentffa1ada2b7f65e0b3afe561b3291219394df21f3 (diff)
Some initial shader loading work
Diffstat (limited to 'themes/src/Renderer2d.h')
-rw-r--r--themes/src/Renderer2d.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/themes/src/Renderer2d.h b/themes/src/Renderer2d.h
index 909f088..8a96503 100644
--- a/themes/src/Renderer2d.h
+++ b/themes/src/Renderer2d.h
@@ -7,6 +7,7 @@
struct WebglContext;
+/// Responsible for rendering Mesh2Ds
struct Renderer2d {
WebglContext* context = NULL;
Mat4x4 projection;
@@ -24,7 +25,9 @@ struct Renderer2d {
i32 model;
} uniforms;
- void load(WebglContext* context);
+ /// Load with the provided context and shader programs. If the shaders are NULL, the default
+ /// shader is used
+ void load(WebglContext* context, const char* vertexShader = NULL, const char* fragmentShader = NULL);
void render();
void unload();
};