Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
MorsGames
GitHub Repository: MorsGames/sm64plus
Path: blob/master/actors/bubble/model.inc.c
7855 views
1
// Bubble
2
3
// 0x0401CD20
4
static const Vtx bubble_seg4_vertex_0401CD20[] = {
5
{{{ -16, 0, 0}, 0, { 0, 992}, {0xff, 0xff, 0xff, 0xff}}},
6
{{{ 16, 0, 0}, 0, { 992, 992}, {0xff, 0xff, 0xff, 0xff}}},
7
{{{ 16, 32, 0}, 0, { 992, 0}, {0xff, 0xff, 0xff, 0xff}}},
8
{{{ -16, 32, 0}, 0, { 0, 0}, {0xff, 0xff, 0xff, 0xff}}},
9
};
10
11
// 0x0401CD60
12
ALIGNED8 static const Texture bubble_seg4_texture_0401CD60[] = {
13
#include "actors/bubble/bubble.rgba16.inc.c"
14
};
15
16
// 0x0401D560
17
ALIGNED8 static const Texture bubble_seg4_texture_0401D560[] = {
18
#include "actors/bubble/mr_i_bubble.rgba16.inc.c"
19
};
20
21
// 0x0401DD60 - 0x0401DDE0
22
const Gfx bubble_seg4_dl_0401DD60[] = {
23
gsDPPipeSync(),
24
gsDPSetCombineMode(G_CC_DECALRGBA, G_CC_DECALRGBA),
25
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
26
gsDPLoadTextureBlock(bubble_seg4_texture_0401CD60, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 32, 0, G_TX_CLAMP, G_TX_CLAMP, 5, 5, G_TX_NOLOD, G_TX_NOLOD),
27
gsSPVertex(bubble_seg4_vertex_0401CD20, 4, 0),
28
gsSP2Triangles( 0, 1, 2, 0x0, 0, 2, 3, 0x0),
29
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_OFF),
30
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
31
gsSPEndDisplayList(),
32
};
33
34
// 0x0401DDE0 - 0x0401DE60
35
const Gfx bubble_seg4_dl_0401DDE0[] = {
36
gsDPPipeSync(),
37
gsDPSetCombineMode(G_CC_DECALRGBA, G_CC_DECALRGBA),
38
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
39
gsDPLoadTextureBlock(bubble_seg4_texture_0401D560, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 32, 0, G_TX_CLAMP, G_TX_CLAMP, 5, 5, G_TX_NOLOD, G_TX_NOLOD),
40
gsSPVertex(bubble_seg4_vertex_0401CD20, 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