Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
trs:prjfile [2017/06/12 02:48]
zdimension
trs:prjfile [2019/08/09 08:11] (current)
stohrendorf
Line 73: Line 73:
     uint8_t x;     uint8_t x;
     uint8_t y;     uint8_t y;
-    uint16_t ​tile;+    uint16_t ​atlas;
     uint8_t flipX;     uint8_t flipX;
     uint8_t xSize;     uint8_t xSize;
Line 81: Line 81:
 </​code>​ </​code>​
  
-  * ''​x''​ -- The pixel offset of the left side of the texture within the TGA. This only permits the texture file to be 256 pixels wide at most. For full tiles, it must be a multiple of 64 (0, 64, 128, 192). For partial ​tiles, it may be any multiple of 16. +  * ''​x''​ -- The pixel offset of the left side of the texture within the TGA. This only permits the texture file to be 256 pixels wide at most. For full atlases, it must be a multiple of 64 (0, 64, 128, 192). For partial ​atlases, it may be any multiple of 16. 
-  * ''​y''​ -- The pixel offset of the top of the texture within the TGA. The maximum height allowed for a TGA file is 4096 (for width of 256). Since 512 pixel wide TGA files are converted to 256, that makes 4096 the true maximum height. This offset can be at most 4032 for full tiles, or 4080 for partial ​tiles. For full tiles, it must be a multiple of 64. For partial ​tiles, it may be any multiple of 16. +  * ''​y''​ -- The pixel offset of the top of the texture within the TGA. The maximum height allowed for a TGA file is 4096 (for width of 256). Since 512 pixel wide TGA files are converted to 256, that makes 4096 the true maximum height. This offset can be at most 4032 for full atlases, or 4080 for partial ​atlases. For full atlases, it must be a multiple of 64. For partial ​atlases, it may be any multiple of 16. 
-  * ''​xSize''​ -- This is the pixel offset of the rightmost pixel within the tile. For full tiles, it must be 63. For partial ​tiles it must be 15, 31, 47, or 63. It is basically the pixel width of the texture minus 1. It cannot be set so that the texture would cross a tile boundary. +  * ''​xSize''​ -- This is the pixel offset of the rightmost pixel within the atlas. For full atlases, it must be 63. For partial ​atlases ​it must be 15, 31, 47, or 63. It is basically the pixel width of the texture minus 1. It cannot be set so that the texture would cross an atlas boundary. 
-  * ''​ySize''​ -- This is the pixel offset of the bottom pixel within the tile. For full tiles, it must be 63. For partial ​tiles it must be 15, 31, 47, or 63. It is basically the pixel height of the texture minus 1. It cannot be set so that the texture would cross a tile boundary.+  * ''​ySize''​ -- This is the pixel offset of the bottom pixel within the atlas. For full atlases, it must be 63. For partial ​atlases ​it must be 15, 31, 47, or 63. It is basically the pixel height of the texture minus 1. It cannot be set so that the texture would cross an atlas boundary.
  
 ==== Animation range ==== ==== Animation range ====
Line 92: Line 92:
 { {
     uint32_t defined; ​    // 0 = animation range not used, 1 = being used     uint32_t defined; ​    // 0 = animation range not used, 1 = being used
-    uint32_t ​firstTile;   // ​tile number of the first tile in the animation range +    uint32_t ​firstAtlas;   // ​atlas number of the first atlas in the animation range 
-    uint32_t ​lastTile;    // tile number of the last tile in the animation range+    uint32_t ​lastAtlas;    // atlas number of the last atlas in the animation range
 } }
 </​code>​ </​code>​
trs/prjfile.txt · Last modified: 2019/08/09 08:11 (external edit)
Back to top
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0