benleggiero
03/10/2017, 9:02 PM#if(JS)
voddan
03/10/2017, 9:04 PMbenleggiero
03/10/2017, 9:10 PMGraphics2D
and Cocoa Touch's CGContext
. They're almost identical in API, so I want to write an abstraction layer called GraphicsContext
that will call branch off to one or the other depending on the OS you compiled it forvoddan
03/10/2017, 9:25 PM#if
benleggiero
03/10/2017, 9:26 PMvoddan
03/10/2017, 9:27 PMbenleggiero
03/10/2017, 9:27 PMCGFloat
and have a type that's 32-bit on 32-bit platforms, and 64-bit on 64-bit ones?
https://github.com/apple/swift/blob/master/stdlib/public/SDK/CoreGraphics/CGFloat.swift.gyb#L26-L35voddan
03/10/2017, 9:36 PMpniederw
03/11/2017, 1:45 AMbenleggiero
03/11/2017, 2:22 AMpniederw
03/11/2017, 5:17 AMbashor
03/13/2017, 6:34 PM