mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-17 13:01:42 +00:00
Changed: Comments to support DXTC1a for textures with one level of transparency later
This commit is contained in:
parent
db86bb006a
commit
0f7afabf3f
2 changed files with 2 additions and 0 deletions
|
@ -43,6 +43,7 @@ static void compressMipMap(uint8 *pixSrc, sint width, sint height, vector<uint8
|
||||||
case DXT1A:
|
case DXT1A:
|
||||||
flags |= squish::kDxt1;
|
flags |= squish::kDxt1;
|
||||||
dest.ddpf.dwFourCC = MAKEFOURCC('D', 'X', 'T', '1');
|
dest.ddpf.dwFourCC = MAKEFOURCC('D', 'X', 'T', '1');
|
||||||
|
// TODO: add special headers flags for DXTC1a
|
||||||
break;
|
break;
|
||||||
case DXT3:
|
case DXT3:
|
||||||
flags |= squish::kDxt3;
|
flags |= squish::kDxt3;
|
||||||
|
|
|
@ -463,6 +463,7 @@ int main(int argc, char **argv)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
// TODO: if alpha channel is 0, use DXTC1a instead DXTC1
|
||||||
if(imageDepth==24)
|
if(imageDepth==24)
|
||||||
algo = DXT1;
|
algo = DXT1;
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue