Navigation menu |
A portable, open-source, coherent noise-generating library for C++ |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
noise::module::Cache Class Reference |
Public Member Functions | |
Cache () | |
Constructor. | |
virtual int | GetSourceModuleCount () const |
Returns the number of source modules required by this noise module. | |
virtual double | GetValue (double x, double y, double z) const |
Generates an output value given the coordinates of the specified input value. | |
virtual void | SetSourceModule (int index, const Module &sourceModule) |
Connects a source module to this noise module. | |
Protected Attributes | |
double | m_cachedValue |
The cached output value at the cached input value. | |
double | m_isCached |
Determines if a cached output value is stored in this noise module. | |
double | m_xCache |
x coordinate of the cached input value. | |
double | m_yCache |
y coordinate of the cached input value. | |
double | m_zCache |
z coordinate of the cached input value. |
|
Returns the number of source modules required by this noise module.
Implements noise::module::Module. |
|
Generates an output value given the coordinates of the specified input value.
To determine the number of source modules required by this noise module, call the GetSourceModuleCount() method. Implements noise::module::Module. |
|
Connects a source module to this noise module.
The index value to assign a source module is a unique identifier for that source module. If an index value has already been assigned to a source module, this noise module replaces the old source module with the new source module. Before an application can call the GetValue() method, it must first connect all required source modules. To determine the number of source modules required by this noise module, call the GetSourceModuleCount() method. This source module must exist throughout the lifetime of this noise module unless another source module replaces that source module. A noise module does not modify a source module; it only modifies its output values. Reimplemented from noise::module::Module. |
© 2003-2005 Jason Bevins
The libnoise source documentation was generated by doxygen 1.3.9.1