Bandidos
|
Public Member Functions | |
FontData | getFontData (String fontName) |
void | clean () |
Public Member Functions inherited from com.mygdx.game.engine.resources.BaseResource | |
void | loadRequest (AssetManager assetManager) |
abstract void | clean () |
Protected Member Functions | |
void | loadResource (String fontName, String fontLocation, String fontPngLocation) |
Protected Member Functions inherited from com.mygdx.game.engine.resources.BaseResource | |
abstract void | load () |
AssetManager | getAssetManager () |
This class can be inherited to load in fonts from the folders and link them to keys.
void com.mygdx.game.engine.resources.BaseFontResources.clean | ( | ) |
FontData com.mygdx.game.engine.resources.BaseFontResources.getFontData | ( | String | fontName | ) |
Returns a FontData by the name it was given in the 'load' method
fontName | which is linked to the FontData |
|
protected |
Loads a resource into memory. This creates a FontData with the given locations.
fontName | to link the FontData with |
fontLocation | is the location of the .fnt file for the font |
fontPngLocation | is the location of the .png file for the font |