ユーザ用ツール

サイト用ツール


ddsformat

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
ddsformat [2015/05/26 14:12] – [dwMipMapCount] ogaddsformat [2015/05/26 16:45] (現在) – [DDS のヘッダ構造] oga
行 62: 行 62:
     unsigned int    ArraySize;      // Texture Array を格納する場合に必要     unsigned int    ArraySize;      // Texture Array を格納する場合に必要
     unsigned int    MiscFlag2;      // 0     unsigned int    MiscFlag2;      // 0
 +};
 +enum {
 +    DDS10_DIMENSION_1D = 2,
 +    DDS10_DIMENSION_2D = 3,
 +    DDS10_DIMENSION_3D = 4,
 }; };
 </code> </code>
行 381: 行 386:
 header.dwMipMapCount= 1; header.dwMipMapCount= 1;
 header10.ArraySize= 1; header10.ArraySize= 1;
 +header10.Dimension= DDS10_DIIMENSION_2D;
  
 if( 非圧縮時 ){ if( 非圧縮時 ){
行 411: 行 417:
     header.dwCaps2|= DDSCAPS2_VOLUME;     header.dwCaps2|= DDSCAPS2_VOLUME;
     header.dwDepth= depth;     header.dwDepth= depth;
 +    header10.Dimension= DDS10_DIMENSION_3D; 
 } }
  
行 444: 行 451:
 } }
 </code> </code>
- 
  
  
ddsformat.1432617133.txt.gz · 最終更新: 2015/05/26 14:12 by oga

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki