Struct to keep track of entries in the region table that have been changed.
| 351 | |
| 352 | // Struct to keep track of entries in the region table that have been changed. |
| 353 | struct DirtyEntry |
| 354 | { |
| 355 | DirtyEntry(int index_, unsigned short region_, unsigned short distance2_) |
| 356 | : index(index_), region(region_), distance2(distance2_) {} |
| 357 | int index; |
| 358 | unsigned short region; |
| 359 | unsigned short distance2; |
| 360 | }; |
| 361 | static void expandRegions(int maxIter, unsigned short level, |
| 362 | rcCompactHeightfield& chf, |
| 363 | unsigned short* srcReg, unsigned short* srcDist, |