FlukyEngine
scalar_common.hpp
Go to the documentation of this file.
1 
14 #pragma once
15 
16 // Dependency:
17 #include "../common.hpp"
18 
19 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
20 # pragma message("GLM: GLM_EXT_scalar_common extension included")
21 #endif
22 
23 namespace glm
24 {
27 
33  template<typename T>
34  GLM_FUNC_DECL T min(T a, T b, T c);
35 
41  template<typename T>
42  GLM_FUNC_DECL T min(T a, T b, T c, T d);
43 
49  template<typename T>
50  GLM_FUNC_DECL T max(T a, T b, T c);
51 
57  template<typename T>
58  GLM_FUNC_DECL T max(T a, T b, T c, T d);
59 
66  template<typename T>
67  GLM_FUNC_DECL T fmin(T a, T b);
68 
75  template<typename T>
76  GLM_FUNC_DECL T fmin(T a, T b, T c);
77 
84  template<typename T>
85  GLM_FUNC_DECL T fmin(T a, T b, T c, T d);
86 
93  template<typename T>
94  GLM_FUNC_DECL T fmax(T a, T b);
95 
102  template<typename T>
103  GLM_FUNC_DECL T fmax(T a, T b, T C);
104 
111  template<typename T>
112  GLM_FUNC_DECL T fmax(T a, T b, T C, T D);
113 
119  template<typename genType>
120  GLM_FUNC_DECL genType fclamp(genType x, genType minVal, genType maxVal);
121 
127  template<typename genType>
128  GLM_FUNC_DECL genType clamp(genType const& Texcoord);
129 
135  template<typename genType>
136  GLM_FUNC_DECL genType repeat(genType const& Texcoord);
137 
143  template<typename genType>
144  GLM_FUNC_DECL genType mirrorClamp(genType const& Texcoord);
145 
151  template<typename genType>
152  GLM_FUNC_DECL genType mirrorRepeat(genType const& Texcoord);
153 
155 }//namespace glm
156 
157 #include "scalar_common.inl"
GLM_FUNC_DECL genType mirrorRepeat(genType const &Texcoord)
Simulate GL_MIRROR_REPEAT OpenGL wrap mode.
Definition: scalar_common.inl:143
GLM_FUNC_DECL genType mirrorClamp(genType const &Texcoord)
Simulate GL_MIRRORED_REPEAT OpenGL wrap mode.
Definition: scalar_common.inl:137
GLM_FUNC_DECL GLM_CONSTEXPR genType max(genType x, genType y)
Returns y if x < y; otherwise, it returns x.
Definition: func_common.inl:25
Core features
Definition: common.hpp:20
GLM_FUNC_DECL GLM_CONSTEXPR genType clamp(genType x, genType minVal, genType maxVal)
Returns min(max(x, minVal), maxVal) for each component in x using the floating-point values minVal an...
Definition: func_common.inl:505
GLM_FUNC_DECL T fmin(T a, T b)
Returns the minimum component-wise values of 2 inputs.
Definition: scalar_common.inl:31
GLM_FUNC_DECL GLM_CONSTEXPR genType min(genType x, genType y)
Returns y if y < x; otherwise, it returns x.
Definition: func_common.inl:17
GLM_FUNC_DECL genType repeat(genType const &Texcoord)
Simulate GL_REPEAT OpenGL wrap mode.
Definition: scalar_common.inl:131
GLM_FUNC_DECL T fmax(T a, T b)
Returns the maximum component-wise values of 2 inputs.
Definition: scalar_common.inl:76
GLM_FUNC_DECL genType fclamp(genType x, genType minVal, genType maxVal)
Returns min(max(x, minVal), maxVal) for each component in x.
Definition: scalar_common.inl:118