24 #include "ui/objecteditor.h" |
24 #include "ui/objecteditor.h" |
25 #include "gl/partrenderer.h" |
25 #include "gl/partrenderer.h" |
26 #include "circularprimitive.h" |
26 #include "circularprimitive.h" |
27 |
27 |
28 // Make mapbox::earcut work with glm::vec3 |
28 // Make mapbox::earcut work with glm::vec3 |
29 namespace mapbox { |
29 template<> struct mapbox::util::nth<0, glm::vec3> |
30 namespace util { |
|
31 template<> struct nth<0, glm::vec3> |
|
32 { |
30 { |
33 static constexpr float get(const glm::vec3& t) { return t.x; }; |
31 static constexpr float get(const glm::vec3& t) { return t.x; }; |
34 }; |
32 }; |
35 template<> struct nth<1, glm::vec3> |
33 |
|
34 template<> struct mapbox::util::nth<1, glm::vec3> |
36 { |
35 { |
37 static constexpr float get(const glm::vec3& t) { return t.y; }; |
36 static constexpr float get(const glm::vec3& t) { return t.y; }; |
38 }; |
37 }; |
39 } |
|
40 } |
|
41 |
38 |
42 EditTools::EditTools(QObject* parent) : |
39 EditTools::EditTools(QObject* parent) : |
43 QObject{parent}, |
40 QObject{parent}, |
44 RenderLayer{} |
41 RenderLayer{} |
45 { |
42 { |