Esempio n. 1
0
 private void UpdateName()
 {
     FormatName = (LuminenceDepth != 0 ? "L" : "") +
                  (AlphaDepth != 0 ? "A" : "") +
                  (LuminenceDepth != 0 ? LuminenceDepth.ToString() : "") +
                  (AlphaDepth != 0 ? AlphaDepth.ToString() : "");
 }
Esempio n. 2
0
 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];
 }
Esempio n. 3
0
 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];
 }