aboutsummaryrefslogtreecommitdiffstats
path: root/src/menu/clipping_helper.hpp
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/menu/clipping_helper.hpp
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 '')
-rw-r--r--src/menu/clipping_helper.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/menu/clipping_helper.hpp b/src/menu/clipping_helper.hpp
index 119cc3c2..0435f01f 100644
--- a/src/menu/clipping_helper.hpp
+++ b/src/menu/clipping_helper.hpp
@@ -42,6 +42,12 @@ namespace usdx
GLboolean was_enabled;
GLint scissor_box[4];
+ /**
+ * Helper to create a Rectangle<int> object out of an GLint array. This
+ * array is returned by glGetIntegerv with GL_SCISSOR_BOX. The helper is
+ * used for converting the OpenGL array to the common internal format.
+ */
+ static Rectangle<int> makeRect(GLint box[4]);
public:
ClippingHelper(const Rectangle<int>&);
virtual ~ClippingHelper();