## 第3章　バイナリフォーマット

### 3-11. TriList

#### (2)TriGroupエリア

TriGroupHeader | u32 | tri_group_tag
u32 | this_tri_group_index
u32 | tri_group_header_size
u32 | tri_group_size
u32 | tri_group_name_index
u32 | tri_anim_type
u32 | tri_anim_frame_num
u32 | tri_num
| ReferenceVtxData
ReferenceTriColorData
ReferenceVtxColorData
ReferenceTriNvData
ReferenceVtxNvData
ReferenceStData
Tri(0)
・・・
Tri(tri_num - 1)

TriGroup Area Memory Map

u32 tri_group_tag | A tag which indicates TriGroup, set the following flag.
    TAG_TRI_GROUP   0x00080100
u32 this_tri_group_index | Index number of TriGroup.
u32 tri_group_header_size | Number of bytes of TriGroupHeader.
u32 tri_group_size | Size of TriGroup.
u32 tri_group_name_index | Index of this TriGroup name in the NameList.
u32 tri_anim_type | Indicate shape animation type being used, the following flag is currently set.
    TRI_ANIM_NONE           0x00000000
    TRI_ANIM_VTX_FULL       0x00000001
    TRI_ANIM_VTX_KEY        0x00000002
    TRI_ANIM_TRI_COLOR_FULL 0x00000010
    TRI_ANIM_TRI_COLOR_KEY  0x00000020
    TRI_ANIM_VTX_COLOR_FULL 0x00000100
    TRI_ANIM_VTX_COLOR_KEY  0x00000200
    TRI_ANIM_TRI_NV_FULL    0x00001000
    TRI_ANIM_TRI_NV_KEY     0x00002000
    TRI_ANIM_VTX_NV_FULL    0x00010000
    TRI_ANIM_VTX_NV_KEY     0x00020000
    TRI_ANIM_ST_FULL        0x00100000
    TRI_ANIM_ST_KEY         0x00200000
u32 tri_anim_frame_num | Total number of shape animation frames.
u32 tri_num | Number of bytes of this TriGroup.
ReferenceVtxData | Reference VtxGroup area.
ReferenceTriColorData | Reference TriColorGroup area.
ReferenceVtxColorData | Reference VtxColorGroup area.
ReferenceTriNvData | ReferenceTriNvGroup area.
ReferenceVtxNvData | Reference VtxNvGroup area.
ReferenceStData | Reference StGroup area.
Tri | Tri area.

Copyright 1997 NINTENDO Co.,Ltd. All rights reserved.
目次へ次へ