当前位置: 首页>>代码示例>>C++>>正文


C++ SplashScreen::isFinished方法代码示例

本文整理汇总了C++中SplashScreen::isFinished方法的典型用法代码示例。如果您正苦于以下问题:C++ SplashScreen::isFinished方法的具体用法?C++ SplashScreen::isFinished怎么用?C++ SplashScreen::isFinished使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在SplashScreen的用法示例。


在下文中一共展示了SplashScreen::isFinished方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: drawFrame

void ApplicationManager::drawFrame()
{
	if (networkManager_)
		networkManager_->tick();

	// if we're in app mode, skip the first 10 frames as black screen
	// because a pattern like surfaceChanged(a,b), drawFrame, drawFrame, drawFrame, ..., surfaceChanged(b,a) is possible
	// and we want to execute lua files after getting the final device resolution
	if (player_ == false)
	{
		if (nframe_++ < 10)
		{
			glClearColor(0, 0, 0, 1);
			glClear(GL_COLOR_BUFFER_BIT);

			return;
		}
	}

	if (player_ == false)
	{
		if (applicationStarted_ == false)
		{
			loadProperties();

			// Gideros has became open source and free, because this, there's no more splash art			

			loadLuaFiles();
			skipFirstEnterFrame_ = true;

			/*
			bool licensed = (licenseKey_[15] == 'f' && licenseKey_[16] == 'f');

			if (licensed)
			{
				loadLuaFiles();
				skipFirstEnterFrame_ = true;
			}
			else
			{
				application_->getApplication()->setBackgroundColor(0, 0, 0);
				splashScreen_ = new SplashScreen(application_->getApplication());
				application_->getApplication()->stage()->addChild(splashScreen_);
				splashScreen_->unref();
			}
			*/

			applicationStarted_ = true;
		}
		
		if (splashScreen_ && splashScreen_->isFinished())
		{
			application_->getApplication()->stage()->removeChild(splashScreen_);
			splashScreen_ = NULL;
			application_->getApplication()->setBackgroundColor(1, 1, 1);

			loadLuaFiles();
			skipFirstEnterFrame_ = true;
		}
	}	

	if (skipFirstEnterFrame_ == true)
	{	
		skipFirstEnterFrame_ = false;
	}
	else
	{
		GStatus status;
		application_->enterFrame(&status);
		if (status.error())
			luaError(status.errorString());
	}

	application_->clearBuffers();
	application_->renderScene(1);
	drawIPs();
}
开发者ID:callcc,项目名称:gideros,代码行数:77,代码来源:gideros.cpp


注:本文中的SplashScreen::isFinished方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。