I am drawing an opengl object into a display window that can be resized. When the user resizes the window it messes up the perspective since the window may no longer be square. I was wondering what is the correct way to handle this problem. If I center the viewport and make sure it is square then there will be areas outside the viewport but still considered the display window that the model will not be able to get panned into.
Is my only option to always make sure that when a user resizes the window that it maintains a square perspective?
Thanks in advance,