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