You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Two-stage resizing so resizeListeners can participate in GLUT resizing.
1. First stage is addEventListener for GLUT.onSize, which only updates the canvas size to clientWidth and clientHeight via setCanvasSize, which in turn calls updateResizeListeners.
2. Second stage is to add back original Browser.resizeListeners.push for GLUT.reshapeFunc, which is called on updateResizeListeners.
The callback sequence is:
window resize -> GLUT.onSize -> Browser.setCanvasSize -> updateResizeListeners -> GLUT.reshapeFunc
This extra step is so any other calls to Browser.setCanvasSize, setFullscreenCanvasSize, setWindowedCanvasSize will now callback to GLUT.reshapeFunc.
0 commit comments