This class uses the same mechanism as Library for loading shared libraries. The resource name could be an absolute path, or a relative path that
is resolved via org.lwjgl.librarypath, java.library.path, or even the class/module-path. When the resource is detected in the
class/module-path, it is extracted automatically to org.lwjgl.librarypath via the SharedLibraryLoader.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Path | load(String module, String name)
Calls |
| public static Path | |
| public static Path | Returns: the library resource paththe class to use to discover the library resource in the classpath context, String the module to which the resource belongs module, String the resource name name, boolean whether the default LWJGL distribution includes the resource. If true, LWJGL will also try to find the shared library under the
bundledWithLWJGL)<platform>/<arch>/<module> subfolder.Loads a library resource. |
| private static Path | |
| private static Path | |
| public static Path | Returns: the library resource patha name, String... Configuration that specifies the resource namethe default resource name(s) defaultNames)Loads a library resource using |
| public static Path | Returns: the library resource patha name, Supplier<Path> Configuration that specifies the resource namefallback to use if everything else fails fallback, String... the default resource name(s) defaultNames)Loads a library resource using |
| private static Path | |
| private static void |
| LibraryResource | back to summary |
|---|---|
| private LibraryResource() | |
| load | back to summary |
|---|---|
| public static Path load(String module, String name) Calls | |
| load | back to summary |
|---|---|
| public static Path load(Class<?> context, String module, String name) Loads a library resource.
| |
| load | back to summary |
|---|---|
| public static Path load(Class<?> context, String module, String name, boolean bundledWithLWJGL) Loads a library resource.
| |
| load | back to summary |
|---|---|
private static Path load(Class<?> context, String module, String name, boolean bundledWithLWJGL, boolean printError)
| |
| load | back to summary |
|---|---|
private static Path load(String module, String name, boolean bundledWithLWJGL, String property, String paths)
| |
| load | back to summary |
|---|---|
| public static Path load(Class<?> context, String module, Configuration<String> name, String... defaultNames) Loads a library resource using
| |
| load | back to summary |
|---|---|
| public static Path load(Class<?> context, String module, Configuration<String> name, Supplier<Path> fallback, String... defaultNames) Loads a library resource using
| |
| loadFromLibraryPath | back to summary |
|---|---|
private static Path loadFromLibraryPath(String module, String libName, boolean bundledWithLWJGL)
| |
| printError | back to summary |
|---|---|
| private static void printError() | |