disable window resize in opengl c++

c++, opengl, window

Solution

That can't be done in OpenGL without a windowing API. Using GLUT, you can call `glutReshapeWindow` in the reshape callback to reset the size when the user tries to change it. Alternatively, if you don't need it windowed, go fullscreen via `glutFullScreen` to stop the user from reshaping the window. As far as I know that's the only portable way to do it.

Hope this helps.

Problem

Is it possible to disable a window resize created with opengl using c++? I'm looking for this because I'm trying to draw a graph and the letters in the scale (or title) will have their position changed after a resize.

Original source

Related problems