首页 > 其他 > 详细

Egret Engine 2D - 缩放模式和旋转模式说明

时间:2017-08-06 16:37:36      阅读:483      评论:0      收藏:0      [点我收藏+]
缩放模式和旋转模式说明
缩放模式showAll 常用
noScale
noBorder
exactFit 次常用
fixedWidth
fixedHeight
fixedNarrow
fixedWide
 
可在代码里设置this.stage.scaleMode = egret.StageScaleMode.SHOW_ALL ;可在index.html里配置<body> <divdata-scale-mode="noScale" > </div> </body>
 
旋转设置
auto
portrait
landscape
landscapeFipped 和landscape的方向相反
<body> <divdata-orientation="auto" > </div> </body>可在代码里设置this.stage.orientation = egret.OrientationMode.AUTO;

Egret Engine 2D - 缩放模式和旋转模式说明

原文:http://www.cnblogs.com/jason-beijing/p/7294939.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!