Package arc.freetype
Class FreeTypeFontGeneratorLoader
java.lang.Object
arc.assets.loaders.AssetLoader<T,P>
arc.assets.loaders.SynchronousAssetLoader<FreeTypeFontGenerator,FreeTypeFontGeneratorLoader.FreeTypeFontGeneratorParameters>
arc.freetype.FreeTypeFontGeneratorLoader
public class FreeTypeFontGeneratorLoader
extends SynchronousAssetLoader<FreeTypeFontGenerator,FreeTypeFontGeneratorLoader.FreeTypeFontGeneratorParameters>
Makes
FreeTypeFontGenerator
managable via AssetManager
.
Do
assetManager.setLoader(FreeTypeFontGenerator.class, new FreeTypeFontGeneratorLoader(new InternalFileHandleResolver()))
to register it.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetDependencies
(String fileName, Fi file, FreeTypeFontGeneratorLoader.FreeTypeFontGeneratorParameters parameter) Returns the assets this asset requires to be loaded first.load
(AssetManager assetManager, String fileName, Fi file, FreeTypeFontGeneratorLoader.FreeTypeFontGeneratorParameters parameter) Methods inherited from class arc.assets.loaders.AssetLoader
resolve
-
Constructor Details
-
FreeTypeFontGeneratorLoader
-
-
Method Details
-
load
public FreeTypeFontGenerator load(AssetManager assetManager, String fileName, Fi file, FreeTypeFontGeneratorLoader.FreeTypeFontGeneratorParameters parameter) - Specified by:
load
in classSynchronousAssetLoader<FreeTypeFontGenerator,
FreeTypeFontGeneratorLoader.FreeTypeFontGeneratorParameters>
-
getDependencies
public Seq<AssetDescriptor> getDependencies(String fileName, Fi file, FreeTypeFontGeneratorLoader.FreeTypeFontGeneratorParameters parameter) Description copied from class:AssetLoader
Returns the assets this asset requires to be loaded first. This method may be called on a thread other than the GL thread.- Specified by:
getDependencies
in classAssetLoader<FreeTypeFontGenerator,
FreeTypeFontGeneratorLoader.FreeTypeFontGeneratorParameters> - Parameters:
fileName
- name of the asset to loadfile
- the resolved file 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.
-