aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-03-09 01:20:00 +0100
committerdec05eba <dec05eba@protonmail.com>2022-03-09 01:20:00 +0100
commite8113a53d8b9d91db3728ac875b49b17a1ed6659 (patch)
tree6701a024ca0d103b0cca141f507f70be5eff7cbc /include
parent37d6eeddea15ccfb79dc565fdc6b0e9aa0eaeffb (diff)
Fix compile on clang
Diffstat (limited to 'include')
-rw-r--r--include/mglpp/graphics/VertexBuffer.hpp2
-rw-r--r--include/mglpp/system/vec.hpp2
-rw-r--r--include/mglpp/window/Window.hpp2
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<T> floor() const {
- return { static_cast<int>(x), static_cast<int>(y) };
+ return { static_cast<T>(static_cast<int>(x)), static_cast<T>(static_cast<int>(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;