diff options
Diffstat (limited to 'core/src/ch')
-rw-r--r-- | core/src/ch/asynk/gdx/boardgame/Assets.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/src/ch/asynk/gdx/boardgame/Assets.java b/core/src/ch/asynk/gdx/boardgame/Assets.java index d065d76..690c547 100644 --- a/core/src/ch/asynk/gdx/boardgame/Assets.java +++ b/core/src/ch/asynk/gdx/boardgame/Assets.java @@ -6,6 +6,7 @@ import com.badlogic.gdx.graphics.Texture; import com.badlogic.gdx.graphics.g2d.BitmapFont; import com.badlogic.gdx.graphics.g2d.NinePatch; import com.badlogic.gdx.graphics.g2d.TextureAtlas; +import com.badlogic.gdx.graphics.g2d.TextureRegion; public class Assets extends AssetManager { @@ -14,6 +15,11 @@ public class Assets extends AssetManager return get(assetName, Texture.class); } + public TextureRegion getTextureRegion(String assetName) + { + return new TextureRegion(get(assetName, Texture.class)); + } + public NinePatch getNinePatch(String assetName, int left, int right, int top, int bottom) { return new NinePatch(get(assetName, Texture.class), left, right, top, bottom); |