O'Reilly logo

OpenGL ES 2 for Android by Kevin Brothaler

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Don’t Start from Scratch

Let’s get started by reusing our project from Chapter 1, Getting Started.

  1. In Eclipse, select FirstOpenGLProject and make sure that the project is open, and then press Ctrl-C. Now press Ctrl-V to duplicate the project.

  2. When prompted, enter ‘AirHockey1’ as the project name. The location is up to you.

  3. Open the new project, and expand the src folder until you find the class files FirstOpenGLProjectActivity.java and FirstOpenGLProjectRenderer.java, which we created in Chapter 1, Getting Started.

  4. We’re going to rename our classes. First select FirstOpenGLProjectActivity.java and open up the rename dialog by pressing Alt-Shift-R. Enter ‘AirHockeyActivity’ (without the .java suffix) as the new name. Eclipse will append the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required