FileDocCategorySizeDatePackage
SpriteTextActivity.javaAPI DocAndroid 1.5 API1586Wed May 06 22:41:08 BST 2009com.example.android.apis.graphics.spritetext

SpriteTextActivity

public class SpriteTextActivity extends android.app.Activity

Fields Summary
private android.opengl.GLSurfaceView
mGLSurfaceView
Constructors Summary
Methods Summary
protected voidonCreate(android.os.Bundle savedInstanceState)

        super.onCreate(savedInstanceState);
        mGLSurfaceView = new GLSurfaceView(this);
        mGLSurfaceView.setGLWrapper(new GLSurfaceView.GLWrapper() {
            public GL wrap(GL gl) {
                return new MatrixTrackingGL(gl);
            }});
        mGLSurfaceView.setRenderer(new SpriteTextRenderer(this));
        setContentView(mGLSurfaceView);
    
protected voidonPause()

        super.onPause();
        mGLSurfaceView.onPause();
    
protected voidonResume()

        super.onResume();
        mGLSurfaceView.onResume();