/* ================================================================================== */ void AtlasEngine::shutdown() { // release the graphics object if(graphics) { graphics->shutdown(); delete graphics; graphics = 0; } // release the input object if(input) { delete input; input = 0; } // release the opengl object if(opengl) { opengl->shutdown(hwnd); delete opengl; opengl = 0; } // shutdown window shutdownWindows(); }
void System::shutdown() { m_initialised = false; gamestate.shutdown(); if (graphics) { graphics->shutdown(); delete graphics; } if (input) { input->shutdown(); delete input; } shutdownWindows(); }