public class BinaryGltfV1
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getBinaryGltfBufferId()
Returns unique ID of the binary glTF
Buffer
("binary_glTF") |
static java.lang.String |
getBinaryGltfExtensionName()
Returns the name of the Khronos binary glTF extension
(
"KHR_binary_glTF") |
static boolean |
hasBinaryGltfExtension(GlTFProperty gltfProperty)
Returns whether the given
GlTFProperty has the
"KHR_binary_glTF" extension. |
static boolean |
isBinaryGltfBufferId(java.lang.String id)
Returns whether the given ID is the unique ID of the binary glTF
Buffer ("binary_glTF") |
static void |
setBinaryGltfBufferViewId(GlTFProperty gltfProperty,
java.lang.String bufferViewId)
Set the value of the
"bufferView" property in
the "KHR_binary_glTF" extension object of the
given GlTFProperty. |
static void |
setBinaryGltfImageProperties(Image image,
java.nio.ByteBuffer imageData)
Set the properties for the given
Image that is stored
as a "KHR_binary_glTF" image. |
public static boolean hasBinaryGltfExtension(GlTFProperty gltfProperty)
GlTFProperty has the
"KHR_binary_glTF" extension. This is applicable
to Image and Shader objects that may contain
an extension object with a BufferView ID instead of
a URI. The BufferView ID may be obtained with
getBinaryGltfBufferViewId(GlTFProperty).gltfProperty - The GlTFPropertypublic static void setBinaryGltfBufferViewId(GlTFProperty gltfProperty, java.lang.String bufferViewId)
"bufferView" property in
the "KHR_binary_glTF" extension object of the
given GlTFProperty. If no (or an invalid) extension
object already existed, it will be created or overwritten,
respectively.gltfProperty - The GlTFPropertybufferViewId - The BufferView IDpublic static void setBinaryGltfImageProperties(Image image, java.nio.ByteBuffer imageData)
Image that is stored
as a "KHR_binary_glTF" image. These properties
are
widthheightmimeTypesetBinaryGltfBufferViewId(GlTFProperty, String))image - The imageimageData - The raw image dataGltfException - If the image data cannot be analyzed to derive
the required informationpublic static java.lang.String getBinaryGltfExtensionName()
"KHR_binary_glTF")public static java.lang.String getBinaryGltfBufferId()
Buffer
("binary_glTF")Buffer IDCopyright © 2022. All Rights Reserved.