mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-25 06:35:30 +00:00
ab1a6e034e
* Remove tiles outside processing range. Useful when new content profile map has different bounds. * Remove ignored tiles. For a case when content profile maps have intersection but there is no more data for navmesh. * Remove older tiles at the same worldspace position. If navmesh tile data has changed with new content, the old ones unlikely to be used. * Vacuum the database when there are modifications. SQLite leaves empty pages in the file on database modification. Vacuum cleans up unused pages reducing the file size.
24 lines
492 B
C++
24 lines
492 B
C++
#ifndef OPENMW_NAVMESHTOOL_NAVMESH_H
|
|
#define OPENMW_NAVMESHTOOL_NAVMESH_H
|
|
|
|
#include <osg/Vec3f>
|
|
|
|
#include <cstddef>
|
|
|
|
namespace DetourNavigator
|
|
{
|
|
class NavMeshDb;
|
|
struct Settings;
|
|
}
|
|
|
|
namespace NavMeshTool
|
|
{
|
|
struct WorldspaceData;
|
|
|
|
void generateAllNavMeshTiles(const osg::Vec3f& agentHalfExtents, const DetourNavigator::Settings& settings,
|
|
std::size_t threadsNumber, bool removeUnusedTiles, WorldspaceData& cellsData,
|
|
DetourNavigator::NavMeshDb&& db);
|
|
}
|
|
|
|
#endif
|