public init ( |
||
src | ||
channel | uint | |
return | void |
public void init(ColorBlock src, uint channel)
{
// Colors are in BGRA format.
if (channel == 0) channel = 2;
else if (channel == 2) channel = 0;
for (uint i = 0; i < 16; i++)
{
alpha[i] = src.color[i].component()[channel];
weights[i] = 1.0f;
}
}
AlphaBlock4x4::init ( byte a ) : void |
void compressDXT5A(ColorBlock src, AlphaBlockDXT5 dst) { AlphaBlock4x4 tmp = new AlphaBlock4x4(); tmp.init(src, 3); compressDXT5A(tmp, dst); }