TileCache progress: Moved tile cache to Detour and made proper class for it. Better obstacles and tile layer management.

This commit is contained in:
Mikko Mononen
2011-04-16 07:57:50 +00:00
parent 76444aa747
commit 9902efc845
8 changed files with 559 additions and 808 deletions

View File

@@ -473,12 +473,13 @@ void duDebugDrawNavMeshPoly(duDebugDraw* dd, const dtNavMesh& mesh, dtPolyRef re
}
void duDebugDrawTileCacheLayer(struct duDebugDraw* dd, const dtTileCacheLayer& layer,
const float* bmin, const float* bmax,
const float cs, const float ch, const int idx)
void duDebugDrawTileCacheLayer(struct duDebugDraw* dd, const dtTileCacheLayer& layer, const float cs, const float ch)
{
const int w = (int)layer.header->width;
const int h = (int)layer.header->height;
const float* bmin = layer.header->bmin;
const float* bmax = layer.header->bmax;
const int idx = layer.header->tlayer;
unsigned int color = duIntToCol(idx+1, 255);