Back to project page androidOpenGLShapes.
The source code is released under:
MIT License
If you think the Android project androidOpenGLShapes 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 com.example.opengl; import android.content.Context; import android.opengl.GLSurfaceView; /* w w w . ja v a2 s . c o m*/ public class MyGLSurfaceView extends GLSurfaceView { private final MyGLRenderer mRenderer = new MyGLRenderer(); public MyGLSurfaceView(Context context){ super(context); setEGLContextClientVersion(2); //setRenderMode(GLSurfaceView.RENDERMODE_WHEN_DIRTY); // Set the Renderer for drawing on the GLSurfaceView setRenderer(mRenderer); } }