Exemplo n.º 1
0
 private void Read_DDS_HEADER(DDS_HEADER h, BinaryReader r)
 {
     h.dwSize              = r.ReadInt32();
     h.dwFlags             = r.ReadInt32();
     h.dwHeight            = r.ReadInt32();
     h.dwWidth             = r.ReadInt32();
     h.dwPitchOrLinearSize = r.ReadInt32();
     h.dwDepth             = r.ReadInt32();
     h.dwMipMapCount       = r.ReadInt32();
     for (int i = 0; i < 11; ++i)
     {
         h.dwReserved1[i] = r.ReadInt32();
     }
     Read_DDS_PIXELFORMAT(h.ddspf, r);
     h.dwCaps      = r.ReadInt32();
     h.dwCaps2     = r.ReadInt32();
     h.dwCaps3     = r.ReadInt32();
     h.dwCaps4     = r.ReadInt32();
     h.dwReserved2 = r.ReadInt32();
 }
Exemplo n.º 2
0
 private void Read_DDS_HEADER(DDS_HEADER h, BinaryReader r)
 {
     h.dwSize = r.ReadInt32();
     h.dwFlags = r.ReadInt32();
     h.dwHeight = r.ReadInt32();
     h.dwWidth = r.ReadInt32();
     h.dwPitchOrLinearSize = r.ReadInt32();
     h.dwDepth = r.ReadInt32();
     h.dwMipMapCount = r.ReadInt32();
     for (int i = 0; i < 11; ++i)
     {
         h.dwReserved1[i] = r.ReadInt32();
     }
     Read_DDS_PIXELFORMAT(h.ddspf, r);
     h.dwCaps = r.ReadInt32();
     h.dwCaps2 = r.ReadInt32();
     h.dwCaps3 = r.ReadInt32();
     h.dwCaps4 = r.ReadInt32();
     h.dwReserved2 = r.ReadInt32();
 }