View Full Version : Delphi color picking

11-07-2002, 09:09 AM
I have an opengl panel which I have created in delphi and am trying to pick colors. I am not having any luck with the glReadPixel command.

Here's what I'm trying to do. I have a triangle with vertices reg, green and blue. I want to be able to select the blended color for a drawing program. I want to stick with opengl for this. If anyone has any ideas please help.

11-07-2002, 04:16 PM
glReadPixel should work fine, unless if your backbuffer gets "invalidated". Render to backbuffer and read immediatly, then swap.