aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-09-14 03:24:22 +0200
committerdec05eba <dec05eba@protonmail.com>2024-09-14 03:24:22 +0200
commit1a2a6ad8ef354f62bdf9adcfef73af1e5d03695d (patch)
tree833f21eda9d81facfea067e796945d82065e0248
parent23b75905a53abb2e4d5a44b16e0496e7fa4c7e3d (diff)
Default value for vertices draw positionHEADmaster
-rw-r--r--include/mglpp/window/Window.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mglpp/window/Window.hpp b/include/mglpp/window/Window.hpp
index d355db7..009c9a5 100644
--- a/include/mglpp/window/Window.hpp
+++ b/include/mglpp/window/Window.hpp
@@ -66,7 +66,7 @@ namespace mgl {
void clear(Color color = Color(0, 0, 0, 255));
void draw(Drawable &drawable, Shader *shader = nullptr);
- void draw(const Vertex *vertices, size_t vertex_count, PrimitiveType primitive_type, mgl::vec2f position, Shader *shader = nullptr);
+ void draw(const Vertex *vertices, size_t vertex_count, PrimitiveType primitive_type, mgl::vec2f position = {0, 0}, Shader *shader = nullptr);
void display();
void set_visible(bool visible);