예제 #1
0
파일: Vtf.cs 프로젝트: Frassle/Ibasa
 private void ReadHeader72(Ibasa.IO.BinaryReader reader)
 {
     if (VersionMinor >= 2)
     {
         Depth = reader.ReadUInt16();
         Depth = Depth == 0 ? 1 : Depth; //map 0 to 1
     }
     else
     {
         Depth = 1;
         reader.ReadBytes(1); //skip padding
     }
 }
예제 #2
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();
 }