private void UpdateName() { FormatName = (LuminenceDepth != 0 ? "L" : "") + (AlphaDepth != 0 ? "A" : "") + (LuminenceDepth != 0 ? LuminenceDepth.ToString() : "") + (AlphaDepth != 0 ? AlphaDepth.ToString() : ""); }
public Blp2Header(DataType type, Encoding encoding, AlphaDepth alphaDepth, AlphaEncoding alphaEncoding, byte hasMips, uint width, uint height) { this.fourCC = ("BLP2").ToCharArray(); this.type = type; this.encoding = encoding; this.alphaDepth = alphaDepth; this.alphaEncoding = alphaEncoding; this.hasMips = hasMips; this.width = width; this.height = height; this.offsets = new uint[16]; this.lengths = new uint[16]; }