FANDOM


(2's complement; struct table)
(+ cat)
Line 22: Line 22:
   
 
[[Category:Doom engine]]
 
[[Category:Doom engine]]
  +
[[Category:WAD lumps]]

Revision as of 03:17, March 17, 2007

Vertices are nothing more than coordinates on the map. Linedefs and segs reference vertices for their start-point and end-point.

The vertices for a map are stored in the VERTEXES lump, which consists of a raw sequence of x, y coordinates as pairs of 16-bit signed integers. The bytes are in little-endian order (least significant byte first).

Due to the 16-bit signed two's complement format, each coordinate can range from -32768 to +32767.

Vertex structure

Offset Size (bytes) Description
0 2 x position
2 2 y position
Community content is available under CC-BY-SA unless otherwise noted.