#include <InterpolNoise.h>
|
| cInterpolCell2D (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) |
| Generates part of the output noise array using the current m_WorkRnds[] values. More...
|
|
void | InitWorkRnds (int a_FloorX, int a_FloorY) |
| Initializes m_WorkRnds[] with the specified values of the noise at the specified integral coords. More...
|
|
void | Move (int a_NewFloorX, int a_NewFloorY) |
| Updates m_WorkRnds[] for the new integral coords. More...
|
|
template<typename T>
class cInterpolCell2D< T >
Definition at line 24 of file InterpolNoise.h.
◆ Workspace
◆ cInterpolCell2D()
- 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 27 of file InterpolNoise.h.
◆ Generate()
template<typename T >
void cInterpolCell2D< T >::Generate |
( |
int |
a_FromX, |
|
|
int |
a_ToX, |
|
|
int |
a_FromY, |
|
|
int |
a_ToY |
|
) |
| |
|
inline |
Generates part of the output noise array using the current m_WorkRnds[] values.
Definition at line 48 of file InterpolNoise.h.
◆ InitWorkRnds()
Initializes m_WorkRnds[] with the specified values of the noise at the specified integral coords.
Definition at line 69 of file InterpolNoise.h.
◆ Move()
Updates m_WorkRnds[] for the new integral coords.
Definition at line 81 of file InterpolNoise.h.
◆ m_Array
◆ m_CurFloorX
Coords of the currently calculated m_WorkRnds[].
Definition at line 131 of file InterpolNoise.h.
◆ m_CurFloorY
◆ m_FracX
Arrays holding the fractional values of the coords in each direction.
Definition at line 140 of file InterpolNoise.h.
◆ m_FracY
◆ m_Noise
The noise used for generating the values at integral coords.
Definition at line 119 of file InterpolNoise.h.
◆ m_SizeX
◆ m_SizeY
◆ m_WorkRnds
The current random values; points to either m_Workspace1 or m_Workspace2 (doublebuffering)
Definition at line 122 of file InterpolNoise.h.
◆ m_Workspace1
◆ m_Workspace2
The documentation for this class was generated from the following file: