Example usage for com.badlogic.gdx.scenes.scene2d Stage getBatch

List of usage examples for com.badlogic.gdx.scenes.scene2d Stage getBatch

Introduction

In this page you can find the example usage for com.badlogic.gdx.scenes.scene2d Stage getBatch.

Prototype

public Batch getBatch() 

Source Link

Usage

From source file:com.sixth.fodder.graphics.Fodder.java

public static Stage getStage() {
    final Stage stage;
    final ScalingViewport view;

    view = new ScalingViewport(Scaling.none, RoadGenerator.getMapWidth() * Cell.getSizeInPix(),
            RoadGenerator.getMapHeight() * Cell.getSizeInPix(), game.camera);

    stage = new Stage(view);
    stage.getBatch().setProjectionMatrix(game.camera.combined);

    return stage;
}