Skip to content
Dahie edited this page Sep 13, 2010 · 1 revision

The TEX texture format is used in DirectX games like GrandPrix4 as capsulation for DDS-files.
The file contains 1..8 DDS-files and uses them as MipMaps.

The file consists of two parts:

  • 340 byte header
    • 4 byte: magic → 0×00584554
    • 4 byte: width
    • 4 byte: height
    • 4 byte: has alpha → 0×00000001 or 0×00000000
    • 4 byte: number of DDS-files
    • 320 byte: DDS table headers: 5 tables with each 8 4byte pairs describing the offset and the size of each DDS-file.
  • body
    • contains 1..8 DDS-files

Madman wrote an extensive Documentation about the file format. The implementation of the TEX-file-support in this tools is based on this specs.

Clone this wiki locally