1 ////////////////////////////////////////////////////////////////////////////////
2 // Scorched3D (c) 2000-2009
4 // This file is part of Scorched3D.
6 // Scorched3D is free software; you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License as published by
8 // the Free Software Foundation; either version 2 of the License, or
9 // (at your option) any later version.
11 // Scorched3D is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
16 // You should have received a copy of the GNU General Public License
17 // along with Scorched3D; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 ////////////////////////////////////////////////////////////////////////////////
21 #if !defined(AFX_HEIGHTMAPMODIFIER_H__26733049_91D4_4AB9_8870_1BC94F531E9A__INCLUDED_)
22 #define AFX_HEIGHTMAPMODIFIER_H__26733049_91D4_4AB9_8870_1BC94F531E9A__INCLUDED_
24 #include <common/RandomGenerator.h>
25 #include <common/FixedVector.h>
26 #include <landscapemap/HeightMap.h>
28 class LandscapeDefnHeightMapGenerate
;
30 namespace HeightMapModifier
32 void levelSurround(HeightMap
&hmap
);
33 void noise(HeightMap
&hmap
,
34 LandscapeDefnHeightMapGenerate
&defn
,
35 RandomGenerator
&generator
,
36 ProgressCounter
*counter
= 0);
37 void edgeEnhance(HeightMap
&hmap
,
38 LandscapeDefnHeightMapGenerate
&defn
,
39 RandomGenerator
&generator
,
40 ProgressCounter
*counter
= 0);
41 void waterErrosion(HeightMap
&hmap
,
42 LandscapeDefnHeightMapGenerate
&defn
,
43 RandomGenerator
&generator
,
44 ProgressCounter
*counter
= 0);
45 void smooth(HeightMap
&hmap
,
46 LandscapeDefnHeightMapGenerate
&defn
,
47 ProgressCounter
*counter
= 0);
48 void scale(HeightMap
&hmap
,
49 LandscapeDefnHeightMapGenerate
&defn
,
50 RandomGenerator
&generator
,
51 ProgressCounter
*counter
= 0);
53 void generateTerrain(HeightMap
&hmap
,
54 LandscapeDefnHeightMapGenerate
&defn
,
55 RandomGenerator
&generator
,
56 RandomGenerator
&offsetGenerator
,
57 ProgressCounter
*counter
= 0);
58 void addCirclePeak(HeightMap
&hmap
, FixedVector
&start
,
59 fixed sizew
, fixed sizew2
, fixed sizeh
,
60 RandomGenerator
&generator
);
63 #endif // !defined(AFX_HEIGHTMAPMODIFIER_H__26733049_91D4_4AB9_8870_1BC94F531E9A__INCLUDED_)