c++ – How to a select a single 3D object out of multiple objects using mouse click and move it using mouse drag in OpenGL

I am rendering multiple 3d objects on the screen but i want to select one particular object by clicking on it and then move it using mouse drag but i cant figure it how to do it because on clicking on the screen all i get is the 2D coordinates of the mouse pointer

I am new to OpenGl Plsss help