#include <OctavedNoise.h>
|
class | cOctave |
| Stores information and state for one octave of the noise. More...
|
|
|
void | AddOctave (NOISE_DATATYPE a_Frequency, NOISE_DATATYPE a_Amplitude) |
| Adds a new octave to the list of octaves that compose this noise. More...
|
|
| cOctavedNoise (int a_Seed=0) |
|
void | Generate2D (NOISE_DATATYPE *a_Array, int a_SizeX, int a_SizeY, NOISE_DATATYPE a_StartX, NOISE_DATATYPE a_EndX, NOISE_DATATYPE a_StartY, NOISE_DATATYPE a_EndY, NOISE_DATATYPE *a_Workspace=nullptr) const |
| Fills a 2D array with the values of the noise. More...
|
|
void | Generate3D (NOISE_DATATYPE *a_Array, int a_SizeX, int a_SizeY, int a_SizeZ, NOISE_DATATYPE a_StartX, NOISE_DATATYPE a_EndX, NOISE_DATATYPE a_StartY, NOISE_DATATYPE a_EndY, NOISE_DATATYPE a_StartZ, NOISE_DATATYPE a_EndZ, NOISE_DATATYPE *a_Workspace=nullptr) const |
| Fills a 3D array with the values of the noise. More...
|
|
void | SetSeed (int a_Seed) |
| Sets a new seed for the generators. More...
|
|
template<typename N>
class cOctavedNoise< N >
Definition at line 17 of file OctavedNoise.h.
Adds a new octave to the list of octaves that compose this noise.
Definition at line 38 of file OctavedNoise.h.
Fills a 2D array with the values of the noise.
- Parameters
-
a_Array | Array to generate into [x + a_SizeX * y] |
a_SizeY | Count of the array, in each direction |
a_EndX | Noise-space coords of the array in the X direction |
a_EndY | Noise-space coords of the array in the Y direction |
a_Workspace | Workspace that this function can use and trash. |
Definition at line 45 of file OctavedNoise.h.
template<typename N>
void cOctavedNoise< N >::Generate3D |
( |
NOISE_DATATYPE * |
a_Array, |
|
|
int |
a_SizeX, |
|
|
int |
a_SizeY, |
|
|
int |
a_SizeZ, |
|
|
NOISE_DATATYPE |
a_StartX, |
|
|
NOISE_DATATYPE |
a_EndX, |
|
|
NOISE_DATATYPE |
a_StartY, |
|
|
NOISE_DATATYPE |
a_EndY, |
|
|
NOISE_DATATYPE |
a_StartZ, |
|
|
NOISE_DATATYPE |
a_EndZ, |
|
|
NOISE_DATATYPE * |
a_Workspace = nullptr |
|
) |
| const |
|
inline |
Fills a 3D array with the values of the noise.
- Parameters
-
a_Array | Array to generate into [x + a_SizeX * y + a_SizeX * a_SizeY * z] |
a_SizeZ | Count of the array, in each direction |
a_EndX | Noise-space coords of the array in the X direction |
a_EndY | Noise-space coords of the array in the Y direction |
a_EndZ | Noise-space coords of the array in the Z direction |
a_Workspace | Workspace that this function can use and trash, same size as a_Array |
Definition at line 104 of file OctavedNoise.h.
Sets a new seed for the generators.
Relays the seed to all underlying octaves.
Definition at line 27 of file OctavedNoise.h.
The seed used by the underlying generators.
Definition at line 188 of file OctavedNoise.h.
The documentation for this class was generated from the following file: