scalar_common.hpp
Go to the documentation of this file.
#pragma once
// Dependency:
#include "../common.hpp"
#if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
# pragma message("GLM: GLM_EXT_scalar_common extension included")
#endif
namespace glm
{
template<typename T>
GLM_FUNC_DECL T min(T a, T b, T c);
template<typename T>
GLM_FUNC_DECL T min(T a, T b, T c, T d);
template<typename T>
GLM_FUNC_DECL T max(T a, T b, T c);
template<typename T>
GLM_FUNC_DECL T max(T a, T b, T c, T d);
template<typename T>
GLM_FUNC_DECL T fmin(T a, T b);
template<typename T>
GLM_FUNC_DECL T fmin(T a, T b, T c);
template<typename T>
GLM_FUNC_DECL T fmin(T a, T b, T c, T d);
template<typename T>
GLM_FUNC_DECL T fmax(T a, T b);
template<typename T>
GLM_FUNC_DECL T fmax(T a, T b, T C);
template<typename T>
GLM_FUNC_DECL T fmax(T a, T b, T C, T D);
template<typename genType>
GLM_FUNC_DECL genType fclamp(genType x, genType minVal, genType maxVal);
template<typename genType>
GLM_FUNC_DECL genType clamp(genType const& Texcoord);
template<typename genType>
GLM_FUNC_DECL genType repeat(genType const& Texcoord);
template<typename genType>
GLM_FUNC_DECL genType mirrorClamp(genType const& Texcoord);
template<typename genType>
GLM_FUNC_DECL genType mirrorRepeat(genType const& Texcoord);
template<typename genType>
GLM_FUNC_DECL int iround(genType const& x);
template<typename genType>
GLM_FUNC_DECL uint uround(genType const& x);
}//namespace glm
#include "scalar_common.inl"
glm::mirrorClamp
GLM_FUNC_DECL genType mirrorClamp(genType const &Texcoord)
Simulate GL_MIRRORED_REPEAT OpenGL wrap mode.
glm::min
GLM_FUNC_DECL T min(T a, T b, T c, T d)
Returns the minimum component-wise values of 4 inputs.
glm::fmin
GLM_FUNC_DECL T fmin(T a, T b, T c, T d)
Returns the minimum component-wise values of 4 inputs.
glm::repeat
GLM_FUNC_DECL genType repeat(genType const &Texcoord)
Simulate GL_REPEAT OpenGL wrap mode.
glm::fclamp
GLM_FUNC_DECL genType fclamp(genType x, genType minVal, genType maxVal)
Returns min(max(x, minVal), maxVal) for each component in x.
glm::uround
GLM_FUNC_DECL uint uround(genType const &x)
Returns a value equal to the nearest integer to x.
glm::mirrorRepeat
GLM_FUNC_DECL genType mirrorRepeat(genType const &Texcoord)
Simulate GL_MIRROR_REPEAT OpenGL wrap mode.
glm::iround
GLM_FUNC_DECL int iround(genType const &x)
Returns a value equal to the nearest integer to x.
glm::fmax
GLM_FUNC_DECL T fmax(T a, T b, T C, T D)
Returns the maximum component-wise values of 4 inputs.
glm::max
GLM_FUNC_DECL T max(T a, T b, T c, T d)
Returns the maximum component-wise values of 4 inputs.
glm::clamp
GLM_FUNC_DECL genType clamp(genType const &Texcoord)
Simulate GL_CLAMP OpenGL wrap mode.