2018-04-07 13:11:23 +00:00
|
|
|
#ifndef OPENMW_COMPONENTS_SCENEUTIL_NAVMESH_H
|
|
|
|
#define OPENMW_COMPONENTS_SCENEUTIL_NAVMESH_H
|
|
|
|
|
|
|
|
#include <osg/ref_ptr>
|
|
|
|
|
|
|
|
class dtNavMesh;
|
2021-11-01 19:05:34 +00:00
|
|
|
struct dtMeshTile;
|
2018-04-07 13:11:23 +00:00
|
|
|
|
|
|
|
namespace osg
|
|
|
|
{
|
|
|
|
class Group;
|
2021-11-02 01:43:09 +00:00
|
|
|
class StateSet;
|
2018-04-07 13:11:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
namespace DetourNavigator
|
|
|
|
{
|
|
|
|
struct Settings;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace SceneUtil
|
|
|
|
{
|
2022-02-03 01:05:43 +00:00
|
|
|
enum NavMeshTileDrawFlags : unsigned char
|
|
|
|
{
|
|
|
|
NavMeshTileDrawFlagsOffMeshConnections = 1,
|
|
|
|
NavMeshTileDrawFlagsClosedList = 1 << 1,
|
|
|
|
NavMeshTileDrawFlagsColorTiles = 1 << 2,
|
|
|
|
NavMeshTileDrawFlagsHeat = 1 << 3,
|
|
|
|
};
|
|
|
|
|
2021-11-01 19:05:34 +00:00
|
|
|
osg::ref_ptr<osg::Group> createNavMeshTileGroup(const dtNavMesh& navMesh, const dtMeshTile& meshTile,
|
2024-05-18 12:09:51 +00:00
|
|
|
const DetourNavigator::Settings& settings, const osg::ref_ptr<osg::StateSet>& debugDrawStateSet,
|
|
|
|
unsigned char flags, unsigned minSalt, unsigned maxSalt);
|
2018-04-07 13:11:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|