summaryrefslogtreecommitdiff
path: root/shared_cpp/OrthographicRenderer.h
diff options
context:
space:
mode:
authorMatthew Kosarek <mattkae@protonmail.com>2021-10-31 13:54:11 -0400
committerMatthew Kosarek <mattkae@protonmail.com>2021-10-31 13:54:11 -0400
commit5c613a10364f30bd6add25f7950433f0c482c3ca (patch)
treeaf8f6e481b6400329eca12bd8cdb35e0237d63af /shared_cpp/OrthographicRenderer.h
parenta214b4f8977a4b115710b5c9d152b392ac8e24f7 (diff)
(mkosarek) Working undamped spring motion
Diffstat (limited to 'shared_cpp/OrthographicRenderer.h')
-rw-r--r--shared_cpp/OrthographicRenderer.h43
1 files changed, 0 insertions, 43 deletions
diff --git a/shared_cpp/OrthographicRenderer.h b/shared_cpp/OrthographicRenderer.h
deleted file mode 100644
index cef5305..0000000
--- a/shared_cpp/OrthographicRenderer.h
+++ /dev/null
@@ -1,43 +0,0 @@
-#pragma once
-
-#include "WebglContext.h"
-#include "types.h"
-#include "Shader.h"
-#include "mathlib.h"
-
-struct WebglContext;
-
-struct OrthographicRenderer {
- Mat4x4 projection;
- uint32 shader;
-
- struct {
- int32 position;
- int32 color;
- } attributes;
-
- struct {
- int32 projection;
- int32 model;
- } uniforms;
-
- void load(WebglContext* context);
- void render();
- void unload();
-};
-
-struct OrthographicVertex {
- Vector2 position;
- Vector4 color;
-};
-
-struct OrthographicShape {
- uint32 vao;
- uint32 vbo;
- uint32 numVertices = 0;
- Mat4x4 model;
-
- void load(OrthographicVertex* vertices, uint32 numVertices, OrthographicRenderer* renderer);
- void render(OrthographicRenderer* renderer, GLenum drawType = GL_TRIANGLES);
- void unload();
-}; \ No newline at end of file