ResourceLoader
ResourceLoader loads external resources referenced by glTF assets.
ResourceLoader handles:
Loading textures from URIs
Uploading vertex/index buffer data
Computing tangent quaternions (via Mikktspace when needed)
Async resource loading for progressive rendering
Typical usage:
val resourceLoader = ResourceLoader(engine)
resourceLoader.loadResources(asset) // Synchronously load all resources
resourceLoader.destroy()Async usage:
resourceLoader.asyncBeginLoad(asset)
while (resourceLoader.asyncGetLoadProgress() < 1.0f) {
resourceLoader.asyncUpdateLoad() // Load in chunks
}See also
ResourceLoader loads external resources referenced by glTF assets.
ResourceLoader handles:
Loading textures from URIs
Uploading vertex/index buffer data
Computing tangent quaternions (via Mikktspace when needed)
Async resource loading for progressive rendering
Typical usage:
val resourceLoader = ResourceLoader(engine)
resourceLoader.loadResources(asset) // Synchronously load all resources
resourceLoader.destroy()Async usage:
resourceLoader.asyncBeginLoad(asset)
while (resourceLoader.asyncGetLoadProgress() < 1.0f) {
resourceLoader.asyncUpdateLoad() // Load in chunks
}See also
ResourceLoader loads external resources referenced by glTF assets.
ResourceLoader handles:
Loading textures from URIs
Uploading vertex/index buffer data
Computing tangent quaternions (via Mikktspace when needed)
Async resource loading for progressive rendering
Typical usage:
val resourceLoader = ResourceLoader(engine)
resourceLoader.loadResources(asset) // Synchronously load all resources
resourceLoader.destroy()Async usage:
resourceLoader.asyncBeginLoad(asset)
while (resourceLoader.asyncGetLoadProgress() < 1.0f) {
resourceLoader.asyncUpdateLoad() // Load in chunks
}See also
ResourceLoader loads external resources referenced by glTF assets.
ResourceLoader handles:
Loading textures from URIs
Uploading vertex/index buffer data
Computing tangent quaternions (via Mikktspace when needed)
Async resource loading for progressive rendering
Typical usage:
val resourceLoader = ResourceLoader(engine)
resourceLoader.loadResources(asset) // Synchronously load all resources
resourceLoader.destroy()Async usage:
resourceLoader.asyncBeginLoad(asset)
while (resourceLoader.asyncGetLoadProgress() < 1.0f) {
resourceLoader.asyncUpdateLoad() // Load in chunks
}See also
ResourceLoader loads external resources referenced by glTF assets.
ResourceLoader handles:
Loading textures from URIs
Uploading vertex/index buffer data
Computing tangent quaternions (via Mikktspace when needed)
Async resource loading for progressive rendering
Typical usage:
val resourceLoader = ResourceLoader(engine)
resourceLoader.loadResources(asset) // Synchronously load all resources
resourceLoader.destroy()Async usage:
resourceLoader.asyncBeginLoad(asset)
while (resourceLoader.asyncGetLoadProgress() < 1.0f) {
resourceLoader.asyncUpdateLoad() // Load in chunks
}