com.badlogic.gdx.assets.loaders
Class BitmapFontLoader
java.lang.Object
com.badlogic.gdx.assets.loaders.AssetLoader<T,P>
com.badlogic.gdx.assets.loaders.AsynchronousAssetLoader<BitmapFont,BitmapFontLoader.BitmapFontParameter>
com.badlogic.gdx.assets.loaders.BitmapFontLoader
public class BitmapFontLoader
- extends 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 on the y-axis..
- Author:
- mzechner
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BitmapFontLoader
public BitmapFontLoader(FileHandleResolver resolver)
getDependencies
public Array<AssetDescriptor> getDependencies(java.lang.String fileName,
BitmapFontLoader.BitmapFontParameter parameter)
- Specified by:
getDependencies
in class AssetLoader<BitmapFont,BitmapFontLoader.BitmapFontParameter>
- Parameters:
fileName
- name of the asset to loadparameter
- parameters for loading the asset
- Returns:
- other assets that the asset depends on and need to be loaded first or null if there are no dependencies.
loadAsync
public void loadAsync(AssetManager manager,
java.lang.String fileName,
BitmapFontLoader.BitmapFontParameter parameter)
- Description copied from class:
AsynchronousAssetLoader
- Loads the non-OpenGL part of the asset and injects any dependencies of the asset into the AssetManager.
- Specified by:
loadAsync
in class AsynchronousAssetLoader<BitmapFont,BitmapFontLoader.BitmapFontParameter>
fileName
- the name of the asset to loadparameter
- the parameters to use for loading the asset
loadSync
public BitmapFont loadSync(AssetManager manager,
java.lang.String fileName,
BitmapFontLoader.BitmapFontParameter parameter)
- Description copied from class:
AsynchronousAssetLoader
- Loads th
- Specified by:
loadSync
in class AsynchronousAssetLoader<BitmapFont,BitmapFontLoader.BitmapFontParameter>
Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)