quakequest/java/com/drbeef/quakequest/GLES3JNILib.java
2019-05-30 23:26:01 +01:00

27 lines
868 B
Java

package com.drbeef.quakequest;
import android.app.Activity;
import android.view.Surface;
// Wrapper for native library
public class GLES3JNILib
{
// Activity lifecycle
public static native long onCreate( Activity obj, String commandLineParams );
public static native void onStart( long handle );
public static native void onResume( long handle );
public static native void onPause( long handle );
public static native void onStop( long handle );
public static native void onDestroy( long handle );
// Surface lifecycle
public static native void onSurfaceCreated( long handle, Surface s );
public static native void onSurfaceChanged( long handle, Surface s );
public static native void onSurfaceDestroyed( long handle );
//Audio
public static native void requestAudioData();
public static native void setCallbackObjects(Object obj1, Object obj2);
}