Package com.gaia3d.converter.jgltf
Class GltfBinary
java.lang.Object
com.gaia3d.converter.jgltf.GltfBinary
GltfBinary is a class that contains the binary data of the glTF file.
It contains the binary data of the glTF file, and the information of the buffer of each node.
The binary data of the glTF file is stored in the body variable.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintintintvoidfill()Fills the body variable with the binary data of the glTF file.
-
Constructor Details
-
GltfBinary
public GltfBinary()
-
-
Method Details
-
calcTotalByteBufferLength
public int calcTotalByteBufferLength() -
calcTotalImageByteBufferLength
public int calcTotalImageByteBufferLength() -
calcTotalPropertyByteBufferLength
public int calcTotalPropertyByteBufferLength() -
calcTotalInstancingByteBufferLength
public int calcTotalInstancingByteBufferLength() -
fill
public void fill()Fills the body variable with the binary data of the glTF file. It iterates through the nodeBuffers list and puts the binary data of each node into the body variable.
-