From e8113a53d8b9d91db3728ac875b49b17a1ed6659 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 9 Mar 2022 01:20:00 +0100 Subject: Fix compile on clang --- include/mglpp/graphics/VertexBuffer.hpp | 2 +- include/mglpp/system/vec.hpp | 2 +- include/mglpp/window/Window.hpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/mglpp/graphics/VertexBuffer.hpp b/include/mglpp/graphics/VertexBuffer.hpp index e2e32b8..79adeb0 100644 --- a/include/mglpp/graphics/VertexBuffer.hpp +++ b/include/mglpp/graphics/VertexBuffer.hpp @@ -10,7 +10,7 @@ extern "C" { namespace mgl { class Texture; - class Vertex; + struct Vertex; class VertexBuffer : public Drawable { public: diff --git a/include/mglpp/system/vec.hpp b/include/mglpp/system/vec.hpp index 44141f8..23ef935 100644 --- a/include/mglpp/system/vec.hpp +++ b/include/mglpp/system/vec.hpp @@ -62,7 +62,7 @@ namespace mgl { } vec2 floor() const { - return { static_cast(x), static_cast(y) }; + return { static_cast(static_cast(x)), static_cast(static_cast(y)) }; } T x; diff --git a/include/mglpp/window/Window.hpp b/include/mglpp/window/Window.hpp index 1bc71b9..655f63d 100644 --- a/include/mglpp/window/Window.hpp +++ b/include/mglpp/window/Window.hpp @@ -19,7 +19,7 @@ namespace mgl { class Event; class Drawable; class Shader; - class Vertex; + struct Vertex; struct View { vec2i position; -- cgit v1.2.3