Flow Visualisation
|
Add support for integer for core functions. More...
Typedefs | |
typedef signed int | glm::sint |
Functions | |
int | glm::pow (int x, int y) |
int | glm::sqrt (int x) |
template<typename genIUType > | |
genIUType | glm::log2 (genIUType const &x) |
unsigned int | glm::floor_log2 (unsigned int x) |
int | glm::mod (int x, int y) |
template<typename genType > | |
genType | glm::factorial (genType const &x) |
uint | glm::pow (uint x, uint y) |
uint | glm::sqrt (uint x) |
uint | glm::mod (uint x, uint y) |
uint | glm::nlz (uint x) |
Add support for integer for core functions.
<glm/gtx/integer.hpp> need to be included to use these functionalities.
typedef signed int glm::sint |
32bit signed integer. From GLM_GTX_integer extension.
genType glm::factorial | ( | genType const & | x | ) |
Return the factorial value of a number (!12 max, integer only) From GLM_GTX_integer extension.
unsigned int glm::floor_log2 | ( | unsigned int | x | ) |
Returns the floor log2 of x. From GLM_GTX_integer extension.
genIUType glm::log2 | ( | genIUType const & | x | ) |
Returns the log2 of x. Can be reliably using to compute mipmap count from the texture size. From GLM_GTX_integer extension.
GLM_FUNC_QUALIFIER int glm::mod | ( | int | x, |
int | y | ||
) |
Modulus. Returns x - y * floor(x / y) for each component in x using the floating point value y. From GLM_GTX_integer extension.
GLM_FUNC_QUALIFIER uint glm::mod | ( | uint | x, |
uint | y | ||
) |
Modulus. Returns x - y * floor(x / y) for each component in x using the floating point value y. From GLM_GTX_integer extension.
GLM_FUNC_QUALIFIER unsigned int glm::nlz | ( | uint | x | ) |
Returns the number of leading zeros. From GLM_GTX_integer extension.
GLM_FUNC_QUALIFIER int glm::pow | ( | int | x, |
int | y | ||
) |
Returns x raised to the y power. From GLM_GTX_integer extension.
GLM_FUNC_QUALIFIER uint glm::pow | ( | uint | x, |
uint | y | ||
) |
Returns x raised to the y power. From GLM_GTX_integer extension.
GLM_FUNC_QUALIFIER int glm::sqrt | ( | int | x | ) |
Returns the positive square root of x. From GLM_GTX_integer extension.
GLM_FUNC_QUALIFIER uint glm::sqrt | ( | uint | x | ) |
Returns the positive square root of x. From GLM_GTX_integer extension.