From f3b5009040a05e8efd15c385cacf5dd594ecf801 Mon Sep 17 00:00:00 2001 From: crupest Date: Sat, 12 Mar 2022 21:26:56 +0800 Subject: ... --- include/cru/platform/GraphicsBase.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'include/cru/platform/GraphicsBase.h') diff --git a/include/cru/platform/GraphicsBase.h b/include/cru/platform/GraphicsBase.h index 62a8bf29..f134e74d 100644 --- a/include/cru/platform/GraphicsBase.h +++ b/include/cru/platform/GraphicsBase.h @@ -1,5 +1,5 @@ #pragma once -#include "cru/common/Base.h" +#include "Base.h" #include "cru/common/Format.h" #include "cru/common/Range.h" @@ -51,7 +51,10 @@ inline String ToString(const Point& point) { return Format(u"(x: {}, y: {})", point.x, point.y); } -struct Size final { +struct CRU_PLATFORM_API Size final { + static const Size kMax; + static const Size kZero; + constexpr Size() = default; constexpr Size(const float width, const float height) : width(width), height(height) {} -- cgit v1.2.3