aboutsummaryrefslogtreecommitdiff
path: root/include/cru/platform/GraphicsBase.h
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-03-12 21:26:56 +0800
committercrupest <crupest@outlook.com>2022-03-12 21:26:56 +0800
commitf3b5009040a05e8efd15c385cacf5dd594ecf801 (patch)
treea6f84d87ad81ea14499d77dc48089190043098d6 /include/cru/platform/GraphicsBase.h
parentc6d05af374ef11cec4a550eb63c73abdb2cd5f72 (diff)
downloadcru-f3b5009040a05e8efd15c385cacf5dd594ecf801.tar.gz
cru-f3b5009040a05e8efd15c385cacf5dd594ecf801.tar.bz2
cru-f3b5009040a05e8efd15c385cacf5dd594ecf801.zip
...
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) {}