Which NSColorSpace to convert NSColor for OpenGL use?
Given an arbitrary NSColor, how does one get the rgb components to pass to OpenGL APIs?
I know the getRed:green:blue:alpha: API, and I know I need to first use colorUsingColorSpace: to get a colour I can safely extract rgb components from, but what I don't know is which NSColorSpace I should use. genericRGBColorSpace? deviceRGBColorSpace? What is appropriate to pass to OpenGL?
Sean McBride, B. Eng email@example.com
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada