diff options
-rw-r--r-- | include/mglpp/graphics/VertexBuffer.hpp | 2 | ||||
-rw-r--r-- | include/mglpp/system/vec.hpp | 2 | ||||
-rw-r--r-- | 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<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; |