GLM Version 0.9.0

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 
00024         // Returns a 1D noise value based on the input value x.
00025         // From GLSL 1.30.08 specification, section 8.9.
00026         template <typename genType>
00027         typename genType::value_type noise1(genType const & x);
00028 
00029         // Returns a 2D noise value based on the input value x.
00030         // From GLSL 1.30.08 specification, section 8.9.
00031         template <typename genType>
00032         detail::tvec2<typename genType::value_type> noise2(genType const & x);
00033 
00034         // Returns a 3D noise value based on the input value x.
00035         // From GLSL 1.30.08 specification, section 8.9.
00036         template <typename genType>
00037         detail::tvec3<typename genType::value_type> noise3(genType const & x);
00038 
00039         // Returns a 4D noise value based on the input value x.
00040         // From GLSL 1.30.08 specification, section 8.9.
00041         template <typename genType>
00042         detail::tvec4<typename genType::value_type> noise4(genType const & x);
00043 
00044         }//namespace noise
00045         }//namespace function
00046         }//namespace core
00047 
00048         using namespace core::function::noise;
00049 }//namespace glm
00050 
00051 #include "func_noise.inl"
00052 
00053 #endif//glm_core_func_noise