enesim  0.0.23.1
Drawinglibrary
Functions
Perlin
Renderer

Perlin noise renderer inherits from \1. More...

Functions

EAPI Enesim_Rendererenesim_renderer_perlin_new (void)
EAPI void enesim_renderer_perlin_octaves_set (Enesim_Renderer *r, unsigned int octaves)
 Set the number of octaves used on the perlin noise renderer .
EAPI void enesim_renderer_perlin_persistence_set (Enesim_Renderer *r, double persistence)
 Set the persistence multiplier on the perlin noise renderer .
EAPI void enesim_renderer_perlin_amplitude_set (Enesim_Renderer *r, double ampl)
 Set the amplitude on the perlin noise renderer .
EAPI void enesim_renderer_perlin_xfrequency_set (Enesim_Renderer *r, double freq)
 Set the initial X frequency on the perlin noise renderer .
EAPI void enesim_renderer_perlin_yfrequency_set (Enesim_Renderer *r, double freq)
 Set the initial Y frequency on the perlin noise renderer .

Detailed Description

Perlin noise renderer inherits from \1.


Function Documentation

Creates a new perlin noise renderer

Returns:
The newly created perlin renderer
EAPI void enesim_renderer_perlin_octaves_set ( Enesim_Renderer r,
unsigned int  octaves 
)

Set the number of octaves used on the perlin noise renderer .

Parameters:
[in]rThe perlin noise renderer
[in]octavesThe number of octaves

The number of octaves control the amount of detail of perlin noise renderer. Adding more octaves increases the detail with the added drawback of increasing the calculation time.

EAPI void enesim_renderer_perlin_persistence_set ( Enesim_Renderer r,
double  persistence 
)

Set the persistence multiplier on the perlin noise renderer .

Parameters:
[in]rThe perlin noise renderer
[in]persistenceThe persistence multiplier

The persistence is the multiplier that determines how quickly the amplitude decreases for each successive octave.

EAPI void enesim_renderer_perlin_amplitude_set ( Enesim_Renderer r,
double  ampl 
)

Set the amplitude on the perlin noise renderer .

Parameters:
[in]rThe perlin noise renderer
[in]amplThe amplitude

The amplitude on each octave will be defined by persistence^octave * amplitude

EAPI void enesim_renderer_perlin_xfrequency_set ( Enesim_Renderer r,
double  freq 
)

Set the initial X frequency on the perlin noise renderer .

Parameters:
[in]rThe perlin noise renderer
[in]freqThe initial X frequency

On each octave the frequency will be 2^octave * frequency

EAPI void enesim_renderer_perlin_yfrequency_set ( Enesim_Renderer r,
double  freq 
)

Set the initial Y frequency on the perlin noise renderer .

Parameters:
[in]rThe perlin noise renderer
[in]freqThe initial Y frequency

On each octave the frequency will be 2^octave * frequency

 All Data Structures Variables