The cooked model format (.jmodel): a ModelData ready to upload —
vertices and indices as the renderer takes them, textures decoded with
their mip levels — so loading it parses no glTF and decodes no image.
Layout (little-endian): JMDL, the format version (u32), a JSON header
(u32 length, UTF-8, padded to 4 bytes), then the blobs it refers to by
index (u32 count; each a u32 length and its bytes, padded to 4).
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
isCooked(
Uint8List bytes) → bool -
Whether
bytesstart like a cooked model. -
read(
Uint8List bytes, {String? name}) → ModelData -
The model in the cooked file
bytes, namednamefor messages. -
stampOf(
Uint8List bytes) → String? -
The stamp
byteswere cooked with, or null (not a cooked model, or cooked without one). Reads only the header. -
write(
ModelData data, {String? stamp}) → Uint8List -
dataas a cooked file, carryingstamp(what it was cooked from; see stampOf). Images with ImageData.levels are stored as those levels; any other keeps its encoded bytes.