#include<ultra64.h>

extern Vtx c0_kanno_v[];
extern Vtx c0_kanno_vmcur[];
extern Tri c0_kanno_tri[];
extern Lights1 c0_kanno_material[];
extern Mtx c0_kanno_matrix[];

extern unsigned short beach_br_txt[];
extern unsigned short check_f1_txt[];
extern unsigned short check_f2_txt[];
extern unsigned short cross1_txt[];
extern unsigned short goal_f1_txt[];
extern unsigned short goal_f2_txt[];
extern unsigned short green1_2_txt[];
extern unsigned short green_d_txt[];
extern unsigned short pole2_txt[];
extern unsigned short rock_2_2_txt[];
extern unsigned short rock_3_txt[];
extern unsigned short roof_gr1_txt[];
extern unsigned short roof_gr2_txt[];
extern unsigned short sabitetu1_txt[];
extern unsigned short saku1_txt[];
extern unsigned short start_f1_txt[];
extern unsigned short start_f2_txt[];
extern unsigned short tree1_txt[];
extern unsigned short tube_l1_2_txt[];
extern unsigned short tube_light1_txt[];
extern unsigned short tube_light2_txt[];
extern unsigned short wall13_tw_2_txt[];
extern unsigned short wall17_d_txt[];
extern unsigned short wall_bk1_txt[];
extern unsigned short wall_bk2_txt[];
extern unsigned short wall_br1_txt[];
extern unsigned short wall_gr2_txt[];
extern unsigned short wall_gr4_txt[];
extern unsigned short wall_rock_2_txt[];
extern unsigned short wall_wd1_txt[];
extern unsigned short wall_wd2_txt[];
extern unsigned short wall_wd3_2_txt[];
extern unsigned short wall_wd4_txt[];
extern unsigned short wall_wh1_txt[];
extern unsigned short wave_f1_txt[];
extern unsigned short wave_f2_txt[];
extern unsigned short window_a1_txt[];
extern unsigned short window_a2_txt[];
extern unsigned short window3_txt[];
extern unsigned short road1_txt[];
extern unsigned short b_nin64_6_txt[];
extern unsigned short b_wave_1_txt[];
extern unsigned short cm_js1_1_txt[];
extern unsigned short cm_js1_2_txt[];
extern unsigned short cm_js2_1_txt[];
extern unsigned short cm_js2_2_txt[];
extern unsigned short cm_kw1_1_txt[];
extern unsigned short cm_kw2_1_txt[];
extern unsigned short cm_kw2_2_txt[];
extern unsigned short cm_kw3_1_txt[];
extern unsigned short cm_kw3_2_txt[];
extern unsigned short cm_kw4_1_txt[];
extern unsigned short cm_kw4_2_txt[];
extern unsigned short cm_kw5_1_txt[];
extern unsigned short cm_kw5_2_txt[];
extern unsigned short cm_kz1_1_txt[];
extern unsigned short cm_kz1_2_txt[];
extern unsigned short corner_flag1_txt[];
extern unsigned short display_txt[];
extern unsigned short fence8_txt[];
extern unsigned short fence9_txt[];
extern unsigned short fence_bw_txt[];
extern unsigned short fence_by_txt[];
extern unsigned short fence_gr_txt[];
extern unsigned short fence_pole1_txt[];
extern unsigned short fence_pole2_txt[];
extern unsigned short fence_rw_txt[];
extern unsigned short i_beach_txt[];
extern unsigned short i_beach2_txt[];
extern unsigned short i_coral_txt[];
extern unsigned short i_coral_txt[];
extern unsigned short i_coral2_txt[];
extern unsigned short i_coral3_txt[];
extern unsigned short i_cottage_1_txt[];
extern unsigned short i_cottage_10_txt[];
extern unsigned short i_cottage_11_txt[];
extern unsigned short i_cottage_12_txt[];
extern unsigned short i_cottage_13_txt[];
extern unsigned short i_cottage_2_txt[];
extern unsigned short i_cottage_3_txt[];
extern unsigned short i_cottage_4_txt[];
extern unsigned short i_cottage_5_txt[];
extern unsigned short i_cottage_6_txt[];
extern unsigned short i_cottage_7_txt[];
extern unsigned short i_cottage_8_txt[];
extern unsigned short i_cottage_9_txt[];
extern unsigned short i_green2_txt[];
extern unsigned short i_green_1_txt[];
extern unsigned short i_green_3_txt[];
extern unsigned short i_green_4_txt[];
extern unsigned short i_green_5_txt[];
extern unsigned short i_kyaku1_txt[];
extern unsigned short i_kyaku2_txt[];
extern unsigned short i_palm_1_txt[];
extern unsigned short i_palm_4_txt[];
extern unsigned short i_rock_1_txt[];
extern unsigned short i_rock_2_txt[];
extern unsigned short i_rock_3_txt[];
extern unsigned short i_roof_1_txt[];
extern unsigned short i_roof_2_txt[];
extern unsigned short i_roof_3_txt[];
extern unsigned short i_roof_4_txt[];
extern unsigned short i_wall1_txt[];
extern unsigned short kw_js_3_txt[];
extern unsigned short kw_kw_3_txt[];
extern unsigned short man_endo_txt[];
extern unsigned short man_kane_txt[];
extern unsigned short man_kanno_txt[];
extern unsigned short man_kimra_txt[];
extern unsigned short man_man1_txt[];
extern unsigned short man_man2_txt[];
extern unsigned short man_man3_txt[];
extern unsigned short man_man5_txt[];
extern unsigned short man_man6_txt[];
extern unsigned short man_nakamura_txt[];
extern unsigned short man_oota_txt[];
extern unsigned short man_oyazi_txt[];
extern unsigned short man_shimuzu_txt[];
extern unsigned short man_takahasi_txt[];
extern unsigned short man_takano_txt[];
extern unsigned short man_wata_txt[];
extern unsigned short nintendo64_f1_txt[];
extern unsigned short nintendo64_f2_txt[];
extern unsigned short palm_r1_txt[];
extern unsigned short palm_r2_txt[];
extern unsigned short road_1_txt[];
extern unsigned short roof_1_txt[];
extern unsigned short start_bak_txt[];
extern unsigned short start_base1_txt[];
extern unsigned short start_base2_txt[];
extern unsigned short start_base3_txt[];
extern unsigned short start_base4_txt[];
extern unsigned short uturn_txt[];
extern unsigned short b_nin64_1_txt[];
extern unsigned short b_nin64_2_txt[];
extern unsigned short b_nin64_3_txt[];
extern unsigned short b_nin64_4_txt[];
extern unsigned short b_nin64_5_txt[];
extern unsigned short check_bouy_txt[];
extern unsigned short check_rope_txt[];
extern unsigned short start_base_txt[];
extern unsigned short start_pole_txt[];
extern unsigned short bridge1_txt[];
extern unsigned short green1_rgb_txt[];
extern unsigned short roof1_txt[];
extern unsigned short roof2_txt[];
extern unsigned short side1_txt[];
extern unsigned short veranda1_txt[];
extern unsigned short wall10_txt[];
extern unsigned short wall13_txt[];
extern unsigned short wall15_txt[];
extern unsigned short wall16_txt[];
extern unsigned short wall17_txt[];
extern unsigned short wall18_txt[];
extern unsigned short wall2_txt[];
extern unsigned short wall4_txt[];
extern unsigned short wall5_txt[];
extern unsigned short wall6_txt[];
extern unsigned short wall7_txt[];
extern unsigned short wall8_txt[];
extern unsigned short wall9_txt[];
extern unsigned short water1_txt[];
extern unsigned short window1_txt[];
extern unsigned short window2_txt[];
extern unsigned short wlight0_txt[];
extern unsigned short wlight1_txt[];
extern unsigned short wlight2_txt[];
extern unsigned short wlight3_txt[];
extern unsigned short fence1_txt[];
extern unsigned short fence2_txt[];
extern unsigned short fence3_txt[];
extern unsigned short fence4_txt[];
extern unsigned short fence5_txt[];
extern unsigned short fence6_txt[];
extern unsigned short fence7_txt[];



#define gs_Nin_LoadTextureImage(timg,fmt,siz,width,height,tmem,tt)	\
	gsDPSetTextureImage(fmt,siz,1,timg),	\
	gsDPTileSync(),	\
	gsDPSetTile(fmt,siz,0,tmem,tt,0,0,0,0,0,0,0),	\
	gsDPLoadSync(),	\
	gsDPLoadBlock(tt,0,0,width*height-1,CALC_DXT(width,siz##_BYTES))

#define gs_Nin_SetUpTileDescrip(fmt,siz,width,height,tmem,tt,cs,ms,ss,ct,mt,st)	\
	gsDPTileSync(),	\
	gsDPSetTile(fmt,siz,((((width)*siz##_LINE_BYTES)+7)>>3),tmem,tt,0,ct,mt,st,cs,ms,ss),	\
	gsDPSetTileSize(tt,0,0,(width-1)<<G_TEXTURE_IMAGE_FRAC,(height-1)<<G_TEXTURE_IMAGE_FRAC)

#define G_CC_PRIMSHADE PRIMITIVE,0,SHADE,0,0,0,0,SHADE

/* main display list */


/* ======== g1 ======== */

static	Gfx c0_kanno_grp_g1T[]={

	gsSPTexture(65535, 65535,0, 0, 1),
	gsDPPipeSync(),
	gsDPSetCombineMode(G_CC_MODULATERGBDECALA,G_CC_PASS2),

	gs_Nin_SetUpTileDescrip(G_IM_FMT_RGBA,G_IM_SIZ_16b,20,40,0,0,G_TX_CLAMP,5,0,G_TX_CLAMP,6,0),
	gs_Nin_LoadTextureImage(man_kanno_txt,G_IM_FMT_RGBA,G_IM_SIZ_16b,20,40,0,7),

	gsSPVertex(&c0_kanno_v[0], 4, 0),
	gsSP1Triangle(0, 1, 2, 0),
	gsSP1Triangle(0, 2, 3, 0),
	gsSPEndDisplayList(),
}; /* g1 */ 

/* ======== db ======== */

Gfx c0_kanno_modelT[]={
	gsSPDisplayList(c0_kanno_grp_g1T),
	gsSPEndDisplayList(),
}; /* db */ 

Gfx c0_kanno_model[] = {
	gsSPEndDisplayList()
};

#undef G_CC_PRIMSHADE

#undef gs_Nin_LoadTextureImage

#undef gs_Nin_SetUpTileDescrip

/* 4 vertices */
Vtx c0_kanno_v[]={
	{ 20,80,0,0, 640, 0,  255, 255, 255, 255 /* face color */  },   /* v0 used p1/V1 1 times */
	{ -20,80,0,0, 0, 0,  255, 255, 255, 255 /* face color */  },   /* v1 used p1/V2 1 times */
	{ -20,0,0,0, 0, 1280,  255, 255, 255, 255 /* face color */  },   /* v2 used p1/V3 1 times */
	{ 20,0,0,0, 640, 1280,  255, 255, 255, 255 /* face color */  },   /* v3 used p1/V4 1 times */
};


/*   0 vertices */
/* 20 x 40  G_IM_SIZ_16b G_IM_FMT_RGBA  */
unsigned short man_kanno_txt[] = {
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xf6f1, 0xdd9f, 0xf735, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xf734, 0xc499, 0xd55f, 0xffba, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xe66b, 0xe5e3, 0xfffc, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xe627, 0xee23, 0xfffc, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xf778, 0xc55f, 0xac97, 0xdeae, 0xfffe, 0xfffe, 0xfffe, 0xf7ba, 0xd55b, 0xe669, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xf77a, 0x9bcd, 0xab87, 0xb38b, 0x8289, 0xe736, 0xfffe, 0xfffe, 0xfffe, 0xe66d, 0xc497, 0xeef3, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xef76, 0x7a45, 0xb3d1, 0xdd1d, 0xc455, 0xde6f, 0xfffe, 0xfffe, 0xfffe, 0xa5ef, 0xccd7, 0xf732, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xb49d, 0xd453, 0xd4db, 0xab93, 0xe6af, 0xfffe, 0xfffe, 0x9f3d, 0x2467, 0x8bd9, 0xef7a, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xff7a, 0xd561, 0xbbd1, 0xab91, 0xde2d, 0xe7fe, 0x87bf, 0x2df5, 0x1be5, 0x11d7, 0xb5ef, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xf7fe, 0xb6f7, 0x9bd5, 0xbbcf, 0x7b55, 0x2be3, 0x3ebb, 0x1c6b, 0xadd, 0x3361, 0xdef8, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xefbe, 0xc6b3, 0x6ef9, 0x3d2d, 0x4b5d, 0x19d3, 0xad9, 0x2469, 0x13a5, 0x1a59, 0xceb6, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xf7fe, 0xbf35, 0xf665, 0x7eb7, 0x4fbf, 0x1467, 0x2321, 0x1b1f, 0x139f, 0xb21, 0x6425, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xcfff, 0xc6ad, 0xa4e1, 0x263b, 0x3db3, 0x94b3, 0xc37d, 0x81af, 0xb5d, 0x1361, 0xadf3, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xe7be, 0xceb1, 0xcd1d, 0x231f, 0xcf1, 0x14af, 0x9b37, 0xeaff, 0xa275, 0x131f, 0x2361, 0xd738, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xdef5, 0xe519, 0x72d3, 0x1d5, 0x1429, 0x1533, 0x4431, 0xfaff, 0x8373, 0xb9f, 0x2363, 0xd6f6, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xf6af, 0xcc95, 0x7c23, 0x43e3, 0xba5, 0x14f1, 0x2ba7, 0x7435, 0x33e9, 0x13a1, 0x23e3, 0xc672, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xffbc, 0xf778, 0xfffe, 0x756f, 0x3a5, 0x1d75, 0x13a3, 0xb5f, 0x1299, 0x23e5, 0x23e5, 0xadaf, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0x752d, 0x321, 0x1d75, 0x1c27, 0x12dd, 0xa59, 0x356f, 0x1be7, 0x952d, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0x9eb3, 0x39d, 0x14a5, 0x135f, 0xa99, 0x23e1, 0x67ff, 0x1363, 0x7ca9, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xeffe, 0x4e73, 0x25ad, 0x13e1, 0xb9f, 0x2525, 0x3e35, 0x219, 0x6425, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xc62d, 0x5469, 0x3363, 0x3299, 0x1add, 0x1321, 0x9d9, 0x4b61, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffc, 0xf5df, 0xbc15, 0x7a8d, 0x69c9, 0x5a0d, 0x5253, 0x5a53, 0xa52b, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xff76, 0xed5b, 0xcc55, 0xbc15, 0x9b93, 0x830f, 0x82cd, 0x7acd, 0xd62d, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xff76, 0xe4d9, 0xcc55, 0xcc57, 0xb3d3, 0x9351, 0x8b11, 0x82cf, 0xcdeb, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xff32, 0xe4d7, 0xcc55, 0xbc15, 0xa393, 0x9351, 0x9351, 0x82cf, 0xc5a9, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xf6ad, 0xd455, 0xc455, 0xabd3, 0x828d, 0x930f, 0x9351, 0x8acf, 0xbd65, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xdda5, 0xc413, 0xbc15, 0x9b93, 0x8b13, 0x8b0f, 0x9b51, 0x8b0f, 0xc565, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xe5e7, 0xd455, 0xb3d3, 0xa3d7, 0xac9f, 0x8acd, 0x9b51, 0x930f, 0xcdeb, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xeeaf, 0xe4d7, 0xab93, 0xac19, 0xc5a9, 0x8acf, 0x9b93, 0xb3d3, 0xcde9, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xf6ad, 0xe4d7, 0x9b4f, 0xbce1, 0xe6f6, 0x9353, 0xcc97, 0xbc13, 0xc567, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfeef, 0xd4d9, 0x930f, 0xd62f, 0xfffe, 0xbc5b, 0xed19, 0xa391, 0xc5a7, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xf669, 0xab91, 0x9bd7, 0xffbc, 0xfffe, 0xe62b, 0xcc53, 0x9b51, 0xc567, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xeda3, 0xab91, 0xac5b, 0xfffe, 0xfffe, 0xe6b1, 0xb3d1, 0x934f, 0xb49f, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xe55f, 0xe519, 0xddeb, 0xfffe, 0xfffe, 0xcda7, 0x9b0f, 0xa391, 0xac17, 0xffbc, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfea7, 0xdcd9, 0xb4e1, 0xfffe, 0xfffe, 0xbd23, 0x930d, 0xa391, 0xabd3, 0xef36, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfe25, 0x828b, 0x7b13, 0xfffe, 0xfffe, 0xbd25, 0x8b0f, 0xa351, 0x9b51, 0xde70, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xb459, 0x5987, 0x941b, 0xfffe, 0xfffe, 0xd66f, 0x8b0f, 0x9353, 0x9b93, 0xef36, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffc, 0x9bd9, 0x4987, 0xce30, 0xfffe, 0xfffe, 0xef36, 0x8311, 0xabd5, 0xbc9f, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xffba, 0xb417, 0x93d9, 0xf7bc, 0xfffe, 0xfffe, 0xfffe, 0xb525, 0x930f, 0xac5f, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
	0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xef36, 0xf7ba, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 0xde27, 0xc521, 0xf7ba, 0xfffe, 0xfffe, 0xfffe, 0xfffe, 
};

