aboutsummaryrefslogtreecommitdiff
path: root/include/cru/platform/graphics/Geometry.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/cru/platform/graphics/Geometry.h')
-rw-r--r--include/cru/platform/graphics/Geometry.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/cru/platform/graphics/Geometry.h b/include/cru/platform/graphics/Geometry.h
index 1c2bd1f7..19620789 100644
--- a/include/cru/platform/graphics/Geometry.h
+++ b/include/cru/platform/graphics/Geometry.h
@@ -1,6 +1,8 @@
#pragma once
#include "Resource.h"
+#include <memory>
+
namespace cru::platform::graphics {
struct CRU_PLATFORM_GRAPHICS_API IGeometry : virtual IGraphicsResource {
virtual bool FillContains(const Point& point) = 0;
@@ -59,4 +61,7 @@ struct CRU_PLATFORM_GRAPHICS_API IGeometryBuilder : virtual IGraphicsResource {
void ParseAndApplySvgPathData(StringView path_d);
};
+
+std::unique_ptr<IGeometry> CRU_PLATFORM_GRAPHICS_API
+CreateGeometryFromSvgPathData(IGraphicsFactory* factory, StringView path_d);
} // namespace cru::platform::graphics