Game Development Reference
In-Depth Information
Figure 7-1.
Compiling Quake II with the NDK
The native library
libquake2.so
will be created under the Java project
ch07.QuakeII/libs/
armeabi/libquake2.so
. Thus when the Java app starts, the
QuakeView
class will invoke:
System.load("quake2")
which loads the native library and provides access to the JNI methods and the C to Java
callbacks used by the Java code. Now let's play some Quake II.