TEXTUREx

From ZDoom Wiki

Jump to: navigation, search

TEXTUREx refers to the naming format of the original Doom engine's texture specification lumps, traditionally named TEXTURE1 and TEXTURE2. A TEXTUREx entry defines the width, height, patches that compose the texture, etc.


Specification (Doom Format)

Bytes Data Type Description Notes
0-3 Unsigned Integer Number of entries The lump starts with an integer header declaring the number of patches that follow
... Unsigned Integer Offset to beginning of texture entry Then there are X number of offsets to the beginning of each patch
.
... Char Entry name 8 bytes
... Short Unused This field is used by ZDoom to specify flags for the entry. Currently, "World Units" is the only flag
... Short Unused This field is used by ZDoom to specify the X/Y scale of the texture
... Unsigned Short Width
... Unsigned Short Height
... Short Unused
... Short Unused
... Unsigned Short Number of patch entries in this entry After this field, there are X number of 5-field patch entries. The last patch in the list is the top-most patch.
.
... SIgned Short X offset
... Signed Short Y offset
... Unsigned Short Number of the PNAMES entry that has the name of this patch
... Short Unused Always 1
... Short Unused Always 0


Specification (Strife Format)

Bytes Data Type Description Notes
0-3 Unsigned Integer Number of entries The lump starts with an integer header declaring the number of patches that follow
... Unsigned Integer Offset to beginning of texture entry Then there are X number of offsets to the beginning of each patch
.
... Char Entry name 8 bytes
... Unsigned Short Width
... Unsigned Short Height
... Unsigned Short Number of patch entries in this entry After this field, there are X number of 5-field patch entries. The last patch in the list is the top-most patch.
.
... SIgned Short X offset
... Signed Short Y offset
... Unsigned Short Number of the PNAMES entry that has the name of this patch
... Short Unused Always 1
... Short Unused Always 0


See Also

Personal tools