Recast Navigation
Navigation-mesh Toolset for Games
DetourNavMeshBuilder.h File Reference
#include "DetourAlloc.h"

Go to the source code of this file.

Classes

struct  dtNavMeshCreateParams
 Represents the source data used to build an navigation mesh tile. More...
 

Functions

bool dtCreateNavMeshData (dtNavMeshCreateParams *params, unsigned char **outData, int *outDataSize)
 Builds navigation mesh tile data from the provided tile creation data. More...
 
bool dtNavMeshHeaderSwapEndian (unsigned char *data, const int dataSize)
 Swaps the endianness of the tile data's header (dtMeshHeader). More...
 
bool dtNavMeshDataSwapEndian (unsigned char *data, const int dataSize)
 Swaps endianness of the tile data. More...
 

Function Documentation

◆ dtNavMeshDataSwapEndian()

bool dtNavMeshDataSwapEndian ( unsigned char *  data,
const int  dataSize 
)

Swaps endianness of the tile data.

Parameters
[in,out]dataThe tile data array.
[in]dataSizeThe size of the data array.
Warning
This function assumes that the header is in the correct endianness already. Call dtNavMeshHeaderSwapEndian() first on the data if the data is expected to be in wrong endianness to start with. Call dtNavMeshHeaderSwapEndian() after the data has been swapped if converting from native to foreign endianness.

◆ dtNavMeshHeaderSwapEndian()

bool dtNavMeshHeaderSwapEndian ( unsigned char *  data,
const int  dataSize 
)

Swaps the endianness of the tile data's header (dtMeshHeader).

Parameters
[in,out]dataThe tile data array.
[in]dataSizeThe size of the data array.