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

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

Detailed Description

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.

Author
Ramses Di Perna

Member Function Documentation

◆ clean()

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

◆ disposeAllTextures()

void com.mygdx.game.engine.resources.BaseTextureResources.disposeAllTextures ( )

Disposes all the textures which have been used from this class.

◆ disposeTexture()

void com.mygdx.game.engine.resources.BaseTextureResources.disposeTexture ( String  key)

Disposes the texture linked with the given key.

Parameters
keylinked to texture to dispose.

◆ getRenderInfo()

RenderInfo com.mygdx.game.engine.resources.BaseTextureResources.getRenderInfo ( String  key)

Gets a texture by its key which is was given in the 'loadTextureResources' method

Parameters
keylinked to texture
Returns
texture linked to the given key

◆ loadResource() [1/2]

RenderInfo com.mygdx.game.engine.resources.BaseTextureResources.loadResource ( String  key,
String  path 
)
protected

Loads a texture at given path into data and links it with the given key

Parameters
keyto link the texture to
pathto where the texture is located

◆ loadResource() [2/2]

RenderInfo com.mygdx.game.engine.resources.BaseTextureResources.loadResource ( String  key,
String  pathSheet,
String  pathXml 
)
protected

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