This PR contains the work done to update the library and the attached example project to use the Swift 6.4 computer as a minimum supported version and also, to use the latest features introduced in it. Reviewed-on: #1 Co-authored-by: Javier Cicchelli <javier@rock-n-code.com>
15 lines
473 B
Swift
15 lines
473 B
Swift
internal import CPlaydate
|
|
|
|
extension Graphics {
|
|
/// Mirroring applied when drawing a bitmap. Wraps `LCDBitmapFlip`.
|
|
public enum BitmapFlip: UInt32, Sendable {
|
|
case unflipped = 0
|
|
case flippedX = 1
|
|
case flippedY = 2
|
|
case flippedXY = 3
|
|
|
|
init(_ flip: LCDBitmapFlip) { self = BitmapFlip(rawValue: UInt32(flip.rawValue)) ?? .unflipped }
|
|
var cValue: LCDBitmapFlip { LCDBitmapFlip(LCDBitmapFlip.RawValue(rawValue)) }
|
|
}
|
|
}
|