summaryrefslogtreecommitdiff
path: root/shared_cpp/Renderer2d.h
diff options
context:
space:
mode:
authormattkae <mattkae@protonmail.com>2022-01-22 13:57:55 -0500
committermattkae <mattkae@protonmail.com>2022-01-22 13:57:55 -0500
commit3f3d1ed1cba61015aa47a6ad9812ae0d30316cc5 (patch)
treeba6f5d8aa5114de81f331828ef877a6f4ddebfda /shared_cpp/Renderer2d.h
parent19defa9be56588803bbae0f38e2f271a91b9d690 (diff)
(mkosarek) Added dots to the spring bodied rectangle
Diffstat (limited to 'shared_cpp/Renderer2d.h')
-rw-r--r--shared_cpp/Renderer2d.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/shared_cpp/Renderer2d.h b/shared_cpp/Renderer2d.h
index a942fa6..3ecb410 100644
--- a/shared_cpp/Renderer2d.h
+++ b/shared_cpp/Renderer2d.h
@@ -27,7 +27,7 @@ struct Renderer2d {
};
struct Vertex2d {
- Vector2 position;
+ Vector4 position;
Vector4 color;
};
@@ -44,9 +44,12 @@ struct Mesh2d {
uint32 numVertices = 0;
uint32 numIndices = 0;
Mat4x4 model;
+ bool isDynamic = false;
void load(Vertex2d* vertices, uint32 numVertices, Renderer2d* renderer, GLenum loadType = GL_STATIC_DRAW);
void load(Vertex2d* vertices, uint32 numVertices, GLuint* indices, uint32 numIndices, Renderer2d* renderer, GLenum loadType = GL_STATIC_DRAW);
void render(Renderer2d* renderer, GLenum drawType = GL_TRIANGLES);
void unload();
+
+ void updateVertices(Vertex2d* vertices);
};