Cuberite
A lightweight, fast and extensible game server for Minecraft
|
#include <RidgedNoise.h>
Public Member Functions | |
cRidgedNoise (int a_Seed) | |
Creates a new instance with the specified seed. More... | |
cRidgedNoise (void) | |
Creates a new instance with the seed set to 0. 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... | |
void | SetSeed (int a_Seed) |
Sets the seed for the underlying noise. More... | |
Protected Attributes | |
N | m_Noise |
Definition at line 17 of file RidgedNoise.h.
|
inline |
Creates a new instance with the seed set to 0.
Definition at line 21 of file RidgedNoise.h.
|
inline |
Creates a new instance with the specified seed.
Definition at line 28 of file RidgedNoise.h.
|
inline |
Fills a 2D array with the values of the noise.
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 42 of file RidgedNoise.h.
|
inline |
Fills a 3D array with the values of the noise.
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 63 of file RidgedNoise.h.
|
inline |
Sets the seed for the underlying noise.
Definition at line 35 of file RidgedNoise.h.
|
protected |
Definition at line 85 of file RidgedNoise.h.