diff --git a/glm/gtx/bit.hpp b/glm/gtx/bit.hpp index 454e43e9..b5c73687 100644 --- a/glm/gtx/bit.hpp +++ b/glm/gtx/bit.hpp @@ -65,40 +65,52 @@ namespace glm GLM_FUNC_DECL vecType highestBitValue(vecType const & value); /// Return the power of two number which value is just higher the input value. + /// Deprecated, use ceilPowerOfTwo from GTC_round instead /// + /// @see gtc_round /// @see gtx_bit template - GLM_FUNC_DECL genIUType powerOfTwoAbove(genIUType Value); + GLM_DEPRECATED GLM_FUNC_DECL genIUType powerOfTwoAbove(genIUType Value); /// Return the power of two number which value is just higher the input value. + /// Deprecated, use ceilPowerOfTwo from GTC_round instead /// + /// @see gtc_round /// @see gtx_bit template class vecType> - GLM_FUNC_DECL vecType powerOfTwoAbove(vecType const & value); + GLM_DEPRECATED GLM_FUNC_DECL vecType powerOfTwoAbove(vecType const & value); /// Return the power of two number which value is just lower the input value. + /// Deprecated, use floorPowerOfTwo from GTC_round instead /// + /// @see gtc_round /// @see gtx_bit template - GLM_FUNC_DECL genIUType powerOfTwoBelow(genIUType Value); + GLM_DEPRECATED GLM_FUNC_DECL genIUType powerOfTwoBelow(genIUType Value); /// Return the power of two number which value is just lower the input value. + /// Deprecated, use floorPowerOfTwo from GTC_round instead /// + /// @see gtc_round /// @see gtx_bit template class vecType> - GLM_FUNC_DECL vecType powerOfTwoBelow(vecType const & value); + GLM_DEPRECATED GLM_FUNC_DECL vecType powerOfTwoBelow(vecType const & value); /// Return the power of two number which value is the closet to the input value. + /// Deprecated, use roundPowerOfTwo from GTC_round instead /// + /// @see gtc_round /// @see gtx_bit template - GLM_FUNC_DECL genIUType powerOfTwoNearest(genIUType Value); + GLM_DEPRECATED GLM_FUNC_DECL genIUType powerOfTwoNearest(genIUType Value); /// Return the power of two number which value is the closet to the input value. + /// Deprecated, use roundPowerOfTwo from GTC_round instead /// + /// @see gtc_round /// @see gtx_bit template class vecType> - GLM_FUNC_DECL vecType powerOfTwoNearest(vecType const & value); + GLM_DEPRECATED GLM_FUNC_DECL vecType powerOfTwoNearest(vecType const & value); /// @} } //namespace glm