picking object

Can we use picking object in opengl with using glut? Please give me one example if you have one without using glut in VC++ mfc environment.


I haven’t seen a function in GLUT for picking…

Selection mode works just fine in glut, just remember to have an active rendering context when you do it, if I remember correct the mouse callback has the rendering context active in glut so you could just setup selection mode and then call your rendering code (with name ´stack code included of course) from the mouse handling code (if that is where you want to do the picking).