A
B
C
D
E
F
G
H
I
L
M
N
P
R
U
A
- addResourceData(String,Buffer) - function in com.google.android.filament.gltfio.ResourceLoader
- Feeds the binary content of an external resource into the loader's URI cache.On some platforms, `ResourceLoader` does not know how to download external resources on itsown (external resources might come from a filesystem, a database, or the internet) so thismethod allows clients to download external resources and push them to the loader.Every resource should be passed in before calling [loadResources] or [asyncBeginLoad].
- Animator - class in com.google.android.filament.gltfio
- Updates matrices according to glTF
animationandskindefinitions. - applyAnimation(int,float) - function in com.google.android.filament.gltfio.Animator
- Applies rotation, translation, and scale to entities that have been targeted by the givenanimation definition.
- applyCrossFade(int,float,float) - function in com.google.android.filament.gltfio.Animator
- Applies a blended transform to the union of nodes affected by two animations.Used for cross-fading from a previous skinning-based animation or rigid body animation.First, this stashes the current transform hierarchy into a transient memory buffer.Next, this applies previousAnimIndex / previousAnimTime to the actual asset by internallycalling applyAnimation().Finally, the stashed local transforms are lerped (via the scale / translation / rotationcomponents) with their live counterparts, and the results are pushed to the asset.To achieve a cross fade effect with skinned models, clients will typically call animatormethods in this order: (1) applyAnimation (2) applyCrossFade (3) updateBoneMatrices.
- applyMaterialVariant(int) - function in com.google.android.filament.gltfio.FilamentInstance
- Applies the given material variant to all primitives in this instance.Ignored if variantIndex is out of bounds.
- AssetLoader - class in com.google.android.filament.gltfio
- Consumes a blob of glTF 2.
- asyncBeginLoad(FilamentAsset) - function in com.google.android.filament.gltfio.ResourceLoader
- Starts an asynchronous resource load.Returns false if the loading process was unable to start.This is an alternative to #loadResources and requires periodic calls to #asyncUpdateLoad.On multi-threaded systems this creates threads for texture decoding.
- asyncCancelLoad() - function in com.google.android.filament.gltfio.ResourceLoader
- Cancels pending decoder jobs and frees all CPU-side texel data.Calling this is only necessary if the asyncBeginLoad API was usedand cancellation is required before progress reaches 100%.
- asyncGetLoadProgress() - function in com.google.android.filament.gltfio.ResourceLoader
- Gets the status of an asynchronous resource load as a percentage in [0,1].
- asyncUpdateLoad() - function in com.google.android.filament.gltfio.ResourceLoader
- Updates an asynchronous load by performing any pending work that must take placeon the main thread.Clients must periodically call this until #asyncGetLoadProgress returns 100%.After progress reaches 100%, calling this is harmless; it just does nothing.
- attachSkin(int,int) - function in com.google.android.filament.gltfio.FilamentInstance
- Attaches the given skin to the given node, which must have an associated mesh withBONE_INDICES and BONE_WEIGHTS attributes.This is a no-op if the given skin index or target is invalid.