public class GltfModelKey extends ModelKey
Constructor and Description |
---|
GltfModelKey() |
GltfModelKey(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
MaterialAdapter |
getAdapterForMaterial(java.lang.String gltfMaterialName) |
ExtensionLoader |
getExtensionLoader(java.lang.String extensionName) |
ExtrasLoader |
getExtrasLoader() |
boolean |
isKeepSkeletonPose() |
void |
registerExtensionLoader(java.lang.String extensionName,
ExtensionLoader loader)
Registers an extension loader for the given extension name.
|
void |
registerMaterialAdapter(java.lang.String gltfMaterialName,
MaterialAdapter adapter)
Registers a MaterialAdapter for the given materialName.
|
void |
setExtrasLoader(ExtrasLoader extrasLoader)
Sets the ExtrasLoader for reading any extra information from the gltf file.
|
void |
setKeepSkeletonPose(boolean keepSkeletonPose) |
getCacheType, getProcessorType
clone, equals, getExtension, getExtension, getFolder, getFolder, getName, hashCode, read, reducePath, toString, write
public GltfModelKey(java.lang.String name)
public GltfModelKey()
public void registerMaterialAdapter(java.lang.String gltfMaterialName, MaterialAdapter adapter)
gltfMaterialName
- the name of the gltf materialadapter
- the material adapterpublic void registerExtensionLoader(java.lang.String extensionName, ExtensionLoader loader)
extensionName
- the name of the extensionloader
- the Extension loaderpublic MaterialAdapter getAdapterForMaterial(java.lang.String gltfMaterialName)
public ExtensionLoader getExtensionLoader(java.lang.String extensionName)
public boolean isKeepSkeletonPose()
public void setKeepSkeletonPose(boolean keepSkeletonPose)
public ExtrasLoader getExtrasLoader()
public void setExtrasLoader(ExtrasLoader extrasLoader)
extrasLoader
- the desired loader