Added convenience overloads to Rect and also, Collection conformance in the Playdate bindings target.

This commit is contained in:
2026-07-26 00:31:58 +02:00
parent 41558399e3
commit 0d0b397ce1
5 changed files with 92 additions and 0 deletions
+6
View File
@@ -186,6 +186,12 @@ enum Mock {
Mock.record("getTableBitmap(\(index))")
return index == 0 ? Mock.fakePointer() : nil
}
gfxAPI.pointee.getBitmapTableInfo = { _, count, cellsWide in
Mock.record("getBitmapTableInfo")
// One bitmap, matching getTableBitmap vending index 0 only.
count?.pointee = 1
cellsWide?.pointee = 1
}
}
// MARK: - Sprite