Nebula
Loading...
Searching...
No Matches
terrainfile.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
15//------------------------------------------------------------------------------
16#include "io/path.h"
17#include "io/uri.h"
19#include "util/string.h"
21#include "flat/render/terrainresource.h"
22
23namespace GraphicsFeature
24{
25
29IO::Path TerrainTexture(const Util::String& name, const char* fallback);
31IO::Path TerrainModel(const Util::String& name, const char* fallback);
34bool ReadTerrainFile(const Resources::ResourceName& terrain, Render::TerrainResourceT& out, bool fromWork = false);
36bool WriteTerrainWorkFile(const Resources::ResourceName& terrain, const Render::TerrainResourceT& resource);
38void DefaultTerrainResource(Render::TerrainResourceT& out);
39
40} // namespace GraphicsFeature
Definition graphicsfeatureunit.cc:66
IO::Path TerrainModel(const Util::String &name, const char *fallback)
the model a vegetation mesh names, the fallback (a URN) when it names none
Definition terrainfile.cc:51
void DefaultTerrainResource(Render::TerrainResourceT &out)
a terrain with nothing set, what a Terrain component without a file shows: flat, one biome
Definition terrainfile.cc:113
bool WriteTerrainWorkFile(const Resources::ResourceName &terrain, const Render::TerrainResourceT &resource)
write the work file. False when it can't be written
Definition terrainfile.cc:91
bool ReadTerrainFile(const Resources::ResourceName &terrain, Render::TerrainResourceT &out, bool fromWork)
read a terrain file, the exported one or with fromWork the work file.
Definition terrainfile.cc:60
void RegisterTerrainPathMappings()
bind the ter type to its file extension, for the work and the export folder
Definition terrainfile.cc:18
IO::Path TerrainTexture(const Util::String &name, const char *fallback)
the texture a terrain file names, the fallback (a URN) when it names none
Definition terrainfile.cc:42
Util::StringAtom ResourceName
Definition resourceid.h:33