Back to project page DivisionByZero.
The source code is released under:
Apache License
If you think the Android project DivisionByZero 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.ggstudios.divisionbyzero; //from w ww . jav a 2s. c o m import android.content.Context; import android.opengl.GLSurfaceView; import android.util.AttributeSet; public class CustomGLSurfaceView extends GLSurfaceView { private GameRenderer gameRenderer; public CustomGLSurfaceView(Context context, AttributeSet attrs){ super(context, attrs); // Create an OpenGL ES 2.0 context setEGLContextClientVersion(2); gameRenderer = new GameRenderer(context); Core.gr = gameRenderer; // Set the Renderer for drawing on the GLSurfaceView setRenderer(gameRenderer); } public CustomGLSurfaceView(Context context) { this(context, null); } }