GLUS
Functions
glus_perlin.h File Reference

Go to the source code of this file.

Functions

GLUSAPI GLUSboolean GLUSAPIENTRY glusPerlinCreateNoise1D (GLUStgaimage *image, const GLUSint width, const GLUSint seed, const GLUSfloat frequency, const GLUSfloat amplitude, const GLUSfloat persistence, const GLUSint octaves)
 Creates a 1D perlin noise texture. More...
 
GLUSAPI GLUSboolean GLUSAPIENTRY glusPerlinCreateNoise2D (GLUStgaimage *image, const GLUSint width, const GLUSint height, const GLUSint seed, const GLUSfloat frequency, const GLUSfloat amplitude, const GLUSfloat persistence, const GLUSint octaves)
 Creates a 2D perlin noise texture. More...
 
GLUSAPI GLUSboolean GLUSAPIENTRY glusPerlinCreateNoise3D (GLUStgaimage *image, const GLUSint width, const GLUSint height, const GLUSint depth, const GLUSint seed, const GLUSfloat frequency, const GLUSfloat amplitude, const GLUSfloat persistence, const GLUSint octaves)
 Creates a 3D perlin noise texture. More...
 

Function Documentation

GLUSAPI GLUSboolean GLUSAPIENTRY glusPerlinCreateNoise1D ( GLUStgaimage image,
const GLUSint  width,
const GLUSint  seed,
const GLUSfloat  frequency,
const GLUSfloat  amplitude,
const GLUSfloat  persistence,
const GLUSint  octaves 
)

Creates a 1D perlin noise texture.

See OpenGL Programming Guide 4.3, p.460ff

Parameters
imageThe perlin noise texture will be stored into this image.
widthWidth of the texture.
seedRandom seed number.
frequencyFrequency of the noise.
amplitudeAmplitude of the noise.
persistencePersistence of the noise.
octavesOctaves of the noise.
Returns
GLUS_TRUE, if creation succeeded.
GLUSAPI GLUSboolean GLUSAPIENTRY glusPerlinCreateNoise2D ( GLUStgaimage image,
const GLUSint  width,
const GLUSint  height,
const GLUSint  seed,
const GLUSfloat  frequency,
const GLUSfloat  amplitude,
const GLUSfloat  persistence,
const GLUSint  octaves 
)

Creates a 2D perlin noise texture.

See OpenGL Programming Guide 4.3, p.460ff

Parameters
imageThe perlin noise texture will be stored into this image.
widthWidth of the texture.
heightHeight of the texture
seedRandom seed number.
frequencyFrequency of the noise.
amplitudeAmplitude of the noise.
persistencePersistence of the noise.
octavesOctaves of the noise.
Returns
GLUS_TRUE, if creation succeeded.
GLUSAPI GLUSboolean GLUSAPIENTRY glusPerlinCreateNoise3D ( GLUStgaimage image,
const GLUSint  width,
const GLUSint  height,
const GLUSint  depth,
const GLUSint  seed,
const GLUSfloat  frequency,
const GLUSfloat  amplitude,
const GLUSfloat  persistence,
const GLUSint  octaves 
)

Creates a 3D perlin noise texture.

See OpenGL Programming Guide 4.3, p.460ff

Parameters
imageThe perlin noise texture will be stored into this image.
widthWidth of the texture.
heightHeight of the texture
depthDepth of the texture
seedRandom seed number.
frequencyFrequency of the noise.
amplitudeAmplitude of the noise.
persistencePersistence of the noise.
octavesOctaves of the noise.
Returns
GLUS_TRUE, if creation succeeded.