what is simplest way to handle a click?

i need to detect which polygon was clicked on in my program, i have the x,y of the mouse, what do i do with it to get back to the polygon. i cant make sense of gluUnProject. plz help

I suggest you use the selection feature in OpenGL. Have a look at lession 33 at NeHe 's site for a tutorial on picking.