Exemplo n.º 1
0
 public void Read(byte[] Buffer, uint Offset)
 {
     Offset = Offset * 8;
     UV     = new short[2];
     Struct.GetUInt(Buffer, Offset + 0x00, ref Normal);
     Struct.GetShort(Buffer, Offset + 0x04, ref UV[0]);
     Struct.GetShort(Buffer, Offset + 0x06, ref UV[1]);
 }
Exemplo n.º 2
0
 public void Read(byte[] Buffer, uint Offset)
 {
     Offset   = Offset * 32;
     XYZCords = new uint[3];
     UV       = new uint[2];
     Struct.GetUInt(Buffer, Offset + 0x00, ref XYZCords[0]);
     Struct.GetUInt(Buffer, Offset + 0x04, ref XYZCords[1]);
     Struct.GetUInt(Buffer, Offset + 0x08, ref XYZCords[2]);
     Struct.GetUInt(Buffer, Offset + 0x0C, ref Normals);
     Struct.GetUInt(Buffer, Offset + 0x10, ref BiNormals);
     Struct.GetUInt(Buffer, Offset + 0x14, ref Tangents);
     Struct.GetUInt(Buffer, Offset + 0x18, ref UV[0]);
     Struct.GetUInt(Buffer, Offset + 0x1C, ref UV[1]);
 }
Exemplo n.º 3
0
        public uint Read(byte[] Buffer, uint Offset, uint Magic, ref FileStream FI)
        {
            Struct.GetUInt(Buffer, Offset, ref Count);
            Struct.GetUInt(Buffer, Offset + 0x04, ref Zeros);
            Struct.GetUInt(Buffer, Offset + 0x08, ref CheckSum);
            Struct.GetUInt(Buffer, Offset + 0x0C, ref IndirectOffset);
            IndirectOffset -= Magic;
            long Sav_F_Pos = FI.Position;

            FI.Seek(IndirectOffset, SeekOrigin.Begin);
            byte[] Tmp = new byte[12];
            FI.Read(Tmp, 0, Tmp.Length);
            FI.Seek(Sav_F_Pos, SeekOrigin.Begin);
            Struct.GetUInt(Tmp, 4, ref TrueOffset);
            TrueOffset -= Magic;
            return(TrueOffset);
        }
Exemplo n.º 4
0
 public void Read(byte[] Buffer, uint Offset)
 {
     Offset = Offset * 56;
     Struct.GetUInt(Buffer, Offset + 0x00, ref XYZCords[0]);
     Struct.GetUInt(Buffer, Offset + 0x04, ref XYZCords[1]);
     Struct.GetUInt(Buffer, Offset + 0x08, ref XYZCords[2]);
     Struct.GetUInt(Buffer, Offset + 0x0C, ref Normals[0]);
     Struct.GetUInt(Buffer, Offset + 0x10, ref Normals[1]);
     Struct.GetUInt(Buffer, Offset + 0x14, ref Normals[2]);
     Struct.GetUInt(Buffer, Offset + 0x18, ref BiNormals[0]);
     Struct.GetUInt(Buffer, Offset + 0x1c, ref BiNormals[1]);
     Struct.GetUInt(Buffer, Offset + 0x20, ref BiNormals[2]);
     Struct.GetUInt(Buffer, Offset + 0x24, ref Tangents[0]);
     Struct.GetUInt(Buffer, Offset + 0x28, ref Tangents[1]);
     Struct.GetUInt(Buffer, Offset + 0x2C, ref Tangents[2]);
     Struct.GetUInt(Buffer, Offset + 0x30, ref UV[0]);
     Struct.GetUInt(Buffer, Offset + 0x34, ref UV[1]);
 }