sm64

A Super Mario 64 decompilation
Log | Files | Refs | README | LICENSE

model.inc.c (2811B)


      1 // Mr I (Iris)
      2 
      3 // 0x06002130
      4 static const Vtx mr_i_iris_seg6_vertex_06002130[] = {
      5     {{{   -50,    -50,      0}, 0, {     0,    992}, {0xff, 0xff, 0xff, 0xff}}},
      6     {{{    50,    -50,      0}, 0, {   992,    992}, {0xff, 0xff, 0xff, 0xff}}},
      7     {{{    50,     50,      0}, 0, {   992,      0}, {0xff, 0xff, 0xff, 0xff}}},
      8     {{{   -50,     50,      0}, 0, {     0,      0}, {0xff, 0xff, 0xff, 0xff}}},
      9 };
     10 
     11 // 0x06002170
     12 ALIGNED8 static const Texture mr_i_iris_seg6_texture_06002170[] = {
     13 #include "actors/mr_i_iris/mr_i_iris_open.rgba16.inc.c"
     14 };
     15 
     16 // 0x06002970
     17 ALIGNED8 static const Texture mr_i_iris_seg6_texture_06002970[] = {
     18 #include "actors/mr_i_iris/mr_i_iris_mostly_open.rgba16.inc.c"
     19 };
     20 
     21 // 0x06003170
     22 ALIGNED8 static const Texture mr_i_iris_seg6_texture_06003170[] = {
     23 #include "actors/mr_i_iris/mr_i_iris_mostly_closed.rgba16.inc.c"
     24 };
     25 
     26 // 0x06003970
     27 ALIGNED8 static const Texture mr_i_iris_seg6_texture_06003970[] = {
     28 #include "actors/mr_i_iris/mr_i_iris_closed.rgba16.inc.c"
     29 };
     30 
     31 // 0x06004170 - 0x060041D8
     32 const Gfx mr_i_iris_seg6_dl_06004170[] = {
     33     gsDPSetCombineMode(G_CC_DECALRGBA, G_CC_DECALRGBA),
     34     gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
     35     gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0, G_TX_LOADTILE, 0, G_TX_CLAMP, 5, G_TX_NOLOD, G_TX_CLAMP, 5, G_TX_NOLOD),
     36     gsDPLoadSync(),
     37     gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
     38     gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 0, G_TX_RENDERTILE, 0, G_TX_CLAMP, 5, G_TX_NOLOD, G_TX_CLAMP, 5, G_TX_NOLOD),
     39     gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
     40     gsSPVertex(mr_i_iris_seg6_vertex_06002130, 4, 0),
     41     gsSP2Triangles( 0,  1,  2, 0x0,  0,  2,  3, 0x0),
     42     gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
     43     gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
     44     gsSPEndDisplayList(),
     45 };
     46 
     47 // 0x060041D8 - 0x060041F0
     48 const Gfx mr_i_iris_seg6_dl_060041D8[] = {
     49     gsDPPipeSync(),
     50     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mr_i_iris_seg6_texture_06002170),
     51     gsSPBranchList(mr_i_iris_seg6_dl_06004170),
     52 };
     53 
     54 // 0x060041F0 - 0x06004208
     55 const Gfx mr_i_iris_seg6_dl_060041F0[] = {
     56     gsDPPipeSync(),
     57     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mr_i_iris_seg6_texture_06002970),
     58     gsSPBranchList(mr_i_iris_seg6_dl_06004170),
     59 };
     60 
     61 // 0x06004208 - 0x06004220
     62 const Gfx mr_i_iris_seg6_dl_06004208[] = {
     63     gsDPPipeSync(),
     64     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mr_i_iris_seg6_texture_06003170),
     65     gsSPBranchList(mr_i_iris_seg6_dl_06004170),
     66 };
     67 
     68 // 0x06004220 - 0x06004238
     69 const Gfx mr_i_iris_seg6_dl_06004220[] = {
     70     gsDPPipeSync(),
     71     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, mr_i_iris_seg6_texture_06003970),
     72     gsSPBranchList(mr_i_iris_seg6_dl_06004170),
     73 };