Created
November 16, 2013 01:23
-
-
Save MichaelSnowden/7494621 to your computer and use it in GitHub Desktop.
DemoProjectActivity
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package demo.project; | |
import android.app.Activity; | |
import android.opengl.GLSurfaceView; | |
import android.os.Bundle; | |
public class DemoProjectActivity extends Activity | |
{ | |
private GLSurfaceView view; | |
@Override | |
public void onCreate(Bundle savedInstanceState) | |
{ | |
super.onCreate(savedInstanceState); | |
view = new GLSurfaceView(); | |
// Tell EGL to use a ES 2.0 Context | |
view.setupEGLContextClientVersion(2); | |
// Set the renderer | |
view.setRenderer(new DemoProjectRenderer()); | |
setContentView(view); | |
} | |
@Override | |
protected void onPause() | |
{ | |
super.onPause(); | |
view.onPause(); | |
} | |
@Override | |
protected void onResume() | |
{ | |
super.onResume(); | |
view.onResume(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment