Select and move the vertices point

Hi everyone,

I’m new to OpenGL.
I have drawn a 3d model using vertices and polygon. Now i want add the functionality that allows the mouse to select and move the vertices. Can somebody help me?

Thanks in advance,

All CAD and design applications do that. Porject the vertex to window space with gluProject and check to see which vertex is the closest to your mouse. Or look into the source code of Blender (