Cuberite
A lightweight, fast and extensible game server for Minecraft
Classes | Macros | Functions
Noise.cpp File Reference
#include "Globals.h"
#include "Noise.h"
Include dependency graph for Noise.cpp:

Go to the source code of this file.

Classes

class  cCubicCell2D
 
class  cCubicCell3D
 

Macros

#define FAST_FLOOR(x)   (((x) < 0) ? ((static_cast<int>(x)) - 1) : (static_cast<int>(x)))
 

Functions

void Debug2DNoise (const NOISE_DATATYPE *a_Noise, size_t a_SizeX, size_t a_SizeY, const AString &a_FileNameBase, NOISE_DATATYPE a_Coeff)
 Exports the noise array into a file. More...
 
void Debug3DNoise (const NOISE_DATATYPE *a_Noise, size_t a_SizeX, size_t a_SizeY, size_t a_SizeZ, const AString &a_FileNameBase, NOISE_DATATYPE a_Coeff)
 Exports the noise array into a set of files, ordered by XY and XZ. More...
 

Macro Definition Documentation

◆ FAST_FLOOR

#define FAST_FLOOR (   x)    (((x) < 0) ? ((static_cast<int>(x)) - 1) : (static_cast<int>(x)))

Definition at line 6 of file Noise.cpp.

Function Documentation

◆ Debug2DNoise()

void Debug2DNoise ( const NOISE_DATATYPE a_Array,
size_t  a_SizeX,
size_t  a_SizeY,
const AString a_FileNameBase,
NOISE_DATATYPE  a_Coeff = 32 
)

Exports the noise array into a file.

a_Coeff specifies the value that each array value is multiplied by before being converted into a byte.

Definition at line 168 of file Noise.cpp.

◆ Debug3DNoise()

void Debug3DNoise ( const NOISE_DATATYPE a_Array,
size_t  a_SizeX,
size_t  a_SizeY,
size_t  a_SizeZ,
const AString a_FileNameBase,
NOISE_DATATYPE  a_Coeff = 32 
)

Exports the noise array into a set of files, ordered by XY and XZ.

a_Coeff specifies the value that each array value is multiplied by before being converted into a byte.

Definition at line 115 of file Noise.cpp.