1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2024-12-29 03:19:44 +00:00
OpenMW/components/detournavigator/navmeshtileview.hpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
882 B
C++
Raw Normal View History

#ifndef OPENMW_COMPONENTS_DETOURNAVIGATOR_NAVMESHTILEVIEW_H
#define OPENMW_COMPONENTS_DETOURNAVIGATOR_NAVMESHTILEVIEW_H
struct dtMeshHeader;
struct dtPoly;
struct dtPolyDetail;
struct dtBVNode;
struct dtOffMeshConnection;
struct dtMeshTile;
namespace DetourNavigator
{
struct NavMeshTileConstView
{
const dtMeshHeader* mHeader;
const dtPoly* mPolys;
const float* mVerts;
const dtPolyDetail* mDetailMeshes;
const float* mDetailVerts;
const unsigned char* mDetailTris;
const dtBVNode* mBvTree;
const dtOffMeshConnection* mOffMeshCons;
2021-11-21 13:21:47 +00:00
friend bool operator==(const NavMeshTileConstView& lhs, const NavMeshTileConstView& rhs) noexcept;
};
NavMeshTileConstView asNavMeshTileConstView(const unsigned char* data);
NavMeshTileConstView asNavMeshTileConstView(const dtMeshTile& tile);
}
#endif