Class BitmapFontLoader
- java.lang.Object
-
- com.badlogic.gdx.assets.loaders.AssetLoader<T,P>
-
- com.badlogic.gdx.assets.loaders.AsynchronousAssetLoader<BitmapFont,BitmapFontLoader.BitmapFontParameter>
-
- gaia.cu9.ari.gaiaorbit.util.gdx.loader.BitmapFontLoader
-
public class BitmapFontLoader extends com.badlogic.gdx.assets.loaders.AsynchronousAssetLoader<BitmapFont,BitmapFontLoader.BitmapFontParameter>
AssetLoader
forBitmapFont
instances. Loads the font description file (.fnt) asynchronously, loads theTexture
containing the glyphs as a dependency. TheBitmapFontLoader.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 toAssetManager.load(String, Class, AssetLoaderParameters)
if additional configuration is necessary for theBitmapFont
.
-
Constructor Summary
Constructors Constructor Description BitmapFontLoader(com.badlogic.gdx.assets.loaders.FileHandleResolver resolver)
-
Method Summary
All Methods Instance Methods Concrete Methods 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)
-
-
-
Method Detail
-
getDependencies
public com.badlogic.gdx.utils.Array<com.badlogic.gdx.assets.AssetDescriptor> getDependencies(java.lang.String fileName, com.badlogic.gdx.files.FileHandle file, BitmapFontLoader.BitmapFontParameter parameter)
- Specified by:
getDependencies
in classcom.badlogic.gdx.assets.loaders.AssetLoader<BitmapFont,BitmapFontLoader.BitmapFontParameter>
-
loadAsync
public void loadAsync(com.badlogic.gdx.assets.AssetManager manager, java.lang.String fileName, com.badlogic.gdx.files.FileHandle file, BitmapFontLoader.BitmapFontParameter parameter)
- Specified by:
loadAsync
in classcom.badlogic.gdx.assets.loaders.AsynchronousAssetLoader<BitmapFont,BitmapFontLoader.BitmapFontParameter>
-
loadSync
public BitmapFont loadSync(com.badlogic.gdx.assets.AssetManager manager, java.lang.String fileName, com.badlogic.gdx.files.FileHandle file, BitmapFontLoader.BitmapFontParameter parameter)
- Specified by:
loadSync
in classcom.badlogic.gdx.assets.loaders.AsynchronousAssetLoader<BitmapFont,BitmapFontLoader.BitmapFontParameter>
-
-