Package render

Examples of render.ADXFontFormatter


 
  @Override
  public void init(ADXGame game) {
   
    if (fnt != null) {
      fntFormat = new ADXFontFormatter(fnt);
      width = (int) ADXMath.max(8 + fntFormat.getMaxWidth(text) + 8, 8 + 64 + 8);
      height = 8 + fntFormat.getTotalHeight(text) + 8 + 32 + 8;
    }
    x = (game.getWidth() - width) / 2;
    y = (game.getHeight() - height) / 2;
View Full Code Here

TOP

Related Classes of render.ADXFontFormatter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.