Example usage for com.badlogic.gdx.graphics.g2d PolygonBatch interface-usage

List of usage examples for com.badlogic.gdx.graphics.g2d PolygonBatch interface-usage

Introduction

In this page you can find the example usage for com.badlogic.gdx.graphics.g2d PolygonBatch interface-usage.

Usage

From source file com.esotericsoftware.spine.utils.TwoColorPolygonBatch.java

/** A batch that renders polygons and performs tinting using a light and dark color.
 * <p>
 * Because an additional vertex attribute is used, the {@link Batch} and {@link PolygonBatch} methods that accept float[] vertex
 * data do not perform two color tinting. {@link #drawTwoColor(Texture, float[], int, int)} and
 * {@link #drawTwoColor(Texture, float[], int, int, short[], int, int)} are provided to accept float[] vertex data that contains
 * two colors per vertex. */