/* 
 * 変換日付 Wed Nov 17 18:33:47 1999
 * 1999/11/8 バージョン
 * パレット有効
 * XXコードの頂点破棄
 * 使用テキスチャ─チェック
 * 頂点カラーを評価しない
 * ビュア─の設定対応
 */
#include <mbi.h>
#include <u64macro.h>

extern unsigned char hi_light_txt[];
extern Mtx	softsprite_mtx;
static unsigned short obj_umbrella_pal[16];
/* texture = 1 */
static unsigned char obj_umbrella_tex[512];

/* ビュア─設定のパレット */
/* ビュア─設定のテキスチャ─ */
/* vretex = 4 */
static Vtx obj_umbrella_v[] = {
/* 0番目 */ {-2000, 2000, -1964,    0,    0,    0,  -28,  112,   32,  168},
/* 1番目 */ {-2000,    0, 1500,    0,    0, 1024,  -28,   83,   81,  168},
/* 2番目 */ {2000,    0, 1500,    0, 1024, 1024,   28,   83,   81,  168},
/* 3番目 */ {2000, 2000, -1964,    0, 1024,    0,   28,  112,   32,  168},

};

extern Gfx	umbrella_DL_mode[] = {
 /* obj_umbrellaT_1_mtr */
	gsSPTexture(0xFFFF, 0xFFFF, 0, 0, G_ON),
/* repeat = (1,1)  mirror = (1,1) clamp = (1,1) */
	gsDPPipeSync(),
	/* 各種設定 */
	gsDPSetOtherModeHL(G_PM_NPRIMITIVE |	/* gDPPipelineMode */
			   G_CYC_2CYCLE |	/* gDPSetCycleType */
			   G_TP_PERSP |		/* gDPSetTexturePersp */
			   G_TD_CLAMP |		/* gDPSetTextureDetail */
			   G_TL_TILE |		/* gDPSetTextureLOD */
			   G_TT_RGBA16 |	/* gDPSetTextureLUT */
			   G_TF_BILERP |	/* gDPSetTextureFilter */
			   G_TC_FILT |		/* gDPSetTextureConvert */
			   G_CK_NONE |		/* gDPSetCombineKey */
			   G_CD_MAGICSQ |	/* gDPSetColorDither */
			   G_AD_NOTPATTERN,	/* gDPSetAlphaDither */
			   G_AC_NONE |		/* gDPSetAlphaCompare */
			   G_ZS_PIXEL |		/* gDPSetDepthSource */
			   G_RM_FOG_SHADE_A |	/* gDPSetRenderMode */
			   G_RM_AA_ZB_TEX_EDGE2
	),
	gsDPSetCombineLERP(
		TEXEL0, 0, SHADE, 0,
		0, 0, 0, TEXEL0,
		PRIMITIVE, 0, COMBINED, 0,
		0, 0, 0, COMBINED),
	gsDPLoadTLUT_pal16(15,obj_umbrella_pal),
	gsDPLoadTextureBlock_4b(
			obj_umbrella_tex,
			G_IM_FMT_CI,
			32, 32, 15,
			G_TX_MIRROR | G_TX_CLAMP, G_TX_MIRROR | G_TX_CLAMP,
			5, 5, 0, 0),
	gsDPSetPrimColor( 0, 128, 255, 255, 255, 255),
/* obj_umbrellaT_1 */
	gsSPLoadGeometryMode(G_LIGHTING | G_CULL_BACK | G_FOG | G_SHADE | G_SHADING_SMOOTH | G_ZBUFFER),
	gsSPEndDisplayList(),
};

extern Gfx	umbrella_DL_vtx[] = {
	gsSPVertex(&obj_umbrella_v[0],4,0),
	gsSPCullDisplayList(0, 3),
	gsSP2Triangles( 0, 1, 2, 0, 0, 2, 3, 0 ),
	gsSPEndDisplayList(),
};

static unsigned short obj_umbrella_pal[] = {
0x013a,0x2b3b,0x123b,0x013b,0x00f1,0x00a9,0x00ad,0xffff,
0x95f1,0x42d9,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
};
static unsigned char obj_umbrella_tex[] = {
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x11,0x12,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x23,0x33,0x20,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x13,0x30,0x03,0x40,
0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x10,0x00,0x02,0x33,0x00,0x03,0x40,
0x00,0x00,0x00,0x00,0x00,0x00,0x11,0x10,0x01,0x20,0x00,0x33,0x30,0x00,0x33,0x40,
0x00,0x00,0x00,0x00,0x00,0x00,0x12,0x11,0x12,0x50,0x08,0x73,0x00,0x00,0x44,0x00,
0x00,0x00,0x00,0x00,0x00,0x01,0x22,0x11,0x25,0x50,0x87,0x90,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x01,0x22,0x11,0x35,0x44,0x49,0x33,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x12,0x21,0x13,0x54,0x43,0x32,0x24,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x22,0x21,0x24,0x44,0x33,0x22,0x45,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x01,0x22,0x12,0x44,0x43,0x32,0x34,0x55,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x02,0x22,0x14,0x44,0x33,0x23,0x55,0x55,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x22,0x21,0x34,0x43,0x32,0x45,0x55,0x56,0x60,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x22,0x23,0x44,0x33,0x24,0x55,0x56,0x66,0x64,0x40,0x00,0x00,
0x00,0x00,0x00,0x02,0x22,0x24,0x43,0x33,0x45,0x55,0x66,0x64,0x44,0x00,0x00,0x00,
0x00,0x00,0x00,0x02,0x21,0x44,0x33,0x35,0x55,0x66,0x44,0x44,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x22,0x24,0x43,0x34,0x55,0x66,0x44,0x44,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x22,0x34,0x33,0x45,0x66,0x44,0x44,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x02,0x23,0x33,0x34,0x66,0x44,0x44,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x02,0x23,0x33,0x46,0x44,0x44,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x22,0x33,0x44,0x44,0x44,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x23,0x34,0x44,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x02,0x33,0x44,0x44,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x02,0x34,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x23,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x01,0x23,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x02,0x20,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
}; /* obj_umbrella_tex */


