Recast Navigation
Navigation-mesh Toolset for Games
|
Go to the source code of this file.
Classes | |
struct | dtTileCacheLayerHeader |
struct | dtTileCacheLayer |
struct | dtTileCacheContour |
struct | dtTileCacheContourSet |
struct | dtTileCachePolyMesh |
struct | dtTileCacheAlloc |
struct | dtTileCacheCompressor |
Functions | |
dtStatus | dtBuildTileCacheLayer (dtTileCacheCompressor *comp, dtTileCacheLayerHeader *header, const unsigned char *heights, const unsigned char *areas, const unsigned char *cons, unsigned char **outData, int *outDataSize) |
void | dtFreeTileCacheLayer (dtTileCacheAlloc *alloc, dtTileCacheLayer *layer) |
dtStatus | dtDecompressTileCacheLayer (dtTileCacheAlloc *alloc, dtTileCacheCompressor *comp, unsigned char *compressed, const int compressedSize, dtTileCacheLayer **layerOut) |
dtTileCacheContourSet * | dtAllocTileCacheContourSet (dtTileCacheAlloc *alloc) |
void | dtFreeTileCacheContourSet (dtTileCacheAlloc *alloc, dtTileCacheContourSet *cset) |
dtTileCachePolyMesh * | dtAllocTileCachePolyMesh (dtTileCacheAlloc *alloc) |
void | dtFreeTileCachePolyMesh (dtTileCacheAlloc *alloc, dtTileCachePolyMesh *lmesh) |
dtStatus | dtMarkCylinderArea (dtTileCacheLayer &layer, const float *orig, const float cs, const float ch, const float *pos, const float radius, const float height, const unsigned char areaId) |
dtStatus | dtMarkBoxArea (dtTileCacheLayer &layer, const float *orig, const float cs, const float ch, const float *bmin, const float *bmax, const unsigned char areaId) |
dtStatus | dtMarkBoxArea (dtTileCacheLayer &layer, const float *orig, const float cs, const float ch, const float *center, const float *halfExtents, const float *rotAux, const unsigned char areaId) |
dtStatus | dtBuildTileCacheRegions (dtTileCacheAlloc *alloc, dtTileCacheLayer &layer, const int walkableClimb) |
dtStatus | dtBuildTileCacheContours (dtTileCacheAlloc *alloc, dtTileCacheLayer &layer, const int walkableClimb, const float maxError, dtTileCacheContourSet &lcset) |
dtStatus | dtBuildTileCachePolyMesh (dtTileCacheAlloc *alloc, dtTileCacheContourSet &lcset, dtTileCachePolyMesh &mesh) |
bool | dtTileCacheHeaderSwapEndian (unsigned char *data, const int dataSize) |
Swaps the endianness of the compressed tile data's header (dtTileCacheLayerHeader). More... | |
Variables | |
static const int | DT_TILECACHE_MAGIC = 'D'<<24 | 'T'<<16 | 'L'<<8 | 'R' |
'DTLR'; More... | |
static const int | DT_TILECACHE_VERSION = 1 |
static const unsigned char | DT_TILECACHE_NULL_AREA = 0 |
static const unsigned char | DT_TILECACHE_WALKABLE_AREA = 63 |
static const unsigned short | DT_TILECACHE_NULL_IDX = 0xffff |
dtTileCacheContourSet* dtAllocTileCacheContourSet | ( | dtTileCacheAlloc * | alloc | ) |
dtTileCachePolyMesh* dtAllocTileCachePolyMesh | ( | dtTileCacheAlloc * | alloc | ) |
dtStatus dtBuildTileCacheContours | ( | dtTileCacheAlloc * | alloc, |
dtTileCacheLayer & | layer, | ||
const int | walkableClimb, | ||
const float | maxError, | ||
dtTileCacheContourSet & | lcset | ||
) |
dtStatus dtBuildTileCacheLayer | ( | dtTileCacheCompressor * | comp, |
dtTileCacheLayerHeader * | header, | ||
const unsigned char * | heights, | ||
const unsigned char * | areas, | ||
const unsigned char * | cons, | ||
unsigned char ** | outData, | ||
int * | outDataSize | ||
) |
dtStatus dtBuildTileCachePolyMesh | ( | dtTileCacheAlloc * | alloc, |
dtTileCacheContourSet & | lcset, | ||
dtTileCachePolyMesh & | mesh | ||
) |
dtStatus dtBuildTileCacheRegions | ( | dtTileCacheAlloc * | alloc, |
dtTileCacheLayer & | layer, | ||
const int | walkableClimb | ||
) |
dtStatus dtDecompressTileCacheLayer | ( | dtTileCacheAlloc * | alloc, |
dtTileCacheCompressor * | comp, | ||
unsigned char * | compressed, | ||
const int | compressedSize, | ||
dtTileCacheLayer ** | layerOut | ||
) |
void dtFreeTileCacheContourSet | ( | dtTileCacheAlloc * | alloc, |
dtTileCacheContourSet * | cset | ||
) |
void dtFreeTileCacheLayer | ( | dtTileCacheAlloc * | alloc, |
dtTileCacheLayer * | layer | ||
) |
void dtFreeTileCachePolyMesh | ( | dtTileCacheAlloc * | alloc, |
dtTileCachePolyMesh * | lmesh | ||
) |
dtStatus dtMarkBoxArea | ( | dtTileCacheLayer & | layer, |
const float * | orig, | ||
const float | cs, | ||
const float | ch, | ||
const float * | bmin, | ||
const float * | bmax, | ||
const unsigned char | areaId | ||
) |
dtStatus dtMarkBoxArea | ( | dtTileCacheLayer & | layer, |
const float * | orig, | ||
const float | cs, | ||
const float | ch, | ||
const float * | center, | ||
const float * | halfExtents, | ||
const float * | rotAux, | ||
const unsigned char | areaId | ||
) |
dtStatus dtMarkCylinderArea | ( | dtTileCacheLayer & | layer, |
const float * | orig, | ||
const float | cs, | ||
const float | ch, | ||
const float * | pos, | ||
const float | radius, | ||
const float | height, | ||
const unsigned char | areaId | ||
) |
bool dtTileCacheHeaderSwapEndian | ( | unsigned char * | data, |
const int | dataSize | ||
) |
Swaps the endianness of the compressed tile data's header (dtTileCacheLayerHeader).
Tile layer data does not need endian swapping as it consist only of bytes.
[in,out] | data | The tile data array. |
[in] | dataSize | The size of the data array. |
|
static |
'DTLR';
|
static |
|
static |
|
static |
|
static |