Function Set-Window-Size
(
set-window-size < width > < height > )
Parameters
width
Width of the window.
height
Height of the window.
Return values
none
Description
The function changes the size of an opened window. The width and height parameters denote the size of
the client area of the window (i.e. excluding any window borders and decorations).
If the window is in fullscreen mode, the video mode will be changed to a resolution that closest matches
the width and height parameters (the number of color bits will not be changed).
Notes
The OpenGL⢠context is guaranteed to be preserved after calling glfwSetWindowSize, even if the
video mode is changed.