ModelLoader
classin packageklyn.graphics3d.assets
public class ModelLoader
ModelLoader

GUI/GPU-independent model loader returning a ModelAsset for every format. Supported static subsets are documented by each codec; unsupported semantic features fail explicitly, never silently disappearing. Resources are resolved relative to the source file. Async loading runs on one CPU worker and exposes coalesced progress/cancellation, without invoking GUI callbacks. Example: asset = ModelLoader().load(FilePath("robot.glb"))

Methods
Modifier and Type Member Description
public load
load(path as FilePath, format as ModelFormat = null) as ModelAsset
Loads a CPU asset; extension detection or explicit format.
public loadAsync
loadAsync(path as FilePath, format as ModelFormat = null) as ModelLoadOperation
Starts a CPU-only load; awaitResult returns the same ModelAsset contract.
public static loadWithContext
loadWithContext(path as FilePath, context as LoadContext, format as ModelFormat = null) as ModelAsset
Internal codec dispatcher with cooperative progress/cancellation.