Constructor of ResolutionPolicy
The entire application is visible in the specified area without trying to preserve the original aspect ratio.
Distortion can occur, and the application may appear stretched or compressed.
The application takes the height of the design resolution size and modifies the width of the internal
canvas so that it fits the aspect ratio of the device
no distortion will occur however you must make sure your application works on different
aspect ratios
The application takes the width of the design resolution size and modifies the height of the internal
canvas so that it fits the aspect ratio of the device
no distortion will occur however you must make sure your application works on different
aspect ratios
The entire application fills the specified area, without distortion but possibly with some cropping,
while maintaining the original aspect ratio of the application.
The entire application is visible in the specified area without distortion while maintaining the original
aspect ratio of the application. Borders can appear on two sides of the application.
Unknown policy
调用策略方法
An object contains the scale X/Y values and the viewport rect
策略应用之后的操作
The target view
策略应用前的操作
The target view
设置容器的适配策略
The container strategy
设置内容的适配策略
The content strategy
Generated using TypeDoc
ResolutionPolicy class is the root strategy class of scale strategy, its main task is to maintain the compatibility with Cocos2d-x