HeightMapLoader Namespace Reference


Functions

void loadTerrain (HeightMap &hmap, Image &bitmap, bool levelSurround, ProgressCounter *counter)
bool generateTerrain (unsigned int seed, LandscapeDefnType *defn, HeightMap &hmap, bool &levelSurround, ProgressCounter *counter)


Function Documentation

bool HeightMapLoader::generateTerrain ( unsigned int  seed,
LandscapeDefnType defn,
HeightMap hmap,
bool &  levelSurround,
ProgressCounter counter 
)

Definition at line 86 of file HeightMapLoader.cpp.

References S3D::dialogMessage(), LandscapeDefnType::eHeightMapFile, LandscapeDefnType::eHeightMapGenerate, LandscapeDefnHeightMapFile::file, file, S3D::formatStringBuffer(), HeightMapModifier::generateTerrain(), S3D::getDataFile(), HeightMap::getMapHeight(), HeightMap::getMapWidth(), HeightMap::getNormal(), LandscapeDefnType::getType(), LANG_RESOURCE, LandscapeDefnHeightMapGenerate::levelsurround, LandscapeDefnHeightMapFile::levelsurround, ImageFactory::loadImageHandle(), loadTerrain(), RandomGenerator::seed(), ProgressCounter::setNewOp(), and ProgressCounter::setNewPercentage().

Referenced by GroundMaps::generateHMap(), and RoofMaps::generateRMap().

void HeightMapLoader::loadTerrain ( HeightMap hmap,
Image bitmap,
bool  levelSurround,
ProgressCounter counter 
)

Definition at line 29 of file HeightMapLoader.cpp.

References Image::getBits(), Image::getHeight(), HeightMap::getMapHeight(), HeightMap::getMapWidth(), Image::getWidth(), LANG_RESOURCE, HeightMapModifier::levelSurround(), HeightMap::reset(), HeightMap::setHeight(), ProgressCounter::setNewOp(), and ProgressCounter::setNewPercentage().

Referenced by generateTerrain().


Generated on Mon Feb 16 15:15:09 2009 for Scorched3D by  doxygen 1.5.3