0.9.6
|
Functions | |
template<typename genIUType > | |
GLM_FUNC_DECL genIUType | log2 (genIUType x) |
template<typename genIUType > | |
GLM_FUNC_DECL genIUType | mod (genIUType x, genIUType y) |
template<typename T , precision P, template< typename, precision > class vecType> | |
GLM_FUNC_DECL vecType< T, P > | mod (vecType< T, P > const &x, T y) |
template<typename T , precision P, template< typename, precision > class vecType> | |
GLM_FUNC_DECL vecType< T, P > | mod (vecType< T, P > const &x, vecType< T, P > const &y) |
Allow to perform bit operations on integer values.
<glm/gtc/integer.hpp> need to be included to use these functionalities.
GLM_FUNC_DECL genIUType glm::log2 | ( | genIUType | x | ) |
Returns the log2 of x for integer values.
Can be reliably using to compute mipmap count from the texture size.
GLM_FUNC_DECL genIUType glm::mod | ( | genIUType | x, |
genIUType | y | ||
) |
Modulus.
Returns x % y for each component in x using the floating point value y.
genIUType | Integer-point scalar or vector types. |
GLM_FUNC_DECL vecType< T, P > mod | ( | vecType< T, P > const & | x, |
T | y | ||
) |
Modulus.
Returns x % y for each component in x using the floating point value y.
T | Integer scalar types. |
vecType | vector types. |
GLM_FUNC_DECL vecType< T, P > mod | ( | vecType< T, P > const & | x, |
vecType< T, P > const & | y | ||
) |
Modulus.
Returns x % y for each component in x using the floating point value y.
T | Integer scalar types. |
vecType | vector types. |