mirror of https://github.com/pmret/papermario.git
48 lines
1.7 KiB
C
48 lines
1.7 KiB
C
#include "common.h"
|
|
|
|
#include "entity/model/YellowBlock.vtx.inc.c"
|
|
|
|
#include "entity/model/YellowBlock_face.png.inc.c"
|
|
Gfx Entity_YellowBlock_LoadTexture[] = {
|
|
gsDPSetTextureLUT(G_TT_NONE),
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
gsDPSetTextureDetail(G_TD_CLAMP),
|
|
gsDPSetTextureLOD(G_TL_TILE),
|
|
gsDPLoadTextureBlock(D_0A000180_E3B9F0, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 32, 0, G_TX_MIRROR | G_TX_WRAP, G_TX_MIRROR | G_TX_WRAP, 5, 5, G_TX_NOLOD, G_TX_NOLOD),
|
|
gsDPSetTexturePersp(G_TP_PERSP),
|
|
gsDPSetTextureFilter(G_TF_BILERP),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
Gfx Entity_YellowBlock_RenderTopBottom[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetCycleType(G_CYC_1CYCLE),
|
|
gsSPDisplayList(Entity_YellowBlock_LoadTexture),
|
|
gsSPClearGeometryMode(G_LIGHTING),
|
|
gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
|
|
gsSPVertex(&D_0A000000_E3B870[16], 8, 0),
|
|
gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
|
|
gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
Gfx Entity_YellowBlock_RenderSides[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetCycleType(G_CYC_1CYCLE),
|
|
gsSPDisplayList(Entity_YellowBlock_LoadTexture),
|
|
gsSPClearGeometryMode(G_LIGHTING),
|
|
gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
|
|
gsSPVertex(&D_0A000000_E3B870[0], 16, 0),
|
|
gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
|
|
gsSP2Triangles(4, 5, 6, 0, 4, 6, 7, 0),
|
|
gsSP2Triangles(8, 9, 10, 0, 8, 10, 11, 0),
|
|
gsSP2Triangles(12, 13, 14, 0, 12, 14, 15, 0),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
Gfx Entity_YellowBlock_Render[] = {
|
|
gsSPDisplayList(Entity_YellowBlock_RenderSides),
|
|
gsSPDisplayList(Entity_YellowBlock_RenderTopBottom),
|
|
gsSPEndDisplayList(),
|
|
};
|