Don’t Start from Scratch
Let’s get started by reusing our project from Chapter 1, Getting Started.
-
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.
-
When prompted, enter ‘AirHockey1’ as the project name. The location is up to you.
-
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.
-
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 ...
Get OpenGL ES 2 for Android now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.