Highlighting polygons

Please Help,

I am not sure if this is an advanced OpenGL question and if it isn’t, I appologize.

I am building a program that is rendering a series of triangular polygons such that not all are the same color and need some help. I used the glColor3f function on the individual polygons as they were rendered and gave a different color based on a number that was attached to the polygon (read from an external text file along with the coordinates of the polygon). The display works perfectly (thanks to all the great hints/help I have received from this site) but now I would like to be able to select certain polygons with a mouse and highlight that particular(s) polygons with a visual que (such as temporarily changing the color to a lighter version of the original) - maybe also determine the polygon(s) that is being highlighted through mouse coordinates?

I am assuming this is possible but I don’t know where to begin. Any help/hints would be great.

Thanks in advance.

Search for OpenGL selection

Thank you. I will give it a try.