diff options
author | mattkae <mattkae@protonmail.com> | 2022-01-22 13:57:55 -0500 |
---|---|---|
committer | mattkae <mattkae@protonmail.com> | 2022-01-22 13:57:55 -0500 |
commit | 3f3d1ed1cba61015aa47a6ad9812ae0d30316cc5 (patch) | |
tree | ba6f5d8aa5114de81f331828ef877a6f4ddebfda /shared_cpp/Renderer2d.h | |
parent | 19defa9be56588803bbae0f38e2f271a91b9d690 (diff) |
(mkosarek) Added dots to the spring bodied rectangle
Diffstat (limited to 'shared_cpp/Renderer2d.h')
-rw-r--r-- | shared_cpp/Renderer2d.h | 5 |
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); }; |