CCViewResolutionPolicy
CCViewResolutionPolicy
Cocos2DResolution policy for the CCGameView. These policies determine how the design resolution is mapped to the actual view size.
Type: Enum
Values
Custom(enum value)
Use ViewportRectRatio for custom viewport configuration.
ExactFit(enum value)
Fit to entire view. Distortion may occur if aspect ratios don't match.
FixedHeight(enum value)
Use width of design resolution and scale height to aspect ratio of view. Useful for horizontal scrolling games.
FixedWidth(enum value)
Use height of design resolution and scale width to aspect ratio of view. Useful for vertical scrolling games.
NoBorder(enum value)
Maintain design resolution aspect ratio, but scene may appear cropped. The entire view is filled with the scene.
ShowAll(enum value)
Maintain design resolution aspect ratio, ensuring entire scene is visible. Black bars may appear on the sides.