Expand description
NTF/DXT, GTT and TCT storage and native RGBA texture encoding.
Structs§
- Terrain
Colors - Square terrain colour-map collection in X-major/Z-minor order.
- Texture
- Editable NTF storage, preserving the original encoded pixel payload.
- Texture
Level - A primary, fallback or legacy compatibility mip level.
Constants§
- DXT1
- DXT1/BC1 fourCC in little-endian order.
- DXT3
- DXT3/BC2 fourCC in little-endian order.
- DXT5
- DXT5/BC3 fourCC in little-endian order.
Functions§
- append_
texture - Append a validated texture to a surrounding binary record.
- create_
texture - Create a new NTF, including the engine’s primary and fallback level chains.
- decode_
level - Decode a primary/fallback mip into top-row-first RGBA, rejecting opaque legacy pixels.
- encode_
level - Encode RGBA with a vetted native BC compressor or explicit linear packing.
- mip_
size - Compute a level’s encoded size with format and dimension validation.
- parse_
gtt - Parse sequential GTT records from their sizes rather than pixel signature scans.
- parse_
tct - Parse a square TCT terrain colour-map collection.
- parse_
texture - Parse a named DXT file and preserve its unexplained suffix.
- read_
texture - Read a self-delimiting texture embedded inside another record.
- write_
gtt - Write a collection of unambiguously framed NTF textures.
- write_
tct - Write a square TCT terrain colour-map collection.
- write_
texture - Serialize a new or edited DXT without recompressing original payloads.