Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. The file begins with the four-byte magic number 72371524, and then two four-byte offsets to the polygon and thing records, in that order.
  2.  
  3. Then there follow records of the following format for polygons, until the offset specified for things:
  4.  
  5. int tex_type_id ; 0 for flat, 1 for tex
  6. int vx_order ; 0 if floor, 1 if ceil, 2 for both
  7. ; planes, 3 for clockwise vertices
  8. char[8] tex_name ; flat or texture name, null-padded
  9. int num_vertices ; number of vertices in polygon
  10. num_vertices many:
  11. float x ; Vertex co-ordinate.
  12. float y ; "
  13. float z ; "
  14. float u ; Texture domain co-ordinate.
  15. float v ; "
  16.  
  17. Finally there are the thing records, thus:
  18.  
  19. int type ; Class of thing
  20. int angle ; Anticlockwise angle from 0-359, 0 being +ve x dir
  21. int x ; Position
  22. int y ; "
  23. int z ; "
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement