Changes the fullscreen state of the display. The size is ignored, and the resolution is chosen to be the
maximum resolution available on the device.
GWT Platform Notes:
On the HTML5 platform, the change takes some time to happen, as it is based on some hacks. Web browsers
require that fullscreen change request should be done only upon user interaction, and cancels any requests that
are made without user interaction, such as switching to fullscreen mode while initialization.
To prevent this issue, and switch to fullscreen mode at any cost, SilenceEngine uses a hack, it delays the
request until a user event happens, like a key press, mouse click, or even mouse move.
To make it feel natural, you have to call it only after the init methods. You should also only use method in
an if clause that checks user input. For example, the following is valid:
if (Keyboard.isKeyTapped(Keyboard.KEY_ENTER)
&& Keyboard.isKeyDown(Keyboard.KEY_LEFT_ALT))
SilenceEngine.display.setFullscreen(true);
In the above case this is smooth enough that we check on key tap (usually the immediate frame) and request it,
then the request is considered when the key goes up. But it is considered a bad practice to just call this method
without checking for user input.