100 lines
11 KiB
Plaintext
100 lines
11 KiB
Plaintext
/********************************************************************************
|
|
RCP_Hmsflag
|
|
[ Aug 29, 1995 ]
|
|
********************************************************************************/
|
|
|
|
/********************************************************************************/
|
|
/* Texture data of flag. */
|
|
/********************************************************************************/
|
|
|
|
static unsigned short flag_txt[] = {
|
|
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
|
|
0x0000, 0x739d, 0xce75, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
|
|
0x0000, 0x739d, 0xce77, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0000, 0x0000,
|
|
0x0000, 0x739d, 0xce77, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0000, 0x0000, 0x0000, 0x0000,
|
|
0x0000, 0x739d, 0xce77, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
|
|
0x0000, 0x739d, 0xce77, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
|
|
0x0000, 0x7bdf, 0xce77, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
|
|
0x0000, 0x739d, 0xce77, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
|
|
0x0000, 0x7bdf, 0xc637, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0035, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
|
|
0x0000, 0x739d, 0xceb7, 0x192b, 0x192d, 0x192d, 0x192d, 0x192d, 0x192d, 0x196b, 0x196b, 0x192d, 0x192d, 0x192d, 0x192d, 0x196d, 0x192d, 0x196d, 0x10ef, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
|
|
0x0000, 0x739d, 0xdef3, 0x8e81, 0x8e81, 0x8e81, 0x8e81, 0x8e81, 0x8e81, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
|
|
0x0000, 0x7bdf, 0xdef3, 0x8e81, 0x8e81, 0x8e81, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
|
|
0x0000, 0x739d, 0xd6f1, 0x8e81, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
|
|
0x0000, 0x739d, 0xdef3, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
|
|
0x0000, 0x739d, 0xdef3, 0x9641, 0x9641, 0x9641, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
|
|
0x0000, 0x739d, 0xdef3, 0x9641, 0x9641, 0x9641, 0x9641, 0x9641, 0x9641, 0x9641, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9681, 0x9641, 0x9641, 0x9641, 0x9641, 0x9641, 0x9641, 0x0000, 0x0000, 0x0000, 0x0000,
|
|
0x0000, 0x739d, 0xdef3, 0x9641, 0x9641, 0x9641, 0x9641, 0x9641, 0x9641, 0x9641, 0x9641, 0x9641, 0x9641, 0x9641, 0x9641, 0x9641, 0x9641, 0x9641, 0x9641, 0x9641, 0x9641, 0x9641, 0x9641, 0x9641, 0x9641, 0x9641, 0x9641, 0x9641, 0x9641, 0x9641, 0x0000, 0x0000,
|
|
0x0000, 0x739d, 0xd6f1, 0x9641, 0x9641, 0x9641, 0x9641, 0x9641, 0x9641, 0x9641, 0x9641, 0x9641, 0x9641, 0x9641, 0x9641, 0x9641, 0x9641, 0x9641, 0x9641, 0x9641, 0x9641, 0x9641, 0x9641, 0x9641, 0x9641, 0x9641, 0x9641, 0x9641, 0x9641, 0x9641, 0x0000, 0x0000,
|
|
0x0000, 0x739d, 0xce73, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
|
|
0x0000, 0x739d, 0xce73, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
|
|
0x0000, 0x739d, 0xce73, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
|
|
0x0000, 0x739d, 0xce73, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
|
|
0x0000, 0x739d, 0xce73, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
|
|
0x0000, 0x739d, 0xce73, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
|
|
0x0000, 0x7bdf, 0xce73, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
|
|
0x0000, 0x739d, 0xce73, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
|
|
0x0000, 0x739d, 0xce73, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
|
|
0x0000, 0x739d, 0xce73, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
|
|
0x0000, 0x739d, 0xce73, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
|
|
0x0000, 0x739d, 0xce73, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
|
|
0x0000, 0x739d, 0xce73, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
|
|
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
|
|
};
|
|
|
|
|
|
/********************************************************************************/
|
|
/* Vertex data. */
|
|
/********************************************************************************/
|
|
|
|
static Vtx vtx_flag[] = {
|
|
{ -37, 0, 0, 0, 0, 990, 255, 255, 255, 255},
|
|
{ 580, 0, 0, 0, 990, 990, 255, 255, 255, 255},
|
|
{ 580, 618, 0, 0, 990, 0, 255, 255, 255, 255},
|
|
{ -37, 618, 0, 0, 0, 0, 255, 255, 255, 255},
|
|
};
|
|
|
|
|
|
/********************************************************************************/
|
|
/* Graphic display list. */
|
|
/********************************************************************************/
|
|
|
|
extern Gfx RCP_flag[] = {
|
|
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_DECALRGBA, G_CC_DECALRGBA),
|
|
gsSPClearGeometryMode(G_LIGHTING | G_CULL_BACK),
|
|
|
|
gsSPTexture(0xffff,0xffff, 0, 0, G_ON),
|
|
|
|
gs_Tani_LoadTextureImage(flag_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 32, 0, 7),
|
|
gs_Tani_SetUpTileDescrip(G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 32, 0, 0,
|
|
G_TX_WRAP|G_TX_NOMIRROR, 5, G_TX_NOLOD,
|
|
G_TX_WRAP|G_TX_NOMIRROR, 5, G_TX_NOLOD),
|
|
|
|
gsSPVertex(&vtx_flag[0], 4, 0),
|
|
gsSP1Triangle(0, 1, 2, 0),
|
|
gsSP1Triangle(0, 2, 3, 0),
|
|
|
|
gsSPTexture(0xffff, 0xffff, 0, 0, G_OFF),
|
|
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
|
|
gsSPSetGeometryMode(G_LIGHTING | G_CULL_BACK),
|
|
gsSPEndDisplayList()
|
|
|
|
};
|
|
|
|
|
|
/********************************************************************************/
|
|
/* Hierarchy map data of flag. */
|
|
/********************************************************************************/
|
|
|
|
Hierarchy RCP_Hmsflag[] = {
|
|
hmsGroup()
|
|
hmsBegin()
|
|
hmsGfx(RM_SPRITE, RCP_flag)
|
|
hmsEnd()
|
|
hmsExit()
|
|
};
|