![]() pDirector->setDeviceOrientation(kCCDeviceOrientationLandscapeLeft) enable High Resource Mode(2x, such as iphone4) and maintains low resource on other devices. PDirector->setOpenGLView(&CCEGLView::sharedOpenGLView()) I agree, hahaĬCDirector::sharedDirector()->setDeviceOrientation(kCCDeviceOrientationLandscapeLeft) īool AppDelegate::applicationDidFinishLaunching()ĬCDirector *pDirector = CCDirector::sharedDirector() MaxAksenov said it's NOT a very elegant solution. #if (CC_TARGET_PLATFORM = CC_PLATFORM_AIRPLAY) ![]() on wophone emulator, we copy resources files to Work7/NEWPLUS/TDA_DATA/Data/ folder instead of zip fileĬocos2d::CCFileUtils::setResource("HelloWorld.zip") #if (CC_TARGET_PLATFORM = CC_PLATFORM_WOPHONE)ĬCEGLView* pMainWnd = new CCEGLView(this) ĬC_BREAK_IF(! pMainWnd || ! pMainWnd->Create(320,480, WM_WINDOW_ROTATE_MODE_CW)) ![]() if you want to use auto-scale, please enable view->create(320,480) in main.cpp the default setting is to create a fullscreen view OpenGLView initialized in HelloWorld/android/jni/helloworld/main.cpp #if (CC_TARGET_PLATFORM = CC_PLATFORM_ANDROID) OpenGLView initialized in testsAppDelegate.mm on ios platform, nothing need to do here. #if (CC_TARGET_PLATFORM = CC_PLATFORM_IOS) Initialize OpenGLView instance, that release by CCDirector when application terminate. #if (CC_TARGET_PLATFORM = CC_PLATFORM_WIN32) I’ve modified the Helloworld sample to test if this is only happening in the application we are developing. Openfeint handles the thread update so this is a very good example. I’ve done UI update via async, handlers and threads, all of them fails. I’ve posted about calling an activity, this one is about updating the UI thread.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |