Game Development Reference
In-Depth Information
ANDROID_SRC : Defines the Android-related files, including
jni_quake.c : Contains the JNI implementations for all the native
methods defined in Natives.java and NativeAudio.java .
snd_android.c : Implements the audio driver for Android. It works in
conjunction with NativeAudio.java and jni_quake.c .
gl_vidandroid.c : Implements the video handler for Android.
sys_android.c : Implements changes to the main Quake loop to
work along with the Android OpenGL renderer API.
LOCAL_SRC_FILES : Defines the sources for the engine, including the
sources defined in this list.
The following steps show how to compile Quake using Cygwin on a Windows system:
Copy the chapter source ch06.Quake into your local machine.
1.
2.
Open a Cygwin console and change to the project folder.
$ cd /cygdive/c/temp/ch06.Quake
3.
Compile the native library (see Figure 6-2 ).
$ ndk-build
 
Search WWH ::




Custom Search