Expand description
TXI ASCII texture-info support. TXI ASCII reader and writer.
TXI (texture info) resources are line-based text sidecars for texture resources. Each directive is a command followed by optional arguments.
§Format Layout
<command> <args...>
<command> <args...>
upperleftcoords <count>
<u> <v> <w>
...
lowerrightcoords <count>
<u> <v> <w>
...Empty lines are ignored. Commands are treated case-insensitively for parse decisions. Policy-normalized mode normalizes command tokens in-memory; source-preserving mode keeps original command spelling. Text is decoded/encoded as Windows-1252.
Structs§
- Txi
- In-memory TXI container.
- TxiCoordinate
- One TXI UV coordinate entry.
- TxiCoordinate
Block - One TXI coordinate block command.
- TxiDirective
- One TXI command with optional argument payload.
- TxiRead
Options - Reader options for TXI parsing.
- TxiWrite
Options - Writer options for TXI serialization.
Enums§
Functions§
- read_
txi - Reads TXI data from a reader.
- read_
txi_ from_ bytes - Reads TXI data from bytes.
- read_
txi_ from_ bytes_ with_ options - Reads TXI data from bytes with explicit parse options.
- read_
txi_ with_ options - Reads TXI data from a reader with explicit parse options.
- write_
txi - Writes TXI data to a writer.
- write_
txi_ to_ vec - Serializes TXI data to bytes.
- write_
txi_ to_ vec_ with_ options - Serializes TXI data to bytes with explicit serialization options.
- write_
txi_ with_ options - Writes TXI data to a writer with explicit serialization options.