Changes between Version 11 and Version 12 of PMP_File_Format
- Timestamp:
- Jun 8, 2016, 11:41:05 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PMP_File_Format
v11 v12 19 19 #!c 20 20 PMP { 21 // FILE HEADER 21 22 char magic[4]; // == "PSMP" 22 23 u32 version; // == 6 23 24 u32 data_size; // == filesize-12 24 25 25 26 // DATA SECTION 26 27 u32 map_size; // number of patches (16x16 tiles) per side 27 28 28 u16 heightmap[(mapsize*16 + 1)*(mapsize*16 + 1)]; // vertex heights 29 u16 heightmap[(mapsize*16 + 1)*(mapsize*16 + 1)]; // vertex heights with lines indexed from 30 // left to right, columns from bottom to top 31 u32 num_terrain_textures; 32 String terrain_textures[num_terrain_textures]; // filenames (no path and file ending), e.g. "cliff1" 29 33 30 u32 num_terrain_textures; 31 String terrain_textures[num_terrain_textures]; // filenames (no path), e.g. "cliff1.dds" 32 33 Patch patches[mapsize^2]; 34 Patch patches[mapsize*mapsize]; // lines from left to right, columns from bottom to top 34 35 } 35 36