#include<ultra64.h>
/*   1 Materials */

extern Vtx yoko01_v[];
extern Lights1 yoko01_material[];

extern unsigned short kanban01_txt[];
extern unsigned short yoko_mute_TX[];


#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


/* ======== g2 ======== */

extern	Gfx yoko01_model[]={
	gsSPVertex(&yoko01_v[0], 18, 0),
	gsSP2Triangles(0, 1, 2, 0, 0,2,3,0),
	gsSP2Triangles(4, 5, 6, 0, 4,6,7,0),
	gsSP2Triangles(8, 9, 10, 0, 11,12,13,0),
	gsSP2Triangles(11, 13, 14, 0, 15,16,17,0),

	gsSPEndDisplayList(),
}; /* db */ 

#undef G_CC_PRIMSHADE
#undef gs_Nin_LoadTextureImage
#undef gs_Nin_SetUpTileDescrip
/*  18 vertices */
Vtx yoko01_v[]={
	{  116,21,0,0,1930,1042, 255, 255, 255, 255 /* face color */  },   /* v0 used p76/V1 1 times */ 
	{  150,120,0,0,2232,0, 255, 255, 255, 255 /* face color */  },   /* v1 used p76/V2 1 times */ 
	{  -75,120,130,0,-185,0, 255, 255, 255, 255 /* face color */  },   /* v2 used p76/V3 1 times */ 
	{  -57,22,100,0,116,1042, 255, 255, 255, 255 /* face color */  },   /* v3 used p76/V4 1 times */ 
	{  -57,21,-100,0,1930,1042, 255, 255, 255, 255 /* face color */  },   /* v4 used p75/V1 1 times */ 
	{  -75,120,-130,0,2232,0, 255, 255, 255, 255 /* face color */  },   /* v5 used p75/V2 1 times */ 
	{  150,120,0,0,-185,0, 255, 255, 255, 255 /* face color */  },   /* v6 used p75/V3 1 times */ 
	{  116,21,0,0,116,1042, 255, 255, 255, 255 /* face color */  },   /* v7 used p75/V4 1 times */ 
	{  116,21,0,0,1021,1133, 255, 255, 255, 255 /* face color */  },   /* v8 used p6/V1 1 times */ 
	{  -57,22,100,0,1810,1132, 255, 255, 255, 255 /* face color */  },   /* v9 used p6/V2 1 times */ 
	{  -57,21,-100,0,233,1133, 255, 255, 255, 255 /* face color */  },   /* v10 used p6/V3 1 times */ 
	{  -57,22,100,0,1930,1042, 255, 255, 255, 255 /* face color */  },   /* v11 used p4/V1 1 times */ 
	{  -75,120,130,0,2232,0, 255, 255, 255, 255 /* face color */  },   /* v12 used p4/V2 1 times */ 
	{  -75,120,-130,0,-185,0, 255, 255, 255, 255 /* face color */  },   /* v13 used p4/V3 1 times */ 
	{  -57,21,-100,0,116,1042, 255, 255, 255, 255 /* face color */  },   /* v14 used p4/V4 1 times */ 
	{  -75,120,-130,0,0,-128, 255, 255, 255, 255 /* face color */  },   /* v15 used p2/V1 1 times */ 
	{  -75,120,130,0,2046,-128, 255, 255, 255, 255 /* face color */  },   /* v16 used p2/V2 1 times */ 
	{  150,120,0,0,1023,-128, 255, 255, 255, 255 /* face color */  },   /* v17 used p2/V3 1 times */ 
};

