From 1a2a6ad8ef354f62bdf9adcfef73af1e5d03695d Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 14 Sep 2024 03:24:22 +0200 Subject: Default value for vertices draw position --- include/mglpp/window/Window.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3