com.jogamp.common.jvm
Class JNILibLoaderBase
java.lang.Object
com.jogamp.common.jvm.JNILibLoaderBase
public class JNILibLoaderBase
- extends Object
Field Summary |
static boolean |
DEBUG
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEBUG
public static final boolean DEBUG
JNILibLoaderBase
public JNILibLoaderBase()
isLoaded
public static boolean isLoaded(String libName)
addLoaded
public static void addLoaded(String libName)
disableLoading
public static void disableLoading()
enableLoading
public static void enableLoading()
setLoadingAction
public static void setLoadingAction(JNILibLoaderBase.LoaderAction action)
addNativeJarLibs
public static final boolean addNativeJarLibs(Class<?> classFromJavaJar,
String nativeJarBaseName)
- Parameters:
classFromJavaJar
- GLProfilenativeJarBaseName
- jogl-all
- Returns:
- true if the native JAR file loaded successful or were loaded already, false in case of an error
addNativeJarLibs
public static boolean addNativeJarLibs(Class<?> classFromJavaJar,
String allNativeJarBaseName,
String[] atomicNativeJarBaseNames)
- Parameters:
classFromJavaJar
- A class file to determine the base URL of the native JAR files, eg.: GLProfile.classallNativeJarBaseName
- Attempt to use the 'all' native JAR variant first, if exists. Eg. "jogl-all"atomicNativeJarBaseNames
- Fallback to use all the atomic native JAR files, eg. [ "nativewindow", "jogl", "newt" ]
- Returns:
- true if either the 'all' native JAR or all of the atomic native JARs loaded successful or were loaded already,
false in case of an error
loadLibrary
protected static boolean loadLibrary(String libname,
boolean ignoreError)
loadLibrary
protected static void loadLibrary(String libname,
String[] preload,
boolean preloadIgnoreError)