|
Nebula
|
#include "navbuild/navmeshbuilder.h"#include "navbuild/navareas.h"#include "io/uri.h"#include "nflatbuffer/nebula_flat.h"#include "flat/navigation/navmesh.h"#include "flat/navigation/bakednavmesh.h"Go to the source code of this file.
Namespaces | |
| namespace | Navigation |
| Navigation::Build geometry sources. | |
| namespace | Navigation::Build |
Enumerations | |
| enum class | Navigation::Build::BakeResult { Navigation::Build::Baked , Navigation::Build::UpToDate , Navigation::Build::Failed } |
Functions | |
| void | Navigation::Build::RegisterPathMappings () |
| register the work and export extensions of the nav URN type | |
| bool | Navigation::Build::SetupBuildInput (const NavMeshT &description, const AreaTable &areas, BuildInput &out) |
| fill a build input from a description, loading every source through the geometry loader and resolving area names with the area table | |
| uint64_t | Navigation::Build::InputHash (const void *workData, SizeT workSize, const AreaTable &areas, const BuildInput &input) |
| The description is part of the work data, only the geometry it points at has to be added. | |
| bool | Navigation::Build::ReadInputHash (const IO::URI &exportFile, uint64_t &hash) |
| read the input hash stored in a baked navmesh, returns false if the file is missing or not a baked navmesh | |
| BakeResult | Navigation::Build::BakeNavMesh (const IO::URI &workFile, const IO::URI &exportFile, bool force) |
| bake a work file to an export file, registers the default geometry loader if none is registered. | |
| bool | Navigation::Build::IsBakedNavMesh (const void *data, SizeT size) |
| check that a buffer holds a baked navmesh | |
| dtNavMesh * | Navigation::Build::CreateDetourNavMesh (const BakedNavMesh *baked) |
| create a Detour navmesh from baked data, the tile data is copied. Free with dtFreeNavMesh | |
Variables | |
| static constexpr uint32_t | Navigation::Build::BuilderVersion = 1 |
| part of every input hash, bump it when the builder output changes for the same input | |