Bandidos
Public Member Functions | List of all members
com.mygdx.game.engine.entities.FontData Class Reference

Public Member Functions

 FontData (String fontLocation, String fontPngLocation)
 
BitmapFont getFont ()
 
void clean ()
 

Detailed Description

This class holds the data needed to display a text in the a certain font.

Author
Ramses Di Perna

Constructor & Destructor Documentation

◆ FontData()

com.mygdx.game.engine.entities.FontData.FontData ( String  fontLocation,
String  fontPngLocation 
)

Loads the font data from the given locations and creates a BitmapFont for it.

Parameters
fontLocationis the location of the .fnt file for the font
fontPngLocationis the location of the .png file for the font

Member Function Documentation

◆ clean()

void com.mygdx.game.engine.entities.FontData.clean ( )

Cleans the class and makes it ready for garbage collection

◆ getFont()

BitmapFont com.mygdx.game.engine.entities.FontData.getFont ( )

Returns the BitmapFont which was made for the given font.

Returns
BitmapFont which was loaded from the given data.

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