Back to project page opengl.
The source code is released under:
Apache License
If you think the Android project opengl listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package edu.cs4730.opengl2ex2; /*w ww . j a va 2s . co m*/ import android.content.Context; import android.opengl.GLSurfaceView; public class myGlSurfaceView extends GLSurfaceView { LessonOneRenderer myRender; public myGlSurfaceView(Context context) { super(context); // Create an OpenGL ES 2.0 context. setEGLContextClientVersion(2); super.setEGLConfigChooser(8 , 8, 8, 8, 16, 0); // Set the Renderer for drawing on the GLSurfaceView myRender = new LessonOneRenderer(); setRenderer(myRender); // Render the view only when there is a change in the drawing data setRenderMode(GLSurfaceView.RENDERMODE_CONTINUOUSLY); } @Override public void onPause() { // TODO Auto-generated method stub super.onPause(); myRender.onPause(); } @Override public void onResume() { // TODO Auto-generated method stub super.onResume(); myRender.onResume(); } }