mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-08 09:37:53 +00:00
33 lines
884 B
C++
33 lines
884 B
C++
#ifndef OPENMW_COMPONENTS_DETOURNAVIGATOR_CACHEDRECASTMESHMANAGER_H
|
|
#define OPENMW_COMPONENTS_DETOURNAVIGATOR_CACHEDRECASTMESHMANAGER_H
|
|
|
|
#include "recastmeshmanager.hpp"
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
namespace DetourNavigator
|
|
{
|
|
class CachedRecastMeshManager
|
|
{
|
|
public:
|
|
CachedRecastMeshManager(const Settings& settings, const TileBounds& bounds);
|
|
|
|
bool addObject(std::size_t id, const btCollisionShape& shape, const btTransform& transform,
|
|
const AreaType areaType);
|
|
|
|
bool updateObject(std::size_t id, const btTransform& transform, const AreaType areaType);
|
|
|
|
boost::optional<RemovedRecastMeshObject> removeObject(std::size_t id);
|
|
|
|
std::shared_ptr<RecastMesh> getMesh();
|
|
|
|
bool isEmpty() const;
|
|
|
|
private:
|
|
RecastMeshManager mImpl;
|
|
std::shared_ptr<RecastMesh> mCached;
|
|
};
|
|
}
|
|
|
|
#endif
|