Get the window coordinates when you clic on the OpenGL window


i want to get the window coordinates of an Opengl window when you clic on it with the mouse.

Is that a question about c, c++ or win API programming or it involves Opengl?

It is a question about your windowing API, because it’ll give you the mouse click event. OpenGL nor C++ provide mechanisms for that.