this(Gdx.graphics.getWidth(), Gdx.graphics.getHeight(), false, null);\r
}\r
\r
+ /** Creates a stage with the specified {@link #setViewport(float, float, boolean) viewport} that doesn't keep the aspect ratio.\r
+ * The stage will use its own {@link SpriteBatch}, which will be disposed when the stage is disposed. */\r
+ public Stage (float width, float height) {\r
+ this(width, height, false, null);\r
+ }\r
+\r
/** Creates a stage with the specified {@link #setViewport(float, float, boolean) viewport}. The stage will use its own\r
* {@link SpriteBatch}, which will be disposed when the stage is disposed. */\r
public Stage (float width, float height, boolean keepAspectRatio) {\r
setViewport(width, height, keepAspectRatio);\r
}\r
\r
+ /** Sets up the stage size using a viewport that fills the entire screen without keeping the aspect ratio.\r
+ * @see #setViewport(float, float, boolean, float, float, float, float) */\r
+ public void setViewport (float width, float height) {\r
+ setViewport(width, height, false, 0, 0, Gdx.graphics.getWidth(), Gdx.graphics.getHeight());\r
+ }\r
+\r
/** Sets up the stage size using a viewport that fills the entire screen.\r
* @see #setViewport(float, float, boolean, float, float, float, float) */\r
public void setViewport (float width, float height, boolean keepAspectRatio) {\r