예제 #1
0
파일: Vtf.cs 프로젝트: Frassle/Ibasa
 private void ReadHeader70(Ibasa.IO.BinaryReader reader)
 {
     Width = reader.ReadUInt16();
     Height = reader.ReadUInt16();
     Flags = (TextureFlags)reader.ReadInt32();
     Frames = reader.ReadUInt16();
     StartFrame = reader.ReadUInt16();
     reader.ReadBytes(4); //skip padding
     Reflectivity = new Vector3f(reader.ReadSingle(), reader.ReadSingle(), reader.ReadSingle());
     reader.ReadBytes(4); //skip padding
     BumpmapScale = reader.ReadSingle();
     ImageFormat = (ImageFormat)reader.ReadInt32();
     MipmapCount = reader.ReadByte();
     LowResImageFormat = (ImageFormat)reader.ReadInt32();
     LowResImageWidth = reader.ReadByte();
     LowResImageHeight = reader.ReadByte();
 }