diff options
Diffstat (limited to 'src/menu/clipping_helper.hpp')
-rw-r--r-- | src/menu/clipping_helper.hpp | 6 |
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(); |