From a00c0aab1eb5a7a55bef8ca08115bdd722ab5699 Mon Sep 17 00:00:00 2001 From: Matthew Kosarek Date: Sun, 16 May 2021 19:50:15 -0400 Subject: Moved the frontend directory up so that it no longer exists --- frontend/shared_cpp/OrthographicRenderer.h | 43 ------------------------------ 1 file changed, 43 deletions(-) delete mode 100644 frontend/shared_cpp/OrthographicRenderer.h (limited to 'frontend/shared_cpp/OrthographicRenderer.h') diff --git a/frontend/shared_cpp/OrthographicRenderer.h b/frontend/shared_cpp/OrthographicRenderer.h deleted file mode 100644 index cef5305..0000000 --- a/frontend/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 -- cgit v1.2.1