glutReshapeFunc (3) - Linux Manuals
glutReshapeFunc: Sets the Reshape callback for the current window.
NAME
glutReshapeFunc - Sets the Reshape callback for the current window.LIBRARY
OpenGLUT - windowcallbackSYNOPSIS
In openglut.h Ft void Fn glutReshapeFunc void( *callback )( int w int h )PARAMETERS
Bf Em
The parameters to your callback are the new width and
height for your window.
If you do not provide a reshape callback, OpenGLUT
will simply call glViewport(0,0,
Bf Sy
This callback is bound to the
Bf Li
To ask OpenGLUT about the present dimensions of the
Bf Li
The reshape callback should always be called, if registered, when your window is first created.
DESCRIPTION
This registers a function with OpenGLUT, which OpenGLUT
will invoke whenever the window is reshaped or
resized. Your callback is only invoked when the host
window system has actually changed the window size.
CAVEATS
Unlike other callbacks, GLUT has an
Bf Em