PDA

View Full Version : Reading pixel data



BBrown
11-07-2000, 08:56 AM
Does anyone know the most efficient way to read the color buffer if I wanted to find out the number of pixels that where say one specific color?

Thanks
Brian

Eric
11-07-2000, 09:11 AM
Use glReadPixels and then scan through the color buffer to count your colors...

Regards.

Eric