#include<ultra64.h>

extern Vtx VS_Tankbeam04_v[];
extern Vtx VS_Tankbeam04_vmcur[];
extern Tri VS_Tankbeam04_tri[];
extern Mtx VS_Tankbeam04_matrix[];

extern unsigned short VS_Tankbeam04_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_Tankbeam04[]={

	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_Tankbeam04_txt,G_IM_FMT_RGBA,G_IM_SIZ_16b,16,16,0,7),

	gsSPVertex(&VS_Tankbeam04_v[0],3,0),
	gsSP1Triangle(0, 1, 2, 0),
	gsSPEndDisplayList(),
}; /* o1 */ 

/* 3 vertices */
Vtx VS_Tankbeam04_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_Tankbeam04_txt[] = {
	0xf940, 0xf940, 0xf940, 0xf940, 0xf940, 0xf940, 0xf940, 0xf940, 0xf940, 0xf940, 0xf940, 0xf940, 0xf940, 0xf940, 0xf940, 0xf940, 
	0xf940, 0xf940, 0xf940, 0xf940, 0xf940, 0xf981, 0xfa01, 0xfa41, 0xfa41, 0xfa01, 0xf981, 0xf940, 0xf940, 0xf940, 0xf940, 0xf940, 
	0xf940, 0xf940, 0xf940, 0xf981, 0xfa01, 0xfac1, 0xfbc1, 0xfc41, 0xfc41, 0xfbc1, 0xfac1, 0xfa01, 0xf981, 0xf940, 0xf940, 0xf940, 
	0xf940, 0xf940, 0xf981, 0xfa81, 0xfbc1, 0xfc81, 0xfd81, 0xfdc1, 0xfdc1, 0xfd81, 0xfc81, 0xfbc1, 0xfa81, 0xf981, 0xf940, 0xf940, 
	0xf940, 0xf940, 0xfa01, 0xfbc1, 0xfd01, 0xfe01, 0xfec1, 0xff41, 0xff41, 0xfec1, 0xfe01, 0xfd01, 0xfbc1, 0xfa01, 0xf940, 0xf940, 
	0xf940, 0xf981, 0xfac1, 0xfc81, 0xfe01, 0xff01, 0xffc3, 0xffcb, 0xffcb, 0xffc3, 0xff01, 0xfe01, 0xfc81, 0xfac1, 0xf981, 0xf940, 
	0xf940, 0xfa01, 0xfbc1, 0xfd81, 0xfec1, 0xffc3, 0xffd3, 0xffe7, 0xffe7, 0xffd3, 0xffc3, 0xfec1, 0xfd81, 0xfbc1, 0xfa01, 0xf940, 
	0xf940, 0xfa41, 0xfc41, 0xfdc1, 0xff41, 0xffcb, 0xffe7, 0xfffb, 0xfffb, 0xffe7, 0xffcb, 0xff41, 0xfdc1, 0xfc41, 0xfa41, 0xf940, 
	0xf940, 0xfa41, 0xfc41, 0xfdc1, 0xff41, 0xffcb, 0xffe7, 0xfffb, 0xfffb, 0xffe7, 0xffcb, 0xff41, 0xfdc1, 0xfc41, 0xfa41, 0xf940, 
	0xf940, 0xfa01, 0xfbc1, 0xfd81, 0xfec1, 0xffc3, 0xffd3, 0xffe7, 0xffe7, 0xffd3, 0xffc3, 0xfec1, 0xfd81, 0xfbc1, 0xfa01, 0xf940, 
	0xf940, 0xf981, 0xfac1, 0xfc81, 0xfe01, 0xff01, 0xffc3, 0xffcb, 0xffcb, 0xffc3, 0xff01, 0xfe01, 0xfc81, 0xfac1, 0xf981, 0xf940, 
	0xf940, 0xf940, 0xfa01, 0xfbc1, 0xfd01, 0xfe01, 0xfec1, 0xff41, 0xff41, 0xfec1, 0xfe01, 0xfd01, 0xfbc1, 0xfa01, 0xf940, 0xf940, 
	0xf940, 0xf940, 0xf981, 0xfa81, 0xfbc1, 0xfc81, 0xfd81, 0xfdc1, 0xfdc1, 0xfd81, 0xfc81, 0xfbc1, 0xfa81, 0xf981, 0xf940, 0xf940, 
	0xf940, 0xf940, 0xf940, 0xf981, 0xfa01, 0xfac1, 0xfbc1, 0xfc41, 0xfc41, 0xfbc1, 0xfac1, 0xfa01, 0xf981, 0xf940, 0xf940, 0xf940, 
	0xf940, 0xf940, 0xf940, 0xf940, 0xf940, 0xf981, 0xfa01, 0xfa41, 0xfa41, 0xfa01, 0xf981, 0xf940, 0xf940, 0xf940, 0xf940, 0xf940, 
	0xf940, 0xf940, 0xf940, 0xf940, 0xf940, 0xf940, 0xf940, 0xf940, 0xf940, 0xf940, 0xf940, 0xf940, 0xf940, 0xf940, 0xf940, 0xf940, 
};

