PDA

View Full Version : Delphi color picking



Morphius
11-07-2002, 10: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.

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

V-man