summaryrefslogtreecommitdiff
path: root/themes/Renderer2d.h
diff options
context:
space:
mode:
authormattkae <mattkae@protonmail.com>2022-05-01 21:44:04 -0400
committermattkae <mattkae@protonmail.com>2022-05-01 21:44:04 -0400
commit40a924db3664318615a9a3f11ee25c206cb77fe1 (patch)
tree3e4aacb8ea6c1f5fc6aea25dc6f7df489ea6d3dd /themes/Renderer2d.h
parentdfc387644939aada1edb69f8f730e62f116f1ae3 (diff)
Renderer3d basics
Diffstat (limited to 'themes/Renderer2d.h')
-rw-r--r--themes/Renderer2d.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/themes/Renderer2d.h b/themes/Renderer2d.h
index 30769db..82af673 100644
--- a/themes/Renderer2d.h
+++ b/themes/Renderer2d.h
@@ -29,19 +29,19 @@ struct Renderer2d {
void unload();
};
-struct Renderer2dVertex {
+struct Vertex2D {
Vector2 position;
Vector4 color;
Mat4x4 vMatrix;
};
-struct Renderer2dShape {
+struct Mesh2D {
u32 vao;
u32 vbo;
u32 numVertices = 0;
Mat4x4 model;
- void load(Renderer2dVertex* vertices, u32 numVertices, Renderer2d* renderer);
+ void load(Vertex2D* vertices, u32 numVertices, Renderer2d* renderer);
void render(Renderer2d* renderer, GLenum drawType = GL_TRIANGLES);
void unload();
};