Example usage for com.badlogic.gdx.utils.viewport Viewport update

List of usage examples for com.badlogic.gdx.utils.viewport Viewport update

Introduction

In this page you can find the example usage for com.badlogic.gdx.utils.viewport Viewport update.

Prototype

public final void update(int screenWidth, int screenHeight) 

Source Link

Document

Calls #update(int,int,boolean) with false.

Usage

From source file:com.suiton2d.editor.ui.render.RenderAdapter.java

License:Open Source License

@Override
public void resize(int width, int height) {
    Scene scene = sceneManager.getCurrentScene();
    if (scene != null) {
        Stage stage = scene.getStage();/*from www. j a v a 2 s  .c o m*/
        Viewport viewport = stage.getViewport();
        viewport.update(width, height);
    }
}