master
ブランチ master
ShaderPlayground / deps / glm / glm / gtx / wrap.hpp
1.4 KB、55行 生 Blame 履歴
1/// @ref gtx_wrap
2/// @file glm/gtx/wrap.hpp
3///
4/// @see core (dependence)
5///
6/// @defgroup gtx_wrap GLM_GTX_wrap
7/// @ingroup gtx
8///
9/// Include <glm/gtx/wrap.hpp> to use the features of this extension.
10///
11/// Wrapping mode of texture coordinates.
12
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
27namespace glm
28{
29 /// @addtogroup gtx_wrap
30 /// @{
31
32 /// Simulate GL_CLAMP OpenGL wrap mode
33 /// @see gtx_wrap extension.
34 template<typename genType>
35 GLM_FUNC_DECL genType clamp(genType const& Texcoord);
36
37 /// Simulate GL_REPEAT OpenGL wrap mode
38 /// @see gtx_wrap extension.
39 template<typename genType>
40 GLM_FUNC_DECL genType repeat(genType const& Texcoord);
41
42 /// Simulate GL_MIRRORED_REPEAT OpenGL wrap mode
43 /// @see gtx_wrap extension.
44 template<typename genType>
45 GLM_FUNC_DECL genType mirrorClamp(genType const& Texcoord);
46
47 /// Simulate GL_MIRROR_REPEAT OpenGL wrap mode
48 /// @see gtx_wrap extension.
49 template<typename genType>
50 GLM_FUNC_DECL genType mirrorRepeat(genType const& Texcoord);
51
52 /// @}
53}// namespace glm
54
55#include "wrap.inl"