how to get (Points of edge Line) from 3d camera view to 2d coordinate in Modern openGL and C++


is there any way that I can get Lines from the camera view? as in image A is a wireframe, and B is filled with the background. so what we saw in image B, I want to get those lines only.

enter image description here