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

@ -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;