Example usage for com.badlogic.gdx.graphics.g2d BitmapFontCache getVertices

List of usage examples for com.badlogic.gdx.graphics.g2d BitmapFontCache getVertices

Introduction

In this page you can find the example usage for com.badlogic.gdx.graphics.g2d BitmapFontCache getVertices.

Prototype

public float[] getVertices() 

Source Link

Usage

From source file:mobi.shad.s3lib.gfx.g2d.BitmapFontAnim.java

License:Apache License

/**
 * /*from w ww  .  j ava 2  s .co m*/
 * @param cache
 */
public BitmapFontAnim(BitmapFontCache cache) {
    this.cache = cache;
    font = cache.getFont();
    x = cache.getX();
    y = cache.getY();
    vertices = cache.getVertices();
    copyVertices = new float[cache.getVertices().length];
    System.arraycopy(cache.getVertices(), 0, copyVertices, 0, cache.getVertices().length);
    textLengh = copyVertices.length / 20;
}