cocos2d-x wp8 竖屏设置

wp8项目

在项目同名CPP文件,SetWindow方法

DisplayProperties::AutoRotationPreferences = DisplayOrientations::Portrait;

wp8-xaml项目

设置c#项目MainPage.xaml,SupportedOrientations="Portrait", Orientation="Portait"

C++项目,调用Cocos2dRenderer.cpp的OnOrientationChanged方法,设置竖屏

转载于:https://www.cnblogs.com/moonbear/p/4012795.html

猜你喜欢

转载自blog.csdn.net/weixin_33955681/article/details/94500058