From 26f05c6e3dcac9995345fb5a2b031be7e3ea79e9 Mon Sep 17 00:00:00 2001 From: chai Date: Sat, 30 Oct 2021 22:59:42 +0800 Subject: *TextGenerator --- Runtime/Math/Math.h | 4 ++++ Runtime/Math/Rect.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'Runtime/Math') diff --git a/Runtime/Math/Math.h b/Runtime/Math/Math.h index 370b91c..7f61544 100644 --- a/Runtime/Math/Math.h +++ b/Runtime/Math/Math.h @@ -5,3 +5,7 @@ #include "Vector4.h" #include "Matrix44.h" #include "FloatConversion.h" +#include "Rect.h" + +#define max(a, b)\ +(a)>(b)?(a):(b) diff --git a/Runtime/Math/Rect.h b/Runtime/Math/Rect.h index 80170d6..8e7dae6 100644 --- a/Runtime/Math/Rect.h +++ b/Runtime/Math/Rect.h @@ -4,6 +4,6 @@ namespace Internal { struct Rect { - int x, y, width, height; + float x, y, width, height; }; } \ No newline at end of file -- cgit v1.1-26-g67d0