Пример #1
0
 public static void WriteStepLinear32(this BinaryWriter Writer, KeyFrame KF)
 {
     Writer.Write(
         ((uint)KF.Frame & 0xfff) << 0 |
             ((uint)KF.Value & 0xfffff) << 12);
 }
Пример #2
0
 public static void WriteUnifiedHermite48(this BinaryWriter Writer, KeyFrame KF)
 {
     Writer.Write((ushort)(KF.Frame * 32));
     Writer.Write((ushort)(KF.Value));
     Writer.Write((ushort)(KF.InSlope * 256));
 }
Пример #3
0
 public static void WriteStepLinear64(this BinaryWriter Writer, KeyFrame KF)
 {
     Writer.Write(KF.Frame);
     Writer.Write(KF.Value);
 }
Пример #4
0
 public static void WriteUnifiedHermite96(this BinaryWriter Writer, KeyFrame KF)
 {
     Writer.Write(KF.Frame);
     Writer.Write(KF.Value);
     Writer.Write(KF.InSlope);
 }