Skip to content Skip to sidebar Skip to footer

Libgdx Automatically Scaling Gwt Window To Monitor Resolution

I'm creating an application with LibGDX and deploying exclusively to a GWT HTML5 environment. The below code sets up my environment with a 1280x720 resolution as expected: public c

Solution 1:

You will have to do this with platform specific code. In case of GWT, this seems to be Window.

return new GwtApplicationConfiguration(Window.getClientWidth(), Window.getClientHeight());

Post a Comment for "Libgdx Automatically Scaling Gwt Window To Monitor Resolution"