Recast Navigation  1.0.35
DetourNavMeshBuilder.h File Reference
#include "SharedConfig.h"
#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 endianess of the tile data's header (dtMeshHeader). More...
 
bool dtNavMeshDataSwapEndian (unsigned char *data, const int dataSize)
 Swaps endianess of the tile data. More...
 

Function Documentation

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

Swaps endianess 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 endianess already. Call dtNavMeshHeaderSwapEndian() first on the data if the data is expected to be in wrong endianess to start with. Call dtNavMeshHeaderSwapEndian() after the data has been swapped if converting from native to foreign endianess.
bool dtNavMeshHeaderSwapEndian ( unsigned char *  data,
const int  dataSize 
)

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

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