Class BitmapFontLoader

java.lang.Object
com.badlogic.gdx.assets.loaders.AssetLoader<T,​P>
com.badlogic.gdx.assets.loaders.AsynchronousAssetLoader<BitmapFont,​BitmapFontLoader.BitmapFontParameter>
gaiasky.util.gdx.loader.BitmapFontLoader

public class BitmapFontLoader
extends com.badlogic.gdx.assets.loaders.AsynchronousAssetLoader<BitmapFont,​BitmapFontLoader.BitmapFontParameter>
AssetLoader for BitmapFont instances. Loads the font description file (.fnt) asynchronously, loads the Texture containing the glyphs as a dependency. The BitmapFontLoader.BitmapFontParameter allows you to set things like texture filters or whether to flip the glyphs vertically.
  • Nested Class Summary

    Nested Classes
    Modifier and Type Class Description
    static class  BitmapFontLoader.BitmapFontParameter
    Parameter to be passed to AssetManager.load(String, Class, AssetLoaderParameters) if additional configuration is necessary for the BitmapFont.
  • Constructor Summary

    Constructors
    Constructor Description
    BitmapFontLoader​(com.badlogic.gdx.assets.loaders.FileHandleResolver resolver)  
  • Method Summary

    Modifier and Type Method Description
    com.badlogic.gdx.utils.Array<com.badlogic.gdx.assets.AssetDescriptor> getDependencies​(java.lang.String fileName, com.badlogic.gdx.files.FileHandle file, BitmapFontLoader.BitmapFontParameter parameter)  
    void loadAsync​(com.badlogic.gdx.assets.AssetManager manager, java.lang.String fileName, com.badlogic.gdx.files.FileHandle file, BitmapFontLoader.BitmapFontParameter parameter)  
    BitmapFont loadSync​(com.badlogic.gdx.assets.AssetManager manager, java.lang.String fileName, com.badlogic.gdx.files.FileHandle file, BitmapFontLoader.BitmapFontParameter parameter)  

    Methods inherited from class com.badlogic.gdx.assets.loaders.AsynchronousAssetLoader

    unloadAsync

    Methods inherited from class com.badlogic.gdx.assets.loaders.AssetLoader

    resolve

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait