We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.
Windows Phone Orientation
Windows Phone Orientation
Bug #5020 [Closed]
You can use follow code to set windows phone Orientation to portrait:
Director::getInstance()->getOpenGLView()->UpdateOrientation(Windows::Graphics::Display::DisplayOrientations::Portrait);
You can use follow code to set windows phone Orientation to portrait:
Director::getInstance()->getOpenGLView()->UpdateOrientation(Windows::Graphics::Display::DisplayOrientations::Portrait);
Thanks for the suggestion.
It will be great if you update the cocos2d-x c++ documentation as well.
http://www.cocos2d-x.org/wiki/Device_Orientation
- Status changed from New to Closed
- Target version set to v3.1
- % Done changed from 0 to 100
I'm using the Cocos2d-x version 3.0 Final Release.
Upon building on the windows phone and have change the MainPage.xaml to Portrait in the settings.
I can see the ram display in portrait, while the game is still being rendered on landscape format, including the fps counter.