This commit is contained in:
aozhiwei 2020-08-14 09:58:11 +08:00
parent be26364882
commit deed6b525d

View File

@ -83,8 +83,7 @@ inline bool checkOverlapRect(const float amin[2], const float amax[2],
return overlap;
}
#if 1
static int rcGetChunksOverlappingRect(const rcChunkyTriMesh* cm,
inline int rcGetChunksOverlappingRect(const rcChunkyTriMesh* cm,
float bmin[2], float bmax[2],
int* ids, const int maxIds)
{
@ -112,7 +111,6 @@ static int rcGetChunksOverlappingRect(const rcChunkyTriMesh* cm,
}
return n;
}
#endif
struct RasterizationContext
{
@ -250,7 +248,6 @@ struct MeshProcess : public dtTileCacheMeshProcess
struct BuilderParams
{
float kCellSize = 64;
const float kCellHeight = 64;
const float kAgentMaxSlope = 90;
const float kAgentHeight = 1;
@ -273,6 +270,8 @@ struct BuilderParams
const int kMaxTiles = 0;
const int kMaxPolysPerTile = 0;
float kCellSize = 64;
const float* bmin = nullptr;
const float* bmax = nullptr;
rcConfig cfg;