CameraZoomClamping
public enum CameraZoomClamping : CGFloat
Overview
Camera zoom rounding factor. Clamps the zoom value to the nearest whole pixel value in order to alleviate cracks appearing in between individual tiles.
Properties
Property | Description |
---|---|
none | Do not clamp camera zoom. |
half | Clamp zoom to the nearest half-pixel. |
third | Clamp zoom to the nearest third of a pixel. |
-
Returns an array of all camera zoom modes.
Declaration
Swift
public static func allModes() -> [CameraZoomClamping]
-
▶︎next()
Returns the next mode in the list.
Declaration
Swift
public func next() -> CameraZoomClamping
-
▶︎minimum
Minimum possible value.
Declaration
Swift
public var minimum: CGFloat { get }