From e76fe148617447f4300daff90d0c3e3beea241dc Mon Sep 17 00:00:00 2001 From: "Michael H. Gimle" Date: Tue, 11 Feb 2020 20:57:38 +0100 Subject: [PATCH] Added a define for M_PI because of Windows --- src/utilities/shapes.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/utilities/shapes.cpp b/src/utilities/shapes.cpp index 241103b..1d1a2a6 100644 --- a/src/utilities/shapes.cpp +++ b/src/utilities/shapes.cpp @@ -1,6 +1,8 @@ #include #include "shapes.h" +#define M_PI 3.14159265359f + Mesh cube(glm::vec3 scale, glm::vec2 textureScale, bool tilingTextures, bool inverted, glm::vec3 textureScale3d) { glm::vec3 points[8]; int indices[36];