Search in sources :

Example 1 with RubeSceneAsyncLoader

use of com.gushikustudios.rube.loader.RubeSceneAsyncLoader in project RubeLoader by tescott.

the class RubeLoaderTest method initiateSceneLoad.

/**
    * Kicks off asset manager if selected... 
    * 
    */
private void initiateSceneLoad() {
    if (mUseAssetManager) {
        // kick off asset manager operations...
        mAssetManager = new AssetManager();
        mAssetManager.setLoader(RubeScene.class, new RubeSceneAsyncLoader(new InternalFileHandleResolver()));
        // kick things off..
        mAssetManager.load(RUBE_SCENE_FILE_LIST[mRubeFileList][mRubeFileIndex], RubeScene.class);
    }
    mNextState = GAME_STATE.LOADING;
}
Also used : AssetManager(com.badlogic.gdx.assets.AssetManager) InternalFileHandleResolver(com.badlogic.gdx.assets.loaders.resolvers.InternalFileHandleResolver) RubeSceneAsyncLoader(com.gushikustudios.rube.loader.RubeSceneAsyncLoader)

Aggregations

AssetManager (com.badlogic.gdx.assets.AssetManager)1 InternalFileHandleResolver (com.badlogic.gdx.assets.loaders.resolvers.InternalFileHandleResolver)1 RubeSceneAsyncLoader (com.gushikustudios.rube.loader.RubeSceneAsyncLoader)1