Swaps endianess of the tile data.
707 unsigned char* d = data + headerSize;
708 float* verts = (
float*)d; d += vertsSize;
712 float* detailVerts = (
float*)d; d += detailVertsSize;
718 for (
int i = 0; i < header->
vertCount*3; ++i)
724 for (
int i = 0; i < header->
polyCount; ++i)
756 for (
int j = 0; j < 3; ++j)
768 for (
int j = 0; j < 6; ++j)
void dtSwapEndian(unsigned short *v)
Definition: DetourCommon.h:452
unsigned short poly
The polygon reference of the connection within the tile.
Definition: DetourNavMesh.h:231
unsigned short bmax[3]
Maximum bounds of the node's AABB. [(x, y, z)].
Definition: DetourNavMesh.h:216
Defines the location of detail sub-mesh data within a dtMeshTile.
Definition: DetourNavMesh.h:189
unsigned short flags
The user defined polygon flags.
Definition: DetourNavMesh.h:166
unsigned short verts[DT_VERTS_PER_POLYGON]
Definition: DetourNavMesh.h:160
int i
The node's index. (Negative for escape sequence.)
Definition: DetourNavMesh.h:217
Definition: DetourNavMesh.h:213
unsigned int vertBase
The offset of the vertices in the dtMeshTile::detailVerts array.
Definition: DetourNavMesh.h:191
unsigned short bmin[3]
Minimum bounds of the node's AABB. [(x, y, z)].
Definition: DetourNavMesh.h:215
unsigned short neis[DT_VERTS_PER_POLYGON]
Packed data representing neighbor polygons references and flags for each edge.
Definition: DetourNavMesh.h:163
Definition: DetourNavMesh.h:153
float rad
The radius of the endpoints. [Limit: >= 0].
Definition: DetourNavMesh.h:228
int dtAlign4(int x)
Definition: DetourCommon.h:441
unsigned int triBase
The offset of the triangles in the dtMeshTile::detailTris array.
Definition: DetourNavMesh.h:192
static const int DT_NAVMESH_MAGIC
A magic number used to detect compatibility of navigation tile data.
Definition: DetourNavMesh.h:66
float pos[6]
The endpoints of the connection. [(ax, ay, az, bx, by, bz)].
Definition: DetourNavMesh.h:225
static const int DT_NAVMESH_VERSION
A version number used to detect compatibility of navigation tile data.
Definition: DetourNavMesh.h:69
Definition: DetourNavMesh.h:200
Definition: DetourNavMesh.h:222
static const int DT_VERTS_PER_POLYGON
Definition: DetourNavMesh.h:57