加载类代码:
package com.hl.atemplate;
public class GL2JNILib {
static{
try {
// System.loadLibrary("openal");
} catch (Exception e) {
// TODO: handle exception
e.printStackTrace();
}
System.loadLibrary("ATemplate");
}
public static native void Init(int width,int height,String apkFilePath);
public static native void Draw();
public static native void ToucheBegan(float x,float y,int tap_count);
public static native void ToucheMoved(float x,float y,int tap_count);
public static native void ToucheEnded(float x,float y,int tap_count);
public static native void Accelerometer(float x,float y,float z);
}