diff options
author | kwolekr <mirrorisim@gmail.com> | 2012-12-18 16:45:50 -0500 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2013-01-21 21:41:37 +0200 |
commit | bddd5f2b98a56fc735d5687ecd0b43767aec8066 (patch) | |
tree | e772cf144f6ebfcff1d2a3f5551b0cdabad5419e /src/noise.h | |
parent | 96898c179458174f858bab6363636ef231b49865 (diff) | |
download | minetest-bddd5f2b98a56fc735d5687ecd0b43767aec8066.tar.gz minetest-bddd5f2b98a56fc735d5687ecd0b43767aec8066.tar.bz2 minetest-bddd5f2b98a56fc735d5687ecd0b43767aec8066.zip |
Cleaned & enhanced noise object management
Diffstat (limited to 'src/noise.h')
-rw-r--r-- | src/noise.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/noise.h b/src/noise.h index 0ab162b73..15df5c25b 100644 --- a/src/noise.h +++ b/src/noise.h @@ -85,6 +85,13 @@ public: Noise(NoiseParams *np, int seed, int sx, int sy, int sz); ~Noise(); + void init(NoiseParams *np, int seed, int sx, int sy, int sz); + void setSize(int sx, int sy); + void setSize(int sx, int sy, int sz); + void setSpreadFactor(v3f spread); + void setOctaves(int octaves); + void resizeNoiseBuf(bool is3d); + void gradientMap2D( float x, float y, float step_x, float step_y, |