Module meshopt::encoding[][src]

Structs

EncodeHeader
EncodeObject

Functions

calc_pos_offset_and_scale
calc_pos_offset_and_scale_inverse
calc_uv_offset_and_scale
calc_uv_offset_and_scale_inverse
decode_index_buffer

Decodes index data from an array of bytes generated by encode_index_buffer. The decoder is safe to use for untrusted input, but it may produce garbage data (e.g. out of range indices).

decode_vertex_buffer

Decodes vertex data from an array of bytes generated by encode_vertex_buffer. The decoder is safe to use for untrusted input, but it may produce garbage data.

encode_index_buffer

Encodes index data into an array of bytes that is generally much smaller (<1.5 bytes/triangle) and compresses better (<1 bytes/triangle) compared to original.

encode_vertex_buffer

Encodes vertex data into an array of bytes that is generally smaller and compresses better compared to original.