Exemple #1
0
 public static void ExportPVRHeader(Stream destination, PVRConvertParameters @params)
 {
     using (BinaryWriter binWriter = new BinaryWriter(destination, Encoding.UTF8, true))
     {
         binWriter.Write(Version);
         binWriter.Write((uint)Flags);
         binWriter.Write((ulong)@params.PixelFormat);
         binWriter.Write((uint)ColourSpace);
         binWriter.Write((uint)ChannelType);
         binWriter.Write(@params.Height);
         binWriter.Write(@params.Width);
         binWriter.Write(Depth);
         binWriter.Write(NumSurfaces);
         binWriter.Write(NumFaces);
         binWriter.Write(@params.MipMapCount);
         binWriter.Write(MetaDataSize);
     }
 }
Exemple #2
0
 public static void ExportPVR(Stream destination, Stream source, PVRConvertParameters @params)
 {
     ExportPVRHeader(destination, @params);
     source.CopyStream(destination, @params.DataLength);
 }