0.9.9 API documenation: wrap.hpp Source File

| 0.9.9 API documenation

wrap.hpp
Go to the documentation of this file.
1
13 #pragma once
14
15 // Dependency:
16 #include "../glm.hpp"
17 #include "../gtc/vec1.hpp"
18
19 #ifndef GLM_ENABLE_EXPERIMENTAL
20 # error "GLM: GLM_GTX_wrap is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
21 #endif
22
23 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
24 # pragma message("GLM: GLM_GTX_wrap extension included")
25 #endif
26
27 namespace glm
28 {
31
34 template<typename genType>
35 GLM_FUNC_DECL genType clamp(genType const& Texcoord);
36
39 template<typename genType>
40 GLM_FUNC_DECL genType repeat(genType const& Texcoord);
41
44 template<typename genType>
45 GLM_FUNC_DECL genType mirrorClamp(genType const& Texcoord);
46
49 template<typename genType>
50 GLM_FUNC_DECL genType mirrorRepeat(genType const& Texcoord);
51
53 }// namespace glm
54
55 #include "wrap.inl"
glm::clamp
GLM_FUNC_DECL genType clamp(genType const &Texcoord)
Simulate GL_CLAMP OpenGL wrap mode.
glm::repeat
GLM_FUNC_DECL genType repeat(genType const &Texcoord)
Simulate GL_REPEAT OpenGL wrap mode.
glm::mirrorRepeat
GLM_FUNC_DECL genType mirrorRepeat(genType const &Texcoord)
Simulate GL_MIRROR_REPEAT OpenGL wrap mode.
glm::mirrorClamp
GLM_FUNC_DECL genType mirrorClamp(genType const &Texcoord)
Simulate GL_MIRRORED_REPEAT OpenGL wrap mode.
glm
Definition: common.hpp:20