#include<ultra64.h>

extern Vtx VS_Tankbanban_v[];
extern Vtx VS_Tankbanban_vmcur[];
extern Tri VS_Tankbanban_tri[];
extern Mtx VS_Tankbanban_matrix[];

extern unsigned short VS_Tankbanban_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)

/* main display list */


/* ======== o1 ======== */

Gfx VS_Tankbanban[]={

	gs_Nin_SetUpTileDescrip(G_IM_FMT_RGBA,G_IM_SIZ_16b,16,16,0,0,G_TX_CLAMP,4,0,G_TX_CLAMP,4,0),
	gs_Nin_LoadTextureImage(VS_Tankbanban_txt,G_IM_FMT_RGBA,G_IM_SIZ_16b,16,16,0,7),

	gsSPVertex(&VS_Tankbanban_v[0],3,0),
	gsSP1Triangle(0, 1, 2, 0),
	gsSPEndDisplayList(),
}; /* o1 */ 

/* 3 vertices */
Vtx VS_Tankbanban_v[]={
	{   -60,   -40,     0,     0,  -512,   768,   255,   255,   255,   255},	/* 0 */
	{    60,   -40,     0,     0,  1024,   768,   255,   255,   255,   255},	/* 1 */
	{     0,    60,     0,     0,   256,  -512,   255,   255,   255,   255},	/* 2 */
};


/*   0 vertices */
/*   1 Materials */

#define	LDIRX	0
#define	LDIRY	0
#define	LDIRZ	120
#define	AMBDIV	1
/* 16 x 16  G_IM_SIZ_16b G_IM_FMT_RGBA  */
unsigned short VS_Tankbanban_txt[] = {
	0xef5e, 0xef5e, 0xef5e, 0xef5e, 0xef5e, 0xef5e, 0xef5e, 0xef5e, 0xef5e, 0xef5e, 0xef5e, 0xef5e, 0xef5e, 0xef5e, 0xef5e, 0xef5e, 
	0xef5e, 0xef5e, 0xef5e, 0xef5e, 0xef5e, 0xef61, 0xef65, 0xef63, 0xef63, 0xef65, 0xef61, 0xef5e, 0xef5e, 0xef5e, 0xef5e, 0xef5e, 
	0xef5e, 0xef5e, 0xef5e, 0xef61, 0xef65, 0xf7ab, 0xf7b3, 0xf7ab, 0xf7ab, 0xf7b3, 0xf7ab, 0xef65, 0xef61, 0xef5e, 0xef5e, 0xef5e, 
	0xef5e, 0xef5e, 0xef61, 0xfff5, 0xf7b3, 0xfff9, 0xfffd, 0xf7af, 0xf7af, 0xfffd, 0xfff9, 0xf7b3, 0xfff5, 0xef61, 0xef5e, 0xef5e, 
	0xef5e, 0xef5e, 0xef65, 0xf7b3, 0xfff9, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xfff9, 0xf7b3, 0xef65, 0xef5e, 0xef5e, 
	0xef5e, 0xef61, 0xf7ab, 0xfff9, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xfff9, 0xf7ab, 0xef61, 0xef5e, 
	0xef5e, 0xef65, 0xf7b3, 0xfffd, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xfffd, 0xf7b3, 0xef65, 0xef5e, 
	0xef5e, 0xf7a7, 0xf7ab, 0xf7af, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xf7af, 0xf7ab, 0xf7a7, 0xef5e, 
	0xef5e, 0xf7a7, 0xf7ab, 0xf7af, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xf7af, 0xf7ab, 0xf7a7, 0xef5e, 
	0xef5e, 0xef65, 0xf7b3, 0xfffd, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xfffd, 0xf7b3, 0xef65, 0xef5e, 
	0xef5e, 0xef61, 0xf7ab, 0xfff9, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xfff9, 0xf7ab, 0xef61, 0xef5e, 
	0xef5e, 0xef5e, 0xef65, 0xf7b3, 0xfff9, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xfff9, 0xf7b3, 0xef65, 0xef5e, 0xef5e, 
	0xef5e, 0xef5e, 0xef61, 0xfff5, 0xf7b3, 0xfff9, 0xfffd, 0xf7af, 0xf7af, 0xfffd, 0xfff9, 0xf7b3, 0xfff5, 0xef61, 0xef5e, 0xef5e, 
	0xef5e, 0xef5e, 0xef5e, 0xef61, 0xef65, 0xf7ab, 0xf7b3, 0xf7ab, 0xf7ab, 0xf7b3, 0xf7ab, 0xef65, 0xef61, 0xef5e, 0xef5e, 0xef5e, 
	0xef5e, 0xef5e, 0xef5e, 0xef5e, 0xef5e, 0xef61, 0xef65, 0xef63, 0xef63, 0xef65, 0xef61, 0xef5e, 0xef5e, 0xef5e, 0xef5e, 0xef5e, 
	0xef5e, 0xef5e, 0xef5e, 0xef5e, 0xef5e, 0xef5e, 0xef5e, 0xef5e, 0xef5e, 0xef5e, 0xef5e, 0xef5e, 0xef5e, 0xef5e, 0xef5e, 0xef5e, 
};

