aboutsummaryrefslogtreecommitdiff
path: root/include/cru/platform/GraphicsBase.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/cru/platform/GraphicsBase.h')
-rw-r--r--include/cru/platform/GraphicsBase.h7
1 files changed, 5 insertions, 2 deletions
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) {}