OpenGL and MFC - Lclick coordinate
Posted on 1997-09-21
I have a 2-D grid on a window. When the user left clicks on
the space of the grid, I need to get the coordinate that was clicked in the OpenGL projection, not the pixel coordinates
of the window passed in Cpoint of the OnLButtonDown(UINT nFlags, CPoint point).
I need help finding those corrindates so that the user can create an object where he just clicked.
[Using Visual C++ 5.0]