com.badlogic.gdx.utils
Class SharedLibraryLoader
java.lang.Object
com.badlogic.gdx.utils.SharedLibraryLoader
public class SharedLibraryLoader
- extends java.lang.Object
Loads shared libraries from a natives jar file (desktop) or arm folders (Android). For desktop projects,
have the natives jar in the classpath, for Android projects put the shared libraries in the libs/armeabi
and libs/armeabi-v7a folders.
- Author:
- mzechner
Method Summary |
void |
load(java.lang.String sharedLibName)
Loads a shared library with the given name for the platform the application
is running on. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SharedLibraryLoader
public SharedLibraryLoader()
SharedLibraryLoader
public SharedLibraryLoader(java.lang.String nativesJar)
- Fetches the natives from the given natives jar file. Used
for testing a shared lib on the fly.
- Parameters:
nativesJar
-
load
public void load(java.lang.String sharedLibName)
- Loads a shared library with the given name for the platform the application
is running on. The name should not contain a prefix (e.g. 'lib') or suffix (e.g. '.dll).
- Parameters:
sharedLibName
-
Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)