#include<ultra64.h>

extern Vtx VS_Tankbeam03_v[];
extern Vtx VS_Tankbeam03_vmcur[];
extern Tri VS_Tankbeam03_tri[];
extern Mtx VS_Tankbeam03_matrix[];

extern unsigned short VS_Tankbeam01_txt[];
extern unsigned short VS_Tankbeam02_txt[];
extern unsigned short VS_Tankbeam03_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_Tankbeam03[]={

	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_Tankbeam03_txt,G_IM_FMT_RGBA,G_IM_SIZ_16b,16,16,0,7),

	gsSPVertex(&VS_Tankbeam03_v[0], 3, 0),
	gsSP1Triangle(0, 1, 2, 0),
	gsSPEndDisplayList(),
}; /* o1 */ 

/* 3 vertices */
Vtx VS_Tankbeam03_v[]={
	{ -60,-40,0,0, -512, 768,  255, 255, 255, 255 /* vertex color */  },   /* v0 p1/V1 used 1 times */ 
	{ 60,-40,0,0, 1024, 768,  255, 255, 255, 255 /* vertex color */  },   /* v1 p1/V2 used 1 times */ 
	{ 0,60,0,0, 256, -512,  255, 255, 255, 255 /* vertex color */  },   /* v2 p1/V3 used 1 times */ 
};


/*   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_Tankbeam03_txt[] = {
	0xc, 0xc, 0xc, 0xc, 0xc, 0xc, 0xc, 0xc, 0xc, 0xc, 0xc, 0xc, 0xc, 0xc, 0xc, 0xc, 
	0xc, 0xc, 0xc, 0xc, 0xc, 0x11, 0x17, 0x19, 0x19, 0x17, 0x11, 0xc, 0xc, 0xc, 0xc, 0xc, 
	0xc, 0xc, 0xc, 0x11, 0x17, 0x21, 0x2d, 0x33, 0x33, 0x2d, 0x21, 0x17, 0x11, 0xc, 0xc, 0xc, 
	0xc, 0xc, 0x11, 0x1d, 0x2d, 0x77, 0x17d, 0x1ff, 0x1ff, 0x17d, 0x77, 0x2d, 0x1d, 0x11, 0xc, 0xc, 
	0xc, 0xc, 0x17, 0x2d, 0x7d, 0x27f, 0x4ff, 0x5ff, 0x5ff, 0x4ff, 0x27f, 0x7d, 0x2d, 0x17, 0xc, 0xc, 
	0xc, 0x11, 0x21, 0x77, 0x27f, 0x57f, 0xf7f, 0x2fff, 0x2fff, 0xf7f, 0x57f, 0x27f, 0x77, 0x21, 0x11, 0xc, 
	0xc, 0x17, 0x2d, 0x17d, 0x4ff, 0xf7f, 0x4fff, 0x9fff, 0x9fff, 0x4fff, 0xf7f, 0x4ff, 0x17d, 0x2d, 0x17, 0xc, 
	0xc, 0x19, 0x33, 0x1ff, 0x5ff, 0x2fff, 0x9fff, 0xefff, 0xefff, 0x9fff, 0x2fff, 0x5ff, 0x1ff, 0x33, 0x19, 0xc, 
	0xc, 0x19, 0x33, 0x1ff, 0x5ff, 0x2fff, 0x9fff, 0xefff, 0xefff, 0x9fff, 0x2fff, 0x5ff, 0x1ff, 0x33, 0x19, 0xc, 
	0xc, 0x17, 0x2d, 0x17d, 0x4ff, 0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