aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/utils/rectangle.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/utils/rectangle.hpp b/src/utils/rectangle.hpp
index 0a7ca954..39743e5d 100644
--- a/src/utils/rectangle.hpp
+++ b/src/utils/rectangle.hpp
@@ -27,6 +27,8 @@
#ifndef RECTANGLE_HPP
#define RECTANGLE_HPP
+#include <ftgl.h>
+
#include "point.hpp"
#include "dimension.hpp"
@@ -69,6 +71,12 @@ namespace usdx
{
}
+ Rectangle(const FTBBox& bbox) :
+ point1((T)bbox.Upper().X(), (T)bbox.Upper().Y()),
+ point2((T)bbox.Lower().X(), (T)bbox.Lower().Y())
+ {
+ }
+
Rectangle(const Rectangle<T>& rectangle) :
point1(rectangle.point1), point2(rectangle.point2)
{