sm64

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

model.inc.c (7530B)


      1 // 0x0701A270 - 0x0701A2B0
      2 static const Vtx lll_seg7_vertex_0701A270[] = {
      3     {{{  -245,      0,    246}, 0, {     0,    992}, {0x00, 0x7f, 0x00, 0xff}}},
      4     {{{   246,      0,    246}, 0, {   992,    992}, {0x00, 0x7f, 0x00, 0xff}}},
      5     {{{   246,      0,   -245}, 0, {   992,      0}, {0x00, 0x7f, 0x00, 0xff}}},
      6     {{{  -245,      0,   -245}, 0, {     0,      0}, {0x00, 0x7f, 0x00, 0xff}}},
      7 };
      8 
      9 // 0x0701A2B0 - 0x0701A2F0
     10 static const Vtx lll_seg7_vertex_0701A2B0[] = {
     11     {{{  -245,    -45,    246}, 0, {     0,      0}, {0x00, 0x00, 0x00, 0xc8}}},
     12     {{{   246,    -45,    246}, 0, {     0,      0}, {0x00, 0x00, 0x00, 0xc8}}},
     13     {{{   246,    -45,   -245}, 0, {     0,      0}, {0x00, 0x00, 0x00, 0xc8}}},
     14     {{{  -245,    -45,   -245}, 0, {     0,      0}, {0x00, 0x00, 0x00, 0xc8}}},
     15 };
     16 
     17 // 0x0701A2F0 - 0x0701A338
     18 static const Gfx lll_seg7_dl_0701A2F0[] = {
     19     gsDPPipeSync(),
     20     gsDPSetCombineMode(G_CC_MODULATERGB, G_CC_MODULATERGB),
     21     gsSPClearGeometryMode(G_SHADING_SMOOTH),
     22     gsDPSetTile(G_IM_FMT_RGBA, G_IM_SIZ_16b, 0, 0, G_TX_LOADTILE, 0, G_TX_WRAP | G_TX_NOMIRROR, G_TX_NOMASK, G_TX_NOLOD, G_TX_WRAP | G_TX_NOMIRROR, G_TX_NOMASK, G_TX_NOLOD),
     23     gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
     24     gsDPTileSync(),
     25     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),
     26     gsDPSetTileSize(0, 0, 0, (32 - 1) << G_TEXTURE_IMAGE_FRAC, (32 - 1) << G_TEXTURE_IMAGE_FRAC),
     27     gsSPEndDisplayList(),
     28 };
     29 
     30 // 0x0701A338 - 0x0701A388
     31 static const Gfx lll_seg7_dl_0701A338[] = {
     32     gsSPLight(&lll_seg7_lights_0700FC00.l, 1),
     33     gsSPLight(&lll_seg7_lights_0700FC00.a, 2),
     34     gsSPVertex(lll_seg7_vertex_0701A270, 4, 0),
     35     gsSP2Triangles( 0,  1,  2, 0x0,  0,  2,  3, 0x0),
     36     gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
     37     gsDPPipeSync(),
     38     gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
     39     gsSPSetGeometryMode(G_SHADING_SMOOTH),
     40     gsSPEndDisplayList(),
     41 };
     42 
     43 // 0x0701A388 - 0x0701A3B8
     44 const Gfx lll_seg7_dl_0701A388[] = {
     45     gsSPDisplayList(lll_seg7_dl_0701A2F0),
     46     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, lll_seg7_texture_07006000),
     47     gsDPLoadSync(),
     48     gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
     49     gsSPDisplayList(lll_seg7_dl_0701A338),
     50     gsSPEndDisplayList(),
     51 };
     52 
     53 // 0x0701A3B8 - 0x0701A3E8
     54 const Gfx lll_seg7_dl_0701A3B8[] = {
     55     gsSPDisplayList(lll_seg7_dl_0701A2F0),
     56     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, lll_seg7_texture_07006800),
     57     gsDPLoadSync(),
     58     gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
     59     gsSPDisplayList(lll_seg7_dl_0701A338),
     60     gsSPEndDisplayList(),
     61 };
     62 
     63 // 0x0701A3E8 - 0x0701A418
     64 const Gfx lll_seg7_dl_0701A3E8[] = {
     65     gsSPDisplayList(lll_seg7_dl_0701A2F0),
     66     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, lll_seg7_texture_07007000),
     67     gsDPLoadSync(),
     68     gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
     69     gsSPDisplayList(lll_seg7_dl_0701A338),
     70     gsSPEndDisplayList(),
     71 };
     72 
     73 // 0x0701A418 - 0x0701A448
     74 const Gfx lll_seg7_dl_0701A418[] = {
     75     gsSPDisplayList(lll_seg7_dl_0701A2F0),
     76     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, lll_seg7_texture_07007800),
     77     gsDPLoadSync(),
     78     gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
     79     gsSPDisplayList(lll_seg7_dl_0701A338),
     80     gsSPEndDisplayList(),
     81 };
     82 
     83 // 0x0701A448 - 0x0701A478
     84 const Gfx lll_seg7_dl_0701A448[] = {
     85     gsSPDisplayList(lll_seg7_dl_0701A2F0),
     86     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, lll_seg7_texture_07008000),
     87     gsDPLoadSync(),
     88     gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
     89     gsSPDisplayList(lll_seg7_dl_0701A338),
     90     gsSPEndDisplayList(),
     91 };
     92 
     93 // 0x0701A478 - 0x0701A4A8
     94 const Gfx lll_seg7_dl_0701A478[] = {
     95     gsSPDisplayList(lll_seg7_dl_0701A2F0),
     96     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, lll_seg7_texture_07008800),
     97     gsDPLoadSync(),
     98     gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
     99     gsSPDisplayList(lll_seg7_dl_0701A338),
    100     gsSPEndDisplayList(),
    101 };
    102 
    103 // 0x0701A4A8 - 0x0701A4D8
    104 const Gfx lll_seg7_dl_0701A4A8[] = {
    105     gsSPDisplayList(lll_seg7_dl_0701A2F0),
    106     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, lll_seg7_texture_07009000),
    107     gsDPLoadSync(),
    108     gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
    109     gsSPDisplayList(lll_seg7_dl_0701A338),
    110     gsSPEndDisplayList(),
    111 };
    112 
    113 // 0x0701A4D8 - 0x0701A508
    114 const Gfx lll_seg7_dl_0701A4D8[] = {
    115     gsSPDisplayList(lll_seg7_dl_0701A2F0),
    116     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, lll_seg7_texture_07009800),
    117     gsDPLoadSync(),
    118     gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
    119     gsSPDisplayList(lll_seg7_dl_0701A338),
    120     gsSPEndDisplayList(),
    121 };
    122 
    123 // 0x0701A508 - 0x0701A538
    124 const Gfx lll_seg7_dl_0701A508[] = {
    125     gsSPDisplayList(lll_seg7_dl_0701A2F0),
    126     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, lll_seg7_texture_0700A000),
    127     gsDPLoadSync(),
    128     gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
    129     gsSPDisplayList(lll_seg7_dl_0701A338),
    130     gsSPEndDisplayList(),
    131 };
    132 
    133 // 0x0701A538 - 0x0701A568
    134 const Gfx lll_seg7_dl_0701A538[] = {
    135     gsSPDisplayList(lll_seg7_dl_0701A2F0),
    136     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, lll_seg7_texture_0700A800),
    137     gsDPLoadSync(),
    138     gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
    139     gsSPDisplayList(lll_seg7_dl_0701A338),
    140     gsSPEndDisplayList(),
    141 };
    142 
    143 // 0x0701A568 - 0x0701A598
    144 const Gfx lll_seg7_dl_0701A568[] = {
    145     gsSPDisplayList(lll_seg7_dl_0701A2F0),
    146     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, lll_seg7_texture_0700B000),
    147     gsDPLoadSync(),
    148     gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
    149     gsSPDisplayList(lll_seg7_dl_0701A338),
    150     gsSPEndDisplayList(),
    151 };
    152 
    153 // 0x0701A598 - 0x0701A5C8
    154 const Gfx lll_seg7_dl_0701A598[] = {
    155     gsSPDisplayList(lll_seg7_dl_0701A2F0),
    156     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, lll_seg7_texture_0700B800),
    157     gsDPLoadSync(),
    158     gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
    159     gsSPDisplayList(lll_seg7_dl_0701A338),
    160     gsSPEndDisplayList(),
    161 };
    162 
    163 // 0x0701A5C8 - 0x0701A5F8
    164 const Gfx lll_seg7_dl_0701A5C8[] = {
    165     gsSPDisplayList(lll_seg7_dl_0701A2F0),
    166     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, lll_seg7_texture_0700C000),
    167     gsDPLoadSync(),
    168     gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
    169     gsSPDisplayList(lll_seg7_dl_0701A338),
    170     gsSPEndDisplayList(),
    171 };
    172 
    173 // 0x0701A5F8 - 0x0701A628
    174 const Gfx lll_seg7_dl_0701A5F8[] = {
    175     gsSPDisplayList(lll_seg7_dl_0701A2F0),
    176     gsDPSetTextureImage(G_IM_FMT_RGBA, G_IM_SIZ_16b, 1, lll_seg7_texture_0700C800),
    177     gsDPLoadSync(),
    178     gsDPLoadBlock(G_TX_LOADTILE, 0, 0, 32 * 32 - 1, CALC_DXT(32, G_IM_SIZ_16b_BYTES)),
    179     gsSPDisplayList(lll_seg7_dl_0701A338),
    180     gsSPEndDisplayList(),
    181 };
    182 
    183 // 0x0701A628 - 0x0701A670
    184 const Gfx lll_seg7_dl_0701A628[] = {
    185     gsDPPipeSync(),
    186     gsSPClearGeometryMode(G_LIGHTING),
    187     gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
    188     gsSPVertex(lll_seg7_vertex_0701A2B0, 4, 0),
    189     gsSP2Triangles( 0,  1,  2, 0x0,  0,  2,  3, 0x0),
    190     gsDPPipeSync(),
    191     gsSPSetGeometryMode(G_LIGHTING),
    192     gsSPEndDisplayList(),
    193 };