Checkerboard

@addtogroup libnoise @{ @addtogroup modules @{ @addtogroup generatormodules @{ Noise module that outputs a checkerboard pattern.

@image html modulecheckerboard.png

This noise module outputs unit-sized blocks of alternating values. The values of these blocks alternate between -1.0 and +1.0.

This noise module is not really useful by itself, but it is often used for debugging purposes.

This noise module does not require any source modules.

Constructors

this
this()

Constructor.

Members

Functions

GetSourceModCount
int GetSourceModCount()
Undocumented in source. Be warned that the author may not have intended to support it.
GetValue
double GetValue(double x, double y, double z)
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From Mod

~this
~this()

Destructor.

GetSourceMod
const(Mod) GetSourceMod(int index)

Returns a reference to a source module connected to this noise module.

GetSourceModCount
int GetSourceModCount()

Returns the number of source modules required by this noise module.

GetValue
double GetValue(double x, double y, double z)

Generates an output value given the coordinates of the specified input value.

SetSourceMod
void SetSourceMod(int index, const(Mod)* sourceMod)

Connects a source module to this noise module.

m_pSourceMod
const(Mod)*[] m_pSourceMod;

An array containing the pointers to each source module required by this noise module.

Meta