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:fundamentals [2019/08/09 07:50]
stohrendorf [16-bit Texture Tile]
trs:fundamentals [2019/08/09 07:50] (current)
stohrendorf [32-bit Texture Tile]
Line 317: Line 317:
 ==== 32-bit Texture Tile ==== ==== 32-bit Texture Tile ====
  
-Each ''​%%uint32_t%%''​ represents a pixel whose colour is of the form ARGB, (A = most significant byte), each component being one byte.+Each ''​%%uint32_t%%''​ represents a pixel encoded in ARGB8.
  
 {{anchor:​tr4_textile32}} {{anchor:​tr4_textile32}}
 <code cpp> <code cpp>
-struct ​tr4_textile32 ​   // 262144 bytes+struct ​tr4_image32 ​   // 262144 bytes
 { {
-    uint32_t ​Tile[256 * 256];+    uint32_t ​pixels[256 * 256];
 }; };
 </​code>​ </​code>​
  
trs/fundamentals.txt · Last modified: 2019/08/09 07:50 (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