aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2012-04-09 18:09:28 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2013-01-13 22:40:52 +0100
commit3ec8616aa76390280c7b51696b731a85e070de0f (patch)
treea1f399d1022a39bc2cc03d735b0450756928b0e3 /src/utils
parent2435e76db6611d9797f607daff321bb6d2bd2322 (diff)
downloadusdx-3ec8616aa76390280c7b51696b731a85e070de0f.tar.gz
usdx-3ec8616aa76390280c7b51696b731a85e070de0f.tar.xz
usdx-3ec8616aa76390280c7b51696b731a85e070de0f.zip
utils/rectangle: removed external constructors and added helper
constructors that generate a rectangle from GLint[4] or FTBBox are now helper functions to remove the external dependencies from the helper class
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/rectangle.hpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/utils/rectangle.hpp b/src/utils/rectangle.hpp
index f3f4477d..b1e67ba8 100644
--- a/src/utils/rectangle.hpp
+++ b/src/utils/rectangle.hpp
@@ -27,8 +27,6 @@
#ifndef RECTANGLE_HPP
#define RECTANGLE_HPP
-#include <ftgl.h>
-
#include "point.hpp"
#include "dimension.hpp"
#include "math.hpp"
@@ -66,18 +64,6 @@ namespace usdx
{
}
- Rectangle(const T rectangle[]) :
- point1(rectangle[0], rectangle[1]),
- point2(rectangle[0] + rectangle[2], rectangle[1] + rectangle[3])
- {
- }
-
- 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)
{