本文整理汇总了C++中SoundManager::shutdown方法的典型用法代码示例。如果您正苦于以下问题:C++ SoundManager::shutdown方法的具体用法?C++ SoundManager::shutdown怎么用?C++ SoundManager::shutdown使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SoundManager
的用法示例。
在下文中一共展示了SoundManager::shutdown方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: IndieLib
/*
==================
Main
==================
*/
int IndieLib()
{
//Sets the working path as the 'exe' directory. All resource paths are relative to this directory
if (!WorkingPathSetup::setWorkingPathFromExe(NULL)) {
std::cout<<"\nUnable to Set the working path !";
}
SoundManager * mSm = SoundManager::instance();
// ----- IndieLib intialization -----
CIndieLib *mI = CIndieLib::instance();
if (!mI->init()) return 0;
Game * mGame = new Game();
bool quit = false;
while (!quit && !mI->_input->quit())
{
// ----- Input update ----
Sleep(10); // Take it easy, computer
mI->_input->update();
quit = mGame->run();
// ----- Render -----
mI->_render->beginScene();
mI->_render->clearViewPort(0, 0, 0);
mI->_entity2dManager->renderEntities2d();
//mI->_entity2dManager->renderCollisionAreas(255, 0, 0, 255);
mI->_render->endScene();
}
// ----- Free -----
mSm->shutdown();
mI->end();
return 0;
}