From 0d73f61828597b4b066335237b66b8428cb1e7cf Mon Sep 17 00:00:00 2001 From: Christophe Riccio Date: Sun, 30 Nov 2014 16:59:49 +0100 Subject: [PATCH] Deprecate GTX_bit --- glm/gtx/bit.hpp | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) 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