2023-07-07 19:22:51 -07:00
|
|
|
from enum import Enum
|
|
|
|
|
|
|
|
|
2023-08-30 15:59:51 -07:00
|
|
|
class GltfStorage(str, Enum):
|
2023-11-27 16:01:20 -08:00
|
|
|
"""Describes the storage format of a glTF 2.0 scene.""" # noqa: E501
|
2023-07-07 19:22:51 -07:00
|
|
|
|
2023-11-27 16:01:20 -08:00
|
|
|
"""# Binary glTF 2.0.
|
2023-07-07 19:22:51 -07:00
|
|
|
|
2023-11-27 16:01:20 -08:00
|
|
|
This is a single binary with .glb extension. """ # noqa: E501
|
|
|
|
BINARY = "binary"
|
|
|
|
"""# Standard glTF 2.0.
|
|
|
|
|
|
|
|
This is a JSON file with .gltf extension paired with a separate binary blob file with .bin extension. """ # noqa: E501
|
|
|
|
STANDARD = "standard"
|
|
|
|
"""# Embedded glTF 2.0.
|
2023-07-07 19:22:51 -07:00
|
|
|
|
2023-08-30 15:59:51 -07:00
|
|
|
Single JSON file with .gltf extension binary data encoded as base64 data URIs.
|
|
|
|
|
2023-11-27 16:01:20 -08:00
|
|
|
This is the default setting. """ # noqa: E501
|
|
|
|
EMBEDDED = "embedded"
|
2023-07-07 19:22:51 -07:00
|
|
|
|
2023-11-27 16:01:20 -08:00
|
|
|
def __str__(self) -> str:
|
|
|
|
return str(self.value)
|