Nebula
Loading...
Searching...
No Matches
terrainfile.cc File Reference

Namespaces

namespace  GraphicsFeature

Functions

void GraphicsFeature::RegisterTerrainPathMappings ()
 bind the ter type to its file extension, for the work and the export folder
static IO::Path GraphicsFeature::ResourcePath (const Util::String &name, const char *type, const char *fallback)
IO::Path GraphicsFeature::TerrainTexture (const Util::String &name, const char *fallback)
 the texture a terrain file names, the fallback (a URN) when it names none
IO::Path GraphicsFeature::TerrainModel (const Util::String &name, const char *fallback)
 the model a vegetation mesh names, the fallback (a URN) when it names none
bool GraphicsFeature::ReadTerrainFile (const Resources::ResourceName &terrain, Render::TerrainResourceT &out, bool fromWork=false)
 read a terrain file, the exported one or with fromWork the work file.
bool GraphicsFeature::WriteTerrainWorkFile (const Resources::ResourceName &terrain, const Render::TerrainResourceT &resource)
 write the work file. False when it can't be written
void GraphicsFeature::DefaultTerrainResource (Render::TerrainResourceT &out)
 a terrain with nothing set, what a Terrain component without a file shows: flat, one biome