Updated recast to 1.5.1

This commit is contained in:
Johxz 2016-12-11 13:17:15 -06:00
parent 630949514a
commit c7e5b35744
55 changed files with 3277 additions and 1460 deletions

View file

@ -63,6 +63,8 @@ struct dtTileCacheParams
struct dtTileCacheMeshProcess
{
virtual ~dtTileCacheMeshProcess() { }
virtual void process(struct dtNavMeshCreateParams* params,
unsigned char* polyAreas, unsigned short* polyFlags) = 0;
};
@ -162,7 +164,10 @@ public:
private:
// Explicitly disabled copy constructor and copy assignment operator.
dtTileCache(const dtTileCache&);
dtTileCache& operator=(const dtTileCache&);
enum ObstacleRequestAction
{
REQUEST_ADD,
@ -201,7 +206,6 @@ private:
static const int MAX_UPDATE = 64;
dtCompressedTileRef m_update[MAX_UPDATE];
int m_nupdate;
};
dtTileCache* dtAllocTileCache();

View file

@ -78,11 +78,11 @@ struct dtTileCachePolyMesh
struct dtTileCacheAlloc
{
virtual void reset()
{
}
virtual ~dtTileCacheAlloc() {}
virtual void reset() {}
virtual void* alloc(const int size)
virtual void* alloc(const size_t size)
{
return dtAlloc(size, DT_ALLOC_TEMP);
}
@ -95,6 +95,8 @@ struct dtTileCacheAlloc
struct dtTileCacheCompressor
{
virtual ~dtTileCacheCompressor() { }
virtual int maxCompressedSize(const int bufferSize) = 0;
virtual dtStatus compress(const unsigned char* buffer, const int bufferSize,
unsigned char* compressed, const int maxCompressedSize, int* compressedSize) = 0;