| 278 | } |
| 279 | |
| 280 | TerrCell* TerrCell::init( TerrainBlock *terrain ) |
| 281 | { |
| 282 | // Just create the root cell and call the inner init. |
| 283 | TerrCell *root = new TerrCell; |
| 284 | root->_init( terrain, |
| 285 | Point2I( 0, 0 ), |
| 286 | terrain->getBlockSize(), |
| 287 | 0 ); |
| 288 | |
| 289 | // Set initial states of OBBs. |
| 290 | root->updateOBBs(); |
| 291 | |
| 292 | return root; |
| 293 | } |
| 294 | |
| 295 | |
| 296 | void TerrCell::_init( TerrainBlock *terrain, |
no test coverage detected