本文整理汇总了C++中SplashScreen::doSplash方法的典型用法代码示例。如果您正苦于以下问题:C++ SplashScreen::doSplash方法的具体用法?C++ SplashScreen::doSplash怎么用?C++ SplashScreen::doSplash使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SplashScreen
的用法示例。
在下文中一共展示了SplashScreen::doSplash方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: start
void Application::start(void)
{
PROFILE;
TRACE("Starting application...");
/* Preferably, the share directory is specified in an environment variable.
* We'll set this to our working directory.
* XXX: We don't want to write files to the share directory!
*/
{
const char * share;
share = getenv("ARBARLITH2_SHARE");
if(!share) {
setWorkingDirectory(getApplicationDirectory());
} else {
setWorkingDirectory(share);
}
}
// Parse the setup files
loadXmlConfigFiles();
// Initialize APIs
startOpenGL();
startDevIL();
// Create the effect manager
EffectManager::GetSingleton().create();
// Load the font setup file
loadFonts();
// Load the key bindings
TRACE("Loading controller bindings...");
new Controller();
TRACE("...Loaded controller bindings");
// Seed the random number generator
TRACE("Seeding the random number generator...");
srand(SDL_GetTicks());
TRACE("...Seeded the random number generator");
// Do the splash screen
{
TRACE("Doing splash screen...");
SplashScreen splashScreen;
splashScreen.doSplash(5000);
TRACE("...Finished with splash screen");
}
// Initialize the wait screen
new WaitScreen();
g_WaitScreen.Render();
TRACE("Wait screen started.");
// Create the frame timer
TRACE("Creating the frame timer...");
fme = new NeHe::Frame();
TRACE("...Created the frame timer");
// Create the sound manager
soundSystem = new SoundSystem();
soundSystem->create();
TRACE("Sound system initialized");
// Prepare handlers for various key press events
addTask(new ScreenShotTask);
TRACE("Started screen shot task");
addTask(new EditorKeyDetector);
TRACE("Started editor hotkey task");
addTask(new MenuKeyDetector);
TRACE("Started menu hotkey task");
addTask(new SpellMenuKeyDetector);
TRACE("Started spell-menu hotkey task");
addTask(new DebugDisplayToggleKeyDetector(*this));
TRACE("Started debug-info hotkey task");
addTask(new FPSDisplayToggleKeyDetector);
TRACE("Started FPS-display hotkey task");
// Create a task to handle the GUI
new WidgetManager;
TRACE("Started the game GUI task");
g_WaitScreen.Render();
// Start the profiler system
#ifdef ENABLE_PROFILER
Profiler::ProfileInit();
addTask(makePeriodicCallbackTask(500.0f,
&Profiler::ProfileDumpOutputToBuffer));
TRACE("Started the game profiler task");
g_WaitScreen.Render();
//.........这里部分代码省略.........