43 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
44 # pragma message("GLM: GLM_GTX_optimum_pow extension included")
55 template <
typename genType>
56 GLM_FUNC_DECL genType
pow2(
const genType& x);
60 template <
typename genType>
61 GLM_FUNC_DECL genType
pow3(
const genType& x);
65 template <
typename genType>
66 GLM_FUNC_DECL genType
pow4(
const genType& x);
70 GLM_FUNC_DECL
bool powOfTwo(
int num);
74 template <precision P>
75 GLM_FUNC_DECL tvec2<bool, P>
powOfTwo(tvec2<int, P>
const & x);
79 template <precision P>
80 GLM_FUNC_DECL tvec3<bool, P>
powOfTwo(tvec3<int, P>
const & x);
84 template <precision P>
85 GLM_FUNC_DECL tvec4<bool, P>
powOfTwo(tvec4<int, P>
const & x);
91 #include "optimum_pow.inl"
GLM_FUNC_DECL genType pow3(const genType &x)
Returns x raised to the power of 3.
GLM_FUNC_DECL genType pow4(const genType &x)
Returns x raised to the power of 4.
GLM_FUNC_DECL tvec4< bool, P > powOfTwo(tvec4< int, P > const &x)
Checks to determine if the parameter component are power of 2 numbers.
GLM_FUNC_DECL genType pow2(const genType &x)
Returns x raised to the power of 2.