Hello,
I develop an application in visual basic.net that contains both vb controls and opengl. The problem is that the visual basic in forms uses pixels and opengl does not. I tried to make the conversion :
x = -1+(2/Form1.width)*x_coord_in_pixels
y = 1 - +(2/Form1.height)*y_coord_in_pixels
Gl.glRectf(x, y, x + 0.25, y + 0.25)
but i see that the coordinates in my form are still different from theese in opengl. It is a litle bit confusing but i hope you understand. If you don’t please tell me and I will explain more
Thank you