Game Development Reference
In-Depth Information
Creating an OpenGL and JNI Project
For this exploration, you'll create a project to hold the GL tumbling cubes application from
the Android samples. Follow these steps:
1.
Click the New Android Application Project button.
In the New Android Project dialog box, enter a project name, such as
ch03.OpenGL
as project name,
Ch03.OpenGL
as application name, and
opengl.test
as package name. Click Next.
Enter an application name, such as
Ch03.OpenGL
.
2.
Enter a package name, such as
opengl.test
.
3.
Select Create Activity and enter
JavaGLActivity
.
4.
5.
Specify the minimum SDK version. I have chosen version API 21
for Android 5. Please note that all versions of Android are binary
compatible; therefore, this project should run fine in the version that
best suits your needs. Figures
3-3
,
3-4
, and
3-5
show all the wizard
dialogs for this example.
6.
Click Finish.
Figure 3-3.
New Android project for the OpenGL sample