src/layers/edittools.cpp

changeset 264
76a025db4948
parent 263
59b6027b9843
child 301
8ccd6fdb30dc
equal deleted inserted replaced
263:59b6027b9843 264:76a025db4948
16 * along with this program. If not, see <http://www.gnu.org/licenses/>. 16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */ 17 */
18 18
19 #include <QMouseEvent> 19 #include <QMouseEvent>
20 #include <QPainter> 20 #include <QPainter>
21 #include "../algorithm/earcut.h" 21 #include "src/algorithm/earcut.h"
22 #include "../model.h" 22 #include "src/model.h"
23 #include "../ui/objecteditor.h" 23 #include "src/ui/objecteditor.h"
24 #include "../gl/partrenderer.h" 24 #include "src/gl/partrenderer.h"
25 #include "../circularprimitive.h" 25 #include "src/circularprimitive.h"
26 #include "edittools.h" 26 #include "src/layers/edittools.h"
27 27
28 // Make mapbox::earcut work with glm::vec3 28 // Make mapbox::earcut work with glm::vec3
29 template<> struct mapbox::util::nth<0, glm::vec3> 29 template<> struct mapbox::util::nth<0, glm::vec3>
30 { 30 {
31 static constexpr float get(const glm::vec3& t) { return t.x; } 31 static constexpr float get(const glm::vec3& t) { return t.x; }

mercurial