Geometry Selection using glRenderMode( GL_SELECT )

Can any one give any link to any tutorial or sample code for using selection. How do I use it?

Here’s a link for you.

The selection mode is deprecated and often only a software implementation. In most cases it’s much faster to encode the object ID as color and read it back.