diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-11-03 16:53:03 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-11-03 20:34:22 +0100 |
commit | f26a606bf50f7dbe35c79bfa52f2026bd7af3eb8 (patch) | |
tree | 1c0a35e3cea48ffe989a366b685da65d274ff0af /include/mgl/graphics | |
parent | def772cc0efd7c22c6154c6d9f73df1a08fa2671 (diff) |
Add viewport
Diffstat (limited to 'include/mgl/graphics')
-rw-r--r-- | include/mgl/graphics/vertex.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/mgl/graphics/vertex.h b/include/mgl/graphics/vertex.h index e4fef34..8cc2f25 100644 --- a/include/mgl/graphics/vertex.h +++ b/include/mgl/graphics/vertex.h @@ -14,6 +14,10 @@ typedef struct { mgl_color color; } mgl_vertex; +/* + Note: this sends the vertices to the gpu everytime this is called. This should only be used for small lists of vertices + or if every vertex needs to change every frame. Use mgl_vertex_buffer instead if possible. +*/ void mgl_vertices_draw(mgl_context *context, const mgl_vertex *vertices, size_t vertex_count, mgl_primitive_type primitive_type); #endif /* MGL_VERTEX_H */ |