Emscripten-Generated Code

emscripten
Downloading...

Resize canvas Lock/hide mouse pointer

{{{ SCRIPT }}}
This simply requests fullscreen, use when no extra behavior is desirable. This is subject to a wild number of per-browser differences, see https://github.com/emscripten-core/emscripten/issues/2556.
Stretch the WebGL render target to cover the whole screen in pixel-perfect manner, in standard definition.
Same as above, but use the actual native display resolution, instead of CSS resolution.
Stretch the WebGL render target to cover the full screen, but retain aspect ratio.
Same as above, but use the actual native display resolution, instead of CSS resolution.
Don't resize WebGL render target, and don't care about aspect ratio, simply stretch over the whole screen. (current Firefox and IE default behavior)
Don't resize WebGL render target, but scale over the whole screen, preserving aspect ratio.
Same as above, but perform pixelated nearest-neighbor filtering instead of bilinear filtering.
Don't resize the WebGL render target and don't scale the displayed content, but show it full screen. (current Chrome and Safari default behavior)
The Soft fullscreen modes are otherwise exactly like the above, except that they don't actually request fullscreen, but instead they present the canvas maximized in the client area of the page. This is more desirable in Firefox OS mobile packaged apps, where the application is already displayed full screen. Also it allows client desktop apps to use F11 for transitioning between fullscreen mode.