Package com.badlogic.gdx.utils.viewport

Examples of com.badlogic.gdx.utils.viewport.ScalingViewport


  private final Color debugColor = new Color(0, 1, 0, 0.85f);

  /** Creates a stage with a {@link ScalingViewport} set to {@link Scaling#fill}. The stage will use its own {@link Batch} which
   * will be disposed when the stage is disposed. */
  public Stage () {
    this(new ScalingViewport(Scaling.stretch, Gdx.graphics.getWidth(), Gdx.graphics.getHeight(), new OrthographicCamera()),
      new SpriteBatch());
    ownsBatch = true;
  }
View Full Code Here


  private Actor keyboardFocus, scrollFocus;
  private final SnapshotArray<TouchFocus> touchFocuses = new SnapshotArray(true, 4, TouchFocus.class);

  /** Creates a stage with a {@link ScalingViewport} set to {@link Scaling#fill}. The stage will use its own {@link Batch}. */
  public Stage () {
    this(new ScalingViewport(Scaling.stretch, Gdx.graphics.getWidth(), Gdx.graphics.getHeight(), new OrthographicCamera()),
      null);
  }
View Full Code Here

  private final Color debugColor = new Color(0, 1, 0, 0.85f);

  /** Creates a stage with a {@link ScalingViewport} set to {@link Scaling#fill}. The stage will use its own {@link Batch} which
   * will be disposed when the stage is disposed. */
  public Stage () {
    this(new ScalingViewport(Scaling.stretch, Gdx.graphics.getWidth(), Gdx.graphics.getHeight(), new OrthographicCamera()),
      new SpriteBatch());
    ownsBatch = true;
  }
View Full Code Here

TOP

Related Classes of com.badlogic.gdx.utils.viewport.ScalingViewport

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.