Fixed GTX_easing build on VS2013

master
Christophe Riccio ago%!(EXTRA string=7 years)
parent c58b60ec2a
commit 1cd7a47279
  1. 18
      glm/gtx/easing.hpp
  2. 18
      glm/gtx/easing.inl
  3. 18
      test/gtx/gtx_easing.cpp

@ -171,20 +171,32 @@ namespace glm{
template <typename genType>
GLM_FUNC_DECL genType elasticEaseInOut(genType const & a);
/// @see gtx_easing
template <typename genType>
GLM_FUNC_DECL genType backEaseIn(genType const& a);
/// @see gtx_easing
template <typename genType>
GLM_FUNC_DECL genType backEaseOut(genType const& a);
/// @see gtx_easing
template <typename genType>
GLM_FUNC_DECL genType backEaseInOut(genType const& a);
/// @param o Optional overshoot modifier
/// @see gtx_easing
template <typename genType>
GLM_FUNC_DECL genType backEaseIn(genType const & a, genType const & o = 1.70158f);
GLM_FUNC_DECL genType backEaseIn(genType const& a, genType const& o);
/// @param o Optional overshoot modifier
/// @see gtx_easing
template <typename genType>
GLM_FUNC_DECL genType backEaseOut(genType const & a, genType const & o = 1.70158f);
GLM_FUNC_DECL genType backEaseOut(genType const& a, genType const& o);
/// @param o Optional overshoot modifier
/// @see gtx_easing
template <typename genType>
GLM_FUNC_DECL genType backEaseInOut(genType const & a, genType const & o = 1.70158f);
GLM_FUNC_DECL genType backEaseInOut(genType const& a, genType const& o);
template <typename genType>
GLM_FUNC_DECL genType bounceEaseIn(genType const& a);

@ -361,6 +361,24 @@ namespace glm{
}
}
template <typename genType>
GLM_FUNC_QUALIFIER genType backEaseIn(genType const& a)
{
return backEaseIn(a, static_cast<genType>(1.70158));
}
template <typename genType>
GLM_FUNC_QUALIFIER genType backEaseOut(genType const& a)
{
return backEaseOut(a, static_cast<genType>(1.70158));
}
template <typename genType>
GLM_FUNC_QUALIFIER genType backEaseInOut(genType const& a)
{
return backEaseInOut(a, static_cast<genType>(1.70158));
}
template <typename genType>
GLM_FUNC_QUALIFIER genType bounceEaseOut(genType const& a)
{

@ -13,39 +13,39 @@ namespace
T r;
r = glm::linearInterpolation(a);
//
r = glm::quadraticEaseIn(a);
r = glm::quadraticEaseOut(a);
r = glm::quadraticEaseInOut(a);
//
r = glm::cubicEaseIn(a);
r = glm::cubicEaseOut(a);
r = glm::cubicEaseInOut(a);
//
r = glm::quarticEaseIn(a);
r = glm::quarticEaseOut(a);
r = glm::quinticEaseInOut(a);
//
r = glm::sineEaseIn(a);
r = glm::sineEaseOut(a);
r = glm::sineEaseInOut(a);
//
r = glm::circularEaseIn(a);
r = glm::circularEaseOut(a);
r = glm::circularEaseInOut(a);
//
r = glm::exponentialEaseIn(a);;
r = glm::exponentialEaseOut(a);
r = glm::exponentialEaseInOut(a);
//
r = glm::elasticEaseIn(a);
r = glm::elasticEaseOut(a);
r = glm::elasticEaseInOut(a);
//
r = glm::backEaseIn(a);
r = glm::backEaseOut(a);
r = glm::backEaseInOut(a);
//
r = glm::bounceEaseIn(a);;
r = glm::bounceEaseOut(a);
r = glm::bounceEaseInOut(a);

Loading…
Cancel
Save