84 lines
11 KiB
Plaintext
84 lines
11 KiB
Plaintext
/********************************************************************************
|
|
RCP_stone
|
|
[ Jun 24 1996 ]
|
|
********************************************************************************/
|
|
|
|
#define Stone_RED 255
|
|
#define Stone_GREEN 255
|
|
#define Stone_BLUE 255
|
|
#define Stone_ALPHA 255
|
|
|
|
|
|
/********************************************************************************/
|
|
/* Vertex data. */
|
|
/********************************************************************************/
|
|
static Vtx vtx_stone[] = {
|
|
{ -15, -15, 0, 0, 0<<5, 31<<5, Stone_RED, Stone_GREEN, Stone_BLUE, Stone_ALPHA },
|
|
{ 15, -15, 0, 0, 31<<5, 31<<5, Stone_RED, Stone_GREEN, Stone_BLUE, Stone_ALPHA },
|
|
{ 15, 15, 0, 0, 31<<5, 0<<5, Stone_RED, Stone_GREEN, Stone_BLUE, Stone_ALPHA },
|
|
{ -15, 15, 0, 0, 0<<5, 0<<5, Stone_RED, Stone_GREEN, Stone_BLUE, Stone_ALPHA },
|
|
};
|
|
|
|
/********************************************************************************/
|
|
/* Texture data. */
|
|
/********************************************************************************/
|
|
static unsigned short stone_txt[] = {
|
|
0xce72, 0xb5ac, 0xb5ac, 0xc630, 0xce72, 0xd6b4, 0xce72, 0xbdee, 0xc630, 0xc630, 0xbdee, 0xbdee, 0xc630, 0xce72, 0xd6b4, 0xce72, 0xc630, 0xce72, 0xce72, 0xc630, 0xbdee, 0xad6a, 0xad6a, 0xa528, 0x9ce6, 0x9ce6, 0xa528, 0xa528, 0xa528, 0x8c62, 0x8420, 0x9ce6,
|
|
0xc630, 0xce72, 0xc630, 0xc630, 0xbdee, 0xce72, 0xce72, 0xc630, 0xd6b4, 0xd6b4, 0xd6b4, 0xdef6, 0xd6b4, 0xdef6, 0xd6b4, 0xce72, 0xd6b4, 0xd6b4, 0xc630, 0xbdee, 0xbdee, 0xb5ac, 0xb5ac, 0xb5ac, 0xad6a, 0xa528, 0x9ce6, 0x9ce6, 0xa528, 0x9ce6, 0x94a4, 0xa528,
|
|
0xad6a, 0xce72, 0xc630, 0xce72, 0xc630, 0xce72, 0xc630, 0xd6b4, 0xe738, 0xd6b4, 0xce72, 0xdef6, 0xdef6, 0xe738, 0xdef6, 0xdef6, 0xdef6, 0xce72, 0xb5ac, 0xc630, 0xbdee, 0xbdee, 0xa528, 0xad6a, 0xb5ac, 0xa528, 0x9ce6, 0xa528, 0x94a4, 0x8c62, 0x8c62, 0x8420,
|
|
0xce72, 0xce72, 0xc630, 0xd6b4, 0xd6b4, 0xd6b4, 0xd6b4, 0xe738, 0xe738, 0xd6b4, 0xe738, 0xef7a, 0xe738, 0xe73a, 0xef7a, 0xe738, 0xef7a, 0xdef6, 0xce72, 0xd6b4, 0xc630, 0xc630, 0xad6a, 0xa528, 0xa528, 0xa528, 0xa528, 0x9ce6, 0x94a4, 0x8c62, 0x9ce6, 0x9ce6,
|
|
0xe738, 0xc630, 0xce72, 0xdef6, 0xdef6, 0xdef6, 0xe738, 0xdef6, 0xef7a, 0xef7a, 0xf7bc, 0xfffe, 0xfffe, 0xef7c, 0xfffe, 0xf7bc, 0xf7bc, 0xe739, 0xdef7, 0xdef7, 0xd6b5, 0xce73, 0xce73, 0xb5ad, 0xa529, 0x9ce6, 0x9ce6, 0xa528, 0x9ce6, 0x9ce6, 0xa528, 0xa528,
|
|
0xd6b4, 0xbdee, 0xc630, 0xdef6, 0xe738, 0xef7a, 0xef7a, 0xe738, 0xe738, 0xf7bc, 0xfffe, 0xfffe, 0xfffe, 0xe738, 0xf7bc, 0xfffd, 0xf7bd, 0xef7b, 0xe739, 0xd6b5, 0xd6b5, 0xdef7, 0xdef7, 0xce73, 0xc631, 0xb5ad, 0x94a4, 0x9ce6, 0x9ce6, 0xa528, 0x9ce6, 0xa528,
|
|
0xce72, 0xce72, 0xce72, 0xdef6, 0xd6b4, 0xd6b4, 0xdef6, 0xef7a, 0xef7a, 0xf7bc, 0xf7bc, 0xf7bc, 0xf7bc, 0xef7b, 0xef7b, 0xf7bd, 0xf7bd, 0xf7bd, 0xf7bd, 0xdef7, 0xd673, 0xdef7, 0xe739, 0xdef7, 0xce73, 0xbdef, 0x94a5, 0x8c62, 0x9ce6, 0xad6a, 0x9ce6, 0xa528,
|
|
0xc630, 0xc630, 0xd6b4, 0xd6b4, 0xd6b4, 0xd6b2, 0xe738, 0xf7bc, 0xf7bd, 0xef7b, 0xef7b, 0xf7bd, 0xffff, 0xf7bd, 0xf7bd, 0xf7bd, 0xe739, 0xce73, 0xd6b5, 0xd6b5, 0xd6b5, 0xdef7, 0xdef7, 0xdef7, 0xce73, 0xb5ad, 0x9ce7, 0x8c63, 0x8c62, 0xa528, 0xad6a, 0xad6a,
|
|
0xc630, 0xc630, 0xd6b4, 0xd6b4, 0xe738, 0xdf36, 0xef7b, 0xf7bd, 0xf7bd, 0xf7bd, 0xef7b, 0xef7b, 0xef7b, 0xef7d, 0xf7bd, 0xf7bb, 0xe739, 0xd6b5, 0xdef7, 0xd6b5, 0xd6b5, 0xe739, 0xd6f5, 0xc631, 0xbdef, 0xadab, 0x9ce7, 0x8421, 0x8420, 0xa528, 0xa528, 0xa528,
|
|
0xce72, 0xce72, 0xce72, 0xce72, 0xdef6, 0xe737, 0xe739, 0xe739, 0xe739, 0xef7b, 0xef7b, 0xf7bd, 0xe739, 0xe739, 0xf7bd, 0xf7bd, 0xe739, 0xdeb5, 0xd6b5, 0xe739, 0xdef7, 0xce73, 0xb5ad, 0x9ca5, 0xad2b, 0xbe31, 0xbdef, 0x94a5, 0x739d, 0x739c, 0xad28, 0xc630,
|
|
0xbdee, 0xc630, 0xce72, 0xce72, 0xd6b5, 0xdf37, 0xef7b, 0xe739, 0xe739, 0xe739, 0xe739, 0xf7bd, 0xef7b, 0xdef7, 0xe739, 0xf77b, 0xd6b5, 0xdef7, 0xd6b5, 0xe73b, 0xdeb5, 0xbdef, 0x94a5, 0x94a5, 0xad6b, 0xc631, 0xbdef, 0x8421, 0x6319, 0x6b5a, 0xa528, 0xa528,
|
|
0xc630, 0xce72, 0xd6b4, 0xd6b6, 0xd6b5, 0xdef7, 0xe739, 0xef7b, 0xf7bb, 0xffbf, 0xf7bd, 0xf7bd, 0xf7bd, 0xe739, 0xd6b7, 0xe739, 0xdef7, 0xd6b5, 0xce75, 0xceb5, 0xce73, 0xb5ad, 0x94a5, 0x9d29, 0xb5ad, 0xad6b, 0x9ce7, 0x5ad7, 0x5295, 0x6b9c, 0xa52a, 0xb5ac,
|
|
0xbdee, 0xc630, 0xc630, 0xd6b5, 0xdef7, 0xe6f7, 0xe739, 0xe739, 0xe739, 0xf7bd, 0xf7bd, 0xf7bd, 0xf7bd, 0xef7b, 0xd6b7, 0xdef7, 0xd6b5, 0xb5ed, 0xad6b, 0xb5ad, 0xb5ad, 0x94a5, 0x9ce7, 0xbdef, 0xbdef, 0xad6b, 0x8c63, 0x4a93, 0x4a53, 0x6b9c, 0xb5ee, 0xd6b4,
|
|
0x9ce6, 0xc630, 0xc630, 0xc62f, 0xce73, 0xdef7, 0xe6f7, 0xe739, 0xe739, 0xe739, 0xf7bd, 0xef7b, 0xf7bd, 0xef7b, 0xef7b, 0xdef7, 0xdef7, 0xb5ad, 0x9ce7, 0x8421, 0x8421, 0x8c63, 0xb5ad, 0xce73, 0xc631, 0x8c63, 0x6319, 0x39cf, 0x4a53, 0x739c, 0xbdee, 0xd6b4,
|
|
0x9ce6, 0xad6a, 0xad6a, 0xad6b, 0xc631, 0xd675, 0xdef7, 0xe739, 0xe739, 0xe739, 0xefbd, 0xe739, 0xe739, 0xf7bd, 0xef7b, 0xef7b, 0xdef7, 0xce73, 0x94a5, 0x8463, 0x5ad7, 0x739d, 0xa529, 0xad6b, 0xa529, 0x7bdf, 0x4a53, 0x39cf, 0x5295, 0x8420, 0xc630, 0xdef6,
|
|
0xa528, 0x9ce6, 0xa528, 0x9ce7, 0xb5ad, 0xbdef, 0xd675, 0xdef7, 0xe739, 0xe737, 0xef7b, 0xe739, 0xef7b, 0xf7bd, 0xf7bd, 0xf7bd, 0xef7b, 0xe739, 0xbdef, 0x8c63, 0x6319, 0x5295, 0x6b19, 0x739d, 0x6b5b, 0x5295, 0x39cf, 0x39cf, 0x5ad7, 0x94a4, 0xc670, 0xdef6,
|
|
0x9ce6, 0x9ca6, 0xa528, 0xa529, 0xad6b, 0xad6b, 0xbdef, 0xce73, 0xdef7, 0xd6b5, 0xce73, 0xc631, 0xdef7, 0xef7b, 0xe739, 0xef7b, 0xef7b, 0xe739, 0xce73, 0x94e7, 0x5ad7, 0x4a93, 0x4a53, 0x4a53, 0x4a53, 0x4211, 0x39cf, 0x4211, 0x6319, 0xa528, 0xce72, 0xce72,
|
|
0x9ce6, 0x94a4, 0x94a4, 0x9ce7, 0xa529, 0x9ce9, 0xad6b, 0xb5ad, 0xce73, 0xb5ad, 0xbdef, 0xa529, 0xbdef, 0xc631, 0xc631, 0xc631, 0xdef7, 0xc631, 0x9ce7, 0x6b5b, 0x4a95, 0x4253, 0x4211, 0x39cf, 0x39cf, 0x39cf, 0x4211, 0x5293, 0x6b5a, 0x9ce6, 0xb5ac, 0xb5ac,
|
|
0x9ce6, 0x9ce6, 0x94a4, 0x94a5, 0x9ce7, 0x9ce7, 0xa529, 0xa52b, 0xbdef, 0xa529, 0xad6b, 0x9ce7, 0xa529, 0xad6b, 0xb5ad, 0xad6b, 0x9ce7, 0x7bdf, 0x5ad7, 0x4211, 0x39cf, 0x39cf, 0x39cf, 0x39cf, 0x39cf, 0x39cf, 0x4a11, 0x6319, 0x7bde, 0x9ce6, 0xb5ac, 0xbdee,
|
|
0x94a4, 0x94a4, 0x94a4, 0x8c63, 0x8c65, 0x94e7, 0xa529, 0xb5ad, 0xad6d, 0xad6b, 0xa529, 0x9ce7, 0x94a5, 0x8c63, 0x8c61, 0x8423, 0x6b5b, 0x4a53, 0x4211, 0x39cf, 0x39cf, 0x39cf, 0x4211, 0x4211, 0x4211, 0x39cf, 0x4a53, 0x6b5a, 0x8420, 0x9ce6, 0xb5ac, 0xc630,
|
|
0x7bde, 0x8420, 0x8c62, 0x8ca2, 0x8c63, 0x94a5, 0xa529, 0xb5ab, 0xc631, 0xc631, 0xb5ad, 0x9ce7, 0x8c63, 0x7bdf, 0x6319, 0x6319, 0x4a53, 0x39cf, 0x39cf, 0x4211, 0x4a53, 0x4211, 0x39cf, 0x4211, 0x4a53, 0x4a53, 0x5295, 0x6318, 0x739c, 0x8ca4, 0xa528, 0xa528,
|
|
0x8420, 0x8420, 0x739c, 0x7bde, 0x8421, 0x8c63, 0x9ce7, 0x94e7, 0xa529, 0xbdef, 0xbdef, 0xa529, 0x8421, 0x6b5b, 0x6b5b, 0x6319, 0x4a53, 0x4211, 0x4211, 0x4a53, 0x5295, 0x4a53, 0x39cf, 0x39cf, 0x4a53, 0x5295, 0x5ad6, 0x6318, 0x6318, 0x6b5a, 0x8420, 0x8c62,
|
|
0x7bde, 0x8420, 0x735a, 0x739a, 0x8420, 0x8421, 0x8c63, 0x8c63, 0x8c63, 0x94a5, 0xa529, 0xa529, 0x8c63, 0x5ad7, 0x6319, 0x6319, 0x5295, 0x4a53, 0x4a95, 0x5295, 0x5ad7, 0x4a53, 0x4a53, 0x5295, 0x5ad7, 0x5ad6, 0x6318, 0x5ad6, 0x5ad6, 0x6318, 0x739c, 0x8420,
|
|
0x739c, 0x739c, 0x739c, 0x739c, 0x8420, 0x94a2, 0x8463, 0x8421, 0x8423, 0x8421, 0x94a5, 0x94a5, 0x9ce7, 0x6b5b, 0x6b5b, 0x6b5b, 0x6319, 0x5295, 0x5ad7, 0x5ad7, 0x5295, 0x4a53, 0x5295, 0x5ad7, 0x6318, 0x6318, 0x5294, 0x4a52, 0x5294, 0x6318, 0x739c, 0x8420,
|
|
0x8420, 0x6318, 0x739c, 0x739c, 0x7bde, 0x8420, 0x8420, 0x94a5, 0x8c63, 0x83e1, 0x8c63, 0x8c21, 0x7bdf, 0x739d, 0x7bdf, 0x7bdf, 0x6b5b, 0x5ad7, 0x5ad7, 0x5ad7, 0x4a53, 0x4211, 0x4a53, 0x5ad7, 0x6b5a, 0x6b5a, 0x5294, 0x4a52, 0x5294, 0x6318, 0x6318, 0x6b5a,
|
|
0x7bde, 0x739c, 0x7bde, 0x739c, 0x6b5a, 0x7bde, 0x8c62, 0x83e0, 0x8420, 0x8421, 0x7bdf, 0x7bdf, 0x7bdf, 0x739d, 0x6b5b, 0x6b5b, 0x6b5b, 0x5ad7, 0x5295, 0x5255, 0x4a53, 0x4211, 0x4a53, 0x6318, 0x739d, 0x6b5a, 0x5294, 0x4210, 0x5294, 0x5ad6, 0x5ad6, 0x739c,
|
|
0x8420, 0x7bde, 0x7bde, 0x8420, 0x6b5a, 0x6318, 0x739c, 0x739c, 0x7bde, 0x739c, 0x739d, 0x6b5b, 0x739d, 0x7bdf, 0x6b5b, 0x6b5b, 0x6319, 0x5ad7, 0x5295, 0x5255, 0x5295, 0x5ad7, 0x5294, 0x6319, 0x6b5b, 0x6318, 0x5294, 0x4a52, 0x5294, 0x5294, 0x5ad6, 0x6318,
|
|
0x739c, 0x7bde, 0x8420, 0x8c62, 0x8c62, 0x739c, 0x6b5a, 0x7bde, 0x8420, 0x8420, 0x8420, 0x7bde, 0x8421, 0x7bdf, 0x6b5b, 0x5ad7, 0x5ad7, 0x5ad7, 0x5ad7, 0x5ad7, 0x6319, 0x6b5a, 0x5294, 0x5295, 0x5294, 0x4a52, 0x39ce, 0x4210, 0x5294, 0x6b5a, 0x7bde, 0x739c,
|
|
0x8420, 0x739c, 0x7bde, 0x8c62, 0x8420, 0x739c, 0x6b5a, 0x7bde, 0x8420, 0x8c62, 0x8420, 0x7bde, 0x7bde, 0x6b5a, 0x6318, 0x5ad6, 0x5294, 0x6318, 0x6b5a, 0x739c, 0x8c62, 0x8c62, 0x6318, 0x5ad6, 0x5294, 0x4a52, 0x4a52, 0x5ad6, 0x5ad6, 0x739c, 0x8420, 0x8420,
|
|
0x7bde, 0x7bde, 0x8420, 0x8420, 0x8c62, 0x8420, 0x739c, 0x739c, 0x7bde, 0x8420, 0x8420, 0x7bde, 0x739c, 0x6318, 0x6318, 0x6318, 0x6b5a, 0x7bde, 0x8c62, 0x9ce6, 0x9ce6, 0x8c62, 0x5ad6, 0x5ad6, 0x5ad6, 0x5294, 0x5294, 0x6318, 0x5ad6, 0x6b5a, 0x6b5a, 0x739c,
|
|
0x8420, 0x7bde, 0x739c, 0x7bde, 0x739c, 0x8420, 0x6b5a, 0x739c, 0x5ad6, 0x6b5a, 0x6b5a, 0x739c, 0x6b5a, 0x6318, 0x6318, 0x5294, 0x6b5a, 0x8c62, 0x8c62, 0x94a4, 0x8c62, 0x739c, 0x5ad6, 0x6318, 0x6b5a, 0x6318, 0x6318, 0x739c, 0x6318, 0x739c, 0x7bde, 0x94a4,
|
|
0x94a4, 0x94a4, 0x6b5a, 0x7bde, 0x7bde, 0x8c62, 0x739c, 0x7bde, 0x4210, 0x5294, 0x5294, 0x5294, 0x4a52, 0x4a52, 0x4a52, 0x4210, 0x6b5a, 0x739c, 0x739c, 0x8420, 0x739c, 0x739c, 0x5ad6, 0x6318, 0x5294, 0x6b5a, 0x6b5a, 0x739c, 0x739c, 0x7bde, 0x739c, 0x8c62,
|
|
};
|
|
|
|
/********************************************************************************/
|
|
/* Graphic display list. */
|
|
/********************************************************************************/
|
|
Gfx RCP_stone[] = {
|
|
gsDPPipeSync(),
|
|
gsSPClearGeometryMode(G_LIGHTING),
|
|
gsDPSetCombineMode(G_CC_DECALRGBA, G_CC_DECALRGBA),
|
|
gsDPLoadTextureBlock(stone_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 32, 32, 0,
|
|
G_TX_CLAMP|G_TX_NOMIRROR, G_TX_CLAMP|G_TX_NOMIRROR,
|
|
5, 5, G_TX_NOLOD, G_TX_NOLOD),
|
|
|
|
gsSPTexture(0xffff, 0xffff, 0, G_TX_RENDERTILE, G_ON),
|
|
|
|
gsSPVertex(&vtx_stone[0], 4, 0),
|
|
gsSP1Triangle(0, 1, 2, 0),
|
|
gsSP1Triangle(0, 2, 3, 0),
|
|
|
|
gsSPTexture(0xffff, 0xffff, 0, G_TX_RENDERTILE, G_OFF),
|
|
gsDPPipeSync(),
|
|
gsDPSetCombineMode(G_CC_SHADE, G_CC_SHADE),
|
|
gsSPSetGeometryMode(G_LIGHTING),
|
|
gsSPEndDisplayList()
|
|
};
|
|
|