imported>WATTO |
imported>Ra4Oy1 |
| Line 7: |
Line 7: |
| <tt><b> | | <tt><b> |
| ==== Header ==== | | ==== Header ==== |
| uint32 {4} - address of Table 1<br> | | uint32 {4} |
| uint32 {4} - address of Table 2<br>
| |
| uint32 {4} - 0x0000 0003<br>
| |
| uint32 {4} - 0x0000 0004<br>
| |
| | |
| ==== Table 1 ====
| |
| : { repeat 2048 times <br>
| |
| :: uint32 {4} - if > 0, address (T#A) <br>
| |
| : } <br>
| |
| | |
| ==== Table 2 ====
| |
| : { repeat 2048 times <br>
| |
| :: uint32 {4} - if > 0, address (T#B) <br>
| |
| : } <br>
| |
| | |
| ==== Address T#A ====
| |
| : uint32 {4} - recLength<br>
| |
| : uint32 {4} - recFormat, image format (reversed text) RGBA, PALN, DXT1, DXT3 <br>
| |
| : uint32 {4} - recFormat, repeated <br>
| |
| : uint32 {4} - <font color="red">uk4</font> <br>
| |
| : uint16 {2} - Height<br>
| |
| : uint16 {2} - Width<br>
| |
| : uint32 {4} - noSubMips, number of sub images <br>
| |
| : uint32 {4} - <font color="red">uk7</font> <br>
| |
| : uint32 {4} - <font color="red">uk8</font> <br>
| |
| : uint32 {4} - <font color="red">uk9</font> <br>
| |
| : string {var} – texName, image name <br>
| |
| : byte {1} - 0x00, text deliminator<br>
| |
| : { repeat ‘noSubMips’ times
| |
| :: uint32 {4} - mipLength, length of image data<br>
| |
| :: {<font color="blue">recFormat = RGBA</font>
| |
| ::: { repeat ‘mipLength’ times
| |
| :::: byte {1} - red<br>
| |
| :::: byte {1} - green<br>
| |
| :::: byte {1} - blue<br>
| |
| :::: byte {1} - alpha<br>
| |
| ::: } <br>
| |
| :: } <br>
| |
| :: {<font color="blue">recFormat = PAL</font>
| |
| ::: { repeat ‘mipLength’ times
| |
| :::: byte {1} - refColour, reference in palette<br>
| |
| ::: } <br>
| |
| ::: uint32 {4} - noColour, number of colours in palette<br>
| |
| ::: { repeat ‘noColour’ times
| |
| :::: byte {1} - blue<br>
| |
| :::: byte {1} - green<br>
| |
| :::: byte {1} - red<br>
| |
| :::: byte {1} - alpha<br>
| |
| ::: } <br>
| |
| :: } <br>
| |
| :: {<font color="blue">recFormat = DXT1</font>
| |
| :: } <br>
| |
| :: {<font color="blue">recFormat = DXT3</font>
| |
| :: } <br>
| |
| : } <br>
| |
| | |
| ==== Address T#B ====
| |
| : uint32 {4} - nREC<br>
| |
| : { repeat ‘nREC’ times
| |
| :: uint32 {4} - <font color="red">uk1</font> <br>
| |
| : } <br>
| |
| | |
| </b></tt>
| |
| | |
| | |
| === MultiEx BMS Script ===
| |
| | |
| Not written yet<br><br>
| |
| | |
| === Notes and Comments ===
| |
| | |
| The DXT1 and DXT3 formats are Microsoft formats and are on their website.
| |
| <br><br>
| |
| | |
| === Compatible Programs ===
| |
| | |
| None Yet
| |