Package com.nevergarden.myna.util
Class AssetManager
- java.lang.Object
-
- com.nevergarden.myna.util.AssetManager
-
public class AssetManager extends java.lang.Object
AssetManager
-
-
Constructor Summary
Constructors Constructor Description AssetManager(Myna myna)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Texture
loadTexture(int id)
Loads up a texture.AsyncTexture
loadTextureAsync(int id)
Loads an async texture.TPAtlas
loadTexturePackerJsonAtlas(int textureId, int spriteSheetId)
Loads a new texture packer atlas.AsyncTPAtlas
loadTexturePackerJsonAtlasAsync(int id, int atlasID)
Loads up a new async texture packer atlas.
-
-
-
Constructor Detail
-
AssetManager
public AssetManager(Myna myna)
-
-
Method Detail
-
loadTexturePackerJsonAtlas
public TPAtlas loadTexturePackerJsonAtlas(int textureId, int spriteSheetId)
Loads a new texture packer atlas.
-
loadTexturePackerJsonAtlasAsync
public AsyncTPAtlas loadTexturePackerJsonAtlasAsync(int id, int atlasID)
Loads up a new async texture packer atlas.
-
loadTexture
public Texture loadTexture(int id)
Loads up a texture.
-
loadTextureAsync
public AsyncTexture loadTextureAsync(int id)
Loads an async texture.
-
-