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

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

Introduction

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

Prototype

public float getX() 

Source Link

Document

Returns the x position of the cached string, relative to the position when the string was cached.

Usage

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

License:Apache License

/**
 * //from  w  ww.ja  v  a 2 s . c  o  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;
}