Hello, I’me writing a project to display a video on screen and then draw enhanced information with OpenGL in overlay on it.
My problem is that I’d like to have a resizeable window with constanct aspect ratio, or I can force it to resize keeping the aspect ratio by myself, this is nor the problem.
The problem is that I’d like to have the video frames resize automatically and have the screen coordinates unchanged so that every opengl call keeps working as if the screen coordinates are always the same ones when the window was initialized.
I tried to do this drawing the video frame with glDrawPixels and resizing it with glPixelZoom but even though the zoom changed, the cropped area was always of the same amout of physical pixels and the remaining part was black.
So I tried with textures, but the problem is the same… with textures I also have another problem, that is blur and fastidious bad interpolation between frames… and I enabled GL_LINEAR for both MIN and MAX filters.
Please I am asking your help because I’m not kin with glViewport and resizement and how this impact on the management of screen coordinates.