Cocos2d-x在运行时候修改分辨率
Cocos2d-x在运行时候修改分辨率
下面是Cocos2d-x在运行时候修改分辨率:
cocos2d::CCEGLView* eglView = cocos2d::CCEGLView::sharedOpenGLView();
cocos2d::CCDirector* pDirector = cocos2d::CCDirector::sharedDirector();
if ( eglView == NULL || pDirector == NULL )
{
return false;
}
eglView->setFrameSize(width, height);
eglView->setDesignResolutionSize(width, height, kResolutionNoBorder);
cocos2d::CCScene *pScene = HelloWorld::scene();
pDirector->replaceScene(pScene);
剖析cocos2d-x之Action实现
Ubuntu下cocos2d-x开发环境搭建及配置
Cocos2d-x3.2实现虚拟摇杆多点触摸
Cocos2D-X 的详细介绍:请点这里
Cocos2D-X 的下载地址:请点这里
本文永久更新链接地址:
评论暂时关闭