#include <Noise.h>
|
| cCubicNoise (int a_Seed) |
| Creates a new instance with the specified seed. More...
|
|
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) 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) const |
| Fills a 3D array with the values of the noise. More...
|
|
|
static const int | MAX_SIZE = 512 |
| Maximum size of each dimension of the query arrays. More...
|
|
Definition at line 67 of file Noise.h.
◆ cCubicNoise()
cCubicNoise::cCubicNoise |
( |
int |
a_Seed | ) |
|
Creates a new instance with the specified seed.
Definition at line 697 of file Noise.cpp.
◆ CalcFloorFrac()
Calculates the integral and fractional parts along one axis.
a_Floor will receive the integral parts (array of a_Size ints). a_Frac will receive the fractional parts (array of a_Size floats). a_Same will receive the counts of items that have the same integral parts (array of up to a_Size ints). a_NumSame will receive the count of a_Same elements (total count of different integral parts).
Definition at line 827 of file Noise.cpp.
◆ Generate2D()
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 |
Definition at line 706 of file Noise.cpp.
◆ Generate3D()
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 |
Definition at line 758 of file Noise.cpp.
◆ m_Noise
Noise used for integral random values.
Definition at line 99 of file Noise.h.
◆ MAX_SIZE
const int cCubicNoise::MAX_SIZE = 512 |
|
static |
Maximum size of each dimension of the query arrays.
Definition at line 71 of file Noise.h.
The documentation for this class was generated from the following files: