Shapes
I’m porting shapes to the CPU. Here it makes since to dip into Quartz, but first I needed a bridge so that Quartz can draw directly into Naked Anatomy’s buffers. After an hour or two of trying to figure out why it wouldn’t work via a simple CGCreateBitmapContext(…) call, I went the roundabout way: I created an NSBitmapImageRep with my buffer, created an NSGraphicsContext from that, and pulled out the graphicsPort to get my CGContextRef.
Took 5 minutes and a beer.
CGCreateBitmapContext-created contexts don’t seem to play nice with floats.