コード例 #1
0
ファイル: Geometry.cs プロジェクト: TGEnigma/SAModelTools
 internal override void ReadBody(int size, byte flags, EndianBinaryReader reader)
 {
     SourceAlpha      = ( SrcAlphaOp )sSrcAlphaField.Unpack(flags);
     DestinationAlpha = ( DstAlphaOp )sDstAlphaField.Unpack(flags);
     Debug.Assert(sUnusedField.Unpack(flags) == 0, "Unused bits in blend alpha chunk flags are used");
     Debug.Assert(GetFlags() == flags);
 }
コード例 #2
0
        internal override void ReadBody(int size, byte flags, EndianBinaryReader reader)
        {
            SourceAlpha      = ( SrcAlphaOp )sSrcAlphaField.Unpack(flags);
            DestinationAlpha = ( DstAlphaOp )sDstAlphaField.Unpack(flags);
            Debug.Assert(sUnusedField.Unpack(flags) == 0, "Unused bits in material flags are used");
            size = reader.ReadUInt16();
            var actualSize = size * 2;

            ReadMaterialData(actualSize, reader);
        }
コード例 #3
0
 protected MaterialChunk()
 {
     SourceAlpha      = SrcAlphaOp.Src;
     DestinationAlpha = DstAlphaOp.InverseDst;
 }