public interface GltfData
This class also provides methods for operating the glTF data.
| 限定符和类型 | 字段 | 说明 |
|---|---|---|
static int |
INVALID_INDEX |
Indicates the index of an invalid scene.
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
String |
getBaseUri() |
Obtains the root URI for locating external resources.
|
int |
getDefaultSceneIndex() |
Obtains the default scene index.
|
String |
getError() |
Obtains the error message if an error occurs in obtaining the glTF data.
|
List<String> |
getExternalUris() |
Obtains the URIs of the indexes of a parsed glTF file.
|
String |
getGltfUri() |
Obtains the URI of the source glTF data.
|
int |
getSceneCount() |
Obtains the number of scenes where glTF data is imported.
|
int |
getThumbnailCount() |
Obtains the number of available thumbnails.
|
boolean |
isValid() |
Checks whether the glTF data is valid.
|
void |
release() |
Releases the glTF data.
|
void |
releaseBuffers() |
Releases glTF data buffers.
|
static final int INVALID_INDEX
boolean isValid()
true if the glTF data is valid; returns false otherwise.String getError()
void releaseBuffers()
void release()
int getSceneCount()
int getDefaultSceneIndex()
INVALID_INDEX if the default scene is
not specified.int getThumbnailCount()
List<String> getExternalUris()
getBaseUri().
For example, the URI can be the name of an image or .bin file used by the glTF file.String getGltfUri()
String getBaseUri()