Hi,
I have monochrome video data that I’d like to show on the screen in false color. My current approach is to use glDrawPixels( w, h, GL_COLOR_INDEX, GL_UNSIGNED_BYTE, data ) and a color map set up by glPixelMap. However, this seems to be slow with todays graphics drivers on Windows (testing with XP here). If I disable some of the optimizations, speed increases, but this somehow tells me that I may be using an obsolete method.
My design goal is that my program should run on ‘reasonable recent middle-of-the-road’ hardware, using Windows, without tweaking drivers.
So, what would be my other options for drawing 2D 8-bit video data to the screen with false color? Or, more interesting, what would be the best or fastest approach? Should I look into the imaging extensions? Or do the false color mapping on the CPU and write RGBA data? Or use some pixel shader?
Thanks!
Koen