New colormap (.ct) format added

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1510 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
avolkov
2005-02-03 07:50:25 +00:00
parent 17955f993f
commit 5eadd60631
+12 -2
View File
@@ -25,15 +25,25 @@ Followed by:
4 offset from &StringCount until one char past the end 4 offset from &StringCount until one char past the end
of the last string. of the last string.
For .ct files an item is as follows (new 256x24bit format):
1 Index of first clut in this item.
1 Index of last clut in this item.
For each item:
256 palette entries:
1 red value
1 green value
1 blue value
For .ct files an item is as follows: For old .ct files an item is as follows (obsoleted by new 256x24bit format):
1 Index of first clut in this item. 1 Index of first clut in this item.
1 Index of last clut in this item. 1 Index of last clut in this item.
For each item: For each item:
32 palette entries: 32 palette entries:
2 bits 0-4: blue value 2 bits 0-4: blue value
bits 5-9: green value bits 5-9: green value
bits 10-15: red value bits 10-14: red value
bit 15: specifies the interpolation mode for 3DO scaling
(is ignored now)
The full palette contains 256 values, which are the original 32 values The full palette contains 256 values, which are the original 32 values
multiplied by 1 to 8. multiplied by 1 to 8.