#include "SharedConfig.h"
#include "DetourAlloc.h"
#include "DetourStatus.h"
 
Go to the source code of this file.
 | 
| dtStatus  | dtBuildTileCacheLayer (dtTileCacheCompressor *comp, dtTileCacheLayerHeader *header, const unsigned char *heights, const navAreaMask *areaMasks, 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  | 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 endianess of the compressed tile data's header (dtTileCacheLayerHeader).  More...
  | 
|   | 
      
        
          | 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 endianess of the compressed tile data's header (dtTileCacheLayerHeader). 
Tile layer data does not need endian swapping as it consits only of bytes. 
- Parameters
 - 
  
    | [in,out] | data | The tile data array.  | 
    | [in] | dataSize | The size of the data array.  | 
  
   
 
 
  
  
      
        
          | const int DT_TILECACHE_MAGIC = 'D'<<24 | 'T'<<16 | 'L'<<8 | 'R' | 
         
       
   | 
  
static   | 
  
 
 
  
  
      
        
          | const unsigned char DT_TILECACHE_NULL_AREA = 0 | 
         
       
   | 
  
static   | 
  
 
 
  
  
      
        
          | const unsigned short DT_TILECACHE_NULL_IDX = 0xffff | 
         
       
   | 
  
static   | 
  
 
 
  
  
      
        
          | const int DT_TILECACHE_VERSION = 1 | 
         
       
   | 
  
static   | 
  
 
 
  
  
      
        
          | const unsigned char DT_TILECACHE_WALKABLE_AREA = 63 | 
         
       
   | 
  
static   |