Bandidos
|
Public Member Functions | |
RenderInfo | getRenderInfo (String key) |
void | disposeAllTextures () |
void | disposeTexture (String key) |
void | clean () |
Public Member Functions inherited from com.mygdx.game.engine.resources.BaseResource | |
void | loadRequest (AssetManager assetManager) |
abstract void | clean () |
Protected Member Functions | |
RenderInfo | loadResource (String key, String path) |
RenderInfo | loadResource (String key, String pathSheet, String pathXml) |
Protected Member Functions inherited from com.mygdx.game.engine.resources.BaseResource | |
abstract void | load () |
AssetManager | getAssetManager () |
This class can be inherited to load in textures from the folders and link them to keys. These textures can also be disposed with this class.
void com.mygdx.game.engine.resources.BaseTextureResources.clean | ( | ) |
void com.mygdx.game.engine.resources.BaseTextureResources.disposeAllTextures | ( | ) |
Disposes all the textures which have been used from this class.
void com.mygdx.game.engine.resources.BaseTextureResources.disposeTexture | ( | String | key | ) |
Disposes the texture linked with the given key.
key | linked to texture to dispose. |
RenderInfo com.mygdx.game.engine.resources.BaseTextureResources.getRenderInfo | ( | String | key | ) |
Gets a texture by its key which is was given in the 'loadTextureResources' method
key | linked to texture |
|
protected |
Loads a texture at given path into data and links it with the given key
key | to link the texture to |
path | to where the texture is located |
|
protected |