19 #ifndef DETOURPROXIMITYGRID_H
20 #define DETOURPROXIMITYGRID_H
37 unsigned short* m_buckets;
46 bool init(
const int poolSize,
const float cellSize);
50 void addItem(
const unsigned short id,
51 const float minx,
const float miny,
52 const float maxx,
const float maxy);
54 int queryItems(
const float minx,
const float miny,
55 const float maxx,
const float maxy,
56 unsigned short* ids,
const int maxIds)
const;
60 inline const int*
getBounds()
const {
return m_bounds; }
void dtFreeProximityGrid(dtProximityGrid *ptr)
Definition: DetourProximityGrid.cpp:35
dtProximityGrid * dtAllocProximityGrid()
Definition: DetourProximityGrid.cpp:28
int next(int i, int n)
Definition: DetourTileCacheBuilder.cpp:1080
Definition: DetourProximityGrid.h:23
int queryItems(const float minx, const float miny, const float maxx, const float maxy, unsigned short *ids, const int maxIds) const
Definition: DetourProximityGrid.cpp:136
~dtProximityGrid()
Definition: DetourProximityGrid.cpp:60
const int * getBounds() const
Definition: DetourProximityGrid.h:60
void clear()
Definition: DetourProximityGrid.cpp:92
int getItemCountAt(const int x, const int y) const
Definition: DetourProximityGrid.cpp:179
float getCellSize() const
Definition: DetourProximityGrid.h:61
void addItem(const unsigned short id, const float minx, const float miny, const float maxx, const float maxy)
Definition: DetourProximityGrid.cpp:102
bool init(const int poolSize, const float cellSize)
Definition: DetourProximityGrid.cpp:66
dtProximityGrid()
Definition: DetourProximityGrid.cpp:49