Browse Source

Math: removed long-deprecated Matrix::Identity and Matrix::Zero tags.

Use Math::IdentityInit and Math::ZeroInit instead.
pull/231/head
Vladimír Vondruš 8 years ago
parent
commit
ddde4a3277
  1. 24
      src/Magnum/Math/Matrix.h

24
src/Magnum/Math/Matrix.h

@ -53,30 +53,6 @@ template<std::size_t size, class T> class Matrix: public RectangularMatrix<size,
Size = size /**< Matrix size */ Size = size /**< Matrix size */
}; };
#ifdef MAGNUM_BUILD_DEPRECATED
/**
* @brief Pass to constructor to create zero-filled matrix
* @deprecated Use @ref ZeroInitT and @ref ZeroInit instead.
*/
#ifdef DOXYGEN_GENERATING_OUTPUT
enum ZeroType { Zero };
#else
CORRADE_DEPRECATED("use Math::ZeroInitT instead") typedef ZeroInitT ZeroType;
CORRADE_DEPRECATED("use Math::ZeroInit instead") constexpr static ZeroInitT Zero{ZeroInitT::Init{}};
#endif
/**
* @brief Pass to constructor to create identity matrix
* @deprecated Use @ref IdentityInitT and @ref IdentityInit instead.
*/
#ifdef DOXYGEN_GENERATING_OUTPUT
enum IdentityType { Identity };
#else
CORRADE_DEPRECATED("use Math::IdentityInitT instead") typedef IdentityInitT IdentityType;
CORRADE_DEPRECATED("use Math::IdentityInit instead") constexpr static IdentityInitT Identity{IdentityInitT::Init{}};
#endif
#endif
/** /**
* @brief Default constructor * @brief Default constructor
* *

Loading…
Cancel
Save