Esempio n. 1
0
 internal void Write(EndianBinaryWriter writer)
 {
     EyeX.Write(writer);
     EyeY.Write(writer);
     EyeZ.Write(writer);
     PositionX.Write(writer);
     PositionY.Write(writer);
     PositionZ.Write(writer);
     DirectionX.Write(writer);
     DirectionY.Write(writer);
     DirectionZ.Write(writer);
     RotationX.Write(writer);
     RotationY.Write(writer);
     RotationZ.Write(writer);
     Zoom.Write(writer);
 }
Esempio n. 2
0
        internal void Write(EndianBinaryWriter writer)
        {
            writer.Write((short)Shader);
            writer.Write(UnkownFlag);

            ScaleXOrigin.Write(writer);
            ScaleYOrigin.Write(writer);

            PositionX.Write(writer);
            PositionY.Write(writer);

            Rotation.Write(writer);

            ScaleX.Write(writer);
            ScaleY.Write(writer);

            Opacity.Write(writer);

            writer.Write(UnknownInt);
        }
        internal void Write(EndianBinaryWriter writer)
        {
            TransferMode.Write(writer);

            if (writer.AddressSpace == AddressSpace.Int64)
            {
                writer.WriteNulls(4);
            }

            AnchorX.Write(writer);
            AnchorY.Write(writer);
            PositionX.Write(writer);
            PositionY.Write(writer);
            Rotation.Write(writer);
            ScaleX.Write(writer);
            ScaleY.Write(writer);
            Opacity.Write(writer);

            writer.ScheduleWriteOffsetIf(Video3D != null, 8, AlignmentMode.Left, () =>
            {
                Video3D.Write(writer);
            });
        }