From 57353bd3acd97957cb5f970016fec52977cc6e95 Mon Sep 17 00:00:00 2001 From: crupest Date: Wed, 2 Mar 2022 22:07:33 +0800 Subject: ... --- include/cru/platform/graphics/Geometry.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/cru/platform/graphics/Geometry.h') 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 + 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 CRU_PLATFORM_GRAPHICS_API +CreateGeometryFromSvgPathData(IGraphicsFactory* factory, StringView path_d); } // namespace cru::platform::graphics -- cgit v1.2.3