public final class GltfModelWriterV1
extends java.lang.Object
GltfModelV1. This class contains
implementations for the methods of the GltfModelWriter,
for glTF 1.0 assets. Clients should not use this class directly,
but only the GltfModelWriter.| Constructor and Description |
|---|
GltfModelWriterV1()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
write(GltfModelV1 gltfModel,
java.io.File file)
Write the given
GltfModelV1 to the given file. |
void |
writeBinary(GltfModelV1 gltfModel,
java.io.File file)
Write the given
GltfModelV1 as a binary glTF asset to the
given file |
void |
writeBinary(GltfModelV1 gltfModel,
java.io.OutputStream outputStream)
Write the given
GltfModelV1 as a binary glTF asset to the
given output stream. |
void |
writeEmbedded(GltfModelV1 gltfModel,
java.io.OutputStream outputStream)
Write the given
GltfModelV1 as an embedded glTF asset to the
given output stream. |
public void write(GltfModelV1 gltfModel, java.io.File file) throws java.io.IOException
GltfModelV1 to the given file. External
references of buffers, images and shaders 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 GltfModelV1file - The filejava.io.IOException - If an IO error occurspublic void writeBinary(GltfModelV1 gltfModel, java.io.File file) throws java.io.IOException
GltfModelV1 as a binary glTF asset to the
given filegltfModel - The GltfModelV1file - The filejava.io.IOException - If an IO error occurspublic void writeBinary(GltfModelV1 gltfModel, java.io.OutputStream outputStream) throws java.io.IOException
GltfModelV1 as a binary glTF asset to the
given output stream. The caller is responsible for closing the
given stream.gltfModel - The GltfModelV1outputStream - The output streamjava.io.IOException - If an IO error occurspublic void writeEmbedded(GltfModelV1 gltfModel, java.io.OutputStream outputStream) throws java.io.IOException
GltfModelV1 as an embedded glTF asset to the
given output stream. The caller is responsible for closing the
given stream.gltfModel - The GltfModelV1outputStream - The output streamjava.io.IOException - If an IO error occursCopyright © 2022. All Rights Reserved.