Class NativeLibraryLoader
java.lang.Object
dev.engine.core.native_.NativeLibraryLoader
General-purpose native library loader.
Resolves native libraries/tools for the current platform by:
- Checking the cache directory (
~/.engine/natives/by default) - Extracting from classpath resources if bundled in the JAR
- Downloading from a URL if configured in the spec
Results are cached per name/version/platform — subsequent calls are instant.
This loader is not Slang-specific. Any native dependency can use it: wgpu-native, SDL3, physics libraries, etc.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NativeLibraryLoaderCreates a loader with the default cache at ~/.engine/natives/ (override via ENGINE_NATIVE_CACHE env var)resolve(NativeLibrarySpec spec) Resolves a native library for the current platform.
-
Constructor Details
-
NativeLibraryLoader
-
-
Method Details
-
defaultLoader
Creates a loader with the default cache at ~/.engine/natives/ (override via ENGINE_NATIVE_CACHE env var) -
resolve
Resolves a native library for the current platform. Checks cache → classpath → download, in that order.
-