Browse Source

Shaders: make method chaining return types consistent in templates.

Not sure why C++ allows either, it only leads to inconsistency.
pull/430/head
Vladimír Vondruš 6 years ago
parent
commit
1bc4101100
  1. 10
      src/Magnum/Shaders/DistanceFieldVector.h

10
src/Magnum/Shaders/DistanceFieldVector.h

@ -106,7 +106,7 @@ template<UnsignedInt dimensions> class MAGNUM_SHADERS_EXPORT DistanceFieldVector
* *
* Initial value is an identity matrix. * Initial value is an identity matrix.
*/ */
DistanceFieldVector& setTransformationProjectionMatrix(const MatrixTypeFor<dimensions, Float>& matrix); DistanceFieldVector<dimensions>& setTransformationProjectionMatrix(const MatrixTypeFor<dimensions, Float>& matrix);
/** /**
* @brief Set fill color * @brief Set fill color
@ -115,7 +115,7 @@ template<UnsignedInt dimensions> class MAGNUM_SHADERS_EXPORT DistanceFieldVector
* Initial value is @cpp 0xffffffff_rgbaf @ce. * Initial value is @cpp 0xffffffff_rgbaf @ce.
* @see @ref setOutlineColor() * @see @ref setOutlineColor()
*/ */
DistanceFieldVector& setColor(const Color4& color); DistanceFieldVector<dimensions>& setColor(const Color4& color);
/** /**
* @brief Set outline color * @brief Set outline color
@ -125,7 +125,7 @@ template<UnsignedInt dimensions> class MAGNUM_SHADERS_EXPORT DistanceFieldVector
* drawn --- see @ref setOutlineRange() for more information. * drawn --- see @ref setOutlineRange() for more information.
* @see @ref setOutlineRange(), @ref setColor() * @see @ref setOutlineRange(), @ref setColor()
*/ */
DistanceFieldVector& setOutlineColor(const Color4& color); DistanceFieldVector<dimensions>& setOutlineColor(const Color4& color);
/** /**
* @brief Set outline range * @brief Set outline range
@ -141,7 +141,7 @@ template<UnsignedInt dimensions> class MAGNUM_SHADERS_EXPORT DistanceFieldVector
* *
* @see @ref setOutlineColor() * @see @ref setOutlineColor()
*/ */
DistanceFieldVector& setOutlineRange(Float start, Float end); DistanceFieldVector<dimensions>& setOutlineRange(Float start, Float end);
/** /**
* @brief Set smoothness radius * @brief Set smoothness radius
@ -151,7 +151,7 @@ template<UnsignedInt dimensions> class MAGNUM_SHADERS_EXPORT DistanceFieldVector
* smaller values will make them look more crisp (but possibly * smaller values will make them look more crisp (but possibly
* aliased). Initial value is @cpp 0.04f @ce. * aliased). Initial value is @cpp 0.04f @ce.
*/ */
DistanceFieldVector& setSmoothness(Float value); DistanceFieldVector<dimensions>& setSmoothness(Float value);
#ifndef DOXYGEN_GENERATING_OUTPUT #ifndef DOXYGEN_GENERATING_OUTPUT
/* Overloads to remove WTF-factor from method chaining order */ /* Overloads to remove WTF-factor from method chaining order */

Loading…
Cancel
Save