Sha256: 2147d187af74f4327e16f06cd4451aecc549e50d53bdf730ddc73e7edc0cf47d
Contents?: true
Size: 925 Bytes
Versions: 1
Compression:
Stored size: 925 Bytes
Contents
package org.libsdl.app; import android.content.Context; /** SDL library initialization */ public class SDL { // This function should be called first and sets up the native code // so it can call into the Java classes public static void setupJNI() { SDLActivity.nativeSetupJNI(); SDLAudioManager.nativeSetupJNI(); SDLControllerManager.nativeSetupJNI(); } // This function should be called each time the activity is started public static void initialize() { setContext(null); SDLActivity.initialize(); SDLAudioManager.initialize(); SDLControllerManager.initialize(); } // This function stores the current activity (SDL or not) public static void setContext(Context context) { mContext = context; } public static Context getContext() { return mContext; } protected static Context mContext; }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
alphatau-0.1.0 | ext/alphatau/native/sdl/android-project/app/src/main/java/org/libsdl/app/SDL.java |