APIdia Launch Partner
Top Description Inners Constructors Methods
com.badlogic.gdx.graphics.g2d.freetype

public Class FreeTypeFontGeneratorLoader

extends SynchronousAssetLoader<FreeTypeFontGenerator, FreeTypeFontGeneratorLoader.FreeTypeFontGeneratorParameters>
Class Inheritance
Imports
com.badlogic.gdx.assets.AssetDescriptor, .AssetLoaderParameters, .AssetManager, com.badlogic.gdx.assets.loaders.FileHandleResolver, .SynchronousAssetLoader, com.badlogic.gdx.files.FileHandle, com.badlogic.gdx.utils.Array

Makes FreeTypeFontGenerator managable via AssetManager.

Do assetManager.setLoader(FreeTypeFontGenerator.class, new FreeTypeFontGeneratorLoader(new InternalFileHandleResolver())) to register it.

Author
Daniel Holderbaum

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Array<AssetDescriptor<T>>
getDependencies(String fileName, FileHandle file, FreeTypeFontGeneratorLoader.FreeTypeFontGeneratorParameters parameter)

Implements abstract com.badlogic.gdx.assets.loaders.AssetLoader.getDependencies.

Returns the assets this asset requires to be loaded first.

public FreeTypeFontGenerator

Constructor Detail

FreeTypeFontGeneratorLoaderback to summary
public FreeTypeFontGeneratorLoader(FileHandleResolver resolver)

Method Detail

getDependenciesback to summary
public Array<AssetDescriptor<T>> getDependencies(String fileName, FileHandle file, FreeTypeFontGeneratorLoader.FreeTypeFontGeneratorParameters parameter)

Implements abstract com.badlogic.gdx.assets.loaders.AssetLoader.getDependencies.

Doc from com.badlogic.gdx.assets.loaders.AssetLoader.getDependencies.

Returns the assets this asset requires to be loaded first. This method may be called on a thread other than the GL thread.

Annotations
@Override
loadback to summary
public FreeTypeFontGenerator load(AssetManager assetManager, String fileName, FileHandle file, FreeTypeFontGeneratorLoader.FreeTypeFontGeneratorParameters parameter)

Implements abstract com.badlogic.gdx.assets.loaders.SynchronousAssetLoader.load.

Annotations
@Override
com.badlogic.gdx.graphics.g2d.freetype back to summary

public Class FreeTypeFontGeneratorLoader.FreeTypeFontGeneratorParameters

extends AssetLoaderParameters<FreeTypeFontGenerator>
Class Inheritance

Field Summary

Inherited from com.badlogic.gdx.assets.AssetLoaderParameters:
loadedCallback

Constructor Summary

AccessConstructor and Description
public

Constructor Detail

FreeTypeFontGeneratorParametersback to summary
public FreeTypeFontGeneratorParameters()