|
| cCubicCell2D (const cNoise &a_Noise, NOISE_DATATYPE *a_Array, int a_SizeX, int a_SizeY, const NOISE_DATATYPE *a_FracX, const NOISE_DATATYPE *a_FracY) |
|
void | Generate (int a_FromX, int a_ToX, int a_FromY, int a_ToY) |
| Uses current m_WorkRnds[] to generate part of the array. More...
|
|
void | InitWorkRnds (int a_FloorX, int a_FloorY) |
| Initializes m_WorkRnds[] with the specified Floor values. More...
|
|
void | Move (int a_NewFloorX, int a_NewFloorY) |
| Updates m_WorkRnds[] for the new Floor values. More...
|
|
Definition at line 196 of file Noise.cpp.
◆ Workspace
◆ cCubicCell2D()
- Parameters
-
a_Noise | Noise to use for generating the random values |
a_Array | Array to generate into [x + a_SizeX * y] |
a_SizeY | Count of the array, in each direction |
a_FracX | Pointer to the array that stores the X fractional values |
a_FracY | Pointer to the attay that stores the Y fractional values |
Definition at line 240 of file Noise.cpp.
◆ Generate()
void cCubicCell2D::Generate |
( |
int |
a_FromX, |
|
|
int |
a_ToX, |
|
|
int |
a_FromY, |
|
|
int |
a_ToY |
|
) |
| |
Uses current m_WorkRnds[] to generate part of the array.
Definition at line 263 of file Noise.cpp.
◆ InitWorkRnds()
void cCubicCell2D::InitWorkRnds |
( |
int |
a_FloorX, |
|
|
int |
a_FloorY |
|
) |
| |
Initializes m_WorkRnds[] with the specified Floor values.
Definition at line 288 of file Noise.cpp.
◆ Move()
void cCubicCell2D::Move |
( |
int |
a_NewFloorX, |
|
|
int |
a_NewFloorY |
|
) |
| |
Updates m_WorkRnds[] for the new Floor values.
Definition at line 307 of file Noise.cpp.
◆ m_Array
◆ m_CurFloorX
int cCubicCell2D::m_CurFloorX |
|
protected |
◆ m_CurFloorY
int cCubicCell2D::m_CurFloorY |
|
protected |
◆ m_FracX
◆ m_FracY
◆ m_Noise
const cNoise& cCubicCell2D::m_Noise |
|
protected |
◆ m_SizeX
int cCubicCell2D::m_SizeX |
|
protected |
◆ m_SizeY
int cCubicCell2D::m_SizeY |
|
protected |
◆ m_WorkRnds
The current random values; points to either m_Workspace1 or m_Workspace2 (doublebuffering)
Definition at line 224 of file Noise.cpp.
◆ m_Workspace1
Buffer 1 for workspace doublebuffering, used in Move()
Definition at line 225 of file Noise.cpp.
◆ m_Workspace2
Buffer 2 for workspace doublebuffering, used in Move()
Definition at line 226 of file Noise.cpp.
The documentation for this class was generated from the following file: