コード例 #1
0
ファイル: DdsLoader.cs プロジェクト: komaflash/ModCommander
 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();
 }
コード例 #2
0
ファイル: DdsLoader.cs プロジェクト: Fox-Alpha/ModCommander
 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();
 }