#include<ultra64.h>

extern Vtx VS_Tankbeam02_v[];
extern Vtx VS_Tankbeam02_vmcur[];
extern Tri VS_Tankbeam02_tri[];
extern Mtx VS_Tankbeam02_matrix[];

extern unsigned short VS_Tankbeam01_txt[];
extern unsigned short VS_Tankbeam02_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_Tankbeam02[]={

	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_Tankbeam02_txt,G_IM_FMT_RGBA,G_IM_SIZ_16b,16,16,0,7),

	gsSPVertex(&VS_Tankbeam02_v[0],3,0),
	gsSP1Triangle(0, 1, 2, 0),
	gsSPEndDisplayList(),
}; /* o1 */ 

/* 3 vertices */
Vtx VS_Tankbeam02_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_Tankbeam02_txt[] = {
	0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 
	0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0x101, 0x141, 0x181, 0x181, 0x141, 0x101, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 
	0xc0, 0xc0, 0xc0, 0x101, 0x141, 0x201, 0x281, 0x301, 0x301, 0x281, 0x201, 0x141, 0x101, 0xc0, 0xc0, 0xc0, 
	0xc0, 0xc0, 0x101, 0x1c1, 0x281, 0x1381, 0x2443, 0x34c3, 0x34c3, 0x2443, 0x1381, 0x281, 0x1c1, 0x101, 0xc0, 0xc0, 
	0xc0, 0xc0, 0x141, 0x281, 0x13c3, 0x3d05, 0x6e07, 0x8687, 0x8687, 0x6e07, 0x3d05, 0x13c3, 0x281, 0x141, 0xc0, 0xc0, 
	0xc0, 0x101, 0x201, 0x1381, 0x3d05, 0x7e87, 0xaf4d, 0xc795, 0xc795, 0xaf4d, 0x7e87, 0x3d05, 0x1381, 0x1c1, 0x101, 0xc0, 
	0xc0, 0x141, 0x281, 0x2443, 0x6e07, 0xaf4d, 0xcf9b, 0xe7eb, 0xe7eb, 0xcf9b, 0xaf4d, 0x6e07, 0x2443, 0x281, 0x141, 0xc0, 
	0xc0, 0x181, 0x301, 0x34c3, 0x8687, 0xc795, 0xe7eb, 0xfff9, 0xfff9, 0xe7eb, 0xc795, 0x8687, 0x34c3, 0x301, 0x181, 0xc0, 
	0xc0, 0x181, 0x301, 0x34c3, 0x8687, 0xc795, 0xe7eb, 0xfff9, 0xfff9, 0xe7eb, 0xc795, 0x8687, 0x34c3, 0x301, 0x181, 0xc0, 
	0xc0, 0x141, 0x281, 0x2443, 0x6e07, 0xaf4d, 0xcf9b, 0xe7eb, 0xe7eb, 0xcf9b, 0xaf4d, 0x6e07, 0x2443, 0x281, 0x141, 0xc0, 
	0xc0, 0x101, 0x1c1, 0x1381, 0x3d05, 0x7e87, 0xaf4d, 0xc795, 0xc795, 0xaf4d, 0x7e87, 0x3d05, 0x1381, 0x201, 0x101, 0xc0, 
	0xc0, 0xc0, 0x141, 0x281, 0x13c3, 0x3d05, 0x6e07, 0x8687, 0x8687, 0x6e07, 0x3d05, 0x13c3, 0x281, 0x141, 0xc0, 0xc0, 
	0xc0, 0xc0, 0x101, 0x1c1, 0x281, 0x1381, 0x2443, 0x34c3, 0x34c3, 0x2443, 0x1381, 0x281, 0x1c1, 0x101, 0xc0, 0xc0, 
	0xc0, 0xc0, 0xc0, 0x101, 0x141, 0x1c1, 0x281, 0x301, 0x301, 0x281, 0x1c1, 0x141, 0x101, 0xc0, 0xc0, 0xc0, 
	0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0x101, 0x141, 0x181, 0x181, 0x141, 0x101, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 
	0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 0xc0, 
};

