GLM  0.9.5
wrap.hpp
Go to the documentation of this file.
1 
38 #ifndef GLM_GTX_wrap
39 #define GLM_GTX_wrap
40 
41 // Dependency:
42 #include "../glm.hpp"
43 
44 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
45 # pragma message("GLM: GLM_GTX_wrap extension included")
46 #endif
47 
48 namespace glm
49 {
52 
55  template <typename genType>
56  GLM_FUNC_DECL genType clamp(genType const & Texcoord);
57 
60  template <typename genType>
61  GLM_FUNC_DECL genType repeat(genType const & Texcoord);
62 
65  template <typename genType>
66  GLM_FUNC_DECL genType mirrorRepeat(genType const & Texcoord);
67 
69 }// namespace glm
70 
71 #include "wrap.inl"
72 
73 #endif//GLM_GTX_wrap
GLM_FUNC_DECL genType mirrorRepeat(genType const &Texcoord)
Simulate GL_MIRROR_REPEAT OpenGL wrap mode.
GLM_FUNC_DECL genType clamp(genType const &x, genType const &minVal, genType const &maxVal)
Returns min(max(x, minVal), maxVal) for each component in x using the floating-point values minVal an...
GLM_FUNC_DECL genType repeat(genType const &Texcoord)
Simulate GL_REPEAT OpenGL wrap mode.