| 105:6ca6e8c647d4 | 106:128efb9d148b |
|---|---|
| 12 { | 12 { |
| 13 DrawToolPreview | 13 DrawToolPreview |
| 14 }; | 14 }; |
| 15 struct PreviewLayer | 15 struct PreviewLayer |
| 16 { | 16 { |
| 17 QSet<geom::NPolygon> polygons; | 17 QVector<geom::NPolygon> polygons; |
| 18 QColor color{64, 255, 128}; | 18 QColor color{64, 255, 128}; |
| 19 }; | 19 }; |
| 20 static constexpr int NUM_PREVIEW_LAYERS = 1; | 20 static constexpr int NUM_PREVIEW_LAYERS = 1; |
| 21 | 21 |
| 22 Canvas( | 22 Canvas( |
| 52 PreviewLayer previewLayers[NUM_PREVIEW_LAYERS]; | 52 PreviewLayer previewLayers[NUM_PREVIEW_LAYERS]; |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 struct Canvas::MouseClickInfo | 55 struct Canvas::MouseClickInfo |
| 56 { | 56 { |
| 57 bool click; | 57 std::optional<glm::vec3> worldPosition; |
| 58 Canvas* invoker; | |
| 58 }; | 59 }; |