HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_SimplexNoise.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: UT_SimplexNoise.h ( UT Library, C++)
7  *
8  * COMMENTS:
9  * Implements simplex noise and its curl.
10  */
11 
12 #ifndef __UT_SimplexNoise__
13 #define __UT_SimplexNoise__
14 
15 #include "UT_API.h"
16 #include <SYS/SYS_Types.h>
17 
18 // Evaluates simplex noise. T can be fpreal32, fpreal64, or v4uf.
19 namespace UT_SimplexNoise
20 {
21  template <typename T>
22  T noise1D2D(T x, T y);
23  template <typename T>
24  T noise1D3D(T x, T y, T z);
25  template <typename T>
26  T noise1D4D(T x, T y, T z, T w);
27 
28  template <typename T>
29  T noise1D2DDeriv(T deriv[2], T x, T y);
30  template <typename T>
31  T noise1D3DDeriv(T deriv[3], T x, T y, T z);
32  template <typename T>
33  T noise1D4DDeriv(T deriv[4], T x, T y, T z, T w);
34 
35  template <typename T>
36  void noise2D2D(T f[2], T x, T y);
37  template <typename T>
38  void noise2D3D(T f[2], T x, T y, T z);
39  template <typename T>
40  void noise2D4D(T f[2], T x, T y, T z, T w);
41 
42  template <typename T>
43  void noise3D2D(T f[3], T x, T y);
44  template <typename T>
45  void noise3D3D(T f[3], T x, T y, T z);
46  template <typename T>
47  void noise3D4D(T f[3], T x, T y, T z, T w);
48 
49  template <typename T>
50  void curlnoise2D2D(T f[2], T x, T y);
51  template <typename T>
52  void curlnoise2D3D(T f[2], T x, T y, T z);
53  template <typename T>
54  void curlnoise2D4D(T f[2], T x, T y, T z, T w);
55 
56  template <typename T>
57  void curlnoise3D3D(T f[3], T x, T y, T z);
58  template <typename T>
59  void curlnoise3D4D(T f[3], T x, T y, T z, T w);
60 };
61 
62 #endif
63 
void curlnoise2D2D(T f[2], T x, T y)
void noise2D3D(T f[2], T x, T y, T z)
T noise1D2D(T x, T y)
T noise1D3DDeriv(T deriv[3], T x, T y, T z)
GLdouble GLdouble GLdouble z
Definition: glcorearb.h:848
T noise1D4DDeriv(T deriv[4], T x, T y, T z, T w)
GLint y
Definition: glcorearb.h:103
T noise1D4D(T x, T y, T z, T w)
void noise2D2D(T f[2], T x, T y)
void curlnoise2D3D(T f[2], T x, T y, T z)
GLfloat f
Definition: glcorearb.h:1926
void noise3D4D(T f[3], T x, T y, T z, T w)
void curlnoise2D4D(T f[2], T x, T y, T z, T w)
T noise1D2DDeriv(T deriv[2], T x, T y)
GLint GLenum GLint x
Definition: glcorearb.h:409
void noise3D2D(T f[3], T x, T y)
void curlnoise3D4D(T f[3], T x, T y, T z, T w)
void curlnoise3D3D(T f[3], T x, T y, T z)
GLubyte GLubyte GLubyte GLubyte w
Definition: glcorearb.h:857
void noise2D4D(T f[2], T x, T y, T z, T w)
T noise1D3D(T x, T y, T z)
void noise3D3D(T f[3], T x, T y, T z)