FileDocCategorySizeDatePackage
GLDualActivity.javaAPI DocAndroid 5.1 API1638Thu Mar 12 22:22:48 GMT 2015com.android.gldual

GLDualActivity

public class GLDualActivity extends android.app.Activity

Fields Summary
android.opengl.GLSurfaceView
mGLView
GLDualGL2View
mGL2View
Constructors Summary
Methods Summary
protected voidonCreate(android.os.Bundle icicle)

        super.onCreate(icicle);
        View root = getLayoutInflater().inflate(R.layout.gldual_activity, null);
        mGLView = (GLSurfaceView) root.findViewById(R.id.gl1);
        mGLView.setEGLConfigChooser(5,6,5,0,0,0);
        mGLView.setRenderer(new TriangleRenderer());
        mGL2View = (GLDualGL2View) root.findViewById(R.id.gl2);
        setContentView(root);
    
protected voidonPause()

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

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