public final class GltfModelWriterV2
extends java.lang.Object
GltfModel. This class contains
implementations for the methods of the GltfModelWriter,
for glTF 2.0 assets. Clients should not use this class directly,
but only the GltfModelWriter.| Constructor and Description |
|---|
GltfModelWriterV2()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
write(GltfModel gltfModel,
java.io.File file)
Write the given
GltfModel to the given file. |
void |
writeBinary(GltfModel gltfModel,
java.io.OutputStream outputStream)
Write the given
GltfModel as a binary glTF asset to the
given output stream. |
void |
writeEmbedded(GltfModel gltfModel,
java.io.OutputStream outputStream)
Write the given
GltfModel as an embedded glTF asset to the
given output stream. |
public void write(GltfModel gltfModel, java.io.File file) throws java.io.IOException
GltfModel to the given file. External
references of buffers and images that are given via the respective
URI string will be resolved against the parent directory of the
given file, and the corresponding data will be written into
the corresponding files.gltfModel - The GltfModelfile - The filejava.io.IOException - If an IO error occurspublic void writeBinary(GltfModel gltfModel, java.io.OutputStream outputStream) throws java.io.IOException
GltfModel as a binary glTF asset to the
given output stream. The caller is responsible for closing the
given stream.gltfModel - The GltfModeloutputStream - The output streamjava.io.IOException - If an IO error occurspublic void writeEmbedded(GltfModel gltfModel, java.io.OutputStream outputStream) throws java.io.IOException
GltfModel as an embedded glTF asset to the
given output stream. The caller is responsible for closing the
given stream.gltfModel - The GltfModeloutputStream - The output streamjava.io.IOException - If an IO error occursCopyright © 2022. All Rights Reserved.