FileDocCategorySizeDatePackage
TriangleActivity.javaAPI DocAndroid 1.5 API1355Wed May 06 22:41:08 BST 2009com.example.android.apis.graphics

TriangleActivity

public class TriangleActivity extends android.app.Activity

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

        super.onCreate(savedInstanceState);
        mGLView = new GLSurfaceView(this);
        mGLView.setEGLConfigChooser(false);
        mGLView.setRenderer(new TriangleRenderer(this));
        setContentView(mGLView);
    
protected voidonPause()

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

        super.onResume();
        mGLView.onResume();