本文整理汇总了C++中CCDirector::setAlphaBlending方法的典型用法代码示例。如果您正苦于以下问题:C++ CCDirector::setAlphaBlending方法的具体用法?C++ CCDirector::setAlphaBlending怎么用?C++ CCDirector::setAlphaBlending使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CCDirector
的用法示例。
在下文中一共展示了CCDirector::setAlphaBlending方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: applicationDidFinishLaunching
bool AppDelegate::applicationDidFinishLaunching()
{
CCDirector* director = CCDirector::sharedDirector();
CCEGLView* EGLView = CCEGLView::sharedOpenGLView();
CCSize screenSize = EGLView->getFrameSize();
director->setOpenGLView(EGLView);
director->setContentScaleFactor(designResolutionSize.height / screenSize.height);
vector <string> searchPath;
searchPath.push_back(resources800x600.directory);
CCFileUtils::sharedFileUtils()->setSearchPaths(searchPath);
mSharedScreenManager = ScreenManager::create();
Options::SCREEN_WIDTH = designResolutionSize.width;
Options::SCREEN_HEIGHT = designResolutionSize.height;
Options::SCREEN_CENTER_X = designResolutionSize.width / 2;
Options::SCREEN_CENTER_Y = designResolutionSize.height / 2;
Options::CAMERA_WIDTH = screenSize.width;
Options::CAMERA_HEIGHT = screenSize.height;
Options::CAMERA_CENTER_X = screenSize.width / 2;
Options::CAMERA_CENTER_Y = screenSize.height / 2;
director->setAlphaBlending(false);
director->setDepthTest(false);
director->setDisplayStats(true);
director->setProjection(kCCDirectorProjection2D);
director->setAnimationInterval(1.0f / 60.0f);
director->runWithScene(Loader::create());
return true;
}