All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.bigcustard.glide.screen.ResourceManager Maven / Gradle / Ivy

There is a newer version: 1.4.0
Show newest version
package com.bigcustard.glide.screen;

import com.badlogic.gdx.assets.AssetManager;
import com.badlogic.gdx.graphics.g2d.TextureAtlas;
import com.badlogic.gdx.scenes.scene2d.ui.Skin;

public class ResourceManager {
	private static final String SKIN_NAME = "theme/uiskin.json";
	private static final String ATLAS_NAME = "theme/uiskin.atlas";
	private AssetManager assetManager;

	public ResourceManager() {
		assetManager = new AssetManager();
		assetManager.load(SKIN_NAME, Skin.class);
		assetManager.load(ATLAS_NAME, TextureAtlas.class);
		assetManager.finishLoading();
	}
	
	public Skin getSkin() {
		return assetManager.get(SKIN_NAME);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy