| 59 | }; |
| 60 | |
| 61 | void MainEntryPoints::createSystems( GameState **outGraphicsGameState, |
| 62 | GraphicsSystem **outGraphicsSystem, |
| 63 | GameState **outLogicGameState, LogicSystem **outLogicSystem ) |
| 64 | { |
| 65 | MemoryCleanupGameState *gfxGameState = new MemoryCleanupGameState( "" ); |
| 66 | |
| 67 | GraphicsSystem *graphicsSystem = new MemoryCleanupGraphicsSystem( gfxGameState ); |
| 68 | |
| 69 | gfxGameState->_notifyGraphicsSystem( graphicsSystem ); |
| 70 | |
| 71 | *outGraphicsGameState = gfxGameState; |
| 72 | *outGraphicsSystem = graphicsSystem; |
| 73 | } |
| 74 | |
| 75 | void MainEntryPoints::destroySystems( GameState *graphicsGameState, GraphicsSystem *graphicsSystem, |
| 76 | GameState *logicGameState, LogicSystem *logicSystem ) |
nothing calls this directly
no test coverage detected