1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-01 12:15:35 +00:00
openmw/components/detournavigator/cachedrecastmeshmanager.hpp

33 lines
888 B
C++
Raw Normal View History

2018-03-13 22:49:08 +00:00
#ifndef OPENMW_COMPONENTS_DETOURNAVIGATOR_CACHEDRECASTMESHMANAGER_H
#define OPENMW_COMPONENTS_DETOURNAVIGATOR_CACHEDRECASTMESHMANAGER_H
#include "recastmeshmanager.hpp"
#include <boost/optional.hpp>
namespace DetourNavigator
{
class CachedRecastMeshManager
{
public:
2018-04-15 22:07:18 +00:00
CachedRecastMeshManager(const Settings& settings, const TileBounds& bounds);
2018-03-13 22:49:08 +00:00
2018-07-12 08:44:11 +00:00
bool addObject(std::size_t id, const btCollisionShape& shape, const btTransform& transform,
const unsigned char flags);
2018-03-13 22:49:08 +00:00
2018-07-12 08:44:11 +00:00
bool updateObject(std::size_t id, const btTransform& transform, const unsigned char flags);
2018-05-26 14:44:25 +00:00
boost::optional<RemovedRecastMeshObject> removeObject(std::size_t id);
2018-03-13 22:49:08 +00:00
std::shared_ptr<RecastMesh> getMesh();
2018-04-15 22:07:18 +00:00
bool isEmpty() const;
2018-03-13 22:49:08 +00:00
private:
RecastMeshManager mImpl;
std::shared_ptr<RecastMesh> mCached;
};
}
#endif