#include<ultra64.h>
/*   1 Materials */

extern Vtx tate01_v[];
extern Lights1 tate01_material[];

extern unsigned short kanban05_txt[];
extern unsigned short tate_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


/* ======== g23 ======== */

extern	Gfx tate01_model[]={
	gsSPVertex(&tate01_v[0], 16, 0),
	gsSP2Triangles(0, 1, 2, 0, 0,2,3,0),
	gsSP2Triangles(4, 5, 6, 0, 4,6,7,0),
	gsSP2Triangles(8, 9, 10, 0, 8,10,11,0),
	gsSP2Triangles(9, 12, 13, 0, 8, 14, 15,0),

	gsSPEndDisplayList(),
}; /* db */ 

#undef G_CC_PRIMSHADE
#undef gs_Nin_LoadTextureImage
#undef gs_Nin_SetUpTileDescrip
/*  16 vertices */
Vtx tate01_v[]={
	{  -210,-35,-20,0,6144,10, 255, 255, 255, 255 /* face color */  },   /* v0 used p114/V1 1 times */ 
	{  210,-35,-20,0,0,10, 255, 255, 255, 255 /* face color */  },   /* v1 used p114/V2 1 times */ 
	{  210,0,40,0,0,1023, 255, 255, 255, 255 /* face color */  },   /* v2 used p114/V3 1 times */ 
	{  -210,0,40,0,6144,1023, 255, 255, 255, 255 /* face color */  },   /* v3 used p114/V4 1 times */ 
	{  -210,0,40,0,6144,10, 255, 255, 255, 255 /* face color */  },   /* v4 used p113/V1 1 times */ 
	{  210,0,40,0,0,10, 255, 255, 255, 255 /* face color */  },   /* v5 used p113/V2 1 times */ 
	{  210,35,-20,0,0,1023, 255, 255, 255, 255 /* face color */  },   /* v6 used p113/V3 1 times */ 
	{  -210,35,-20,0,6144,1023, 255, 255, 255, 255 /* face color */  },   /* v7 used p113/V4 1 times */ 
	{  -210,35,-20,0,6144,10, 255, 255, 255, 255 /* face color */  },   /* v8 used p110/V1 2 times */ 
	{  210,35,-20,0,0,10, 255, 255, 255, 255 /* face color */  },   /* v9 used p112/V1 2 times */ 
	{  210,-35,-20,0,0,1023, 255, 255, 255, 255 /* face color */  },   /* v10 used p110/V3 1 times */ 
	{  -210,-35,-20,0,6144,1023, 255, 255, 255, 255 /* face color */  },   /* v11 used p110/V4 1 times */ 
	{  210,0,40,0,0,517, 255, 255, 255, 255 /* face color */  },   /* v12 used p112/V2 1 times */ 
	{  210,-35,-20,0,0,1023, 255, 255, 255, 255 /* face color */  },   /* v13 used p112/V3 1 times */ 
	{  -210,-35,-20,0,6144,1023, 255, 255, 255, 255 /* face color */  },   /* v14 used p108/V1 1 times */ 
	{  -210,0,40,0,6144,517, 255, 255, 255, 255 /* face color */  },   /* v15 used p108/V2 1 times */ 
};



