Function Set-Window-Size-Callback
(
set-window-size-callback < cbfun > )
Parameters
cbfun
Pointer to a callback function that will be called every time the window size changes. The
function should have the following C language prototype:
void GLFWCALL functionname( int width, int height );
Where functionname is the name of the callback function, and width and height are the
dimensions of the window client area.
If cbfun is NULL, any previously selected callback function will be deselected.
Return values
none
Description
The function selects which function to be called upon a window size change event.
A window has to be opened for this function to have any effect.
Notes
Window size changes are recorded continuously, but only reported when glfwPollEvents,
glfwWaitEvents or glfwSwapBuffers is called.