Note: groups.io will be down for maintenance on Monday, September 26th, starting at 9AM Pacific Time (4PM Monday September 26, 2022 UTC), for approximately one hour.
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 sean@...
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada