GLM  0.9.5
func_noise.hpp
1 
38 #ifndef glm_core_func_noise
39 #define glm_core_func_noise
40 
41 #include "type_vec1.hpp"
42 #include "type_vec2.hpp"
43 #include "type_vec3.hpp"
44 #include "setup.hpp"
45 
46 namespace glm
47 {
50 
57  template <typename genType>
58  GLM_FUNC_DECL typename genType::value_type noise1(genType const & x);
59 
66  template <typename genType>
67  GLM_FUNC_DECL detail::tvec2<typename genType::value_type, defaultp> noise2(genType const & x);
68 
75  template <typename genType>
76  GLM_FUNC_DECL detail::tvec3<typename genType::value_type, defaultp> noise3(genType const & x);
77 
84  template <typename genType>
85  GLM_FUNC_DECL detail::tvec4<typename genType::value_type, defaultp> noise4(genType const & x);
86 
88 }//namespace glm
89 
90 #include "func_noise.inl"
91 
92 #endif//glm_core_func_noise
GLM_FUNC_DECL genType::value_type noise1(genType const &x)
Returns a 1D noise value based on the input value x.
GLM_FUNC_DECL detail::tvec2< typename genType::value_type, defaultp > noise2(genType const &x)
Returns a 2D noise value based on the input value x.
GLM_FUNC_DECL detail::tvec4< typename genType::value_type, defaultp > noise4(genType const &x)
Returns a 4D noise value based on the input value x.
GLM_FUNC_DECL detail::tvec3< typename genType::value_type, defaultp > noise3(genType const &x)
Returns a 3D noise value based on the input value x.