| Constructor and Description |
|---|
GltfAssetV1(GlTF gltf,
java.nio.ByteBuffer binaryData)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
java.nio.ByteBuffer |
getBinaryData()
Returns the binary data of this asset, or
null if this
asset does not have associated binary data. |
java.util.List<GltfReference> |
getBufferReferences()
Create a list containing all
GltfReference objects for the
buffers that are contained in this model. |
GlTF |
getGltf()
Returns the version-specific glTF object.
|
java.util.List<GltfReference> |
getImageReferences()
Create a list containing all
GltfReference objects for the
images that are contained in this model. |
java.nio.ByteBuffer |
getReferenceData(java.lang.String uriString)
Returns the byte buffer containing the data of the external resource
with the given (relative!)
|
java.util.Map<java.lang.String,java.nio.ByteBuffer> |
getReferenceDatas()
Returns an unmodifiable view on the mapping from relative URI strings
to the byte buffers containing the data of the external resources.
|
java.util.List<GltfReference> |
getReferences()
Return a list of all
GltfReference objects that refer to
external resources for this asset |
java.util.List<GltfReference> |
getShaderReferences()
Create a list containing all
GltfReference objects for the
shaders that are contained in this model. |
public GlTF getGltf()
GltfAssetversion 1.0 glTF or
or a version 2.0 glTFpublic java.nio.ByteBuffer getBinaryData()
GltfAssetnull if this
asset does not have associated binary data.getBinaryData in interface GltfAssetpublic java.util.List<GltfReference> getReferences()
GltfAssetGltfReference objects that refer to
external resources for this assetgetReferences in interface GltfAssetGltfReference objectspublic java.util.List<GltfReference> getBufferReferences()
GltfReference objects for the
buffers that are contained in this model.public java.util.List<GltfReference> getImageReferences()
GltfReference objects for the
images that are contained in this model.public java.util.List<GltfReference> getShaderReferences()
GltfReference objects for the
shaders that are contained in this model.public java.nio.ByteBuffer getReferenceData(java.lang.String uriString)
GltfAssetnull if there is
no such data.getReferenceData in interface GltfAsseturiString - The URI stringpublic java.util.Map<java.lang.String,java.nio.ByteBuffer> getReferenceDatas()
GltfAssetgetReferenceDatas in interface GltfAssetCopyright © 2022. All Rights Reserved.