Context#
Shared context between decoder and encoder.
Options#
Shared user options between decoder and encoder.
- class UserOptions(model_formats=None, parse_skeleton=False, parse_animation=False, overwrite=True)[source]#
Shared user options between decoder and encoder.
-
model_formats:
Optional[Sequence[FileFormat]] = None#
-
parse_skeleton:
bool= False#
-
parse_animation:
bool= False#
-
overwrite:
bool= True#
- property default_model_formats#
-
model_formats:
Content#
Shared content data between decoder and encoder.
- class ModelContent(type=FileType.MODEL, version=0.0, flags=<factory>, scene=<factory>)[source]#
Bases:
FileContentModel content storage.
-
version:
float= 0.0#
-
flags:
defaultdict[int,bool]#
-
scene:
ModelScene#
-
version:
- class TextureContent(type=FileType.TEXTURE, width=0, height=0, mipmap_count=0, format=<factory>, texture=<factory>)[source]#
Bases:
FileContent,Generic[TextureType]Texture content storage.
-
width:
int= 0#
-
height:
int= 0#
-
mipmap_count:
int= 0#
-
format:
bytes#
- property is_cubemap: bool#
- property is_compressed: bool#
- property fourcc: bytes#
-
width:
- class ImageContent(type=FileType.IMAGE, image=<factory>)[source]#
Bases:
FileContentImage content storage.
-
image:
bytes#
-
image:
- class TextureArrayContent(type=FileType.TEXARR, count=0, textures=<factory>)[source]#
Bases:
FileContentTexture array storage.
-
count:
int= 0#
-
textures:
list[tuple[str,bytes]]#
-
count:
- class NbtContent(type=FileType.NBT, value=None)[source]#
Bases:
FileContent-
value:
None|int|float|bytes|str|list[int] |list[None|int|float|bytes|str|list[int] |list[NbtValue] |dict[str, NbtValue]] |dict[str,None|int|float|bytes|str|list[int] |list[NbtValue] |dict[str, NbtValue]] = None#
-
value: