Example #1
0
        public ByteColor(byte[] data, ref int srcOffset)
        {
            R = FSHelpers.Read8(data, srcOffset + 0);
            G = FSHelpers.Read8(data, srcOffset + 1);
            B = FSHelpers.Read8(data, srcOffset + 2);

            srcOffset += 3;
        }
Example #2
0
        public HalfRotation(byte[] data, ref int srcOffset)
        {
            X = (short)FSHelpers.Read16(data, srcOffset);
            Y = (short)FSHelpers.Read16(data, srcOffset + 2);
            Z = (short)FSHelpers.Read16(data, srcOffset + 4);

            srcOffset += 6;
        }
Example #3
0
        public ByteColorAlpha(byte[] data, ref int srcOffset)
        {
            R = FSHelpers.Read8(data, srcOffset + 0);
            G = FSHelpers.Read8(data, srcOffset + 1);
            B = FSHelpers.Read8(data, srcOffset + 2);
            A = FSHelpers.Read8(data, srcOffset + 3);

            srcOffset += 4;
        }
Example #4
0
 public HalfRotationSingle(byte[] data, int srcOffset)
 {
     Value = (ushort)FSHelpers.Read16(data, srcOffset);
 }