#ifndef OPENMW_MWRENDER_NAVMESH_H #define OPENMW_MWRENDER_NAVMESH_H #include #include namespace osg { class Group; class Geometry; } namespace MWRender { class NavMesh { public: NavMesh(const osg::ref_ptr& root, bool enabled); ~NavMesh(); bool toggle(); void update(const DetourNavigator::SharedNavMesh& sharedNavMesh, std::size_t revision, const DetourNavigator::Settings& settings); void enable(); void disable(); private: osg::ref_ptr mRootNode; bool mEnabled; std::size_t mRevision; osg::ref_ptr mGroup; }; } #endif