opengl:texturefileformat
差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン次のリビジョン両方とも次のリビジョン | ||
opengl:texturefileformat [2015/07/04 02:57] – [KTX] oga | opengl:texturefileformat [2015/07/04 03:03] – [PKM] oga | ||
---|---|---|---|
行 123: | 行 123: | ||
<code cpp> | <code cpp> | ||
+ | enum { | ||
+ | KTX_HEADER_MAGIC0 | ||
+ | KTX_HEADER_MAGIC1 | ||
+ | KTX_HEADER_MAGIC2 | ||
+ | KTX_HEADER_ENDIAN | ||
+ | }; | ||
+ | |||
struct T_KTXHEADER { // 64byte | struct T_KTXHEADER { // 64byte | ||
UI32 Identifier[3]; | UI32 Identifier[3]; | ||
行 166: | 行 173: | ||
* PVRTC-2 対応 | * PVRTC-2 対応 | ||
* データ並びが KTX 順 | * データ並びが KTX 順 | ||
+ | |||
+ | <code cpp> | ||
+ | struct T_PVR3HEADER { // 13x4 = 52 | ||
+ | unsigned int Version; | ||
+ | unsigned int Flags; | ||
+ | unsigned int PixelFormat[2]; | ||
+ | unsigned int ColorSpace; | ||
+ | unsigned int ChannelType; | ||
+ | unsigned int Height; | ||
+ | unsigned int Width; | ||
+ | unsigned int Depth; | ||
+ | unsigned int Surfaces; | ||
+ | unsigned int Faces; | ||
+ | unsigned int MipMapCount; | ||
+ | unsigned int MetaDataSize; | ||
+ | }; | ||
+ | </ | ||
< | < | ||
行 177: | 行 201: | ||
* PVRTC-2 非対応 | * PVRTC-2 非対応 | ||
* データ並びが DDS 順 | * データ並びが DDS 順 | ||
+ | |||
+ | |||
< | < | ||
( ( ( width * height ) * mip ) * [cube_face or volume_depth] ) | ( ( ( width * height ) * mip ) * [cube_face or volume_depth] ) | ||
+ | </ | ||
+ | |||
+ | |||
+ | <code cpp> | ||
+ | struct T_PVR2HEADER { | ||
+ | unsigned int hsize; | ||
+ | unsigned int height; | ||
+ | unsigned int width; | ||
+ | unsigned int miplevel; | ||
+ | unsigned int tformat; | ||
+ | unsigned int datasize; | ||
+ | unsigned int bpp; // bpp | ||
+ | unsigned int redmask; | ||
+ | unsigned int greenmask; | ||
+ | unsigned int bluemask; | ||
+ | unsigned int alphamask; | ||
+ | unsigned int magic; | ||
+ | unsigned int depth; | ||
+ | }; | ||
</ | </ | ||
行 203: | 行 248: | ||
< | < | ||
- | version 1.0 | + | version 1.0 |
type: 0=ETC1-RGB, 1=ETC1-RGBA, | type: 0=ETC1-RGB, 1=ETC1-RGBA, | ||
- | version 2.0 | + | version 2.0 |
type: 0=ETC1_RGB, 1=ETC2_RGB, 2=ETC2_RGBA_OLD, | type: 0=ETC1_RGB, 1=ETC2_RGB, 2=ETC2_RGBA_OLD, | ||
</ | </ |
opengl/texturefileformat.txt · 最終更新: 2015/07/04 03:11 by oga