mirror of https://github.com/pmret/papermario.git
50 lines
1.7 KiB
C
50 lines
1.7 KiB
C
#include "common.h"
|
|
|
|
#include "entity/model/BrickBlock.vtx.inc.c"
|
|
|
|
#include "entity/model/BrickBlock_face.png.inc.c"
|
|
#include "entity/model/BrickBlock_face.pal.inc.c"
|
|
Gfx Entity_BrickBlock_LoadTexture[] = {
|
|
gsSPTexture(0xFFFF, 0xFFFF, 0, G_TX_RENDERTILE, G_ON),
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_MODULATEIA, G_CC_MODULATEIA),
|
|
gsDPSetTextureDetail(G_TD_CLAMP),
|
|
gsDPSetTextureLOD(G_TL_TILE),
|
|
gsDPLoadTextureBlock_4b(D_0A000140_E3DEF0, G_IM_FMT_CI, 32, 32, 0, G_TX_NOMIRROR | G_TX_WRAP, G_TX_NOMIRROR | G_TX_WRAP, 5, 5, G_TX_NOLOD, G_TX_NOLOD),
|
|
gsDPSetTexturePersp(G_TP_PERSP),
|
|
gsDPSetTextureLUT(G_TT_RGBA16),
|
|
gsDPLoadTLUT_pal16(0, D_0A000340_E3E0F0),
|
|
gsDPSetTextureFilter(G_TF_BILERP),
|
|
gsDPSetTextureConvert(G_TC_FILT),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
Gfx Entity_BrickBlock_InitTexture[] = {
|
|
gsDPPipeSync(),
|
|
gsDPSetCycleType(G_CYC_1CYCLE),
|
|
gsDPSetRenderMode(G_RM_AA_ZB_OPA_SURF, G_RM_AA_ZB_OPA_SURF2),
|
|
gsSPDisplayList(Entity_BrickBlock_LoadTexture),
|
|
gsSPSetGeometryMode(G_CULL_BACK | G_SHADING_SMOOTH),
|
|
gsSPClearGeometryMode(G_LIGHTING),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
Gfx Entity_BrickBlock_RenderFaces[] = {
|
|
gsSPDisplayList(Entity_BrickBlock_InitTexture),
|
|
gsSPVertex(D_0A000000_E3DDB0, 4, 0),
|
|
gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
|
|
gsSPVertex(&D_0A000000_E3DDB0[4], 16, 0),
|
|
gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
|
|
gsSP2Triangles(0, 3, 4, 0, 0, 4, 5, 0),
|
|
gsSP2Triangles(6, 7, 8, 0, 6, 8, 9, 0),
|
|
gsSP2Triangles(10, 11, 2, 0, 10, 2, 1, 0),
|
|
gsSP2Triangles(12, 13, 14, 0, 12, 14, 15, 0),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|
|
Gfx Entity_BrickBlock_Render[] = {
|
|
gsSPDisplayList(Entity_BrickBlock_RenderFaces),
|
|
gsSPEndDisplayList(),
|
|
};
|
|
|