luca-piccioni / OpenGL.Net

Modern OpenGL bindings for C#.
MIT License
568 stars 108 forks source link

nativeWindow.MouseMove Y coordinates are inverted #90

Closed matyasforian closed 6 years ago

matyasforian commented 6 years ago

The zero Y coordinate is at the bottom of the window, its max value at the top. Is this intentional? OpenGL.NET 0.7.1 on Windows 10.

luca-piccioni commented 6 years ago

Yep, it is intentional.

I did this in the past 10 years for every new project. The idea is to set the window origin to the bottom-left, as glViewport does.

matyasforian commented 6 years ago

OK, thanks!