Skip to content

Glacier_TEX_Format

DronCode edited this page Jul 4, 2020 · 1 revision

TEX Format

By pavledev GlacierTEXEditor

public struct TEXHeader
{
    public uint table1Offset;
    public uint table2Offset;
    public uint unk1;
    public uint unk2;
}

public struct FileData
{
    public uint mipMapLevelSize;
    public byte[] data;
}

public struct TEXEntry
{
    public uint fileSize;
    public char[] type1;
    public char[] type2;
    public uint index;
    public ushort height;
    public ushort width;
    public uint numOfMipMaps;
    public uint unk1;
    public uint unk2;
    public uint unk3;
    public byte[] fileName;
    public List<FileData> fileData;
    public byte[] palData;
    public uint indicesCount;
    public uint[] indices;
}

public struct TEX
{
    public TEXHeader texHeader;
    public List<TEXEntry> entries;
    public uint[] table1Offsets;
    public uint[] table2Offsets;
}