Browse Source

Math: added Range::data().

The main side-effect of this is that the data layout is now really
specified, making it useful for various glGet*(GL_*_RANGE) calls.
pull/55/merge
Vladimír Vondruš 12 years ago
parent
commit
16eb32740b
  1. 7
      src/Magnum/Math/Range.h

7
src/Magnum/Math/Range.h

@ -103,6 +103,13 @@ template<UnsignedInt dimensions, class T> class Range {
return !operator==(other);
}
/**
* @brief Raw data
* @return One-dimensional array of `dimensions`*2 length.
*/
T* data() { return _min.data(); }
constexpr const T* data() const { return _min.data(); } /**< @overload */
/**
* @brief Minimal coordinates (inclusive)
*

Loading…
Cancel
Save