Nebula
Toggle main menu visibility
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
"
18
#include "
resources/resourceid.h
"
19
#include "
util/string.h
"
20
#include "
nflatbuffer/nebula_flat.h
"
21
#include "flat/render/terrainresource.h"
22
23
namespace
GraphicsFeature
24
{
25
27
void
RegisterTerrainPathMappings
();
29
IO::Path
TerrainTexture
(
const
Util::String& name,
const
char
* fallback);
31
IO::Path
TerrainModel
(
const
Util::String& name,
const
char
* fallback);
34
bool
ReadTerrainFile
(
const
Resources::ResourceName
& terrain, Render::TerrainResourceT& out,
bool
fromWork =
false
);
36
bool
WriteTerrainWorkFile
(
const
Resources::ResourceName
& terrain,
const
Render::TerrainResourceT& resource);
38
void
DefaultTerrainResource
(Render::TerrainResourceT& out);
39
40
}
// namespace GraphicsFeature
GraphicsFeature
Definition
graphicsfeatureunit.cc:66
GraphicsFeature::TerrainModel
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
GraphicsFeature::DefaultTerrainResource
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
GraphicsFeature::WriteTerrainWorkFile
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
GraphicsFeature::ReadTerrainFile
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
GraphicsFeature::RegisterTerrainPathMappings
void RegisterTerrainPathMappings()
bind the ter type to its file extension, for the work and the export folder
Definition
terrainfile.cc:18
GraphicsFeature::TerrainTexture
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
Resources::ResourceName
Util::StringAtom ResourceName
Definition
resourceid.h:33
nebula_flat.h
path.h
resourceid.h
string.h
uri.h
code
addons
graphicsfeature
terrain
terrainfile.h
Generated on
for Nebula. Dark theme by
Tilen Majerle
. All rights reserved.