noise.hpp
00001 
00002 // OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)
00004 // Based on the work of Stefan Gustavson and Ashima Arts on "webgl-noise": 
00005 // https://github.com/ashima/webgl-noise 
00006 // Following Stefan Gustavson's paper "Simplex noise demystified": 
00007 // http://www.itn.liu.se/~stegu/simplexnoise/simplexnoise.pdf
00009 // Created : 2011-04-21
00010 // Updated : 2011-04-21
00011 // Licence : This source is under MIT License
00012 // File    : glm/gtx/noise.hpp
00014 // Dependency:
00015 // - GLM core
00017 
00018 #ifndef glm_gtx_noise
00019 #define glm_gtx_noise
00020 
00021 // Dependency:
00022 #include "../glm.hpp"
00023 
00024 #if(defined(GLM_MESSAGES) && !defined(glm_ext))
00025 #       pragma message("GLM: GLM_GTX_noise extension included")
00026 #endif
00027 
00028 namespace glm{
00029 namespace gtx{
00030 namespace noise 
00031 {
00034 
00037         template <typename T, template<typename> class vecType> 
00038     T perlin(
00039                 vecType<T> const & p);
00040                 
00043         template <typename T, template<typename> class vecType> 
00044     T perlin(
00045                 vecType<T> const & p, 
00046                 vecType<T> const & rep);
00047 
00050         template <typename T, template<typename> class vecType> 
00051     T simplex(
00052                 vecType<T> const & p);
00053 
00055 }//namespace noise
00056 }//namespace gtx
00057 }//namespace glm
00058 
00059 #include "noise.inl"
00060 
00061 namespace glm{using namespace gtx::noise;}
00062 
00063 #endif//glm_gtx_noise