cocos2dx在win32中全屏
发布时间:2020-12-14 16:50:02 所属栏目:百科 来源:网络整理
导读:bool AppDelegate::applicationDidFinishLaunching() { // initialize director auto director = Director::getInstance(); auto glview = director-getOpenGLView(); if(!glview) {#if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32) || (CC_TARGET_PLATFORM =
bool AppDelegate::applicationDidFinishLaunching() { // initialize director auto director = Director::getInstance(); auto glview = director->getOpenGLView(); if(!glview) { #if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32) || (CC_TARGET_PLATFORM == CC_PLATFORM_MAC) || (CC_TARGET_PLATFORM == CC_PLATFORM_LINUX) //glview = GLViewImpl::createWithRect("Test",Rect(0,customResolutionSize.width,customResolutionSize.height)); glview=GLViewImpl::createWithFullScreen("Test"); #else glview = GLViewImpl::create("Test"); #endif director->setOpenGLView(glview); }在AppDelegate.cpp中,glview就是创建弹出框的大小view,以前我看了很多底层代码,都买找到,难受死了,现在终于找到了。 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |