Define callback function
n
Code
n
Note
n
Arguments to callback is fixed for each event type.
n
For window resize, it receives window pointer, new window
width, and new window height.
n
Substitute new width and height to globally visible parameters.
n
Update window size managed by GLFW, and viewport.
Computer Graphics Course @Waseda University