Package gaiasky.util.gdx.loader
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
Modifier and TypeClassDescriptionstatic class
Parameter to be passed toAssetManager.load(String, Class, AssetLoaderParameters)
if additional configuration is necessary for theBitmapFont
. -
Constructor Summary
ConstructorDescriptionBitmapFontLoader
(com.badlogic.gdx.assets.loaders.FileHandleResolver resolver) -
Method Summary
Modifier and TypeMethodDescriptioncom.badlogic.gdx.utils.Array<com.badlogic.gdx.assets.AssetDescriptor>
getDependencies
(String fileName, com.badlogic.gdx.files.FileHandle file, BitmapFontLoader.BitmapFontParameter parameter) void
loadAsync
(com.badlogic.gdx.assets.AssetManager manager, String fileName, com.badlogic.gdx.files.FileHandle file, BitmapFontLoader.BitmapFontParameter parameter) loadSync
(com.badlogic.gdx.assets.AssetManager manager, 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
-
Constructor Details
-
BitmapFontLoader
public BitmapFontLoader(com.badlogic.gdx.assets.loaders.FileHandleResolver resolver)
-
-
Method Details
-
getDependencies
public com.badlogic.gdx.utils.Array<com.badlogic.gdx.assets.AssetDescriptor> getDependencies(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, 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, String fileName, com.badlogic.gdx.files.FileHandle file, BitmapFontLoader.BitmapFontParameter parameter) - Specified by:
loadSync
in classcom.badlogic.gdx.assets.loaders.AsynchronousAssetLoader<BitmapFont,
BitmapFontLoader.BitmapFontParameter>
-