func_noise.hpp

00001 
00002 // OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)
00004 // Created : 2008-08-01
00005 // Updated : 2008-09-10
00006 // Licence : This source is under MIT License
00007 // File    : glm/core/func_noise.hpp
00009 
00010 #ifndef glm_core_func_noise
00011 #define glm_core_func_noise
00012 
00013 namespace glm
00014 {
00015         namespace test{
00016                 void main_core_func_noise();
00017         }//namespace test
00018 
00019         namespace core{
00020         namespace function{
00021         // Define all noise functions from Section 8.9 of GLSL 1.30.8 specification. Included in glm namespace.
00022         namespace noise{
00023 
00026 
00027         // Returns a 1D noise value based on the input value x.
00028         // From GLSL 1.30.08 specification, section 8.9.
00029         template <typename genType>
00030         typename genType::value_type noise1(genType const & x);
00031 
00032         // Returns a 2D noise value based on the input value x.
00033         // From GLSL 1.30.08 specification, section 8.9.
00034         template <typename genType>
00035         detail::tvec2<typename genType::value_type> noise2(genType const & x);
00036 
00037         // Returns a 3D noise value based on the input value x.
00038         // From GLSL 1.30.08 specification, section 8.9.
00039         template <typename genType>
00040         detail::tvec3<typename genType::value_type> noise3(genType const & x);
00041 
00042         // Returns a 4D noise value based on the input value x.
00043         // From GLSL 1.30.08 specification, section 8.9.
00044         template <typename genType>
00045         detail::tvec4<typename genType::value_type> noise4(genType const & x);
00046 
00048 
00049         }//namespace noise
00050         }//namespace function
00051         }//namespace core
00052 
00053         using namespace core::function::noise;
00054 }//namespace glm
00055 
00056 #include "func_noise.inl"
00057 
00058 #endif//glm_core_func_noise