public final class RawGltfData
extends java.lang.Object
RawGltfDataReader.
Clients will usually not use this class directly.| Constructor and Description |
|---|
RawGltfData(java.nio.ByteBuffer jsonData,
java.nio.ByteBuffer binaryData)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.nio.ByteBuffer |
getBinaryData()
Returns the binary data.
|
java.nio.ByteBuffer |
getJsonData()
Returns the JSON data.
|
java.lang.String |
getJsonString()
Returns the JSON string from this data
|
public RawGltfData(java.nio.ByteBuffer jsonData,
java.nio.ByteBuffer binaryData)
jsonData - The JSON databinaryData - The optional binary datapublic java.lang.String getJsonString()
public java.nio.ByteBuffer getJsonData()
public java.nio.ByteBuffer getBinaryData()
null if the asset
was created from a JSON string only.Copyright © 2022. All Rights Reserved.