ddsformat
差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
ddsformat [2015/05/26 16:43] – [ヘッダ設定コードの例] oga | ddsformat [2015/05/26 16:45] (現在) – [DDS のヘッダ構造] oga | ||
---|---|---|---|
行 62: | 行 62: | ||
unsigned int ArraySize; | unsigned int ArraySize; | ||
unsigned int MiscFlag2; | unsigned int MiscFlag2; | ||
+ | }; | ||
+ | enum { | ||
+ | DDS10_DIMENSION_1D = 2, | ||
+ | DDS10_DIMENSION_2D = 3, | ||
+ | DDS10_DIMENSION_3D = 4, | ||
}; | }; | ||
</ | </ | ||
行 381: | 行 386: | ||
header.dwMipMapCount= 1; | header.dwMipMapCount= 1; | ||
header10.ArraySize= 1; | header10.ArraySize= 1; | ||
- | header10.Dimension= | + | header10.Dimension= DDS10_DIIMENSION_2D; |
if( 非圧縮時 ){ | if( 非圧縮時 ){ | ||
行 412: | 行 417: | ||
header.dwCaps2|= DDSCAPS2_VOLUME; | header.dwCaps2|= DDSCAPS2_VOLUME; | ||
header.dwDepth= depth; | header.dwDepth= depth; | ||
+ | header10.Dimension= DDS10_DIMENSION_3D; | ||
} | } | ||
行 445: | 行 451: | ||
} | } | ||
</ | </ | ||
- | |||
ddsformat.1432626185.txt.gz · 最終更新: 2015/05/26 16:43 by oga