Browse Source

Trade: removed deprecated MeshData constructors.

Deprecated in 76aab47291 (Feb 2017).
simd
Vladimír Vondruš 8 years ago
parent
commit
779decd12d
  1. 3
      doc/changelog.dox
  2. 4
      src/Magnum/Trade/MeshData2D.cpp
  3. 7
      src/Magnum/Trade/MeshData2D.h
  4. 4
      src/Magnum/Trade/MeshData3D.cpp
  5. 7
      src/Magnum/Trade/MeshData3D.h

3
doc/changelog.dox

@ -164,6 +164,9 @@ See also:
@ref GL::OpenGLTester library instead. Note that the deprecated @ref GL::OpenGLTester library instead. Note that the deprecated
`Magnum/OpenGLTester.h` header is still present, along with all other `Magnum/OpenGLTester.h` header is still present, along with all other
deprecated GL-specific headers and APIs in the project root. deprecated GL-specific headers and APIs in the project root.
- Removed five-argument @ref Trade::MeshData2D and six-argument
@ref Trade::MeshData3D constructors that were deprecated since February
2017. Use the full six/seven-argument versions instead.
@section changelog-2018-10 2018.10 @section changelog-2018-10 2018.10

4
src/Magnum/Trade/MeshData2D.cpp

@ -33,10 +33,6 @@ MeshData2D::MeshData2D(const MeshPrimitive primitive, std::vector<UnsignedInt> i
CORRADE_ASSERT(!_positions.empty(), "Trade::MeshData2D: no position array specified", ); CORRADE_ASSERT(!_positions.empty(), "Trade::MeshData2D: no position array specified", );
} }
#ifdef MAGNUM_BUILD_DEPRECATED
MeshData2D::MeshData2D(const MeshPrimitive primitive, std::vector<UnsignedInt> indices, std::vector<std::vector<Vector2>> positions, std::vector<std::vector<Vector2>> textureCoords2D, const void* const importerState): MeshData2D{primitive, std::move(indices), std::move(positions), std::move(textureCoords2D), {}, importerState} {} /* LCOV_EXCL_LINE */
#endif
MeshData2D::MeshData2D(MeshData2D&&) MeshData2D::MeshData2D(MeshData2D&&)
#if !defined(__GNUC__) || __GNUC__*100 + __GNUC_MINOR__ != 409 #if !defined(__GNUC__) || __GNUC__*100 + __GNUC_MINOR__ != 409
noexcept noexcept

7
src/Magnum/Trade/MeshData2D.h

@ -68,13 +68,6 @@ class MAGNUM_TRADE_EXPORT MeshData2D {
*/ */
explicit MeshData2D(MeshPrimitive primitive, std::vector<UnsignedInt> indices, std::vector<std::vector<Vector2>> positions, std::vector<std::vector<Vector2>> textureCoords2D, std::vector<std::vector<Color4>> colors, const void* importerState = nullptr); explicit MeshData2D(MeshPrimitive primitive, std::vector<UnsignedInt> indices, std::vector<std::vector<Vector2>> positions, std::vector<std::vector<Vector2>> textureCoords2D, std::vector<std::vector<Color4>> colors, const void* importerState = nullptr);
#ifdef MAGNUM_BUILD_DEPRECATED
/** @brief @copybrief MeshData2D(MeshPrimitive, std::vector<UnsignedInt>, std::vector<std::vector<Vector2>>, std::vector<std::vector<Vector2>>, std::vector<std::vector<Color4>>, const void*)
* @deprecated Use @ref MeshData2D(MeshPrimitive, std::vector<UnsignedInt>, std::vector<std::vector<Vector2>>, std::vector<std::vector<Vector2>>, std::vector<std::vector<Color4>>, const void*) instead.
*/
CORRADE_DEPRECATED("Use MeshData2D(MeshPrimitive, std::vector<UnsignedInt>, std::vector<std::vector<Vector2>>, std::vector<std::vector<Vector2>>, std::vector<std::vector<Color4>>, const void*) instead") explicit MeshData2D(MeshPrimitive primitive, std::vector<UnsignedInt> indices, std::vector<std::vector<Vector2>> positions, std::vector<std::vector<Vector2>> textureCoords2D, const void* importerState = nullptr);
#endif
/** @brief Copying is not allowed */ /** @brief Copying is not allowed */
MeshData2D(const MeshData2D&) = delete; MeshData2D(const MeshData2D&) = delete;

4
src/Magnum/Trade/MeshData3D.cpp

@ -33,10 +33,6 @@ MeshData3D::MeshData3D(const MeshPrimitive primitive, std::vector<UnsignedInt> i
CORRADE_ASSERT(!_positions.empty(), "Trade::MeshData3D: no position array specified", ); CORRADE_ASSERT(!_positions.empty(), "Trade::MeshData3D: no position array specified", );
} }
#ifdef MAGNUM_BUILD_DEPRECATED
MeshData3D::MeshData3D(const MeshPrimitive primitive, std::vector<UnsignedInt> indices, std::vector<std::vector<Vector3>> positions, std::vector<std::vector<Vector3>> normals, std::vector<std::vector<Vector2>> textureCoords2D, const void* const importerState): MeshData3D{primitive, std::move(indices), std::move(positions), std::move(normals), std::move(textureCoords2D), {}, importerState} {} /* LCOV_EXCL_LINE */
#endif
MeshData3D::MeshData3D(MeshData3D&&) MeshData3D::MeshData3D(MeshData3D&&)
#if !defined(__GNUC__) || __GNUC__*100 + __GNUC_MINOR__ != 409 #if !defined(__GNUC__) || __GNUC__*100 + __GNUC_MINOR__ != 409
noexcept noexcept

7
src/Magnum/Trade/MeshData3D.h

@ -69,13 +69,6 @@ class MAGNUM_TRADE_EXPORT MeshData3D {
*/ */
explicit MeshData3D(MeshPrimitive primitive, std::vector<UnsignedInt> indices, std::vector<std::vector<Vector3>> positions, std::vector<std::vector<Vector3>> normals, std::vector<std::vector<Vector2>> textureCoords2D, std::vector<std::vector<Color4>> colors, const void* importerState = nullptr); explicit MeshData3D(MeshPrimitive primitive, std::vector<UnsignedInt> indices, std::vector<std::vector<Vector3>> positions, std::vector<std::vector<Vector3>> normals, std::vector<std::vector<Vector2>> textureCoords2D, std::vector<std::vector<Color4>> colors, const void* importerState = nullptr);
#ifdef MAGNUM_BUILD_DEPRECATED
/** @brief @copybrief MeshData3D(MeshPrimitive, std::vector<UnsignedInt>, std::vector<std::vector<Vector3>>, std::vector<std::vector<Vector3>>, std::vector<std::vector<Vector2>>, std::vector<std::vector<Color4>>, const void*)
* @deprecated Use @ref MeshData3D(MeshPrimitive, std::vector<UnsignedInt>, std::vector<std::vector<Vector3>>, std::vector<std::vector<Vector3>>, std::vector<std::vector<Vector2>>, std::vector<std::vector<Color4>>, const void*) instead.
*/
CORRADE_DEPRECATED("Use MeshData3D(MeshPrimitive, std::vector<UnsignedInt>, std::vector<std::vector<Vector3>>, std::vector<std::vector<Vector3>>, std::vector<std::vector<Vector2>>, std::vector<std::vector<Color4>>, const void*) instead") explicit MeshData3D(MeshPrimitive primitive, std::vector<UnsignedInt> indices, std::vector<std::vector<Vector3>> positions, std::vector<std::vector<Vector3>> normals, std::vector<std::vector<Vector2>> textureCoords2D, const void* importerState = nullptr);
#endif
/** @brief Copying is not allowed */ /** @brief Copying is not allowed */
MeshData3D(const MeshData3D&) = delete; MeshData3D(const MeshData3D&) = delete;

Loading…
Cancel
Save