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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access