I tried to use the Unproject function, but it seems I'm missing something:
I created a viewport like this:
OpenGL gl = openGLControl.OpenGL;
gl.ClearColor(0, 0, 0, 0);
gl.Ortho2D(0, 100, 0, 100);
Then I draw a line as this one:
The line shows in the lower left corner of the control, as if the origin was at the bottom left.
Then I use the Unproject function to get a clicked coordinate near the endpoints of the line I just draw, expecting the returned coordinates to be 5,5 and 10,10
But the return of the Unproject function is 5,95 and 10,90 (as if the origin was on the upper left corner of the control)
What am I'm missing here?