2026-07-25 12:39:32 +02:00
|
|
|
internal import CPlaydate
|
|
|
|
|
|
|
|
|
|
extension Graphics {
|
2026-09-18 12:45:39 +02:00
|
|
|
/// Mirroring applied when drawing a bitmap. Wraps `LCDBitmapFlip`.
|
2026-07-25 12:39:32 +02:00
|
|
|
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)) }
|
|
|
|
|
}
|
|
|
|
|
}
|