diff options
author | Matthew Kosarek <mattkae@protonmail.com> | 2021-03-22 20:54:51 -0400 |
---|---|---|
committer | Matthew Kosarek <mattkae@protonmail.com> | 2021-03-22 20:54:51 -0400 |
commit | c36d05d5aed2f8f7c6342b174692146e2d11c386 (patch) | |
tree | 8e54047d7b6db7e3d21ccfad6b8c4965d42c09fa /frontend/_shared/OrthographicRenderer.h | |
parent | c29a911cd1a3f23f66478f205cace14487aadc56 (diff) |
Refactored frontend, beginnings of general cpp layer, and beginning roadmap
Diffstat (limited to 'frontend/_shared/OrthographicRenderer.h')
-rw-r--r-- | frontend/_shared/OrthographicRenderer.h | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/frontend/_shared/OrthographicRenderer.h b/frontend/_shared/OrthographicRenderer.h deleted file mode 100644 index e04b5ec..0000000 --- a/frontend/_shared/OrthographicRenderer.h +++ /dev/null @@ -1,41 +0,0 @@ -#pragma once - -#include "types.h" -#include "Shader.h" -#include "mathlib.h" - -struct OrthographicRenderer { - Mat4x4 projection; - uint32 shader; - - struct { - int32 position; - int32 color; - } attributes; - - struct { - int32 projection; - int32 model; - } uniforms; - - void load(); - void render(); - void unload(); -}; - -struct OrthographicVertex { - Vector2 position; - Vector2 color; -}; - -template <uint32 N> -struct OrthographicShape { - uint32 vao; - uint32 vbo; - OrthographicVertex vertices[N]; - Mat4x4 model; - - void load(OrthographicRenderer* renderer); - void render(OrthographicRenderer* renderer); - void unload(); -}; |