| 1581 | #endif |
| 1582 | |
| 1583 | void Director::mainLoop() |
| 1584 | { |
| 1585 | #if defined(AX_PLATFORM_PC) |
| 1586 | processOperations(); |
| 1587 | #endif |
| 1588 | |
| 1589 | if (_cleanupDirectorInNextLoop) |
| 1590 | { |
| 1591 | _cleanupDirectorInNextLoop = false; |
| 1592 | cleanupDirector(); |
| 1593 | } |
| 1594 | else if (_restartDirectorInNextLoop) |
| 1595 | { |
| 1596 | _restartDirectorInNextLoop = false; |
| 1597 | restartDirector(); |
| 1598 | } |
| 1599 | else if (!_invalid) |
| 1600 | { |
| 1601 | drawScene(); |
| 1602 | |
| 1603 | // release the objects |
| 1604 | PoolManager::getInstance()->getCurrentPool()->clear(); |
| 1605 | } |
| 1606 | } |
| 1607 | |
| 1608 | void Director::mainLoop(float dt) |
| 1609 | { |
no test coverage detected