FileDocCategorySizeDatePackage
TestAppLoadingScreen.javaAPI DocAndroid 5.1 API4520Thu Mar 12 22:22:44 GMT 2015com.android.testapp

TestAppLoadingScreen

public class TestAppLoadingScreen extends Object

Fields Summary
private static String
TAG
private android.content.res.Resources
mRes
private RenderScriptGL
mRS
private ScriptC_test_app
mScript
Constructors Summary
public TestAppLoadingScreen(RenderScriptGL rs, android.content.res.Resources res)


         
        mRS = rs;
        mRes = res;
        // Shows the loading screen with some text
        renderLoading();
        // Adds a little 3D bugdroid model to the laoding screen asynchronously.
        new LoadingScreenLoaderTask().execute();
    
Methods Summary
voidrenderLoading()

        mScript = new ScriptC_test_app(mRS, mRes, R.raw.test_app);
        mRS.bindRootScript(mScript);
    
public voidshowLoadingScreen(boolean show)

        if (show) {
            mRS.bindRootScript(mScript);
        } else {
            mRS.bindRootScript(SceneManager.getInstance().getRenderLoop());
        }