mirror of
https://github.com/DrBeef/QuakeQuest.git
synced 2024-11-25 05:21:48 +00:00
27 lines
868 B
Java
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);
|
|
}
|