Abstract I/O service.
The most common use of the I/O service is to read/write a Document with a given path. Methods are also available for converting in-memory representations of raw glTF files, both binary (ArrayBuffer) and JSON (JSONDocument).
Converts a GLB-formatted ArrayBuffer to a JSONDocument.
Converts a GLB-formatted ArrayBuffer to a Document.
Converts glTF-formatted JSON and a resource map to a Document.
Registers dependencies used (e.g. by extensions) in the I/O process.
Registers extensions, enabling I/O class to read and write glTF assets requiring them.
Sets the Logger used by this I/O instance. Defaults to Logger.DEFAULT_INSTANCE.
Sets the vertex layout method used by this I/O instance. Defaults to VertexLayout.INTERLEAVED.
Converts a Document to a GLB-formatted ArrayBuffer.
Converts a Document to glTF-formatted JSON and a resource map.