Bandidos
Public Member Functions | Protected Member Functions | List of all members
com.mygdx.game.engine.resources.BaseFontResources Class Referenceabstract
Inheritance diagram for com.mygdx.game.engine.resources.BaseFontResources:
com.mygdx.game.engine.resources.BaseResource com.mygdx.game.GameFontResources

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 ()
 

Detailed Description

This class can be inherited to load in fonts from the folders and link them to keys.

Author
Ramses Di Perna

Member Function Documentation

◆ clean()

void com.mygdx.game.engine.resources.BaseFontResources.clean ( )

◆ getFontData()

FontData com.mygdx.game.engine.resources.BaseFontResources.getFontData ( String  fontName)

Returns a FontData by the name it was given in the 'load' method

Parameters
fontNamewhich is linked to the FontData
Returns
FontData linked to the given fontName

◆ loadResource()

void com.mygdx.game.engine.resources.BaseFontResources.loadResource ( String  fontName,
String  fontLocation,
String  fontPngLocation 
)
protected

Loads a resource into memory. This creates a FontData with the given locations.

Parameters
fontNameto link the FontData with
fontLocationis the location of the .fnt file for the font
fontPngLocationis the location of the .png file for the font

The documentation for this class was generated from the following file: